Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
type Chunk interface { Bytes() []byte Clear() Encoding() Encoding Appender() (Appender, error) Iterator() Iterator }
Chunk holds a sequence of sample pairs that can be iterated over and appended to.
type Encoding ¶
type Encoding uint8
Encoding is the identifier for chunk encoding.
Available chunk encodings
type Iterator ¶
type Iterator interface { At() (int64, float64) AtString() (int64, string) Err() error Next() bool }
Iterator is a simple iterator that can only get the next value.
func NewNopIterator ¶
func NewNopIterator() Iterator
NewNopIterator returns a new chunk iterator that doesn't hold any data.
type VarChunk ¶ added in v0.8.4
type VarChunk struct {
// contains filtered or unexported fields
}
type XORChunk ¶
type XORChunk struct {
// contains filtered or unexported fields
}
XORChunk holds XOR encoded sample data.
func (*XORChunk) Appender ¶
Appender implements the Chunk interface. new implementation, doesnt read the existing buffer, assume its new
Click to show internal directories.
Click to hide internal directories.