Documentation ¶
Index ¶
- func CalHashKey(es []*plan.ExpressionNode, rg *row.RowsGroup) (string, error)
- func RunExecutor(masterAddress string, address, name string)
- func ShuffleHash(s string) int
- type Channel
- type Executor
- func (self *Executor) AddLogInfo(info interface{}, level pb.LogLevel)
- func (self *Executor) CalAggregateFuncGlobal(enode *eplan.EPlanAggregateFuncGlobalNode, rg *row.RowsGroup, ...) error
- func (self *Executor) CalAggregateFuncLocal(enode *eplan.EPlanAggregateFuncLocalNode, rg *row.RowsGroup, ...) error
- func (self *Executor) CalSelectItems(enode *eplan.EPlanSelectNode, rg *row.RowsGroup) (*row.RowsGroup, error)
- func (self *Executor) CalSortKey(enode *eplan.EPlanOrderByLocalNode, rg *row.RowsGroup) ([]interface{}, error)
- func (self *Executor) Clear()
- func (self *Executor) DoHeartbeat() error
- func (self *Executor) Duplicate(ctx context.Context, em *pb.Empty) (*pb.Empty, error)
- func (self *Executor) GetOrder(enode *eplan.EPlanOrderByNode) []gtype.OrderType
- func (self *Executor) GetOrderLocal(enode *eplan.EPlanOrderByLocalNode) []gtype.OrderType
- func (self *Executor) GetOutputChannelLocation(ctx context.Context, location *pb.Location) (*pb.Location, error)
- func (self *Executor) Heartbeat()
- func (self *Executor) Quit(ctx context.Context, em *pb.Empty) (*pb.Empty, error)
- func (self *Executor) Restart(ctx context.Context, em *pb.Empty) (*pb.Empty, error)
- func (self *Executor) Run(ctx context.Context, empty *pb.Empty) (*pb.Empty, error)
- func (self *Executor) RunAggregate() (err error)
- func (self *Executor) RunAggregateFuncGlobal() (err error)
- func (self *Executor) RunAggregateFuncLocal() (err error)
- func (self *Executor) RunBalance() (err error)
- func (self *Executor) RunDistinctGlobal() (err error)
- func (self *Executor) RunDistinctLocal() (err error)
- func (self *Executor) RunDuplicate() (err error)
- func (self *Executor) RunFilter() (err error)
- func (self *Executor) RunGroupBy() (err error)
- func (self *Executor) RunHashJoin() (err error)
- func (self *Executor) RunJoin() (err error)
- func (self *Executor) RunLimit() (err error)
- func (self *Executor) RunOrderBy() (err error)
- func (self *Executor) RunOrderByLocal() (err error)
- func (self *Executor) RunScan() (err error)
- func (self *Executor) RunSelect() (err error)
- func (self *Executor) RunShow() (err error)
- func (self *Executor) RunShuffle() (err error)
- func (self *Executor) RunUnion() (err error)
- func (self *Executor) SendInstruction(ctx context.Context, instruction *pb.Instruction) (*pb.Empty, error)
- func (self *Executor) SendOneHeartbeat(stream pb.GueryAgent_SendHeartbeatClient) error
- func (self *Executor) SetInstructionAggregate(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionAggregateFuncGlobal(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionAggregateFuncLocal(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionBalance(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionDistinctGlobal(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionDistinctLocal(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionDuplicate(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionFilter(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionGroupBy(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionHashJoin(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionJoin(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionLimit(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionOrderBy(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionOrderByLocal(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionScan(instruction *pb.Instruction) error
- func (self *Executor) SetInstructionSelect(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionShow(instruction *pb.Instruction) error
- func (self *Executor) SetInstructionShuffle(instruction *pb.Instruction) (err error)
- func (self *Executor) SetInstructionUnion(instruction *pb.Instruction) (err error)
- func (self *Executor) SetRuntime(instruction *pb.Instruction) (err error)
- func (self *Executor) SetupReaders(ctx context.Context, empty *pb.Empty) (*pb.Empty, error)
- func (self *Executor) SetupWriters(ctx context.Context, empty *pb.Empty) (*pb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalHashKey ¶
func RunExecutor ¶
/////////////////////////////
func ShuffleHash ¶
Types ¶
type Channel ¶
func NewChannel ¶
func NewChannel() *Channel
type Executor ¶
type Executor struct { sync.Mutex AgentAddress string Address string Name string Instruction *pb.Instruction EPlanNode eplan.ENode InputLocations, OutputLocations []*pb.Location InputChannelLocations, OutputChannelLocations []*pb.Location Readers []io.Reader Writers []io.Writer Status pb.TaskStatus IsStatusChanged bool Infos []*pb.LogInfo DoneChan chan int }
func NewExecutor ¶
func (*Executor) AddLogInfo ¶
func (*Executor) CalAggregateFuncGlobal ¶
func (*Executor) CalAggregateFuncLocal ¶
func (*Executor) CalSelectItems ¶
func (*Executor) CalSortKey ¶
func (*Executor) DoHeartbeat ¶
func (*Executor) GetOrder ¶
func (self *Executor) GetOrder(enode *eplan.EPlanOrderByNode) []gtype.OrderType
func (*Executor) GetOrderLocal ¶
func (self *Executor) GetOrderLocal(enode *eplan.EPlanOrderByLocalNode) []gtype.OrderType
func (*Executor) GetOutputChannelLocation ¶
func (*Executor) RunAggregate ¶
func (*Executor) RunAggregateFuncGlobal ¶
func (*Executor) RunAggregateFuncLocal ¶
func (*Executor) RunBalance ¶
func (*Executor) RunDistinctGlobal ¶
func (*Executor) RunDistinctLocal ¶
func (*Executor) RunDuplicate ¶
func (*Executor) RunGroupBy ¶
func (*Executor) RunHashJoin ¶
func (*Executor) RunOrderBy ¶
func (*Executor) RunOrderByLocal ¶
func (*Executor) RunShuffle ¶
func (*Executor) SendInstruction ¶
func (*Executor) SendOneHeartbeat ¶
func (self *Executor) SendOneHeartbeat(stream pb.GueryAgent_SendHeartbeatClient) error
func (*Executor) SetInstructionAggregate ¶
func (self *Executor) SetInstructionAggregate(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionAggregateFuncGlobal ¶
func (self *Executor) SetInstructionAggregateFuncGlobal(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionAggregateFuncLocal ¶
func (self *Executor) SetInstructionAggregateFuncLocal(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionBalance ¶
func (self *Executor) SetInstructionBalance(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionDistinctGlobal ¶
func (self *Executor) SetInstructionDistinctGlobal(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionDistinctLocal ¶
func (self *Executor) SetInstructionDistinctLocal(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionDuplicate ¶
func (self *Executor) SetInstructionDuplicate(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionFilter ¶
func (self *Executor) SetInstructionFilter(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionGroupBy ¶
func (self *Executor) SetInstructionGroupBy(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionHashJoin ¶
func (self *Executor) SetInstructionHashJoin(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionJoin ¶
func (self *Executor) SetInstructionJoin(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionLimit ¶
func (self *Executor) SetInstructionLimit(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionOrderBy ¶
func (self *Executor) SetInstructionOrderBy(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionOrderByLocal ¶
func (self *Executor) SetInstructionOrderByLocal(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionScan ¶
func (self *Executor) SetInstructionScan(instruction *pb.Instruction) error
func (*Executor) SetInstructionSelect ¶
func (self *Executor) SetInstructionSelect(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionShow ¶
func (self *Executor) SetInstructionShow(instruction *pb.Instruction) error
func (*Executor) SetInstructionShuffle ¶
func (self *Executor) SetInstructionShuffle(instruction *pb.Instruction) (err error)
func (*Executor) SetInstructionUnion ¶
func (self *Executor) SetInstructionUnion(instruction *pb.Instruction) (err error)
func (*Executor) SetRuntime ¶
func (self *Executor) SetRuntime(instruction *pb.Instruction) (err error)
func (*Executor) SetupReaders ¶
Source Files ¶
- aggregate.go
- aggregate_func_global.go
- aggregate_func_local.go
- balance.go
- channel.go
- distinct_global.go
- distinct_local.go
- duplicate.go
- executor.go
- filiter.go
- group_by.go
- hash_join.go
- heartbeat.go
- join.go
- limit.go
- order_by.go
- order_by_local.go
- runtime.go
- scan.go
- select.go
- setup_channels.go
- show.go
- shuffle.go
- union.go
Click to show internal directories.
Click to hide internal directories.