Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/chrislusf/glow
/ functions
Functions
522 in github.com/chrislusf/glow
⨍
Functions
522
◇
Types & classes
101
↓ 46 callers
Method
Map
map can work with multiple kinds of inputs and outputs Input Types: 1. single value 2. (key, value) : Most common format for key value pair 3. (key, v
flow/dataset_map.go:19
↓ 36 callers
Method
w
(t string)
driver/plan/group_plot.go:118
↓ 31 callers
Method
Flag
()
util/read_write.go:30
↓ 30 callers
Method
Close
Close implements io.Closer, and closes the current logfile.
netchan/store/rotating_file_store.go:161
↓ 28 callers
Method
String
()
resource/resource.go:17
↓ 21 callers
Method
println
(t string)
driver/plan/group_plot.go:109
↓ 19 callers
Method
Name
()
flow/step_task.go:41
↓ 17 callers
Method
URL
()
resource/resource.go:83
↓ 16 callers
Method
Run
(fc *FlowContext)
flow/context_run.go:36
↓ 14 callers
Method
Minus
(b ComputeResource)
resource/resource.go:21
↓ 14 callers
Method
Write
(data []byte)
netchan/store/data_store.go:37
↓ 13 callers
Method
GetShards
()
flow/dataset.go:7
↓ 12 callers
Method
Plus
(b ComputeResource)
resource/resource.go:28
↓ 11 callers
Method
Bytes
()
util/read_write.go:36
↓ 10 callers
Method
Data
()
util/read_write.go:33
↓ 10 callers
Method
Enum
()
driver/cmd/control_message.pb.go:79
↓ 10 callers
Method
Partition
hash data or by data key, return a new dataset This is devided into 2 steps: 1. Each record is sharded to a local shard 2. The destination shard will
flow/dataset_partition.go:14
↓ 10 callers
Method
Sort
(f interface{})
flow/dataset_sort.go:10
↓ 9 callers
Method
Join
assume nothing about these two dataset
flow/dataset_join.go:8
↓ 9 callers
Method
String
()
driver/cmd/control_message.pb.go:199
↓ 9 callers
Method
newNextDataset
(shardSize int, dType reflect.Type)
flow/context.go:25
↓ 8 callers
Method
LocalSort
f(V, V) bool : less than function New Dataset contains K,V
flow/dataset_sort.go:16
↓ 8 callers
Method
TextFile
TextFile returns a new Dataset which reads the text file fname line by line, and distributes them evenly among multiple shards.
flow/dataset_source.go:54
↓ 7 callers
Function
FromTaskToDatasetShard
(task *Task, shard *DatasetShard)
flow/context.go:172
↓ 7 callers
Method
NewTask
()
flow/step_task.go:20
↓ 7 callers
Function
sendKeyValueValue
(outChan reflect.Value, key, a, b interface{})
flow/dataset_join.go:120
↓ 7 callers
Method
t
(t *flow.Task)
driver/plan/group_plot.go:126
↓ 6 callers
Method
AddOutput
(ch interface{})
flow/dataset_output.go:10
↓ 6 callers
Method
Filter
f(A)bool
flow/dataset_map.go:117
↓ 6 callers
Function
FromDatasetShardToTask
(shard *DatasetShard, task *Task)
flow/context.go:166
↓ 6 callers
Function
FromDatasetToStep
(input *Dataset, step *Step)
flow/context.go:158
↓ 6 callers
Function
FromStepToDataset
(step *Step, output *Dataset)
flow/context.go:150
↓ 6 callers
Method
GetShardLocation
(shardName string)
driver/scheduler/shard_location.go:28
↓ 6 callers
Method
InputChan
()
flow/step_task.go:58
↓ 6 callers
Method
IsZero
()
resource/resource.go:39
↓ 6 callers
Method
LocalReduceByKey
(f interface{})
flow/dataset_reduce.go:84
↓ 6 callers
Method
MakeTLSConfig
()
netchan/cert_files.go:24
↓ 6 callers
Function
New
()
flow/context.go:19
↓ 6 callers
Method
NewStep
()
flow/context.go:33
↓ 6 callers
Method
Slice
Slice accepts a slice as the input and sends the received values to tasks via Channel().
flow/dataset_source.go:98
↓ 6 callers
Method
Source
Source returns a new Dataset which evenly distributes the data items produced by f among multiple shards. f must be a function defined in the form fun
flow/dataset_source.go:13
↓ 6 callers
Method
UpdateAgentInformation
(ai *resource.AgentInformation)
resource/service_discovery/master/master_resources.go:42
↓ 6 callers
Function
add1ShardTo1Step
(d *Dataset, nextDataType reflect.Type)
flow/dataset_map.go:135
↓ 6 callers
Function
getComparator
(dt reflect.Type)
flow/dataset_join_utils.go:39
↓ 5 callers
Method
AddSupply
(supply Supply)
driver/scheduler/market/cda_market.go:95
↓ 5 callers
Method
Enqueue
(x interface{}, sourceId int)
util/priority_queue.go:31
↓ 5 callers
Function
SetupHttpClient
(tlsConfig *tls.Config)
util/http_util.go:18
↓ 5 callers
Function
_functionCall
(fn reflect.Value, inputs ...interface{})
flow/dataset_map.go:88
↓ 5 callers
Method
allocate
(req *resource.AllocationRequest)
resource/service_discovery/master/master_allocation.go:11
↓ 5 callers
Method
filename
()
netchan/store/rotating_file_store.go:283
↓ 5 callers
Function
goStart
(wg *sync.WaitGroup, fn func())
examples/word_count/word_count.go:40
↓ 5 callers
Method
openNew
openNew opens a new log file for writing, moving any old log file out of the way. This methods assumes the file has already been closed.
netchan/store/rotating_file_store.go:204
↓ 5 callers
Function
sendKeyValuesValues
(outChan reflect.Value, key interface{}, leftType reflect.Type, leftValues []interface{}, rightType reflect.T
flow/dataset_cogroup.go:136
↓ 4 callers
Method
AddDemand
retChan should be a buffered channel
driver/scheduler/market/cda_market.go:62
↓ 4 callers
Function
EncodeData
(t reflect.Value)
netchan/encode_decode.go:24
↓ 4 callers
Method
GetDataCenter
(name string)
resource/topology.go:64
↓ 4 callers
Method
IsEnabled
()
netchan/cert_files.go:20
↓ 4 callers
Function
NewMasterResource
()
resource/service_discovery/master/master_resources.go:26
↓ 4 callers
Method
TimeTaken
()
flow/dataset_shard.go:95
↓ 4 callers
Function
_functionCallWithChanOutput
(fn reflect.Value, outChan reflect.Value, inputs ...interface{})
flow/dataset_map.go:79
↓ 4 callers
Function
collectOutput
collectOutput collects the output of d and returns them as a slice of the type specified in d.Type. Intends to be used in tests. The implementation d
flow/dataset_output.go:92
↓ 4 callers
Method
dir
dir returns the directory for the current filename.
netchan/store/rotating_file_store.go:401
↓ 4 callers
Method
getExecutorStatus
(id uint32)
agent/local_executor_manager.go:21
↓ 4 callers
Function
getKeyValue
(ch chan reflect.Value)
flow/dataset_join_utils.go:91
↓ 4 callers
Function
guessKey
(input reflect.Value)
flow/utils.go:21
↓ 4 callers
Method
i
(x int)
driver/plan/group_plot.go:122
↓ 4 callers
Method
max
max returns the maximum size in bytes of log files before rolling.
netchan/store/rotating_file_store.go:393
↓ 4 callers
Function
newChannelOfValuesWithSameKey
create a channel to aggregate values of the same key automatically close original sorted channel
flow/dataset_join_utils.go:108
↓ 3 callers
Method
CloseRead
()
flow/dataset_shard.go:81
↓ 3 callers
Method
Covers
(b ComputeResource)
resource/resource.go:43
↓ 3 callers
Function
DecodeData
(data []byte, t reflect.Type)
netchan/encode_decode.go:14
↓ 3 callers
Method
Dequeue
()
util/priority_queue.go:35
↓ 3 callers
Method
DisplayName
()
flow/dataset_shard.go:41
↓ 3 callers
Method
Find
(name string)
resource/service_discovery/client/name_service_agent.go:24
↓ 3 callers
Function
GenerateFileHash
(fileName string)
driver/rsync/http_server.go:115
↓ 3 callers
Method
GetAgent
(name string)
resource/topology.go:80
↓ 3 callers
Method
GetHashCode
()
driver/cmd/control_message.pb.go:299
↓ 3 callers
Method
GetRack
(name string)
resource/topology.go:72
↓ 3 callers
Method
GetStartRequestHash
()
driver/cmd/control_message.pb.go:369
↓ 3 callers
Method
Len
()
util/priority_queue.go:40
↓ 3 callers
Method
MergeSorted
(f interface{})
flow/dataset_sort.go:46
↓ 3 callers
Method
MergedInputChan
()
flow/step_task.go:69
↓ 3 callers
Method
ReduceByKey
ReduceByKey runs on a dataset with (K, V) pairs, returns a dataset with (K, V) pairs, where values for the same key are aggreated by function f. Funct
flow/dataset_reduce.go:76
↓ 3 callers
Method
SendForRead
(t reflect.Value)
flow/dataset_shard.go:70
↓ 3 callers
Method
SetupReadingChans
()
flow/dataset_shard.go:45
↓ 3 callers
Function
Uint32toBytes
(b []byte, v uint32)
util/bytes.go:34
↓ 3 callers
Method
d
(dss *flow.DatasetShard)
driver/plan/group_plot.go:130
↓ 3 callers
Function
getDirectCommandConnection
(tlsConfig *tls.Config, target string)
driver/scheduler/command_execution.go:181
↓ 3 callers
Function
guessFunctionOutputType
(f interface{})
flow/utils.go:7
↓ 3 callers
Function
isAllocated
(als []resource.Allocation, res resource.ComputeResource)
resource/service_discovery/master/master_allocation_test.go:257
↓ 3 callers
Function
listenAndServeAtRoot
Starts a http server to serve '/' with the input handler. Returns the listener or any error.
util/http_util_test.go:25
↓ 3 callers
Method
rotate
rotate closes the current file, moves it aside with a timestamp in the name, (if it exists), opens a new file with the original filename, and then run
netchan/store/rotating_file_store.go:191
↓ 2 callers
Method
AddAllToOneStep
the task should run on the destination dataset shard
flow/context.go:62
↓ 2 callers
Method
AddOneToOneStep
the tasks should run on the source dataset shard
flow/context.go:40
↓ 2 callers
Function
BytesToUint32
(b []byte)
util/bytes.go:14
↓ 2 callers
Function
BytesToUint64
big endian
util/bytes.go:5
↓ 2 callers
Method
Channel
Channel returns a new Dataset which has the input channel as the input and sends the received values to tasks.
flow/dataset_source.go:78
↓ 2 callers
Method
Closed
()
flow/dataset_shard.go:91
↓ 2 callers
Method
CoGroup
(other *Dataset)
flow/dataset_cogroup.go:56
↓ 2 callers
Method
Destroy
()
netchan/store/data_store.go:12
next →
1–100 of 522, ranked by callers