Documentation ¶
Index ¶
- Constants
- func DecodeUvarintAscending(b []byte) ([]byte, uint64, error)
- func EncodeUvarintAscending(b []byte, v uint64) []byte
- type DictionaryIterator
- type DocumentFieldTermVisitable
- type DocumentFieldValueVisitor
- type EmptyDictionary
- func (e *EmptyDictionary) Iterator() DictionaryIterator
- func (e *EmptyDictionary) PostingsList(term string, except *roaring.Bitmap) (PostingsList, error)
- func (e *EmptyDictionary) PrefixIterator(prefix string) DictionaryIterator
- func (e *EmptyDictionary) RangeIterator(start, end string) DictionaryIterator
- type EmptyDictionaryIterator
- type EmptyPostingsIterator
- type EmptyPostingsList
- type EmptySegment
- func (e *EmptySegment) AddRef()
- func (e *EmptySegment) Close() error
- func (e *EmptySegment) Count() uint64
- func (e *EmptySegment) DecRef() error
- func (e *EmptySegment) Dictionary(field string) (TermDictionary, error)
- func (e *EmptySegment) DocNumbers([]string) (*roaring.Bitmap, error)
- func (e *EmptySegment) Fields() []string
- func (e *EmptySegment) VisitDocument(num uint64, visitor DocumentFieldValueVisitor) error
- type Location
- type Posting
- type PostingsIterator
- type PostingsList
- type Segment
- type TermDictionary
Constants ¶
const ( MaxVarintSize = 9 // IntMin is chosen such that the range of int tags does not overlap the // ascii character set that is frequently used in testing. IntMin = 0x80 // 128 // IntMax is the maximum int tag value. IntMax = 0xfd // 253 )
Variables ¶
This section is empty.
Functions ¶
func DecodeUvarintAscending ¶
DecodeUvarintAscending decodes a varint encoded uint64 from the input buffer. The remainder of the input buffer and the decoded uint64 are returned.
func EncodeUvarintAscending ¶
EncodeUvarintAscending encodes the uint64 value using a variable length (length-prefixed) representation. The length is encoded as a single byte indicating the number of encoded bytes (-8) to follow. See EncodeVarintAscending for rationale. The encoded bytes are appended to the supplied buffer and the final buffer is returned.
Types ¶
type DictionaryIterator ¶
type DocumentFieldTermVisitable ¶
type DocumentFieldTermVisitable interface { VisitDocumentFieldTerms(localDocNum uint64, fields []string, visitor index.DocumentFieldTermVisitor) error }
DocumentFieldTermVisitable is implemented by various scorch segment implementations to provide the un inverting of the postings or other indexed values.
type DocumentFieldValueVisitor ¶
DocumentFieldValueVisitor defines a callback to be visited for each stored field value. The return value determines if the visitor should keep going. Returning true continues visiting, false stops.
type EmptyDictionary ¶
type EmptyDictionary struct{}
func (*EmptyDictionary) Iterator ¶
func (e *EmptyDictionary) Iterator() DictionaryIterator
func (*EmptyDictionary) PostingsList ¶
func (e *EmptyDictionary) PostingsList(term string, except *roaring.Bitmap) (PostingsList, error)
func (*EmptyDictionary) PrefixIterator ¶
func (e *EmptyDictionary) PrefixIterator(prefix string) DictionaryIterator
func (*EmptyDictionary) RangeIterator ¶
func (e *EmptyDictionary) RangeIterator(start, end string) DictionaryIterator
type EmptyDictionaryIterator ¶
type EmptyDictionaryIterator struct{}
type EmptyPostingsIterator ¶
type EmptyPostingsIterator struct{}
func (*EmptyPostingsIterator) Next ¶
func (e *EmptyPostingsIterator) Next() (Posting, error)
type EmptyPostingsList ¶
type EmptyPostingsList struct{}
func (*EmptyPostingsList) Count ¶
func (e *EmptyPostingsList) Count() uint64
func (*EmptyPostingsList) Iterator ¶
func (e *EmptyPostingsList) Iterator() PostingsIterator
type EmptySegment ¶
type EmptySegment struct{}
func (*EmptySegment) AddRef ¶
func (e *EmptySegment) AddRef()
func (*EmptySegment) Close ¶
func (e *EmptySegment) Close() error
func (*EmptySegment) Count ¶
func (e *EmptySegment) Count() uint64
func (*EmptySegment) DecRef ¶
func (e *EmptySegment) DecRef() error
func (*EmptySegment) Dictionary ¶
func (e *EmptySegment) Dictionary(field string) (TermDictionary, error)
func (*EmptySegment) DocNumbers ¶
func (e *EmptySegment) DocNumbers([]string) (*roaring.Bitmap, error)
func (*EmptySegment) Fields ¶
func (e *EmptySegment) Fields() []string
func (*EmptySegment) VisitDocument ¶
func (e *EmptySegment) VisitDocument(num uint64, visitor DocumentFieldValueVisitor) error
type PostingsIterator ¶
type PostingsList ¶
type PostingsList interface { Iterator() PostingsIterator Count() uint64 }
type TermDictionary ¶
type TermDictionary interface { PostingsList(term string, except *roaring.Bitmap) (PostingsList, error) Iterator() DictionaryIterator PrefixIterator(prefix string) DictionaryIterator RangeIterator(start, end string) DictionaryIterator }