package
0.0.0-20241004052545-caa2fb9b60ae
Repository: https://github.com/grafana/mimir.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

TODO(bwplotka): Added size to method, upstream this.
NewLazyBinaryReader makes a new LazyBinaryReader.
NewLazyBinaryReaderMetrics makes new LazyBinaryReaderMetrics.
NewReaderPool makes a new ReaderPool.
NewReaderPoolMetrics makes new ReaderPoolMetrics.
No description provided by the author
NewStreamBinaryReader loads or builds new index-header if not present on disk.
No description provided by the author
No description provided by the author
WriteBinary build index-header file from the pieces of index in object storage.

# Constants

BinaryFormatV1 represents first version of index-header file.
No description provided by the author
No description provided by the author
MagicIndex are 4 bytes at the head of an index-header file.

# Variables

nolint:revive.

# Structs

BinaryTOC is a table of content for index-header file.
No description provided by the author
No description provided by the author
LazyBinaryReader wraps BinaryReader and loads (mmap or streaming read) the index-header only upon the first Reader function is called.
LazyBinaryReaderMetrics holds metrics tracked by LazyBinaryReader.
ReaderPool is used to istantiate new index-header readers and keep track of them.
ReaderPoolMetrics holds metrics tracked by ReaderPool.
Snapshotter manages the snapshots of lazy loaded blocks.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
Reader is an interface allowing to read essential, minimal number of index fields from the small portion of index file called header.