util

package
v0.0.0-...-397f8ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHandleFromRowKey

func DecodeHandleFromRowKey(rk string) (int64, error)

DecodeHandleFromRowKey decodes the string form a row key and returns an int64.

func DelKeyWithPrefix

func DelKeyWithPrefix(ctx context.Context, prefix string) error

DelKeyWithPrefix deletes keys with prefix.

func EncodeRecordKey

func EncodeRecordKey(tablePrefix string, h int64, columnID int64) []byte

EncodeRecordKey encodes the string value to a byte slice.

func RowKeyPrefixFilter

func RowKeyPrefixFilter(rowKeyPrefix []byte) kv.FnKeyCmp

RowKeyPrefixFilter returns a function which checks whether currentKey has decoded rowKeyPrefix as prefix.

func ScanMetaWithPrefix

func ScanMetaWithPrefix(txn kv.Transaction, prefix string, filter func([]byte, []byte) bool) error

ScanMetaWithPrefix scans metadata with the prefix.

Types

This section is empty.

Directories

Path Synopsis
Package mock is just for test only.
Package mock is just for test only.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL