# Functions
FormatIndexFileName generates an index filename for the given index.
FormatLogFileName generates a log filename for the given index.
IsIndexDir returns true if directory contains at least one partition directory.
IsPartitionDir returns true if directory contains a MANIFEST file.
MergeMeasurementIterators returns an iterator that merges a set of iterators.
MergeTagKeyIterators returns an iterator that merges a set of iterators.
MergeTagValueIterators returns an iterator that merges a set of iterators.
NewFileSet returns a new instance of FileSet.
NewIndex returns a new instance of Index.
NewIndexFile returns a new instance of IndexFile.
NewLogFile returns a new instance of LogFile.
NewManifest returns a new instance of Manifest with default compaction levels.
NewMeasurementBlockWriter returns a new MeasurementBlockWriter.
NewPartition returns a new instance of Partition.
NewSQLIndexExporter returns a new instance of SQLIndexExporter.
NewTagBlockEncoder returns a new TagBlockEncoder.
NewTagValueSeriesIDCache returns a TagValueSeriesIDCache with capacity c.
NewTSDBMeasurementIteratorAdapter return an iterator which implements tsdb.MeasurementIterator.
NewTSDBTagKeyIteratorAdapter return an iterator which implements tsdb.TagKeyIterator.
NewTSDBTagValueIteratorAdapter return an iterator which implements tsdb.TagValueIterator.
ParseFilename extracts the numeric id from a log or index file path.
ReadIndexFileTrailer returns the index file trailer from data.
ReadManifestFile reads a manifest from a file path and returns the Manifest, the size of the manifest on disk, and any error if appropriate.
ReadMeasurementBlockTrailer returns the block trailer from data.
ReadTagBlockTrailer returns the tag block trailer from data.
# Constants
File extensions.
FileSignature represents a magic number at the header of the index file.
File extensions.
IndexFileTrailerSize is the size of the trailer.
IndexFileVersion is the current TSI1 index file version.
IndexFile trailer fields.
IndexName is the name of the index.
LoadFactor is the fill percent for RHH indexes.
Log entry flag constants.
Log entry flag constants.
Log entry flag constants.
Log entry flag constants.
File extensions.
ManifestFileName is the name of the index manifest file.
MaxIndexFileSize is the maximum expected size of an index file.
MaxIndexMergeCount is the maximum number of files that can be merged together at once.
MeasurementBlockVersion is the version of the measurement block.
1 byte offset for the block to ensure non-zero offsets.
Measurement key block fields.
Measurement field size constants.
Measurement flag constants.
Measurement flag constants.
tombstone measurement sketch offset/size.
Measurement field size constants.
version.
TagBlockVersion is the version of the tag block.
TagBlock key block fields.
TagBlock variable size constants.
Tag key flag constants.
TagBlock value block fields.
TagBlock variable size constants.
Tag value flag constants.
Tag value flag constants.
Version is the current version of the TSI index.
# Variables
DefaultCompactionLevels is the default settings used by the index.
DefaultPartitionN determines how many shards the index will be partitioned into.
DisableCompactions disables compactions on the Index.
DisableFsync disables flushing and syncing of underlying files.
ErrCompactionInterrupted is returned if compactions are disabled or an index is closed while a compaction is occurring.
ErrIncompatibleVersion is returned when attempting to read from an incompatible tsi1 manifest file.
IndexFile errors.
Log errors.
Measurement errors.
TagBlock errors.
IndexFile errors.
Measurement errors.
TagBlock errors.
WithLogFileBufferSize sets the size of the buffer used within LogFiles.
WithLogger sets the logger for the Index.
WithMaximumLogFileSize sets the maximum size of LogFiles before they're compacted into IndexFiles.
WithPath sets the root path of the Index.
WithSeriesIDCacheSize sets the size of the series id set cache.
# Structs
CompactionLevel represents a grouping of index files based on bloom filter settings.
FileSet represents a collection of files.
Index represents a collection of layered index files and WAL.
IndexFile represents a collection of measurement, tag, and series data.
IndexFileTrailer represents meta data written to the end of the index file.
LogEntry represents a single log entry in the write-ahead log.
LogFile represents an on-disk write-ahead log file.
Manifest represents the list of log & index files that make up the index.
MeasurementBlock represents a collection of all measurements in an index.
MeasurementBlockElem represents an internal measurement element.
MeasurementBlockTrailer represents meta data at the end of a MeasurementBlock.
MeasurementBlockWriter writes a measurement block.
Partition represents a collection of layered index files and WAL.
SQLIndexExporter writes out all TSI data for an index to a SQL export.
TagBlock represents tag key/value block for a single measurement.
TagBlockEncoder encodes a tags to a TagBlock section.
TagBlockKeyElem represents a tag key element in a TagBlock.
TagBlockTrailer represents meta data at the end of a TagBlock.
TagBlockValueElem represents a tag value element.
TagValueSeriesIDCache is an LRU cache for series id sets associated with name -> key -> value mappings.
# Interfaces
File represents a log or index file.
MeasurementElem represents a generic measurement element.
MeasurementIterator represents a iterator over a list of measurements.
TagKeyElem represents a generic tag key element.
TagKeyIterator represents a iterator over a list of tag keys.
TagValueElem represents a generic tag value element.
TagValueIterator represents a iterator over a list of tag values.
# Type aliases
IndexFiles represents a layered set of index files.
An IndexOption is a functional option for changing the configuration of an Index.
MeasurementElems represents a list of MeasurementElem.