Versions in this module Expand all Collapse all v1 v1.7.9 Oct 27, 2019 Changes in this version + const B1 + const BZ1 + const TSM1 + var ErrFieldNotFound = errors.New("field not found") + var ErrFieldUnmappedID = errors.New("field ID not mapped") + func DecodeKeyValue(field string, dec *FieldCodec, k, v []byte) (int64, interface{}) + func MeasurementFromSeriesKey(key string) string + type Database struct + func NewDatabase(path string) *Database + func (d *Database) Name() string + func (d *Database) Path() string + func (d *Database) Shards() ([]*ShardInfo, error) + type EngineFormat int + func (e EngineFormat) String() string + type Field struct + ID uint8 + Name string + Type influxql.DataType + type FieldCodec struct + func NewFieldCodec(fields map[string]*Field) *FieldCodec + func (f *FieldCodec) DecodeByID(targetID uint8, b []byte) (interface{}, error) + func (f *FieldCodec) DecodeByName(name string, b []byte) (interface{}, error) + func (f *FieldCodec) FieldByName(name string) *Field + func (f *FieldCodec) FieldIDByName(s string) (uint8, error) + type MeasurementFields struct + Codec *FieldCodec + Fields map[string]*Field + func (m *MeasurementFields) UnmarshalBinary(buf []byte) error + type Series struct + Key string + Tags map[string]string + type ShardInfo struct + Database string + Format EngineFormat + Path string + RetentionPolicy string + Size int64 + func (s *ShardInfo) FormatAsString() string + func (s *ShardInfo) FullPath(dataPath string) string + type ShardInfos []*ShardInfo + func (s ShardInfos) Databases() []string + func (s ShardInfos) ExclusiveDatabases(exc []string) ShardInfos + func (s ShardInfos) FilterFormat(fmt EngineFormat) ShardInfos + func (s ShardInfos) Len() int + func (s ShardInfos) Less(i, j int) bool + func (s ShardInfos) Size() int64 + func (s ShardInfos) Swap(i, j int)