Versions in this module Expand all Collapse all v2 v2.0.1 May 26, 2022 v2.0.0 May 26, 2022 Changes in this version + const Type + const Version + const ZSTDCompressionLevel + func Load(data *segment.Data) (segment.Segment, error) + func Merge(segments []segment.Segment, drops []*roaring.Bitmap, mergeBufferSize int) segment.Merger + func New(results []segment.Document, normCalc func(string, int) float32) (segment.Segment, uint64, error) + func ZSTDCompress(dst, src []byte, compressionLevel int) ([]byte, error) + func ZSTDCompressBound(srcSize int) int + func ZSTDDecompress(dst, src []byte) ([]byte, error) + type CollectionStats struct + func (c *CollectionStats) DocumentCount() uint64 + func (c *CollectionStats) Merge(other segment.CollectionStats) + func (c *CollectionStats) SumTotalTermFrequency() uint64 + func (c *CollectionStats) TotalDocumentCount() uint64 + type DictEntry struct + func (d *DictEntry) Count() uint64 + func (d *DictEntry) Term() string + type Dictionary struct + func (d *Dictionary) Close() error + func (d *Dictionary) Contains(key []byte) (bool, error) + func (d *Dictionary) Iterator(a segment.Automaton, startKeyInclusive, endKeyExclusive []byte) segment.DictionaryIterator + func (d *Dictionary) PostingsList(term []byte, except *roaring.Bitmap, prealloc segment.PostingsList) (segment.PostingsList, error) + type DictionaryIterator struct + func (i *DictionaryIterator) Close() error + func (i *DictionaryIterator) Next() (segment.DictionaryEntry, error) + type DocumentValueReader struct + func (d *DocumentValueReader) VisitDocumentValues(number uint64, visitor segment.DocumentValueVisitor) error + type Location struct + func (l *Location) End() int + func (l *Location) Field() string + func (l *Location) Pos() int + func (l *Location) Size() int + func (l *Location) Start() int + type Merger struct + func (m *Merger) DocumentNumbers() [][]uint64 + func (m *Merger) WriteTo(w io.Writer, closeCh chan struct{}) (n int64, err error) + type Posting struct + func (p *Posting) Frequency() int + func (p *Posting) Locations() []segment.Location + func (p *Posting) Norm() float64 + func (p *Posting) Number() uint64 + func (p *Posting) SetNumber(n uint64) + func (p *Posting) Size() int + type PostingsIterator struct + Actual roaring.IntPeekable + ActualBM *roaring.Bitmap + func (i *PostingsIterator) ActualBitmap() *roaring.Bitmap + func (i *PostingsIterator) Advance(docNum uint64) (segment.Posting, error) + func (i *PostingsIterator) Close() error + func (i *PostingsIterator) Count() uint64 + func (i *PostingsIterator) DocNum1Hit() (uint64, bool) + func (i *PostingsIterator) Empty() bool + func (i *PostingsIterator) Next() (segment.Posting, error) + func (i *PostingsIterator) ReplaceActual(abm *roaring.Bitmap) + func (i *PostingsIterator) Size() int + type PostingsList struct + func (p *PostingsList) Count() uint64 + func (p *PostingsList) Iterator(includeFreq, includeNorm, includeLocs bool, prealloc segment.PostingsIterator) (segment.PostingsIterator, error) + func (p *PostingsList) OrInto(receiver *roaring.Bitmap) + func (p *PostingsList) Size() int + type Segment struct + func (s *Segment) CRC() uint32 + func (s *Segment) ChunkMode() uint32 + func (s *Segment) CollectionStats(field string) (segment.CollectionStats, error) + func (s *Segment) Count() uint64 + func (s *Segment) Dictionary(field string) (segment.Dictionary, error) + func (s *Segment) DocValueOffset() uint64 + func (s *Segment) DocsMatchingTerms(terms []segment.Term) (*roaring.Bitmap, error) + func (s *Segment) DocumentValueReader(fields []string) (segment.DocumentValueReader, error) + func (s *Segment) Fields() []string + func (s *Segment) FieldsIndexOffset() uint64 + func (s *Segment) NumDocs() uint64 + func (s *Segment) Size() int + func (s *Segment) StoredIndexOffset() uint64 + func (s *Segment) Type() string + func (s *Segment) Version() uint32 + func (s *Segment) VisitStoredFields(num uint64, visitor segment.StoredFieldVisitor) error + func (s *Segment) WriteTo(w io.Writer, _ chan struct{}) (int64, error) Other modules containing this package github.com/blugelabs/ice