package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev

# Functions

BuildKeyspaceSchema builds the vschema portion for one keyspace.
BuildVSchema builds a VSchema from a SrvVSchema.
CreateVindex creates a vindex of the specified type using the supplied params.
LoadFormal loads the JSON representation of VSchema from a file.
LoadFormalKeyspace loads the JSON representation of VSchema from a file, for a single keyspace.
NewBinary creates a new Binary.
NewBinaryMD5 creates a new BinaryMD5.
NewHash creates a new Hash.
NewLookup creates a LookupNonUnique vindex.
NewLookupHash creates a LookupHash vindex.
NewLookupHashUnique creates a LookupHashUnique vindex.
NewLookupUnicodeLooseMD5Hash creates a LookupUnicodeLooseMD5Hash vindex.
NewLookupUnicodeLooseMD5HashUnique creates a LookupUnicodeLooseMD5HashUnique vindex.
NewLookupUnique creates a LookupUnique vindex.
NewNull creates a new Null.
NewNumeric creates a Numeric vindex.
NewNumericStaticMap creates a NumericStaticMap vindex.
NewReverseBits creates a new ReverseBits.
NewUnicodeLooseMD5 creates a new UnicodeLooseMD5.
Register registers a vindex under the specified vindexType.
ValidateKeyspace ensures that the keyspace vschema is valid.

# Structs

AutoIncrement contains the auto-inc information for a table.
Binary is a vindex that converts binary bits to a keyspace id.
BinaryMD5 is a vindex that hashes binary bits to a keyspace id.
Column describes a column.
ColumnVindex contains the index info for each index of a table.
Hash defines vindex that hashes an int64 to a KeyspaceId by using null-key 3DES hash.
Keyspace contains the keyspcae info for each Table.
KeyspaceSchema contains the schema(table) for a keyspace.
LookupHash defines a vindex that uses a lookup table.
LookupHashUnique defines a vindex that uses a lookup table.
LookupNonUnique defines a vindex that uses a lookup table and create a mapping between from ids and KeyspaceId.
LookupUnicodeLooseMD5Hash defines a vindex that uses a lookup table.
LookupUnicodeLooseMD5HashUnique defines a vindex that uses a lookup table.
LookupUnique defines a vindex that uses a lookup table.
Null defines a vindex that always return 0.
Numeric defines a bit-pattern mapping of a uint64 to the KeyspaceId.
NumericStaticMap is similar to vindex Numeric but first attempts a lookup via a JSON file.
ReverseBits defines vindex that reverses the bits of a number.
Table represents a table in VSchema.
UnicodeLooseMD5 is a vindex that normalizes and hashes unicode strings to a keyspace id.
VSchema represents the denormalized version of SrvVSchema, used for building routing plans.

# Interfaces

A Lookup vindex is one that needs to lookup a previously stored map to compute the keyspace id from an id.
A Reversible vindex is one that can perform a reverse lookup from a keyspace id to an id.
A VCursor is an interface that allows you to execute queries in the current context and session of a VTGate request.
Vindex defines the interface required to register a vindex.

# Type aliases

ByCost provides the interface needed for ColumnVindexes to be sorted by cost order.
A NewVindexFunc is a function that creates a Vindex based on the properties specified in the input map.
NumericLookupTable stores the mapping of keys.