Documentation
¶
Index ¶
- Variables
- type Attribute
- type AttributeDef
- type CommentDef
- type Database
- type DefaultExpr
- type Engine
- type Filter
- type IndexT
- type IndexTableDef
- type Node
- type NodeInfo
- type Nodes
- type PrimaryIndexDef
- type PropertiesDef
- type Property
- type Reader
- type Relation
- type Snapshot
- type SparseFilter
- type Statistics
- type Summarizer
- type TableDef
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyDefaultExpr = DefaultExpr{Exist: false}
EmptyDefaultExpr means there is no definition for default expr
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct {
Name string // name of attribute
Alg compress.T // compression algorithm
Type types.Type // type of attribute
Default DefaultExpr // default value of this attribute.
Primary bool // if true, it is primary key
}
func (Attribute) GetDefaultExpr ¶
func (Attribute) HasDefaultExpr ¶
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 DefaultExpr ¶
type DefaultExpr struct {
Exist bool
Value interface{} // int64, float32, float64, string, types.Date, types.Datetime
IsNull bool
}
func MakeDefaultExpr ¶
func MakeDefaultExpr(exist bool, value interface{}, isNull bool) DefaultExpr
MakeDefaultExpr returns a new DefaultExpr
type Filter ¶
type Filter interface {
Eq(string, interface{}) (*roaring.Bitmap, error)
Ne(string, interface{}) (*roaring.Bitmap, error)
Lt(string, interface{}) (*roaring.Bitmap, error)
Le(string, interface{}) (*roaring.Bitmap, error)
Gt(string, interface{}) (*roaring.Bitmap, error)
Ge(string, interface{}) (*roaring.Bitmap, error)
Btw(string, interface{}, interface{}) (*roaring.Bitmap, error)
}
type IndexTableDef ¶
func (*IndexTableDef) Format ¶
func (node *IndexTableDef) Format(buf *bytes.Buffer)
type PrimaryIndexDef ¶
func (*PrimaryIndexDef) Format ¶
func (node *PrimaryIndexDef) Format(buf *bytes.Buffer)
type PropertiesDef ¶
type Relation ¶
type Relation interface {
Statistics
Close(Snapshot)
ID(Snapshot) string
Nodes(Snapshot) Nodes
TableDefs(Snapshot) []TableDef
GetPrimaryKeys(Snapshot) []*Attribute
GetHideKey(Snapshot) *Attribute
// true: primary key, false: hide key
GetPriKeyOrHideKey(Snapshot) ([]Attribute, bool)
Write(uint64, *batch.Batch, Snapshot) error
Update(uint64, *batch.Batch, Snapshot) error
Delete(uint64, *vector.Vector, string, Snapshot) error
Truncate(Snapshot) (uint64, error)
AddTableDef(uint64, TableDef, Snapshot) error
DelTableDef(uint64, TableDef, Snapshot) error
// first argument is the number of reader, second argument is the filter extend, third parameter is the payload required by the engine
NewReader(int, *plan.Expr, []byte, Snapshot) []Reader
}
type SparseFilter ¶
type SparseFilter interface {
Eq(string, interface{}) (Reader, error)
Ne(string, interface{}) (Reader, error)
Lt(string, interface{}) (Reader, error)
Le(string, interface{}) (Reader, error)
Gt(string, interface{}) (Reader, error)
Ge(string, interface{}) (Reader, error)
Btw(string, interface{}, interface{}) (Reader, error)
}
type Statistics ¶
type Summarizer ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
tae
|
|
|
logstore/samples/replay
command
|
|
|
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/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/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. |
|
samples/sample1
command
|
|
|
samples/sample2
command
|
|
|
samples/sample3
command
|
|
Click to show internal directories.
Click to hide internal directories.