Documentation ¶
Index ¶
- Variables
- func ColumnInfoKey(columnId uint64) []byte
- func ColumnKey(tid uint64, columnName string) []byte
- func DBInfoKey(dbId uint64) []byte
- func DecodeBDInfo(buf []byte) *model.DBInfo
- func DecodeColumnInfo(buf []byte, dst *model.ColumnInfo) *model.ColumnInfo
- func DecodeIndexInfo(buf []byte, dst *model.IndexInfo) *model.IndexInfo
- func DecodeMatcherInfo(buf []byte, dst *model.MatcherInfo) *model.MatcherInfo
- func DecodeTableInfo(buf []byte, dst *model.TableInfo) *model.TableInfo
- func DecodeValue(bytes []byte, p bsontype.Type) value.Value
- func EncodeCmpValue(v value.Value) []byte
- func EncodeColumnInfo(info *model.ColumnInfo) []byte
- func EncodeDBInfo(info *model.DBInfo) []byte
- func EncodeIndexInfo(info *model.IndexInfo) []byte
- func EncodeMatcherInfo(info *model.MatcherInfo) []byte
- func EncodeTableInfo(info *model.TableInfo) []byte
- func EncodeValue(v value.Value) []byte
- func EncodeValues(vs value.Values) [][]byte
- func IndexEntries(index *model.IndexInfo, tuple btuple.Reader, rid primitive.ObjectID, ...) (err error)
- func IndexEntry(indexInfo *model.IndexInfo, columns []*model.ColumnInfo, tuple btuple.Reader, ...) (key, value []byte)
- func IndexEntryKey(indexInfo *model.IndexInfo, columns []*model.ColumnInfo, tuple btuple.Reader, ...) []byte
- func IndexInfoKey(matcherId uint64) []byte
- func IndexKey(tid uint64, indexName string) []byte
- func MatcherInfoKey(matcherId uint64) []byte
- func MatcherKey(did uint64, matcherName string) []byte
- func MetaKey(namespace string) []byte
- func ParseTupleRecordKey(b []byte) (primitive.ObjectID, error)
- func ParseTupleRecordKeyFromPrimaryIndex(b []byte) (primitive.ObjectID, error)
- func ParseTupleRecordKeyFromSecondaryIndex(b []byte) (primitive.ObjectID, error)
- func PrimaryIndexEntryKey(indexId uint64, columnValue []byte) []byte
- func SecondaryIndexEntryKey(indexId uint64, columnValue []byte, rId []byte) []byte
- func TableInfoKey(tableId uint64) []byte
- func TableKey(did uint64, tableName string) []byte
- func TupleRecordBegin(tableId uint64) []byte
- func TupleRecordKey(tableId uint64, rid primitive.ObjectID) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidKey = errors.New("invalid key")
)
View Source
var (
Sep = []byte("_")
)
Functions ¶
func DecodeBDInfo ¶
func DecodeColumnInfo ¶
func DecodeColumnInfo(buf []byte, dst *model.ColumnInfo) *model.ColumnInfo
func DecodeMatcherInfo ¶
func DecodeMatcherInfo(buf []byte, dst *model.MatcherInfo) *model.MatcherInfo
func EncodeCmpValue ¶
func EncodeColumnInfo ¶
func EncodeColumnInfo(info *model.ColumnInfo) []byte
func EncodeDBInfo ¶
func EncodeIndexInfo ¶
func EncodeMatcherInfo ¶
func EncodeMatcherInfo(info *model.MatcherInfo) []byte
func EncodeTableInfo ¶
func EncodeValue ¶
func EncodeValues ¶
func IndexEntries ¶
func IndexEntry ¶
func IndexEntryKey ¶
func MatcherKey ¶
MatcherKey key: m_d{did}_m{matcher}
func ParseTupleRecordKeyFromSecondaryIndex ¶
ParseTupleRecordKeyFromSecondaryIndex parse r_id form i{index_id}_{index_column_value}_{r_id} form
func PrimaryIndexEntryKey ¶
PrimaryIndexEntryKey i{index_id}_{columns_value}}
func SecondaryIndexEntryKey ¶
SecondaryIndexEntryKey i{index_id}_{leftmost_column_value}_{r_id}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.