Documentation ¶
Index ¶
- Variables
- type Attribute
- type AttributeDef
- type CommentDef
- type Database
- type DefaultExpr
- type Engine
- type Filter
- type IndexT
- type IndexTableDef
- type ListPartition
- type Node
- type NodeInfo
- type Nodes
- type PartitionByDef
- type PrimaryIndexDef
- type PropertiesDef
- type Property
- type RangePartition
- type Reader
- type Relation
- 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 ListPartition ¶
type ListPartition struct { Name string Extends []extend.Extend Subpartition *PartitionByDef }
type Node ¶
type PartitionByDef ¶
type PartitionByDef struct { Fields []string List []ListPartition Range []RangePartition }
type PrimaryIndexDef ¶
func (*PrimaryIndexDef) Format ¶
func (node *PrimaryIndexDef) Format(buf *bytes.Buffer)
type PropertiesDef ¶
type RangePartition ¶
type Relation ¶
type Relation interface { Statistics Close() ID() string Nodes() Nodes TableDefs() []TableDef // true: primary key, false: hide key GetPriKeyOrHideKey() ([]Attribute, bool) Write(uint64, *batch.Batch) error AddTableDef(uint64, TableDef) error DelTableDef(uint64, TableDef) 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, extend.Extend, []byte) []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 |
---|---|
mergesort/dates
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/datetimes
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/float32s
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/float64s
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/int16s
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/int32s
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/int64s
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/int8s
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/uint16s
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/uint32s
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/uint64s
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/uint8s
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. |
index
|
|
tuplecodec/test
Package mock_tuplecodec is a generated GoMock package.
|
Package mock_tuplecodec is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.