Documentation ¶
Index ¶
- Constants
- Variables
- func GetDefault(ctx context.Context, kind, ns string) (store kv.KVStore, err error)
- func New(mo kv.MergeOperator, logger gae.LogInt, dbi gae.DbExInt, namespace []byte) (kv.KVStore, error)
- type Batch
- type Iterator
- func (this *Iterator) Close() error
- func (this *Iterator) Count() (n int)
- func (this *Iterator) Current() ([]byte, []byte, bool)
- func (this Iterator) Error() error
- func (this *Iterator) Key() []byte
- func (this *Iterator) Next()
- func (this *Iterator) Reset()
- func (this *Iterator) Reset0()
- func (this *Iterator) Seek(key []byte)
- func (this *Iterator) Valid() bool
- func (this *Iterator) Value() []byte
- type Reader
- func (this *Reader) Close() error
- func (this *Reader) Get(key []byte) (v []byte, err error)
- func (this *Reader) MultiGet(keys [][]byte) (vv [][]byte, err error)
- func (this *Reader) PrefixIterator(prefix []byte) (pt kv.KVIterator)
- func (this *Reader) PrefixIterator0(prefix []byte) (pt kv.KVIterator)
- func (this *Reader) RangeIterator(start, end []byte) (rt kv.KVIterator)
- func (this *Reader) RangeIterator0(start, end []byte) (rt kv.KVIterator)
- func (this *Reader) ReversePrefixIterator(prefix []byte) (t kv.KVIterator)
- func (this *Reader) ReverseRangeIterator(start, end []byte) (t kv.KVIterator)
- type Store
- type Writer
Constants ¶
View Source
const C_Klimit = 500
View Source
const C_Kmetasize = 4
View Source
const C_Kmincompress = 120
View Source
const C_Kreserved = 16
View Source
const C_Ksepbyte = 0x7f
Variables ¶
View Source
var C_Kterminator = []byte{0x7f, 0x7f}
View Source
var C_Vlimit = (1024 << 10) // 1MB
View Source
var ErrInvalidValue = errors.New("invalid size for value.")
Functions ¶
func GetDefault ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) PrefixIterator ¶
func (this *Reader) PrefixIterator(prefix []byte) (pt kv.KVIterator)
func (*Reader) PrefixIterator0 ¶
func (this *Reader) PrefixIterator0(prefix []byte) (pt kv.KVIterator)
func (*Reader) RangeIterator ¶
func (this *Reader) RangeIterator(start, end []byte) (rt kv.KVIterator)
func (*Reader) RangeIterator0 ¶
func (this *Reader) RangeIterator0(start, end []byte) (rt kv.KVIterator)
func (*Reader) ReversePrefixIterator ¶
func (this *Reader) ReversePrefixIterator(prefix []byte) (t kv.KVIterator)
func (*Reader) ReverseRangeIterator ¶
func (this *Reader) ReverseRangeIterator(start, end []byte) (t kv.KVIterator)
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) NewBatchEx ¶
Click to show internal directories.
Click to hide internal directories.