Documentation
¶
Index ¶
- Variables
- type DBIndex
- type DropPlan
- type Identified
- type IndexEntry
- type JSONIndex
- func (J *JSONIndex) Batch(add []*IndexEntry, rm []*IndexEntry) Promise[int32]
- func (J *JSONIndex) EndMerge(plan MergePlan) Promise[int32]
- func (J *JSONIndex) EndMove(plan MovePlan) Promise[int32]
- func (J *JSONIndex) Get(layer string, _path string) *IndexEntry
- func (J *JSONIndex) GetDropPlanner() TableDropPlanner
- func (J *JSONIndex) GetDropQueue(writerId string, layer string) (DropPlan, error)
- func (J *JSONIndex) GetMergePlan(writerId string, layer string, iteration int) (MergePlan, error)
- func (J *JSONIndex) GetMergePlanner() TableMergePlanner
- func (J *JSONIndex) GetMovePlan(writerId string, layer string) (MovePlan, error)
- func (J *JSONIndex) GetMovePlanner() TableMovePlanner
- func (J *JSONIndex) GetQuerier() TableQuerier
- func (J *JSONIndex) Query(options QueryOptions) ([]*IndexEntry, error)
- func (J *JSONIndex) RmFromDropQueue(plan DropPlan) Promise[int32]
- func (J *JSONIndex) Run()
- func (J *JSONIndex) Stop()
- type Layer
- type MergeConfigurationsConf
- type MergePlan
- type MovePlan
- type Promise
- type QueryOptions
- type RedisIndex
- func (r *RedisIndex) Batch(add []*IndexEntry, rm []*IndexEntry) Promise[int32]
- func (r *RedisIndex) EndMerge(plan MergePlan) Promise[int32]
- func (r *RedisIndex) EndMove(plan MovePlan) Promise[int32]
- func (r *RedisIndex) Get(layer string, path string) *IndexEntry
- func (r *RedisIndex) GetDropPlanner() TableDropPlanner
- func (r *RedisIndex) GetDropQueue(writerId string, layer string) (DropPlan, error)
- func (r *RedisIndex) GetMergePlan(writerId string, layer string, iteration int) (MergePlan, error)
- func (r *RedisIndex) GetMergePlanner() TableMergePlanner
- func (r *RedisIndex) GetMovePlan(writerId string, layer string) (MovePlan, error)
- func (r *RedisIndex) GetMovePlanner() TableMovePlanner
- func (r *RedisIndex) GetQuerier() TableQuerier
- func (r *RedisIndex) Query(options QueryOptions) ([]*IndexEntry, error)
- func (r *RedisIndex) RmFromDropQueue(plan DropPlan) Promise[int32]
- func (r *RedisIndex) Run()
- func (r *RedisIndex) Stop()
- type SinglePromise
- type TableDropPlanner
- type TableIndex
- type TableMergePlanner
- type TableMovePlanner
- type TableQuerier
- type WaitForAllPromise
Constants ¶
This section is empty.
Variables ¶
View Source
var END_MERGE_SCRIPT []byte
View Source
var GET_MERGE_PLAN_SCRIPT []byte
View Source
var MergeConfigurations []MergeConfigurationsConf
View Source
var SCRIPT_PATCH_INDEX []byte
Functions ¶
This section is empty.
Types ¶
type DBIndex ¶
type DBIndex interface { Databases() ([]string, error) Tables(database string) ([]string, error) Paths(database string, table string) ([]string, error) }
func NewJSONDBIndex ¶ added in v0.0.4
func NewRedisDbIndex ¶
type DropPlan ¶ added in v0.0.4
type Identified ¶ added in v0.0.4
type Identified interface {
Id() string
}
type IndexEntry ¶
type IndexEntry struct { Layer string `json:"layer"` Database string `json:"database"` Table string `json:"table"` Path string `json:"path"` SizeBytes int64 `json:"size_bytes"` RowCount int64 `json:"row_count"` ChunkTime int64 `json:"chunk_time"` Min map[string]any `json:"min"` Max map[string]any `json:"max"` MinTime int64 `json:"min_time"` MaxTime int64 `json:"max_time"` WriterID string `json:"writer_id"` }
type JSONIndex ¶
type JSONIndex struct {
// contains filtered or unexported fields
}
func (*JSONIndex) Batch ¶
func (J *JSONIndex) Batch(add []*IndexEntry, rm []*IndexEntry) Promise[int32]
func (*JSONIndex) GetDropPlanner ¶ added in v0.0.4
func (J *JSONIndex) GetDropPlanner() TableDropPlanner
func (*JSONIndex) GetDropQueue ¶
func (*JSONIndex) GetMergePlan ¶
func (*JSONIndex) GetMergePlanner ¶
func (J *JSONIndex) GetMergePlanner() TableMergePlanner
func (*JSONIndex) GetMovePlan ¶ added in v0.0.4
func (*JSONIndex) GetMovePlanner ¶ added in v0.0.4
func (J *JSONIndex) GetMovePlanner() TableMovePlanner
func (*JSONIndex) GetQuerier ¶
func (J *JSONIndex) GetQuerier() TableQuerier
func (*JSONIndex) Query ¶
func (J *JSONIndex) Query(options QueryOptions) ([]*IndexEntry, error)
func (*JSONIndex) RmFromDropQueue ¶
type MergeConfigurationsConf ¶
type MergeConfigurationsConf [3]int64
MergeConfiguration is array of arrays of: [[timeout_sec, max_size, merge_iteration_id], ...] You have to init MergeConfigurations in the very beginning
func (MergeConfigurationsConf) MaxSize ¶ added in v0.0.4
func (m MergeConfigurationsConf) MaxSize() int64
func (MergeConfigurationsConf) MergeIterationId ¶ added in v0.0.4
func (m MergeConfigurationsConf) MergeIterationId() int64
func (MergeConfigurationsConf) TimeoutSec ¶ added in v0.0.4
func (m MergeConfigurationsConf) TimeoutSec() int64
type MergePlan ¶
type MovePlan ¶ added in v0.0.4
type QueryOptions ¶
type RedisIndex ¶
type RedisIndex struct {
// contains filtered or unexported fields
}
func (*RedisIndex) Batch ¶
func (r *RedisIndex) Batch(add []*IndexEntry, rm []*IndexEntry) Promise[int32]
func (*RedisIndex) EndMove ¶ added in v0.0.4
func (r *RedisIndex) EndMove(plan MovePlan) Promise[int32]
func (*RedisIndex) Get ¶
func (r *RedisIndex) Get(layer string, path string) *IndexEntry
func (*RedisIndex) GetDropPlanner ¶ added in v0.0.4
func (r *RedisIndex) GetDropPlanner() TableDropPlanner
func (*RedisIndex) GetDropQueue ¶
func (r *RedisIndex) GetDropQueue(writerId string, layer string) (DropPlan, error)
func (*RedisIndex) GetMergePlan ¶
func (*RedisIndex) GetMergePlanner ¶
func (r *RedisIndex) GetMergePlanner() TableMergePlanner
func (*RedisIndex) GetMovePlan ¶ added in v0.0.4
func (r *RedisIndex) GetMovePlan(writerId string, layer string) (MovePlan, error)
func (*RedisIndex) GetMovePlanner ¶ added in v0.0.4
func (r *RedisIndex) GetMovePlanner() TableMovePlanner
func (*RedisIndex) GetQuerier ¶
func (r *RedisIndex) GetQuerier() TableQuerier
func (*RedisIndex) Query ¶
func (r *RedisIndex) Query(options QueryOptions) ([]*IndexEntry, error)
func (*RedisIndex) RmFromDropQueue ¶
func (r *RedisIndex) RmFromDropQueue(plan DropPlan) Promise[int32]
func (*RedisIndex) Run ¶
func (r *RedisIndex) Run()
func (*RedisIndex) Stop ¶
func (r *RedisIndex) Stop()
type SinglePromise ¶
type SinglePromise[T any] struct { // contains filtered or unexported fields }
func (*SinglePromise[T]) Done ¶
func (p *SinglePromise[T]) Done(res T, err error)
func (*SinglePromise[T]) Get ¶
func (p *SinglePromise[T]) Get() (T, error)
func (*SinglePromise[T]) Peek ¶
func (p *SinglePromise[T]) Peek() (int32, T, error)
type TableDropPlanner ¶ added in v0.0.4
type TableIndex ¶
type TableIndex interface { Batch(add []*IndexEntry, rm []*IndexEntry) Promise[int32] Get(layer string, path string) *IndexEntry Run() Stop() GetMergePlanner() TableMergePlanner GetQuerier() TableQuerier GetMovePlanner() TableMovePlanner GetDropPlanner() TableDropPlanner }
func NewJSONIndex ¶
func NewRedisIndex ¶
type TableMergePlanner ¶ added in v0.0.2
type TableMovePlanner ¶ added in v0.0.4
type TableQuerier ¶ added in v0.0.2
type TableQuerier interface {
Query(options QueryOptions) ([]*IndexEntry, error)
}
type WaitForAllPromise ¶
type WaitForAllPromise[T any] struct { // contains filtered or unexported fields }
func (*WaitForAllPromise[T]) Add ¶
func (p *WaitForAllPromise[T]) Add(promise Promise[T])
func (*WaitForAllPromise[T]) Done ¶
func (p *WaitForAllPromise[T]) Done(res T, err error)
func (*WaitForAllPromise[T]) Get ¶
func (p *WaitForAllPromise[T]) Get() (T, error)
func (*WaitForAllPromise[T]) Peek ¶
func (p *WaitForAllPromise[T]) Peek() (int32, T, error)
Source Files
¶
- json_db_index.go
- json_drop_planner.go
- json_index.go
- json_merge_planner.go
- json_move_planner.go
- json_part_drop_planner.go
- json_part_index.go
- json_part_merge_planner.go
- json_part_move_planner.go
- promise.go
- redis_db_index.go
- redis_drop_planner.go
- redis_index.go
- redis_merge_planner.go
- redis_move_planner.go
- redis_scripts.go
- redis_task_queue.go
- types.go
Click to show internal directories.
Click to hide internal directories.