Documentation ¶
Index ¶
- func BackOff(attempts uint) int
- type Iterator
- type Tikv
- func (tikv *Tikv) BatchInTxn(f func(txn interface{}) (interface{}, error)) (interface{}, error)
- func (tikv *Tikv) BatchWithTxn(f func(txn interface{}) (interface{}, error), txn1 interface{}) (interface{}, error)
- func (tikv *Tikv) Close() error
- func (tikv *Tikv) Delete(keys [][]byte) (int, error)
- func (tikv *Tikv) DeleteRange(start []byte, end []byte, limit uint64) (uint64, error)
- func (tikv *Tikv) DeleteRangeWithTxn(start []byte, end []byte, limit uint64, txn1 interface{}) (uint64, error)
- func (tikv *Tikv) DeleteWithTxn(keys [][]byte, txn interface{}) (int, error)
- func (tikv *Tikv) Get(key []byte) ([]byte, error)
- func (tikv *Tikv) GetNewestSnapshot() (interface{}, error)
- func (tikv *Tikv) GetRangeKeys(start []byte, end []byte, offset, limit uint64, snapshot interface{}) ([][]byte, error)
- func (tikv *Tikv) GetRangeKeysCount(start []byte, withstart bool, end []byte, withend bool, limit uint64, ...) (uint64, error)
- func (tikv *Tikv) GetRangeKeysCountWithTxn(start []byte, withstart bool, end []byte, withend bool, limit uint64, ...) (uint64, error)
- func (tikv *Tikv) GetRangeKeysVals(start []byte, end []byte, limit uint64, snapshot interface{}) ([][]byte, error)
- func (tikv *Tikv) GetRangeKeysValsWithTxn(start []byte, end []byte, limit uint64, txn1 interface{}) ([][]byte, error)
- func (tikv *Tikv) GetRangeKeysWithFrontier(start []byte, withstart bool, end []byte, withend bool, offset, limit uint64, ...) ([][]byte, error)
- func (tikv *Tikv) GetRangeKeysWithFrontierWithTxn(start []byte, withstart bool, end []byte, withend bool, offset, limit uint64, ...) ([][]byte, error)
- func (tikv *Tikv) GetRangeKeysWithTxn(start []byte, end []byte, offset, limit uint64, txn interface{}) ([][]byte, error)
- func (tikv *Tikv) GetRangeVals(start []byte, end []byte, limit uint64, snapshot interface{}) ([][]byte, error)
- func (tikv *Tikv) GetRangeValsWithTxn(start []byte, end []byte, limit uint64, txn1 interface{}) ([][]byte, error)
- func (tikv *Tikv) GetRank(start, end, obj []byte, snapshot interface{}) (int64, bool, error)
- func (tikv *Tikv) GetRankWithTxn(start, end, obj []byte, txn interface{}) (int64, bool, error)
- func (tikv *Tikv) GetTxnRetry() int
- func (tikv *Tikv) GetWithSnapshot(key []byte, ss interface{}) ([]byte, error)
- func (tikv *Tikv) GetWithTxn(key []byte, txn1 interface{}) ([]byte, error)
- func (tikv *Tikv) GetWithVersion(key []byte, version uint64) ([]byte, error)
- func (tikv *Tikv) MGet(keys [][]byte) (map[string][]byte, error)
- func (tikv *Tikv) MGetWithSnapshot(keys [][]byte, ss interface{}) (map[string][]byte, error)
- func (tikv *Tikv) MGetWithTxn(keys [][]byte, txn interface{}) (map[string][]byte, error)
- func (tikv *Tikv) MGetWithVersion(keys [][]byte, version uint64) (map[string][]byte, error)
- func (tikv *Tikv) MSet(kvm map[string][]byte) (int, error)
- func (tikv *Tikv) MSetWithTxn(kvm map[string][]byte, txn interface{}) (int, error)
- func (tikv *Tikv) NewTxn() (interface{}, error)
- func (tikv *Tikv) Set(key []byte, value []byte) error
- func (tikv *Tikv) SetTxnRetry(count int)
- func (tikv *Tikv) SetWithTxn(key []byte, value []byte, txn interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
func NewIterator ¶
reverse not support by tikv yet
type Tikv ¶
type Tikv struct {
// contains filtered or unexported fields
}
func (*Tikv) BatchInTxn ¶
func (*Tikv) BatchWithTxn ¶
func (*Tikv) DeleteRange ¶
func (*Tikv) DeleteRangeWithTxn ¶
func (*Tikv) DeleteWithTxn ¶
func (*Tikv) GetNewestSnapshot ¶
func (*Tikv) GetRangeKeys ¶
func (*Tikv) GetRangeKeysCount ¶
func (*Tikv) GetRangeKeysCountWithTxn ¶
func (*Tikv) GetRangeKeysVals ¶
func (*Tikv) GetRangeKeysValsWithTxn ¶
func (*Tikv) GetRangeKeysWithFrontier ¶
func (*Tikv) GetRangeKeysWithFrontierWithTxn ¶
func (*Tikv) GetRangeKeysWithTxn ¶
func (*Tikv) GetRangeVals ¶
func (*Tikv) GetRangeValsWithTxn ¶
func (*Tikv) GetRankWithTxn ¶
func (*Tikv) GetTxnRetry ¶
func (*Tikv) GetWithSnapshot ¶
func (*Tikv) GetWithTxn ¶
func (*Tikv) GetWithVersion ¶
func (*Tikv) MGetWithSnapshot ¶
func (*Tikv) MGetWithTxn ¶
func (*Tikv) MGetWithVersion ¶
func (*Tikv) MSetWithTxn ¶
func (*Tikv) SetTxnRetry ¶
Click to show internal directories.
Click to hide internal directories.