Documentation ¶
Index ¶
Constants ¶
View Source
const (
TopNTagFamily = "__topN__"
)
Variables ¶
View Source
var ( ErrEmptyRootPath = errors.New("root path is empty") ErrMeasureNotExist = errors.New("measure doesn't exist") )
View Source
var ErrMalformedElement = errors.New("element is malformed")
View Source
var ErrTagFamilyNotExist = errors.New("tag family doesn't exist")
View Source
var ( TopNValueFieldSpec = &databasev1.FieldSpec{ Name: "value", FieldType: databasev1.FieldType_FIELD_TYPE_INT, EncodingMethod: databasev1.EncodingMethod_ENCODING_METHOD_GORILLA, CompressionMethod: databasev1.CompressionMethod_COMPRESSION_METHOD_ZSTD, } )
Functions ¶
Types ¶
type Measure ¶
type Measure interface { io.Closer Write(value *measurev1.DataPointValue) error Shards(entity tsdb.Entity) ([]tsdb.Shard, error) CompanionShards(metadata *commonv1.Metadata) ([]tsdb.Shard, error) Shard(id common.ShardID) (tsdb.Shard, error) ParseTagFamily(family string, item tsdb.Item) (*modelv1.TagFamily, error) ParseField(name string, item tsdb.Item) (*measurev1.DataPoint_Field, error) GetSchema() *databasev1.Measure GetIndexRules() []*databasev1.IndexRule GetInterval() time.Duration }
Click to show internal directories.
Click to hide internal directories.