VxsSchema class final
An ordered set of VxsFields identified by a stable id.
Schema ids and versions are single bytes on disk, so a database supports at most 255 distinct schemas with 255 versions each.
Constructors
Properties
-
fields
→ List<
VxsField> -
Fields in ascending id order.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Schema id written into every document.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → int
-
Schema version this declaration represents.
final
Methods
-
fieldById(
int id) → VxsField? - Looks a field up by its stable id.
-
fieldByName(
String name) → VxsField? - Looks a field up by name.
-
hasField(
int id) → bool -
Whether
idis declared. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited