package
1.3.5
Repository: https://github.com/silenceshell/influxdb.git
Documentation: pkg.go.dev

# Functions

BlockCount returns the number of timestamps encoded in block.
BlockType returns the type of value encoded in a block or an error if the block type is unknown.
No description provided by the author
DecodeBlock takes a byte slice and decodes it into values of the appropriate type based on the block.
DecodeBooleanBlock decodes the boolean block from the byte slice and appends the boolean values to a.
DecodeFloatBlock decodes the float block from the byte slice and appends the float values to a.
DecodeIntegerBlock decodes the integer block from the byte slice and appends the integer values to a.
DecodeStringBlock decodes the string block from the byte slice and appends the string values to a.
ErrCacheMemorySizeLimitExceeded returns an error indicating an operation could not be completed due to exceeding the cache-max-memory-size setting.
NewBitReader returns a new instance of BitReader that reads from data.
NewBooleanEncoder returns a new instance of BooleanEncoder.
NewBooleanValue returns a new boolean value.
NewCache returns an instance of a cache which will use a maximum of maxSize bytes of memory.
NewCacheKeyIterator returns a new KeyIterator from a Cache.
NewCacheLoader returns a new instance of a CacheLoader.
No description provided by the author
NewEngine returns a new instance of Engine.
NewFileStore returns a new instance of FileStore based on the given directory.
NewFloatEncoder returns a new FloatEncoder.
NewFloatValue returns a new float value.
NewIndexWriter returns a new IndexWriter.
NewIndirectIndex returns a new indirect index.
NewIntegerEncoder returns a new integer encoder with an initial buffer of values sized at sz.
NewIntegerValue returns a new integer value.
NewMultiFieldCursor returns an instance of Cursor that joins the results of cursors.
NewStringEncoder returns a new StringEncoder with an initial buffer ready to hold sz bytes.
NewStringValue returns a new string value.
NewTimeEncoder returns a TimeEncoder with an initial buffer ready to hold sz bytes.
NewTSMKeyIterator returns a new TSM key iterator from readers.
NewTSMReader returns a new TSMReader from the given file.
NewTSMWriter returns a new TSMWriter writing to w.
NewValue returns a new Value with the underlying type dependent on value.
NewWAL initializes a new WAL at the given directory.
NewWALSegmentReader returns a new WALSegmentReader reading from r.
NewWALSegmentWriter returns a new WALSegmentWriter writing to w.
ParseTSMFileName parses the generation and sequence from a TSM file name.
SeriesAndFieldFromCompositeKey returns the series key and the field key extracted from the composite key.
SeriesFieldKey combine a series key and field name for a unique string to be hashed to a numeric ID.
ZigZagDecode converts a previously zigzag encoded uint64 back to a int64.
ZigZagEncode converts a int64 to a uint64 by zig zagging negative and positive values across even and odd numbers.

# Constants

BlockBoolean designates a block encodes boolean values.
BlockFloat64 designates a block encodes float64 values.
BlockInteger designates a block encodes int64 values.
BlockString designates a block encodes string values.
CompactionTempExtension is the extension used for temporary files created during compaction.
DefaultSegmentSize of 10MB is the size at which segment files will be rolled over.
DeleteRangeWALEntryType indicates a delete range entry.
DeleteWALEntryType indicates a delete entry.
MagicNumber is written as the first 4 bytes of a data file to identify the file as a tsm1 formatted file.
TSMFileExtension is the extension used for TSM files.
Version indicates the version of the TSM file format.
WALFileExtension is the file extension we expect for wal segments.
WALFilePrefix is the prefix on all wal segment files.
WriteWALEntryType indicates a write entry.

# Variables

ErrFileInUse is returned when attempting to remove or close a TSM file that is still being used.
ErrMaxBlocksExceeded is returned when attempting to write a block past the allowed number.
ErrMaxKeyLengthExceeded is returned when attempting to write a key that is too long.
ErrNoValues is returned when TSMWriter.WriteIndex is called and there are no values to write.
ErrSnapshotInProgress is returned if a snapshot is attempted while one is already running.
ErrTSMClosed is returned when performing an operation against a closed TSM file.
ErrWALClosed is returned when attempting to write to a closed WAL file.
ErrWALCorrupt is returned when reading a corrupt WAL entry.

# Structs

BitReader reads bits from an io.Reader.
BlockIterator allows iterating over each block in a TSM file in order.
BooleanDecoder decodes a series of booleans from an in-memory buffer.
BooleanEncoder encodes a series of booleans to an in-memory buffer.
BooleanValue represents a boolean value.
Cache maintains an in-memory store of Values for a set of keys.
CacheLoader processes a set of WAL segment files, and loads a cache with the data contained within those files.
CacheStatistics hold statistics related to the cache.
Compactor merges multiple TSM files into new files or writes a Cache into 1 or more TSM files.
DefaultPlanner implements CompactionPlanner using a strategy to roll up multiple generations of TSM files into larger files in stages.
DeleteRangeWALEntry represents the deletion of multiple series.
DeleteWALEntry represents the deletion of multiple series.
EmptyValue is used when there is no appropriate other value.
Engine represents a storage engine with compressed blocks.
EngineStatistics maintains statistics for the engine.
FileStat holds information about a TSM file on disk.
FileStore is an abstraction around multiple TSM files.
FileStoreStatistics keeps statistics about the file store.
FloatDecoder decodes a byte slice into multiple float64 values.
FloatEncoder encodes multiple float64s into a byte slice.
FloatValue represents a float64 value.
IndexEntry is the index information for a given block in a TSM file.
IntegerDecoder decodes a byte slice into int64s.
IntegerEncoder encodes int64s into byte slices.
FloatValue represents an int64 value.
KeyCursor allows iteration through keys in a set of files within a FileStore.
StringDecoder decodes a byte slice into strings.
StringEncoder encodes multiple strings into a byte slice.
StringValue represents a string value.
TimeDecoder decodes a byte slice into timestamps.
TimeRange holds a min and max timestamp.
Tombstone represents an individual deletion.
Tombstoner records tombstones when entries are deleted.
TSMReader is a reader for a TSM file.
WAL represents the write-ahead log used for writing TSM files.
WALSegmentReader reads WAL segments.
WALSegmentWriter writes WAL segments.
WALStatistics maintains statistics about the WAL.
WriteWALEntry represents a write of points.

# Interfaces

CompactionPlanner determines what TSM files and WAL segments to include in a given compaction run.
IndexWriter writes a TSMIndex.
KeyIterator allows iteration over set of keys and values in sorted order.
TimeEncoder encodes time.Time to byte slices.
TSMFile represents an on-disk TSM file.
TSMIndex represent the index section of a TSM file.
TSMWriter writes TSM formatted key and values.
Value represents a TSM-encoded value.
WALEntry is record stored in each WAL segment.

# Type aliases

BooleanValues represents a slice of Boolean values.
CompactionGroup represents a list of files eligible to be compacted together.
FloatValues represents a slice of Float values.
IntegerValues represents a slice of Integer values.
StringValues represents a slice of String values.
Values represents a slice of values.
WalEntryType is a byte written to a wal segment file that indicates what the following compressed block contains.