prometheus/index
Bartek Płotka c065fa6957 Exposed helper methods for reading index bytes. (#492)
Changes:
* Make `NewReader` method useful. It was impossible to use it, because closer was always nil.
* ReadSymbols, TOC and ReadOffsetTable are not public functions (used by Thanos).
* decbufXXX are now functions.
* More verbose errors.
* Removed unused crc32 field.
* Some var name changes to make it more verbose:
  * symbols -> allocatedSymbols
  * symbolsSlice -> symbolsV1
  * symbols -> symbolsV2
  *
* Pre-calculate symbolsTableSize.
* Initialized symbols for Symbols() method with valid length.
* Added test for Symbol method.
* Made Decoder LookupSymbol method public. Kept Decode public as it is useful as helper from index package.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
2019-01-11 17:31:26 +00:00
..
encoding_helpers.go Exposed helper methods for reading index bytes. (#492) 2019-01-11 17:31:26 +00:00
index.go Exposed helper methods for reading index bytes. (#492) 2019-01-11 17:31:26 +00:00
index_test.go Exposed helper methods for reading index bytes. (#492) 2019-01-11 17:31:26 +00:00
postings.go More efficient Merge implementation. (#486) 2019-01-03 16:59:52 +00:00
postings_test.go More efficient Merge implementation. (#486) 2019-01-03 16:59:52 +00:00