package
2.9.12+incompatible
Repository: https://github.com/grafana/loki.git
Documentation: pkg.go.dev

# Functions

AllPostingsKey returns the label key that is used to store the postings list of all existing IDs.
EmptyPostings returns a postings list that's always empty.
ErrPostings returns new postings that immediately error.
ExpandPostings returns the postings expanded as a slice.
Intersect returns a new postings list over the intersection of the input postings.
Merge returns a new iterator over the union of the input iterators.
NewFileReader returns a new index reader against the given index file.
No description provided by the author
No description provided by the author
NewMemPostings returns a memPostings that's ready for reads and writes.
NewReader returns a new index reader on the given byte slice.
No description provided by the author
Note: shardedPostings can technically return more series than just those that correspond to the requested shard.
NewStringListIter returns a StringIter for the given sorted list of strings.
NewSymbols returns a Symbols object for symbol lookups.
NewTOCFromByteSlice return parsed TOC from given index byte slice.
NewUnorderedMemPostings returns a memPostings that is not safe to be read from until EnsureOrder() was called once.
NewWriter returns a new Writer to the given filename.
No description provided by the author
ReadOffsetTable reads an offset table and at the given position calls f for each found entry.
Without returns a new postings list that contains all elements from the full list that are not in the drop list.

# Constants

Chunks per page.
Minimum number of chunks present to use page based lookup instead of linear scan which performs better at lower n-values.
FormatV1 represents 1 version of index.
FormatV2 represents 2 version of index.
FormatV3 represents 3 version of index.
HeaderLen represents number of bytes reserved of index for header.
No description provided by the author
MagicIndex 4 bytes at the head of an index file.
ShardLabel is a reserved label referencing a cortex shard.
ShardLabelFmt is the fmt of the ShardLabel key.

# Variables

No description provided by the author

# Structs

Meta holds information about a chunk of data.
No description provided by the author
Decoder provides decoding methods It currently does not contain decoding methods for all entry types but can be extended by them if there's demand.
No description provided by the author
ListPostings implements the Postings interface over a plain list.
MemPostings holds postings list for series ID per label pair.
Metadata is TSDB-level metadata.
No description provided by the author
PostingsStats contains cardinality based statistics for postings.
Range marks a byte range.
No description provided by the author
ShardAnnotation is a convenience struct which holds data from a parsed shard label Of MUST be a power of 2 to ensure sharding logic works correctly.
No description provided by the author
Stat holds values for a single cardinality statistic.
No description provided by the author
TOC represents index Table Of Content that states where each section of index starts.
Writer implements the IndexWriter interface for the standard serialization format.

# Interfaces

ByteSlice abstracts a byte slice.
Postings provides iterative access over a postings list.
StringIter iterates over a sorted list of strings.

# Type aliases

No description provided by the author
(SeriesRef, Fingerprint) tuples.
No description provided by the author