Documentation ¶
Index ¶
- Constants
- func UnmarshalBinary(data []byte) (Metas, ID, error)
- type AggType
- type Field
- type Fields
- type ID
- type Meta
- type Metas
- func (fms Metas) Clone() (x2 Metas)
- func (fms Metas) Find(fieldName Name) (Meta, bool)
- func (fms Metas) GetFromID(fieldID ID) (Meta, bool)
- func (fms Metas) GetFromName(fieldName Name) (Meta, bool)
- func (fms Metas) Insert(m Meta) Metas
- func (fms Metas) Intersects(fields Metas) (x2 Metas, isSubSet bool)
- func (fms Metas) Len() int
- func (fms Metas) Less(i, j int) bool
- func (fms Metas) String() string
- func (fms Metas) Swap(i, j int)
- type Name
- type Type
- func (t Type) AggType() AggType
- func (t Type) DownSamplingFunc() function.FuncType
- func (t Type) GetDefaultFuncFieldParams() []AggType
- func (t Type) GetFuncFieldParams(funcType function.FuncType) []AggType
- func (t Type) GetOrderByFunc() function.FuncType
- func (t Type) IsFuncSupported(funcType function.FuncType) bool
- func (t Type) String() string
Constants ¶
const EmptyFieldID = ID(0)
EmptyFieldID represents empty value for field id.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Meta ¶
type Meta struct { ID ID `json:"id"` // query not use id, don't get id in query phase Type Type `json:"type"` // query not use type Name Name `json:"name"` }
Meta is the meta-data for field, which contains field-name, fieldID and field-type
func (*Meta) MarshalBinary ¶
type Metas ¶
type Metas []Meta
Metas implements sort.Interface, it's sorted by name
func (Metas) GetFromName ¶
GetFromName searches the meta by fieldName, return false when not exist
func (Metas) Intersects ¶
Intersects checks whether each fieldID is in the list, and returns the new meta-list corresponding with the fieldID-list.
type Type ¶
type Type uint8
Type represents field type for LinDB support
const ( Unknown Type = iota SumField MinField MaxField LastField HistogramField // alias for sumField, only visible for tsdb FirstField )
Defines all field types for LinDB support(user write)
func (Type) DownSamplingFunc ¶
func (Type) GetDefaultFuncFieldParams ¶
GetDefaultFuncFieldParams returns default agg type for field aggregator.
func (Type) GetFuncFieldParams ¶
GetFuncFieldParams returns agg type for field aggregator by given function type.
func (Type) GetOrderByFunc ¶
GetOrderByFunc returns the order by function.