KoolbaseDocRef class

Document reference for single record operations

Constructors

KoolbaseDocRef({required String baseUrl, required String publicKey, required String recordId, Future<String?> accessTokenProvider()?, Future<void> onSessionExpired()?, CacheStore? cacheStore, String? userId, WriteQueue? writeQueue, Client? client})

Properties

baseUrl → String
final
hashCode → int
The hash code for this object.
no setterinherited
publicKey → String
final
recordId → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete({int? expectedRevision}) → Future<void>
Deletes the record.
deleteVector(String field) → Future<void>
Remove this record's stored vector on the named field.
get() → Future<KoolbaseRecord>
getSaved() → Future<KoolbaseRecord?>
The device's saved copy of this record: what this device last read, with the changes queued on it applied. Never contacts the server. Null when there is none: never read here, or deleted on this device.
getVector(String field) → Future<KoolbaseVector>
Read this record's stored vector on the named field.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setVector(String field, List<double> vector) → Future<void>
Write (or replace) a vector for this record on the named field.
toString() → String
A string representation of this object.
inherited
update(Map<String, dynamic> data, {int? expectedRevision}) → Future<KoolbaseRecord>
Applies a partial update, merging with what is already stored.

Operators

operator ==(Object other) → bool
The equality operator.
inherited