Documentation ¶
Overview ¶
Package upsidedown is a generated protocol buffer package.
It is generated from these files:
upsidedown.proto
It has these top-level messages:
BackIndexTermsEntry BackIndexStoreEntry BackIndexRowValue
Index ¶
- Constants
- Variables
- func GetRowBuffer() *rowBuffer
- func NewUpsideDownCouch(storeName string, storeConfig map[string]interface{}, ...) (index.Index, error)
- func PutRowBuffer(rb *rowBuffer)
- type AnalysisResult
- type BackIndexRow
- func (br *BackIndexRow) AllStoredKeys() [][]byte
- func (br *BackIndexRow) AllTermKeys() [][]byte
- func (br *BackIndexRow) Key() []byte
- func (br *BackIndexRow) KeySize() int
- func (br *BackIndexRow) KeyTo(buf []byte) (int, error)
- func (br *BackIndexRow) String() string
- func (br *BackIndexRow) Value() []byte
- func (br *BackIndexRow) ValueSize() int
- func (br *BackIndexRow) ValueTo(buf []byte) (int, error)
- type BackIndexRowValue
- func (m *BackIndexRowValue) GetStoredEntries() []*BackIndexStoreEntry
- func (m *BackIndexRowValue) GetTermsEntries() []*BackIndexTermsEntry
- func (m *BackIndexRowValue) Marshal() (data []byte, err error)
- func (m *BackIndexRowValue) MarshalTo(data []byte) (n int, err error)
- func (*BackIndexRowValue) ProtoMessage()
- func (m *BackIndexRowValue) Reset()
- func (m *BackIndexRowValue) Size() (n int)
- func (m *BackIndexRowValue) String() string
- func (m *BackIndexRowValue) Unmarshal(data []byte) error
- type BackIndexStoreEntry
- func (m *BackIndexStoreEntry) GetArrayPositions() []uint64
- func (m *BackIndexStoreEntry) GetField() uint32
- func (m *BackIndexStoreEntry) Marshal() (data []byte, err error)
- func (m *BackIndexStoreEntry) MarshalTo(data []byte) (n int, err error)
- func (*BackIndexStoreEntry) ProtoMessage()
- func (m *BackIndexStoreEntry) Reset()
- func (m *BackIndexStoreEntry) Size() (n int)
- func (m *BackIndexStoreEntry) String() string
- func (m *BackIndexStoreEntry) Unmarshal(data []byte) error
- type BackIndexTermsEntry
- func (m *BackIndexTermsEntry) GetField() uint32
- func (m *BackIndexTermsEntry) GetTerms() []string
- func (m *BackIndexTermsEntry) Marshal() (data []byte, err error)
- func (m *BackIndexTermsEntry) MarshalTo(data []byte) (n int, err error)
- func (*BackIndexTermsEntry) ProtoMessage()
- func (m *BackIndexTermsEntry) Reset()
- func (m *BackIndexTermsEntry) Size() (n int)
- func (m *BackIndexTermsEntry) String() string
- func (m *BackIndexTermsEntry) Unmarshal(data []byte) error
- type DictionaryRow
- func (dr *DictionaryRow) Key() []byte
- func (dr *DictionaryRow) KeySize() int
- func (dr *DictionaryRow) KeyTo(buf []byte) (int, error)
- func (dr *DictionaryRow) String() string
- func (dr *DictionaryRow) Value() []byte
- func (dr *DictionaryRow) ValueSize() int
- func (dr *DictionaryRow) ValueTo(buf []byte) (int, error)
- type DocValueReader
- type FieldCache
- type FieldRow
- type IndexReader
- func (i *IndexReader) Close() error
- func (i *IndexReader) DocCount() (uint64, error)
- func (i *IndexReader) DocIDReaderAll() (index.DocIDReader, error)
- func (i *IndexReader) DocIDReaderOnly(ids []string) (index.DocIDReader, error)
- func (i *IndexReader) DocValueReader(fields []string) (index.DocValueReader, error)
- func (i *IndexReader) Document(id string) (doc index.Document, err error)
- func (i *IndexReader) DumpAll() chan interface{}
- func (i *IndexReader) DumpDoc(id string) chan interface{}
- func (i *IndexReader) DumpFields() chan interface{}
- func (i *IndexReader) ExternalID(id index.IndexInternalID) (string, error)
- func (i *IndexReader) FieldDict(fieldName string) (index.FieldDict, error)
- func (i *IndexReader) FieldDictPrefix(fieldName string, termPrefix []byte) (index.FieldDict, error)
- func (i *IndexReader) FieldDictRange(fieldName string, startTerm []byte, endTerm []byte) (index.FieldDict, error)
- func (i *IndexReader) Fields() (fields []string, err error)
- func (i *IndexReader) GetInternal(key []byte) ([]byte, error)
- func (i *IndexReader) InternalID(id string) (index.IndexInternalID, error)
- func (i *IndexReader) TermFieldReader(ctx context.Context, term []byte, fieldName string, ...) (index.TermFieldReader, error)
- type IndexRow
- type InternalRow
- type StoredRow
- func (s *StoredRow) Key() []byte
- func (s *StoredRow) KeySize() int
- func (s *StoredRow) KeyTo(buf []byte) (int, error)
- func (s *StoredRow) ScanPrefixForDoc() []byte
- func (s *StoredRow) String() string
- func (s *StoredRow) Value() []byte
- func (s *StoredRow) ValueSize() int
- func (s *StoredRow) ValueTo(buf []byte) (int, error)
- type TermFrequencyRow
- func InitTermFrequencyRow(tfr *TermFrequencyRow, term []byte, field uint16, docID []byte, freq uint64, ...) *TermFrequencyRow
- func NewTermFrequencyRow(term []byte, field uint16, docID []byte, freq uint64, norm float32) *TermFrequencyRow
- func NewTermFrequencyRowK(key []byte) (*TermFrequencyRow, error)
- func NewTermFrequencyRowKV(key, value []byte) (*TermFrequencyRow, error)
- func NewTermFrequencyRowWithTermVectors(term []byte, field uint16, docID []byte, freq uint64, norm float32, ...) *TermFrequencyRow
- func (tfr *TermFrequencyRow) DictionaryRowKey() []byte
- func (tfr *TermFrequencyRow) DictionaryRowKeySize() int
- func (tfr *TermFrequencyRow) DictionaryRowKeyTo(buf []byte) (int, error)
- func (tfr *TermFrequencyRow) Freq() uint64
- func (tfr *TermFrequencyRow) Key() []byte
- func (tfr *TermFrequencyRow) KeyAppendTo(buf []byte) ([]byte, error)
- func (tfr *TermFrequencyRow) KeySize() int
- func (tfr *TermFrequencyRow) KeyTo(buf []byte) (int, error)
- func (tfr *TermFrequencyRow) ScanPrefixForField() []byte
- func (tfr *TermFrequencyRow) ScanPrefixForFieldTerm() []byte
- func (tfr *TermFrequencyRow) ScanPrefixForFieldTermPrefix() []byte
- func (tfr *TermFrequencyRow) Size() int
- func (tfr *TermFrequencyRow) String() string
- func (tfr *TermFrequencyRow) Term() []byte
- func (tfr *TermFrequencyRow) Value() []byte
- func (tfr *TermFrequencyRow) ValueSize() int
- func (tfr *TermFrequencyRow) ValueTo(buf []byte) (int, error)
- type TermVector
- type UpsideDownCouch
- func (udc *UpsideDownCouch) Advanced() (store.KVStore, error)
- func (udc *UpsideDownCouch) Analyze(d index.Document) *AnalysisResult
- func (udc *UpsideDownCouch) Batch(batch *index.Batch) (err error)
- func (udc *UpsideDownCouch) Close() error
- func (udc *UpsideDownCouch) Delete(id string) (err error)
- func (udc *UpsideDownCouch) DeleteInternal(key []byte) (err error)
- func (udc *UpsideDownCouch) Open() (err error)
- func (udc *UpsideDownCouch) Reader() (index.IndexReader, error)
- func (udc *UpsideDownCouch) SetInternal(key, val []byte) (err error)
- func (udc *UpsideDownCouch) Stats() json.Marshaler
- func (udc *UpsideDownCouch) StatsMap() map[string]interface{}
- func (udc *UpsideDownCouch) Update(doc index.Document) (err error)
- func (udc *UpsideDownCouch) UpdateWithAnalysis(doc index.Document, result *AnalysisResult, backIndexRow *BackIndexRow) (err error)
- type UpsideDownCouchDocIDReader
- type UpsideDownCouchFieldDict
- type UpsideDownCouchRow
- type UpsideDownCouchRowStream
- type UpsideDownCouchTermFieldReader
- func (r *UpsideDownCouchTermFieldReader) Advance(docID index.IndexInternalID, preAlloced *index.TermFieldDoc) (rv *index.TermFieldDoc, err error)
- func (r *UpsideDownCouchTermFieldReader) Close() error
- func (r *UpsideDownCouchTermFieldReader) Count() uint64
- func (r *UpsideDownCouchTermFieldReader) Next(preAlloced *index.TermFieldDoc) (*index.TermFieldDoc, error)
- func (r *UpsideDownCouchTermFieldReader) Size() int
- type VersionRow
Constants ¶
View Source
const ByteSeparator byte = 0xff
View Source
const DictionaryRowMaxValueSize = binary.MaxVarintLen64
View Source
const Name = "upside_down"
View Source
const RowBufferSize = 4 * 1024
RowBufferSize should ideally this is sized to be the smallest size that can contain an index row key and its corresponding value. It is not a limit, if need be a larger buffer is allocated, but performance will be more optimal if *most* rows fit this size.
View Source
const Version uint8 = 7
Variables ¶
View Source
var (
ErrInvalidLengthUpsidedown = fmt.Errorf("proto: negative length found during unmarshaling")
)
View Source
var ErrorUnknownStorageType = fmt.Errorf("unknown storage type")
View Source
var IncompatibleVersion = fmt.Errorf("incompatible version, %d is supported", Version)
View Source
var VersionKey = []byte{'v'}
Functions ¶
func GetRowBuffer ¶
func GetRowBuffer() *rowBuffer
func NewUpsideDownCouch ¶
func PutRowBuffer ¶
func PutRowBuffer(rb *rowBuffer)
Types ¶
type AnalysisResult ¶
type BackIndexRow ¶
type BackIndexRow struct {
// contains filtered or unexported fields
}
func NewBackIndexRow ¶
func NewBackIndexRow(docID []byte, entries []*BackIndexTermsEntry, storedFields []*BackIndexStoreEntry) *BackIndexRow
func NewBackIndexRowKV ¶
func NewBackIndexRowKV(key, value []byte) (*BackIndexRow, error)
func (*BackIndexRow) AllStoredKeys ¶
func (br *BackIndexRow) AllStoredKeys() [][]byte
func (*BackIndexRow) AllTermKeys ¶
func (br *BackIndexRow) AllTermKeys() [][]byte
func (*BackIndexRow) Key ¶
func (br *BackIndexRow) Key() []byte
func (*BackIndexRow) KeySize ¶
func (br *BackIndexRow) KeySize() int
func (*BackIndexRow) String ¶
func (br *BackIndexRow) String() string
func (*BackIndexRow) Value ¶
func (br *BackIndexRow) Value() []byte
func (*BackIndexRow) ValueSize ¶
func (br *BackIndexRow) ValueSize() int
type BackIndexRowValue ¶
type BackIndexRowValue struct { TermsEntries []*BackIndexTermsEntry `protobuf:"bytes,1,rep,name=termsEntries" json:"termsEntries,omitempty"` StoredEntries []*BackIndexStoreEntry `protobuf:"bytes,2,rep,name=storedEntries" json:"storedEntries,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*BackIndexRowValue) GetStoredEntries ¶
func (m *BackIndexRowValue) GetStoredEntries() []*BackIndexStoreEntry
func (*BackIndexRowValue) GetTermsEntries ¶
func (m *BackIndexRowValue) GetTermsEntries() []*BackIndexTermsEntry
func (*BackIndexRowValue) Marshal ¶
func (m *BackIndexRowValue) Marshal() (data []byte, err error)
func (*BackIndexRowValue) MarshalTo ¶
func (m *BackIndexRowValue) MarshalTo(data []byte) (n int, err error)
func (*BackIndexRowValue) ProtoMessage ¶
func (*BackIndexRowValue) ProtoMessage()
func (*BackIndexRowValue) Reset ¶
func (m *BackIndexRowValue) Reset()
func (*BackIndexRowValue) Size ¶
func (m *BackIndexRowValue) Size() (n int)
func (*BackIndexRowValue) String ¶
func (m *BackIndexRowValue) String() string
func (*BackIndexRowValue) Unmarshal ¶
func (m *BackIndexRowValue) Unmarshal(data []byte) error
type BackIndexStoreEntry ¶
type BackIndexStoreEntry struct { Field *uint32 `protobuf:"varint,1,req,name=field" json:"field,omitempty"` ArrayPositions []uint64 `protobuf:"varint,2,rep,name=arrayPositions" json:"arrayPositions,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*BackIndexStoreEntry) GetArrayPositions ¶
func (m *BackIndexStoreEntry) GetArrayPositions() []uint64
func (*BackIndexStoreEntry) GetField ¶
func (m *BackIndexStoreEntry) GetField() uint32
func (*BackIndexStoreEntry) Marshal ¶
func (m *BackIndexStoreEntry) Marshal() (data []byte, err error)
func (*BackIndexStoreEntry) MarshalTo ¶
func (m *BackIndexStoreEntry) MarshalTo(data []byte) (n int, err error)
func (*BackIndexStoreEntry) ProtoMessage ¶
func (*BackIndexStoreEntry) ProtoMessage()
func (*BackIndexStoreEntry) Reset ¶
func (m *BackIndexStoreEntry) Reset()
func (*BackIndexStoreEntry) Size ¶
func (m *BackIndexStoreEntry) Size() (n int)
func (*BackIndexStoreEntry) String ¶
func (m *BackIndexStoreEntry) String() string
func (*BackIndexStoreEntry) Unmarshal ¶
func (m *BackIndexStoreEntry) Unmarshal(data []byte) error
type BackIndexTermsEntry ¶
type BackIndexTermsEntry struct { Field *uint32 `protobuf:"varint,1,req,name=field" json:"field,omitempty"` Terms []string `protobuf:"bytes,2,rep,name=terms" json:"terms,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*BackIndexTermsEntry) GetField ¶
func (m *BackIndexTermsEntry) GetField() uint32
func (*BackIndexTermsEntry) GetTerms ¶
func (m *BackIndexTermsEntry) GetTerms() []string
func (*BackIndexTermsEntry) Marshal ¶
func (m *BackIndexTermsEntry) Marshal() (data []byte, err error)
func (*BackIndexTermsEntry) MarshalTo ¶
func (m *BackIndexTermsEntry) MarshalTo(data []byte) (n int, err error)
func (*BackIndexTermsEntry) ProtoMessage ¶
func (*BackIndexTermsEntry) ProtoMessage()
func (*BackIndexTermsEntry) Reset ¶
func (m *BackIndexTermsEntry) Reset()
func (*BackIndexTermsEntry) Size ¶
func (m *BackIndexTermsEntry) Size() (n int)
func (*BackIndexTermsEntry) String ¶
func (m *BackIndexTermsEntry) String() string
func (*BackIndexTermsEntry) Unmarshal ¶
func (m *BackIndexTermsEntry) Unmarshal(data []byte) error
type DictionaryRow ¶
type DictionaryRow struct {
// contains filtered or unexported fields
}
func NewDictionaryRow ¶
func NewDictionaryRow(term []byte, field uint16, count uint64) *DictionaryRow
func NewDictionaryRowK ¶
func NewDictionaryRowK(key []byte) (*DictionaryRow, error)
func NewDictionaryRowKV ¶
func NewDictionaryRowKV(key, value []byte) (*DictionaryRow, error)
func (*DictionaryRow) Key ¶
func (dr *DictionaryRow) Key() []byte
func (*DictionaryRow) KeySize ¶
func (dr *DictionaryRow) KeySize() int
func (*DictionaryRow) String ¶
func (dr *DictionaryRow) String() string
func (*DictionaryRow) Value ¶
func (dr *DictionaryRow) Value() []byte
func (*DictionaryRow) ValueSize ¶
func (dr *DictionaryRow) ValueSize() int
type DocValueReader ¶
type DocValueReader struct {
// contains filtered or unexported fields
}
func (*DocValueReader) BytesRead ¶ added in v2.3.6
func (dvr *DocValueReader) BytesRead() uint64
func (*DocValueReader) VisitDocValues ¶
func (dvr *DocValueReader) VisitDocValues(id index.IndexInternalID, visitor index.DocValueVisitor) error
type FieldCache ¶
type FieldCache struct {
// contains filtered or unexported fields
}
func NewFieldCache ¶
func NewFieldCache() *FieldCache
func (*FieldCache) AddExisting ¶
func (f *FieldCache) AddExisting(field string, index uint16)
func (*FieldCache) FieldIndexed ¶
func (f *FieldCache) FieldIndexed(index uint16) (field string)
func (*FieldCache) FieldNamed ¶
func (f *FieldCache) FieldNamed(field string, createIfMissing bool) (uint16, bool)
FieldNamed returns the index of the field, and whether or not it existed before this call. if createIfMissing is true, and new field index is assigned but the second return value will still be false
type FieldRow ¶
type FieldRow struct {
// contains filtered or unexported fields
}
func NewFieldRow ¶
func NewFieldRowKV ¶
type IndexReader ¶
type IndexReader struct {
// contains filtered or unexported fields
}
func (*IndexReader) Close ¶
func (i *IndexReader) Close() error
func (*IndexReader) DocCount ¶
func (i *IndexReader) DocCount() (uint64, error)
func (*IndexReader) DocIDReaderAll ¶
func (i *IndexReader) DocIDReaderAll() (index.DocIDReader, error)
func (*IndexReader) DocIDReaderOnly ¶
func (i *IndexReader) DocIDReaderOnly(ids []string) (index.DocIDReader, error)
func (*IndexReader) DocValueReader ¶
func (i *IndexReader) DocValueReader(fields []string) (index.DocValueReader, error)
func (*IndexReader) Document ¶
func (i *IndexReader) Document(id string) (doc index.Document, err error)
func (*IndexReader) DumpAll ¶
func (i *IndexReader) DumpAll() chan interface{}
func (*IndexReader) DumpDoc ¶
func (i *IndexReader) DumpDoc(id string) chan interface{}
DumpDoc returns all rows in the index related to this doc id
func (*IndexReader) DumpFields ¶
func (i *IndexReader) DumpFields() chan interface{}
func (*IndexReader) ExternalID ¶
func (i *IndexReader) ExternalID(id index.IndexInternalID) (string, error)
func (*IndexReader) FieldDict ¶
func (i *IndexReader) FieldDict(fieldName string) (index.FieldDict, error)
func (*IndexReader) FieldDictPrefix ¶
func (*IndexReader) FieldDictRange ¶
func (*IndexReader) Fields ¶
func (i *IndexReader) Fields() (fields []string, err error)
func (*IndexReader) GetInternal ¶
func (i *IndexReader) GetInternal(key []byte) ([]byte, error)
func (*IndexReader) InternalID ¶
func (i *IndexReader) InternalID(id string) (index.IndexInternalID, error)
func (*IndexReader) TermFieldReader ¶
func (i *IndexReader) TermFieldReader(ctx context.Context, term []byte, fieldName string, includeFreq, includeNorm, includeTermVectors bool) (index.TermFieldReader, error)
type InternalRow ¶
type InternalRow struct {
// contains filtered or unexported fields
}
func NewInternalRow ¶
func NewInternalRow(key, val []byte) *InternalRow
func NewInternalRowKV ¶
func NewInternalRowKV(key, value []byte) (*InternalRow, error)
func (*InternalRow) Key ¶
func (i *InternalRow) Key() []byte
func (*InternalRow) KeySize ¶
func (i *InternalRow) KeySize() int
func (*InternalRow) String ¶
func (i *InternalRow) String() string
func (*InternalRow) Value ¶
func (i *InternalRow) Value() []byte
func (*InternalRow) ValueSize ¶
func (i *InternalRow) ValueSize() int
type StoredRow ¶
type StoredRow struct {
// contains filtered or unexported fields
}
func NewStoredRow ¶
func NewStoredRowK ¶
func NewStoredRowKV ¶
func (*StoredRow) ScanPrefixForDoc ¶
type TermFrequencyRow ¶
type TermFrequencyRow struct {
// contains filtered or unexported fields
}
func InitTermFrequencyRow ¶
func InitTermFrequencyRow(tfr *TermFrequencyRow, term []byte, field uint16, docID []byte, freq uint64, norm float32) *TermFrequencyRow
func NewTermFrequencyRow ¶
func NewTermFrequencyRowK ¶
func NewTermFrequencyRowK(key []byte) (*TermFrequencyRow, error)
func NewTermFrequencyRowKV ¶
func NewTermFrequencyRowKV(key, value []byte) (*TermFrequencyRow, error)
func NewTermFrequencyRowWithTermVectors ¶
func NewTermFrequencyRowWithTermVectors(term []byte, field uint16, docID []byte, freq uint64, norm float32, vectors []*TermVector) *TermFrequencyRow
func (*TermFrequencyRow) DictionaryRowKey ¶
func (tfr *TermFrequencyRow) DictionaryRowKey() []byte
func (*TermFrequencyRow) DictionaryRowKeySize ¶
func (tfr *TermFrequencyRow) DictionaryRowKeySize() int
func (*TermFrequencyRow) DictionaryRowKeyTo ¶
func (tfr *TermFrequencyRow) DictionaryRowKeyTo(buf []byte) (int, error)
func (*TermFrequencyRow) Freq ¶
func (tfr *TermFrequencyRow) Freq() uint64
func (*TermFrequencyRow) Key ¶
func (tfr *TermFrequencyRow) Key() []byte
func (*TermFrequencyRow) KeyAppendTo ¶
func (tfr *TermFrequencyRow) KeyAppendTo(buf []byte) ([]byte, error)
func (*TermFrequencyRow) KeySize ¶
func (tfr *TermFrequencyRow) KeySize() int
func (*TermFrequencyRow) ScanPrefixForField ¶
func (tfr *TermFrequencyRow) ScanPrefixForField() []byte
func (*TermFrequencyRow) ScanPrefixForFieldTerm ¶
func (tfr *TermFrequencyRow) ScanPrefixForFieldTerm() []byte
func (*TermFrequencyRow) ScanPrefixForFieldTermPrefix ¶
func (tfr *TermFrequencyRow) ScanPrefixForFieldTermPrefix() []byte
func (*TermFrequencyRow) Size ¶
func (tfr *TermFrequencyRow) Size() int
func (*TermFrequencyRow) String ¶
func (tfr *TermFrequencyRow) String() string
func (*TermFrequencyRow) Term ¶
func (tfr *TermFrequencyRow) Term() []byte
func (*TermFrequencyRow) Value ¶
func (tfr *TermFrequencyRow) Value() []byte
func (*TermFrequencyRow) ValueSize ¶
func (tfr *TermFrequencyRow) ValueSize() int
type TermVector ¶
type TermVector struct {
// contains filtered or unexported fields
}
func (*TermVector) Size ¶
func (tv *TermVector) Size() int
func (*TermVector) String ¶
func (tv *TermVector) String() string
type UpsideDownCouch ¶
type UpsideDownCouch struct {
// contains filtered or unexported fields
}
func (*UpsideDownCouch) Analyze ¶ added in v2.0.1
func (udc *UpsideDownCouch) Analyze(d index.Document) *AnalysisResult
func (*UpsideDownCouch) Close ¶
func (udc *UpsideDownCouch) Close() error
func (*UpsideDownCouch) Delete ¶
func (udc *UpsideDownCouch) Delete(id string) (err error)
func (*UpsideDownCouch) DeleteInternal ¶
func (udc *UpsideDownCouch) DeleteInternal(key []byte) (err error)
func (*UpsideDownCouch) Open ¶
func (udc *UpsideDownCouch) Open() (err error)
func (*UpsideDownCouch) Reader ¶
func (udc *UpsideDownCouch) Reader() (index.IndexReader, error)
func (*UpsideDownCouch) SetInternal ¶
func (udc *UpsideDownCouch) SetInternal(key, val []byte) (err error)
func (*UpsideDownCouch) Stats ¶
func (udc *UpsideDownCouch) Stats() json.Marshaler
func (*UpsideDownCouch) StatsMap ¶
func (udc *UpsideDownCouch) StatsMap() map[string]interface{}
func (*UpsideDownCouch) UpdateWithAnalysis ¶
func (udc *UpsideDownCouch) UpdateWithAnalysis(doc index.Document, result *AnalysisResult, backIndexRow *BackIndexRow) (err error)
type UpsideDownCouchDocIDReader ¶
type UpsideDownCouchDocIDReader struct {
// contains filtered or unexported fields
}
func (*UpsideDownCouchDocIDReader) Advance ¶
func (r *UpsideDownCouchDocIDReader) Advance(docID index.IndexInternalID) (index.IndexInternalID, error)
func (*UpsideDownCouchDocIDReader) Close ¶
func (r *UpsideDownCouchDocIDReader) Close() error
func (*UpsideDownCouchDocIDReader) Next ¶
func (r *UpsideDownCouchDocIDReader) Next() (index.IndexInternalID, error)
func (*UpsideDownCouchDocIDReader) Size ¶
func (r *UpsideDownCouchDocIDReader) Size() int
type UpsideDownCouchFieldDict ¶
type UpsideDownCouchFieldDict struct {
// contains filtered or unexported fields
}
func (*UpsideDownCouchFieldDict) BytesRead ¶ added in v2.3.6
func (r *UpsideDownCouchFieldDict) BytesRead() uint64
func (*UpsideDownCouchFieldDict) Close ¶
func (r *UpsideDownCouchFieldDict) Close() error
type UpsideDownCouchRow ¶
type UpsideDownCouchRow interface { KeySize() int KeyTo([]byte) (int, error) Key() []byte Value() []byte ValueSize() int ValueTo([]byte) (int, error) }
func ParseFromKeyValue ¶
func ParseFromKeyValue(key, value []byte) (UpsideDownCouchRow, error)
type UpsideDownCouchRowStream ¶
type UpsideDownCouchRowStream chan UpsideDownCouchRow
type UpsideDownCouchTermFieldReader ¶
type UpsideDownCouchTermFieldReader struct {
// contains filtered or unexported fields
}
func (*UpsideDownCouchTermFieldReader) Advance ¶
func (r *UpsideDownCouchTermFieldReader) Advance(docID index.IndexInternalID, preAlloced *index.TermFieldDoc) (rv *index.TermFieldDoc, err error)
func (*UpsideDownCouchTermFieldReader) Close ¶
func (r *UpsideDownCouchTermFieldReader) Close() error
func (*UpsideDownCouchTermFieldReader) Count ¶
func (r *UpsideDownCouchTermFieldReader) Count() uint64
func (*UpsideDownCouchTermFieldReader) Next ¶
func (r *UpsideDownCouchTermFieldReader) Next(preAlloced *index.TermFieldDoc) (*index.TermFieldDoc, error)
func (*UpsideDownCouchTermFieldReader) Size ¶
func (r *UpsideDownCouchTermFieldReader) Size() int
type VersionRow ¶
type VersionRow struct {
// contains filtered or unexported fields
}
func NewVersionRow ¶
func NewVersionRow(version uint8) *VersionRow
func NewVersionRowKV ¶
func NewVersionRowKV(key, value []byte) (*VersionRow, error)
func (*VersionRow) Key ¶
func (v *VersionRow) Key() []byte
func (*VersionRow) KeySize ¶
func (v *VersionRow) KeySize() int
func (*VersionRow) String ¶
func (v *VersionRow) String() string
func (*VersionRow) Value ¶
func (v *VersionRow) Value() []byte
func (*VersionRow) ValueSize ¶
func (v *VersionRow) ValueSize() int
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
store
|
|
boltdb
Package boltdb implements a store.KVStore on top of BoltDB.
|
Package boltdb implements a store.KVStore on top of BoltDB. |
gtreap
Package gtreap provides an in-memory implementation of the KVStore interfaces using the gtreap balanced-binary treap, copy-on-write data structure.
|
Package gtreap provides an in-memory implementation of the KVStore interfaces using the gtreap balanced-binary treap, copy-on-write data structure. |
metrics
Package metrics provides a bleve.store.KVStore implementation that wraps another, real KVStore implementation, and uses go-metrics to track runtime performance metrics.
|
Package metrics provides a bleve.store.KVStore implementation that wraps another, real KVStore implementation, and uses go-metrics to track runtime performance metrics. |
Click to show internal directories.
Click to hide internal directories.