Versions in this module Expand all Collapse all v0 v0.6.0 Jan 5, 2018 Changes in this version + const FooterSize + func Merge(segments []*Segment, drops []*roaring.Bitmap, path string, chunkFactor uint32) ([][]uint64, error) + func Open(path string) (segment.Segment, error) + func PersistSegment(memSegment *mem.Segment, path string, chunkFactor uint32) (err error) + type CountHashWriter struct + func NewCountHashWriter(w io.Writer) *CountHashWriter + func (c *CountHashWriter) Count() int + func (c *CountHashWriter) Sum32() uint32 + func (c *CountHashWriter) Write(b []byte) (int, error) + type Dictionary struct + func (d *Dictionary) Iterator() segment.DictionaryIterator + func (d *Dictionary) PostingsList(term string, except *roaring.Bitmap) (segment.PostingsList, error) + func (d *Dictionary) PrefixIterator(prefix string) segment.DictionaryIterator + func (d *Dictionary) RangeIterator(start, end string) segment.DictionaryIterator + type DictionaryIterator struct + func (i *DictionaryIterator) Next() (*index.DictEntry, error) + type Location struct + func (l *Location) ArrayPositions() []uint64 + func (l *Location) End() uint64 + func (l *Location) Field() string + func (l *Location) Pos() uint64 + func (l *Location) Start() uint64 + type MetaData struct + DocDvLen uint64 + DocDvLoc uint64 + DocID uint64 + type Posting struct + func (p *Posting) Frequency() uint64 + func (p *Posting) Locations() []segment.Location + func (p *Posting) Norm() float64 + func (p *Posting) Number() uint64 + type PostingsIterator struct + func (i *PostingsIterator) Next() (segment.Posting, error) + type PostingsList struct + func (p *PostingsList) Count() uint64 + func (p *PostingsList) Iterator() segment.PostingsIterator + type Segment struct + func (s *Segment) AddRef() + func (s *Segment) CRC() uint32 + func (s *Segment) ChunkFactor() uint32 + func (s *Segment) Close() (err error) + func (s *Segment) Count() uint64 + func (s *Segment) Data() []byte + func (s *Segment) DecRef() (err error) + func (s *Segment) DictAddr(field string) (uint64, error) + func (s *Segment) Dictionary(field string) (segment.TermDictionary, error) + func (s *Segment) DocNumbers(ids []string) (*roaring.Bitmap, error) + func (s *Segment) DocValueOffset() uint64 + func (s *Segment) Fields() []string + func (s *Segment) FieldsIndexOffset() uint64 + func (s *Segment) NumDocs() uint64 + func (s *Segment) Path() string + func (s *Segment) SizeInBytes() uint64 + func (s *Segment) StoredIndexOffset() uint64 + func (s *Segment) Version() uint32 + func (s *Segment) VisitDocument(num uint64, visitor segment.DocumentFieldValueVisitor) error + func (s *Segment) VisitDocumentFieldTerms(localDocNum uint64, fields []string, visitor index.DocumentFieldTermVisitor) error