PartitionKeyRange class
Class representing a partition key range.
- Inheritance
-
- Object
- BaseDocument
- BaseDocumentWithEtag
- PartitionKeyRange
Constructors
- PartitionKeyRange(String id, String minInclusive, String maxExclusive)
Properties
- etag → String
-
The document's
etag
property.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The document's id.
final
- maxExclusive → String
-
final
- minInclusive → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
contains(
PartitionKeyHashV2 hash) → bool -
Returns
true
is this partition key range contains the specifiedhash
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setEtag(
Map json) → void -
Set
etag
from a JSON map; to be called by DocumentBuilder methods.inherited -
toJson(
) → dynamic -
Serializes this instance to a JSON object.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
dynamic json) → PartitionKeyRange -
Deserializes data from JSON object
json
into a new PartitionKeyRange instance. Handles fieldsid
,minInclusive
,maxExclusive
.