common

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AggType

type AggType int
const (
	Count AggType = iota
	Sum
	Max
	Min
	Avg
	Hll
)

type BlockingPlanNode

type BlockingPlanNode interface {
	Execute(ctx context.Context) (queryCom.AQLQueryResult, error)
	Children() []BlockingPlanNode
	Add(...BlockingPlanNode)
}

BlockingPlanNode defines query plan nodes that waits for children to finish

type MergeNode

type MergeNode interface {
	BlockingPlanNode
	AggType() AggType
}

type QueryExecutor

type QueryExecutor interface {
	// Execute executes query and flush result to connection
	Execute(ctx context.Context, requestID string, aql *queryCom.AQLQuery, returnHLLBinary bool, w http.ResponseWriter) (err error)
}

QueryExecutor defines query executor

type QueryPlan

type QueryPlan interface {
	Execute(ctx context.Context, w http.ResponseWriter) (err error)
}

type SchemaManager

type SchemaManager interface {
	// Run initializes all schema and starts jobs to sync from controller
	Run()
	// GetTable gets schema by namespace and table name
	GetTableSchemaReader(namespace string) (memCom.TableSchemaReader, error)
}

SchemaManager keeps table schema from all namespaces in current ENV up to date

Directories

Path Synopsis
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL