Documentation
¶
Index ¶
- type Attribute
- type AttributeDef
- type CommentDef
- type ComputeIndexDef
- type Database
- type Engine
- type GetClusterDetailsFunc
- type Hints
- type IndexT
- type IndexTableDef
- type Node
- type Nodes
- type PartitionDef
- type PrimaryIndexDef
- type PropertiesDef
- type Property
- type Reader
- type Relation
- type Statistics
- type TableDef
- type ViewDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct { // IsHide whether the attribute is hidden or not IsHidden bool // IsRowId whether the attribute is rowid or not IsRowId bool // Name name of attribute Name string // Alg compression algorithm Alg compress.T // Type attribute's type Type types.Type // DefaultExpr default value of this attribute Default *plan.Default // to update col when define in create table OnUpdate *plan.OnUpdate // Primary is primary key or not Primary bool // Comment of attribute Comment string // AutoIncrement is auto incr or not AutoIncrement bool }
Attribute is a column
type AttributeDef ¶
type AttributeDef struct {
Attr Attribute
}
func (*AttributeDef) Format ¶
func (node *AttributeDef) Format(buf *bytes.Buffer)
type CommentDef ¶
type CommentDef struct {
Comment string
}
type ComputeIndexDef ¶ added in v0.6.0
type Database ¶
type Database interface { Relations(context.Context) ([]string, error) Relation(context.Context, string) (Relation, error) Delete(context.Context, string) error Create(context.Context, string, []TableDef) error // Create Table - (name, table define) Truncate(context.Context, string) error GetDatabaseId(context.Context) string }
type Engine ¶
type Engine interface { // transaction interface New(ctx context.Context, op client.TxnOperator) error Commit(ctx context.Context, op client.TxnOperator) error Rollback(ctx context.Context, op client.TxnOperator) error // Delete deletes a database Delete(ctx context.Context, databaseName string, op client.TxnOperator) error // Create creates a database Create(ctx context.Context, databaseName string, op client.TxnOperator) error // Databases returns all database names Databases(ctx context.Context, op client.TxnOperator) (databaseNames []string, err error) // Database creates a handle for a database Database(ctx context.Context, databaseName string, op client.TxnOperator) (Database, error) // Nodes returns all nodes for worker jobs Nodes() (cnNodes Nodes, err error) // Hints returns hints of engine features // return value should not be cached // since implementations may update hints after engine had initialized Hints() Hints NewBlockReader(ctx context.Context, num int, ts timestamp.Timestamp, expr *plan.Expr, ranges [][]byte, tblDef *plan.TableDef) ([]Reader, error) }
type GetClusterDetailsFunc ¶ added in v0.6.0
type GetClusterDetailsFunc = func() (logservicepb.ClusterDetails, error)
type IndexTableDef ¶
func (*IndexTableDef) Format ¶
func (node *IndexTableDef) Format(buf *bytes.Buffer)
type PartitionDef ¶ added in v0.6.0
type PartitionDef struct {
Partition string
}
type PrimaryIndexDef ¶
type PrimaryIndexDef struct {
Names []string
}
func (*PrimaryIndexDef) Format ¶
func (node *PrimaryIndexDef) Format(buf *bytes.Buffer)
type PropertiesDef ¶
type PropertiesDef struct {
Properties []Property
}
type Relation ¶
type Relation interface { Statistics Ranges(context.Context, *plan.Expr) ([][]byte, error) TableDefs(context.Context) ([]TableDef, error) GetPrimaryKeys(context.Context) ([]*Attribute, error) GetHideKeys(context.Context) ([]*Attribute, error) Write(context.Context, *batch.Batch) error Update(context.Context, *batch.Batch) error // Delete(context.Context, *vector.Vector, string) error Delete(context.Context, *batch.Batch, string) error AddTableDef(context.Context, TableDef) error DelTableDef(context.Context, TableDef) error GetTableID(context.Context) string // second argument is the number of reader, third argument is the filter extend, foruth parameter is the payload required by the engine NewReader(context.Context, int, *plan.Expr, [][]byte) ([]Reader, error) TableColumns(ctx context.Context) ([]*Attribute, error) }
type Statistics ¶
Directories
¶
Path | Synopsis |
---|---|
tae
|
|
common
A few allocators for TAE
|
A few allocators for TAE |
mergesort/bools
Package heap provides heap operations for any type that implements heap.Interface.
|
Package heap provides heap operations for any type that implements heap.Interface. |
mergesort/decimal128s
Package heap provides heap operations for any type that implements heap.Interface.
|
Package heap provides heap operations for any type that implements heap.Interface. |
mergesort/decimal64s
Package heap provides heap operations for any type that implements heap.Interface.
|
Package heap provides heap operations for any type that implements heap.Interface. |
mergesort/numerics
Package heap provides heap operations for any type that implements heap.Interface.
|
Package heap provides heap operations for any type that implements heap.Interface. |
mergesort/rowid
Package heap provides heap operations for any type that implements heap.Interface.
|
Package heap provides heap operations for any type that implements heap.Interface. |
mergesort/txnts
Package heap provides heap operations for any type that implements heap.Interface.
|
Package heap provides heap operations for any type that implements heap.Interface. |
mergesort/uuids
Package heap provides heap operations for any type that implements heap.Interface.
|
Package heap provides heap operations for any type that implements heap.Interface. |
mergesort/varchar
Package heap provides heap operations for any type that implements heap.Interface.
|
Package heap provides heap operations for any type that implements heap.Interface. |
Click to show internal directories.
Click to hide internal directories.