Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/chrislusf/gleam
/ functions
Functions
3,091 in github.com/chrislusf/gleam
⨍
Functions
3,091
◇
Types & classes
751
↓ 8 callers
Method
resolveColumnInTableSources
(cn *ast.ColumnNameExpr, tableSources []*ast.TableSource)
sql/resolver/resolver.go:578
↓ 7 callers
Method
Check
Check checks if values is distinct.
sql/util/distinct/distinct.go:35
↓ 7 callers
Function
Column2Exprs
Column2Exprs will transfer column slice to expression slice.
sql/expression/column.go:161
↓ 7 callers
Method
GetBytes
GetBytes gets bytes value.
sql/util/types/datum.go:165
↓ 7 callers
Method
GetFloat32
GetFloat32 gets float32 value.
sql/util/types/datum.go:138
↓ 7 callers
Method
GetInstructionSet
()
pb/gleam.pb.go:866
↓ 7 callers
Method
GetIsOnDiskIO
GetIsOnDiskIO returns true if the dataset is persisted to disk in distributed mode.
flow/context_hint.go:40
↓ 7 callers
Function
MinNotNullDatum
MinNotNullDatum returns a datum represents minimum not null value.
sql/util/types/datum.go:1503
↓ 7 callers
Function
NewIntDatum
NewIntDatum creates a new Datum from an int64 value.
sql/util/types/datum.go:1437
↓ 7 callers
Method
NewStep
()
flow/step.go:14
↓ 7 callers
Function
ParseTimeFromNum
ParseTimeFromNum parses a formatted int64, returns the value which type is tp.
sql/util/types/time.go:1099
↓ 7 callers
Function
ProcessMessage
ProcessMessage Reads and processes MessagePack encoded messages until EOF
util/message_read.go:83
↓ 7 callers
Method
Reset
()
pb/gleam.pb.go:308
↓ 7 callers
Method
Source
Source produces data feeding into the flow. Function f writes to this writer. The written bytes should be MsgPack encoded []byte. Use util.EncodeRow(.
flow/dataset_source.go:54
↓ 7 callers
Function
StrToFloat
StrToFloat converts a string to a float64 at the best-effort.
sql/util/types/convert.go:231
↓ 7 callers
Method
ToDecimal
ToDecimal converts to a decimal.
sql/util/types/datum.go:1180
↓ 7 callers
Function
ToString
(val interface{})
gio/type_convertion.go:12
↓ 7 callers
Method
UseKeys
UseKeys use the indexes[] specified fields as key fields and the rest of fields as value fields
util/row.go:32
↓ 7 callers
Function
add
add adds a and b and carry, returns the sum and new carry.
sql/util/types/mydecimal.go:64
↓ 7 callers
Method
buildKeyInfo
buildKeyInfo will collect the information of unique keys into schema.
sql/plan/plan.go:171
↓ 7 callers
Method
buildResultSetNode
(node ast.ResultSetNode)
sql/plan/logical_plan_builder.go:100
↓ 7 callers
Function
checkFsp
(fsp int)
sql/util/types/fsp.go:36
↓ 7 callers
Function
fromDatasetShardToTask
(shard *DatasetShard, task *Task)
flow/context.go:215
↓ 7 callers
Function
fromDatasetToStep
(input *Dataset, step *Step)
flow/context.go:196
↓ 7 callers
Function
fromStepToDataset
(step *Step, output *Dataset)
flow/context.go:188
↓ 7 callers
Function
getIndexes
(storedValues []int)
instruction/local_sort.go:113
↓ 7 callers
Function
getTime
(num int64, tp byte)
sql/util/types/time.go:950
↓ 7 callers
Function
newAggFunc
(name string, args []Expression, dist bool)
sql/expression/aggregation.go:176
↓ 7 callers
Method
setLastSelectFieldText
The select statement is not at the end of the whole statement, if the last field text was set from its offset to the end of the src string, update the
sql/parser/yy_parser.go:121
↓ 7 callers
Function
toInts
(indexes []int32)
instruction/utils.go:12
↓ 6 callers
Method
Broadcast
Broadcast replicates itself to all shards.
flow/dataset_join_hash.go:24
↓ 6 callers
Method
Clone
Clone copies an aggregate function totally.
sql/expression/aggregation.go:77
↓ 6 callers
Method
CollectExecutionStatistics
collect execution stats from "gleam execute" processes
pb/gleam.pb.go:2230
↓ 6 callers
Method
DoJoin
(name string, other *Dataset, leftOuter, rightOuter bool, sortOption *SortOption)
flow/dataset_join.go:34
↓ 6 callers
Function
EncodeValue
EncodeValue appends the encoded values to byte slice b, returning the appended slice. It does not guarantee the order for comparison.
sql/util/codec/codec.go:129
↓ 6 callers
Method
FindColumn
FindColumn finds an Column from schema for a ast.ColumnName. It compares the db/table/column names. If there are more than one result, it will raise a
sql/expression/schema.go:76
↓ 6 callers
Method
FromInt
FromInt sets the decimal value from int64.
sql/util/types/mydecimal.go:853
↓ 6 callers
Method
FromUint
FromUint sets the decimal value from uint64.
sql/util/types/mydecimal.go:865
↓ 6 callers
Method
GetShardLocation
(shard *flow.DatasetShard)
distributed/driver/scheduler/scheduler_dataset_shard.go:60
↓ 6 callers
Function
HasNotNullFlag
HasNotNullFlag checks if NotNullFlag is set.
sql/mysql/type.go:90
↓ 6 callers
Method
MarshalMsg
MarshalMsg implements msgp.Marshaler
util/row_codec.go:234
↓ 6 callers
Function
MulUint64
MulUint64 multiplies uint64 a and b and returns uint64 if no overflow error.
sql/util/types/overflow.go:90
↓ 6 callers
Method
Partition
hash data or by data key, return a new dataset This is divided into 2 steps: 1. Each record is sharded to a local shard 2. The destination shard will
flow/dataset_partition.go:22
↓ 6 callers
Function
ReadMessage
ReadMessage reads out the []byte for one message
util/message_read.go:88
↓ 6 callers
Function
RoundFloat
RoundFloat rounds float val to the nearest integer value with float64 format, like MySQL Round function. RoundFloat uses default rounding mode, see ht
sql/util/types/helper.go:28
↓ 6 callers
Function
Slice
Slice converts string to slice without copy. Use at your own risk.
sql/util/hack/hack.go:36
↓ 6 callers
Function
String
String converts slice to string without copy. Use at your own risk.
sql/util/hack/hack.go:23
↓ 6 callers
Method
Strings
Strings begins a flow with an []string
flow/dataset_source.go:113
↓ 6 callers
Method
ToString
ToString gets the string representation of the datum.
sql/util/types/datum.go:1299
↓ 6 callers
Method
Weekday
()
sql/util/types/time.go:134
↓ 6 callers
Method
addGbyCol
addGbyCol adds a column to gbyCols. If a group by column has existed, it will not be added repeatedly.
sql/plan/aggregation_push_down.go:151
↓ 6 callers
Function
addNils
(target []interface{}, nilCount int)
instruction/join_partitioned_sorted.go:181
↓ 6 callers
Function
adjustYear
See https://dev.mysql.com/doc/refman/5.7/en/two-digit-years.html
sql/util/types/time.go:652
↓ 6 callers
Method
check
()
sql/util/types/time.go:435
↓ 6 callers
Method
checkArgsOneColumn
(args ...expression.Expression)
sql/plan/expression_rewriter.go:942
↓ 6 callers
Method
checkColumn
(expr expression.Expression)
sql/plan/refiner.go:238
↓ 6 callers
Function
convertDatumToTime
(sc *variable.StatementContext, d types.Datum)
sql/expression/builtin_time.go:170
↓ 6 callers
Function
convertFloatToInt
(sc *variable.StatementContext, fval float64, lowerBound, upperBound int64, tp byte)
sql/util/types/convert.go:64
↓ 6 callers
Function
convertFloatToUint
(sc *variable.StatementContext, fval float64, upperBound uint64, tp byte)
sql/util/types/convert.go:116
↓ 6 callers
Function
convertToDuration
(sc *variable.StatementContext, arg types.Datum, fsp int)
sql/expression/builtin_time.go:124
↓ 6 callers
Method
error
error creates a new ParseError based on err.
plugins/file/csv/generic_csv_reader.go:129
↓ 6 callers
Function
fixWordCntError
fixWordCntError limits word count in wordBufLen, and returns overflow or truncate error.
sql/util/types/mydecimal.go:105
↓ 6 callers
Function
newFileSource
New creates a FileSource based on a file name. The base file name can have "*", "?" pattern denoting a list of file names.
plugins/file/file_source.go:52
↓ 6 callers
Function
splitDuration
(t gotime.Duration)
sql/util/types/time.go:930
↓ 6 callers
Method
tryToAddUnionScan
(resultPlan PhysicalPlan)
sql/plan/physical_plans.go:213
↓ 5 callers
Method
AddSupply
(supply Supply)
distributed/driver/scheduler/market/cda_market.go:104
↓ 5 callers
Method
Close
Close closes the underlying iterator, call Next after Close will restart the iteration.
sql/ast/ast.go:145
↓ 5 callers
Function
ComposeCNFCondition
ComposeCNFCondition composes CNF items into a balance deep CNF tree, which benefits a lot for pb decoder/encoder.
sql/expression/expression.go:196
↓ 5 callers
Function
DecimalSub
DecimalSub subs one decimal from another, sets the result to 'to'.
sql/util/types/mydecimal.go:1335
↓ 5 callers
Function
DefaultCharsetForType
DefaultCharsetForType returns the default charset/collation for mysql type.
sql/util/types/field_type.go:180
↓ 5 callers
Method
Enqueue
(x interface{}, sourceId int)
util/priority_queue.go:31
↓ 5 callers
Function
EvaluateExprWithNull
EvaluateExprWithNull sets columns in schema as null and calculate the final result of the scalar function. If the Expression is a non-constant value,
sql/expression/expression.go:251
↓ 5 callers
Method
Get
Get is the same as map[k].
sql/util/segmentmap/segmentmap.go:50
↓ 5 callers
Method
GetDataCenter
(name string)
distributed/master/structure.go:60
↓ 5 callers
Method
GetError
()
pb/gleam.pb.go:1088
↓ 5 callers
Method
GetId
()
pb/gleam.pb.go:406
↓ 5 callers
Method
GetIndexes
()
pb/gleam.pb.go:1510
↓ 5 callers
Method
GetMemoryMb
()
pb/gleam.pb.go:154
↓ 5 callers
Function
GleamGrpcDial
(address string, opts ...grpc.DialOption)
util/grpc_util.go:31
↓ 5 callers
Function
HasAggFlag
HasAggFlag checks if the expr contains FlagHasAggregateFunc.
sql/ast/flag.go:17
↓ 5 callers
Method
IsDir
(*FileLocation)
filesystem/vfs.go:31
↓ 5 callers
Method
Len
Len returns the number of columns in schema.
sql/expression/schema.go:116
↓ 5 callers
Method
Listen
Listen receives textual inputs via a socket. Multiple parameters are separated via tab.
flow/dataset_source.go:24
↓ 5 callers
Function
MergeSchema
MergeSchema will merge two schema into one schema.
sql/expression/schema.go:146
↓ 5 callers
Function
ParseDuration
ParseDuration parses the time form a formatted string with a fractional seconds part, returns the duration type Time value. See http://dev.mysql.com/d
sql/util/types/time.go:821
↓ 5 callers
Method
ReadAll
ReadAll reads all the remaining records from r. Each record is a slice of fields. A successful call returns err == nil, not err == EOF. Because ReadAl
plugins/file/csv/generic_csv_reader.go:166
↓ 5 callers
Method
SetFloat32
SetFloat32 sets float32 value.
sql/util/types/datum.go:143
↓ 5 callers
Function
StrToInt
StrToInt converts a string to an integer at the best-effort.
sql/util/types/convert.go:138
↓ 5 callers
Method
Week
(mode int)
sql/util/types/time.go:137
↓ 5 callers
Function
addSelection
(p Plan, child LogicalPlan, conditions []expression.Expression, allocator *idAllocator)
sql/plan/predicate_push_down.go:21
↓ 5 callers
Method
buildSemiApply
buildSemiApply builds apply plan with outerPlan and innerPlan, which apply semi-join for every row from outerPlan and the whole innerPlan.
sql/plan/logical_plan_builder.go:978
↓ 5 callers
Method
check
(condition expression.Expression)
sql/plan/refiner.go:112
↓ 5 callers
Function
colMatch
colMatch(a,b) means that if a match b, e.g. t.a can match test.t.a bug test.t.a can't match t.a. Because column a want column from database test exact
sql/plan/logical_plan_builder.go:478
↓ 5 callers
Method
context
()
sql/plan/plan.go:111
↓ 5 callers
Function
convertIntToInt
(val int64, lowerBound int64, upperBound int64, tp byte)
sql/util/types/convert.go:76
↓ 5 callers
Method
getColID
(col *Column)
sql/expression/constant_propagation.go:240
↓ 5 callers
Method
getStreamedContext
()
sql/expression/aggregation.go:238
↓ 5 callers
Function
getUsedList
(usedCols []*expression.Column, schema expression.Schema)
sql/plan/column_pruning.go:22
↓ 5 callers
Function
limitProperty
(limit *Limit)
sql/plan/physical_plan_builder.go:244
↓ 5 callers
Function
myMax
(a, b int)
sql/util/types/helper.go:90
← previous
next →
201–300 of 3,091, ranked by callers