Documentation ¶
Overview ¶
Package upside_down is a generated protocol buffer package.
It is generated from these files:
upside_down.proto
It has these top-level messages:
BackIndexTermEntry BackIndexStoreEntry BackIndexRowValue
Index ¶
- Constants
- Variables
- func AnalysisWorker(q AnalysisQueue)
- type AnalysisQueue
- type AnalysisResult
- type AnalysisWork
- type BackIndexRow
- type BackIndexRowValue
- type BackIndexStoreEntry
- type BackIndexTermEntry
- type FieldIndexCache
- type FieldRow
- type IndexReader
- func (i *IndexReader) Close()
- func (i *IndexReader) DocCount() uint64
- func (i *IndexReader) DocIDReader(start, end string) (index.DocIDReader, error)
- func (i *IndexReader) Document(id string) (*document.Document, error)
- func (i *IndexReader) DocumentFieldTerms(id string) (index.FieldTerms, error)
- func (i *IndexReader) FieldReader(fieldName string, startTerm []byte, endTerm []byte) (index.FieldReader, error)
- func (i *IndexReader) Fields() ([]string, error)
- func (i *IndexReader) GetInternal(key []byte) ([]byte, error)
- func (i *IndexReader) TermFieldReader(term []byte, fieldName string) (index.TermFieldReader, error)
- type InternalRow
- type StoredRow
- type TermFrequencyRow
- func NewTermFrequencyRow(term []byte, field uint16, doc string, freq uint64, norm float32) *TermFrequencyRow
- func NewTermFrequencyRowK(key []byte) (*TermFrequencyRow, error)
- func NewTermFrequencyRowKV(key, value []byte) (*TermFrequencyRow, error)
- func NewTermFrequencyRowWithTermVectors(term []byte, field uint16, doc string, freq uint64, norm float32, ...) *TermFrequencyRow
- func (tfr *TermFrequencyRow) Key() []byte
- func (tfr *TermFrequencyRow) ScanPrefixForField() []byte
- func (tfr *TermFrequencyRow) ScanPrefixForFieldTerm() []byte
- func (tfr *TermFrequencyRow) ScanPrefixForFieldTermPrefix() []byte
- func (tfr *TermFrequencyRow) String() string
- func (tfr *TermFrequencyRow) SummaryKey() []byte
- func (tfr *TermFrequencyRow) Value() []byte
- type TermVector
- type UpsideDownCouch
- func (udc *UpsideDownCouch) Batch(batch index.Batch) error
- func (udc *UpsideDownCouch) Close()
- func (udc *UpsideDownCouch) Delete(id string) error
- func (udc *UpsideDownCouch) DeleteInternal(key []byte) error
- func (udc *UpsideDownCouch) DocCount() uint64
- func (udc *UpsideDownCouch) DumpAll() chan interface{}
- func (udc *UpsideDownCouch) DumpDoc(id string) chan interface{}
- func (udc *UpsideDownCouch) DumpFields() chan interface{}
- func (udc *UpsideDownCouch) Open() error
- func (udc *UpsideDownCouch) Reader() index.IndexReader
- func (udc *UpsideDownCouch) SetInternal(key, val []byte) error
- func (udc *UpsideDownCouch) Stats() json.Marshaler
- func (udc *UpsideDownCouch) Update(doc *document.Document) error
- type UpsideDownCouchDocIDReader
- type UpsideDownCouchFieldReader
- type UpsideDownCouchRow
- type UpsideDownCouchRowStream
- type UpsideDownCouchTermFieldReader
- type VersionRow
Constants ¶
View Source
const ByteSeparator byte = 0xff
View Source
const Version uint8 = 1
Variables ¶
View Source
var VersionKey = []byte{'v'}
Functions ¶
func AnalysisWorker ¶
func AnalysisWorker(q AnalysisQueue)
Types ¶
type AnalysisQueue ¶
type AnalysisQueue chan AnalysisWork
func NewAnalysisQueue ¶
func NewAnalysisQueue(numWorkers int) AnalysisQueue
type AnalysisResult ¶
type AnalysisResult struct {
// contains filtered or unexported fields
}
type AnalysisWork ¶
type AnalysisWork struct {
// contains filtered or unexported fields
}
type BackIndexRow ¶
type BackIndexRow struct {
// contains filtered or unexported fields
}
func NewBackIndexRow ¶
func NewBackIndexRow(doc string, entries []*BackIndexTermEntry, 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) String ¶
func (br *BackIndexRow) String() string
func (*BackIndexRow) Value ¶
func (br *BackIndexRow) Value() []byte
type BackIndexRowValue ¶
type BackIndexRowValue struct { TermEntries []*BackIndexTermEntry `protobuf:"bytes,1,rep,name=termEntries" json:"termEntries,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) GetTermEntries ¶
func (m *BackIndexRowValue) GetTermEntries() []*BackIndexTermEntry
func (*BackIndexRowValue) ProtoMessage ¶
func (*BackIndexRowValue) ProtoMessage()
func (*BackIndexRowValue) Reset ¶
func (m *BackIndexRowValue) Reset()
func (*BackIndexRowValue) String ¶
func (m *BackIndexRowValue) String() string
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) ProtoMessage ¶
func (*BackIndexStoreEntry) ProtoMessage()
func (*BackIndexStoreEntry) Reset ¶
func (m *BackIndexStoreEntry) Reset()
func (*BackIndexStoreEntry) String ¶
func (m *BackIndexStoreEntry) String() string
type BackIndexTermEntry ¶
type BackIndexTermEntry struct { Term *string `protobuf:"bytes,1,req,name=term" json:"term,omitempty"` Field *uint32 `protobuf:"varint,2,req,name=field" json:"field,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*BackIndexTermEntry) GetField ¶
func (m *BackIndexTermEntry) GetField() uint32
func (*BackIndexTermEntry) GetTerm ¶
func (m *BackIndexTermEntry) GetTerm() string
func (*BackIndexTermEntry) ProtoMessage ¶
func (*BackIndexTermEntry) ProtoMessage()
func (*BackIndexTermEntry) Reset ¶
func (m *BackIndexTermEntry) Reset()
func (*BackIndexTermEntry) String ¶
func (m *BackIndexTermEntry) String() string
type FieldIndexCache ¶
type FieldIndexCache struct {
// contains filtered or unexported fields
}
func NewFieldIndexCache ¶
func NewFieldIndexCache() *FieldIndexCache
func (*FieldIndexCache) AddExisting ¶
func (f *FieldIndexCache) AddExisting(field string, index uint16)
func (*FieldIndexCache) FieldExists ¶
func (f *FieldIndexCache) FieldExists(field string) (uint16, bool)
func (*FieldIndexCache) FieldIndex ¶
func (f *FieldIndexCache) FieldIndex(field string) (uint16, *FieldRow)
func (*FieldIndexCache) FieldName ¶
func (f *FieldIndexCache) FieldName(index uint16) string
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()
func (*IndexReader) DocCount ¶
func (i *IndexReader) DocCount() uint64
func (*IndexReader) DocIDReader ¶
func (i *IndexReader) DocIDReader(start, end string) (index.DocIDReader, error)
func (*IndexReader) Document ¶
func (i *IndexReader) Document(id string) (*document.Document, error)
func (*IndexReader) DocumentFieldTerms ¶
func (i *IndexReader) DocumentFieldTerms(id string) (index.FieldTerms, error)
func (*IndexReader) FieldReader ¶
func (i *IndexReader) FieldReader(fieldName string, startTerm []byte, endTerm []byte) (index.FieldReader, error)
func (*IndexReader) Fields ¶
func (i *IndexReader) Fields() ([]string, error)
func (*IndexReader) GetInternal ¶
func (i *IndexReader) GetInternal(key []byte) ([]byte, error)
func (*IndexReader) TermFieldReader ¶
func (i *IndexReader) TermFieldReader(term []byte, fieldName string) (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) String ¶
func (i *InternalRow) String() string
func (*InternalRow) Value ¶
func (i *InternalRow) Value() []byte
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 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, doc string, freq uint64, norm float32, vectors []*TermVector) *TermFrequencyRow
func (*TermFrequencyRow) Key ¶
func (tfr *TermFrequencyRow) Key() []byte
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) String ¶
func (tfr *TermFrequencyRow) String() string
func (*TermFrequencyRow) SummaryKey ¶
func (tfr *TermFrequencyRow) SummaryKey() []byte
func (*TermFrequencyRow) Value ¶
func (tfr *TermFrequencyRow) Value() []byte
type TermVector ¶
type TermVector struct {
// contains filtered or unexported fields
}
func (*TermVector) String ¶
func (tv *TermVector) String() string
type UpsideDownCouch ¶
type UpsideDownCouch struct {
// contains filtered or unexported fields
}
func NewUpsideDownCouch ¶
func NewUpsideDownCouch(s store.KVStore, analysisQueue AnalysisQueue) *UpsideDownCouch
func (*UpsideDownCouch) Close ¶
func (udc *UpsideDownCouch) Close()
func (*UpsideDownCouch) Delete ¶
func (udc *UpsideDownCouch) Delete(id string) error
func (*UpsideDownCouch) DeleteInternal ¶
func (udc *UpsideDownCouch) DeleteInternal(key []byte) error
func (*UpsideDownCouch) DocCount ¶
func (udc *UpsideDownCouch) DocCount() uint64
func (*UpsideDownCouch) DumpAll ¶
func (udc *UpsideDownCouch) DumpAll() chan interface{}
func (*UpsideDownCouch) DumpDoc ¶
func (udc *UpsideDownCouch) DumpDoc(id string) chan interface{}
DumpDoc returns all rows in the index related to this doc id
func (*UpsideDownCouch) DumpFields ¶
func (udc *UpsideDownCouch) DumpFields() chan interface{}
func (*UpsideDownCouch) Open ¶
func (udc *UpsideDownCouch) Open() error
func (*UpsideDownCouch) Reader ¶
func (udc *UpsideDownCouch) Reader() index.IndexReader
func (*UpsideDownCouch) SetInternal ¶
func (udc *UpsideDownCouch) SetInternal(key, val []byte) error
func (*UpsideDownCouch) Stats ¶
func (udc *UpsideDownCouch) Stats() json.Marshaler
type UpsideDownCouchDocIDReader ¶
type UpsideDownCouchDocIDReader struct {
// contains filtered or unexported fields
}
func (*UpsideDownCouchDocIDReader) Advance ¶
func (r *UpsideDownCouchDocIDReader) Advance(docID string) (string, error)
func (*UpsideDownCouchDocIDReader) Close ¶
func (r *UpsideDownCouchDocIDReader) Close()
func (*UpsideDownCouchDocIDReader) Next ¶
func (r *UpsideDownCouchDocIDReader) Next() (string, error)
type UpsideDownCouchFieldReader ¶
type UpsideDownCouchFieldReader struct {
// contains filtered or unexported fields
}
func (*UpsideDownCouchFieldReader) Close ¶
func (r *UpsideDownCouchFieldReader) Close()
func (*UpsideDownCouchFieldReader) Next ¶
func (r *UpsideDownCouchFieldReader) Next() (*index.TermFieldDoc, error)
type UpsideDownCouchRow ¶
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 string) (*index.TermFieldDoc, error)
func (*UpsideDownCouchTermFieldReader) Close ¶
func (r *UpsideDownCouchTermFieldReader) Close()
func (*UpsideDownCouchTermFieldReader) Count ¶
func (r *UpsideDownCouchTermFieldReader) Count() uint64
func (*UpsideDownCouchTermFieldReader) Next ¶
func (r *UpsideDownCouchTermFieldReader) Next() (*index.TermFieldDoc, error)
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) String ¶
func (v *VersionRow) String() string
func (*VersionRow) Value ¶
func (v *VersionRow) Value() []byte
Click to show internal directories.
Click to hide internal directories.