Expand description
This module provides traits that define the behavior of a schema and its associated key and value types, along with helpers to define a new schema with ease.
Traits§
- KeyCodec
- This trait defines a type that can serve as a
Schema::Key
. - Schema
- This trait defines a schema: an association of a column family name, the key type and the value type.
- Seek
KeyCodec - This defines a type that can be used to seek a
SchemaIterator
, via interfaces likeseek
. - Value
Codec - This trait defines a type that can serve as a
Schema::Value
.
Functions§
- assert_
encode_ decode - Helper used in tests to assert a (key, value) pair for a certain
Schema
is able to convert to bytes and convert back.