SerializedIndex class
Serializable index data structure.
Contains all information needed to reconstruct an index from disk.
Constructors
-
SerializedIndex({required String field, required IndexType type, required Map<
dynamic, Set< entries, int version = 1})String> > -
Creates a serialized index.
const
-
SerializedIndex.fromBytes(List<
int> bytes) -
Creates from CBOR bytes.
factory
Properties
-
entries
→ Map<
dynamic, Set< String> > -
The index entries as a map of key -> entity IDs.
final
- field → String
-
The field name this index is built on.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → IndexType
-
The type of index (btree or hash).
final
- version → int
-
Version for forward compatibility.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
) → List< int> - Converts to CBOR bytes for storage.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited