Documentation ¶
Index ¶
- Constants
- Variables
- type KVStore
- func (s *KVStore) Close() error
- func (s *KVStore) FetchABI(ctx context.Context, prefixKey, keyStart, keyEnd string) (rowKey string, rawABI []byte, err error)
- func (s *KVStore) FetchIndex(ctx context.Context, tableKey, prefixKey, keyStart string) (rowKey string, rawIndex []byte, err error)
- func (s *KVStore) FetchLastWrittenBlock(ctx context.Context, key string) (out bstream.BlockRef, err error)
- func (s *KVStore) FetchTabletRow(ctx context.Context, key string, onTabletRow store.OnTabletRow) error
- func (s *KVStore) FetchTabletRows(ctx context.Context, keys []string, onTabletRow store.OnTabletRow) error
- func (s *KVStore) HasTabletRow(ctx context.Context, keyPrefix string) (exists bool, err error)
- func (s *KVStore) NewBatch(logger *zap.Logger) store.Batch
- func (s *KVStore) ScanLastShardsWrittenBlock(ctx context.Context, keyPrefix string, onBlockRef store.OnBlockRef) error
- func (s *KVStore) ScanTabletRows(ctx context.Context, keyStart, keyEnd string, onTabletRow store.OnTabletRow) error
Constants ¶
View Source
const ( TblPrefixRows = 0x00 TblPrefixIndex = 0x01 TblPrefixABIs = 0x02 TblPrefixLast = 0x03 )
Variables ¶
View Source
var TableMapper = map[byte]string{}
View Source
var TblPrefixName = map[byte]string{
TblPrefixRows: "tablet",
TblPrefixIndex: "index",
TblPrefixABIs: "abi",
TblPrefixLast: "block",
}
Functions ¶
This section is empty.
Types ¶
type KVStore ¶
type KVStore struct {
// contains filtered or unexported fields
}
func (*KVStore) FetchIndex ¶
func (*KVStore) FetchLastWrittenBlock ¶
func (*KVStore) FetchTabletRow ¶
func (*KVStore) FetchTabletRows ¶
func (*KVStore) HasTabletRow ¶
func (*KVStore) ScanLastShardsWrittenBlock ¶
func (*KVStore) ScanTabletRows ¶
Click to show internal directories.
Click to hide internal directories.