Documentation ¶
Index ¶
- func NewIndexEngine(name string) (engine api.Finder)
- func OpenIndexEngine(name string) (engine api.Finder)
- type LevelDBEngine
- func (ldb *LevelDBEngine) Close() error
- func (ldb *LevelDBEngine) CountRange(low api.Key, high api.Key, inclusion api.Inclusion) (uint64, error)
- func (ldb *LevelDBEngine) CountTotal() (uint64, error)
- func (ldb *LevelDBEngine) DeleteMutation(docid string) error
- func (ldb *LevelDBEngine) Destroy() error
- func (ldb *LevelDBEngine) Exists(key api.Key) bool
- func (ldb *LevelDBEngine) GetBackIndexEntry(docid string) (api.Key, error)
- func (ldb *LevelDBEngine) GetKeySetForKeyRange(low api.Key, high api.Key, inclusion api.Inclusion, chkey chan api.Key, ...)
- func (ldb *LevelDBEngine) GetMeta(metaid string) (string, error)
- func (ldb *LevelDBEngine) GetValueSetForKeyRange(low api.Key, high api.Key, inclusion api.Inclusion, chval chan api.Value, ...)
- func (ldb *LevelDBEngine) InsertMeta(metaid string, metavalue string) error
- func (ldb *LevelDBEngine) InsertMutation(k api.Key, v api.Value) error
- func (ldb *LevelDBEngine) KeyRange(low, high api.Key, inclusion api.Inclusion) (chan api.Key, chan error, api.SortOrder)
- func (ldb *LevelDBEngine) KeySet() (chan api.Key, chan error)
- func (ldb *LevelDBEngine) Lookup(key api.Key) (chan api.Value, chan error)
- func (ldb *LevelDBEngine) Name() string
- func (ldb *LevelDBEngine) Trait(operator interface{}) api.TraitInfo
- func (ldb *LevelDBEngine) ValueRange(low, high api.Key, inclusion api.Inclusion) (chan api.Value, chan error, api.SortOrder)
- func (ldb *LevelDBEngine) ValueSet() (chan api.Value, chan error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIndexEngine ¶
func OpenIndexEngine ¶
Types ¶
type LevelDBEngine ¶
type LevelDBEngine struct {
// contains filtered or unexported fields
}
FIXME try to use single leveldb object, rather than all the elements here
func Create ¶
func Create(name string) (*LevelDBEngine, error)
func Open ¶
func Open(name string) (*LevelDBEngine, error)
func (*LevelDBEngine) Close ¶
func (ldb *LevelDBEngine) Close() error
func (*LevelDBEngine) CountRange ¶
func (*LevelDBEngine) CountTotal ¶
func (ldb *LevelDBEngine) CountTotal() (uint64, error)
api.Counter interface
func (*LevelDBEngine) DeleteMutation ¶
func (ldb *LevelDBEngine) DeleteMutation(docid string) error
func (*LevelDBEngine) Destroy ¶
func (ldb *LevelDBEngine) Destroy() error
func (*LevelDBEngine) Exists ¶
func (ldb *LevelDBEngine) Exists(key api.Key) bool
api.Exister interface
func (*LevelDBEngine) GetBackIndexEntry ¶
func (ldb *LevelDBEngine) GetBackIndexEntry(docid string) (api.Key, error)
func (*LevelDBEngine) GetKeySetForKeyRange ¶
func (*LevelDBEngine) GetValueSetForKeyRange ¶
func (*LevelDBEngine) InsertMeta ¶
func (ldb *LevelDBEngine) InsertMeta(metaid string, metavalue string) error
func (*LevelDBEngine) InsertMutation ¶
func (*LevelDBEngine) KeyRange ¶
func (ldb *LevelDBEngine) KeyRange(low, high api.Key, inclusion api.Inclusion) ( chan api.Key, chan error, api.SortOrder)
api.Ranger FIXME add limit parameter
func (*LevelDBEngine) KeySet ¶
func (ldb *LevelDBEngine) KeySet() (chan api.Key, chan error)
FIXME add limit parameter
func (*LevelDBEngine) Trait ¶
func (ldb *LevelDBEngine) Trait(operator interface{}) api.TraitInfo
Click to show internal directories.
Click to hide internal directories.