WeaviateObject class

A class representing a Weaviate object.

Use this class to define a Weaviate object with its class, properties, and additional metadata.

Annotations
  • @JsonSerializable()

Constructors

WeaviateObject({required String className, JsonObject? vectorWeights, JsonObject? properties, String? id, int? creationTimeUnix, int? lastUpdateTimeUnix, List<double>? vector, JsonObject? vectors, String? tenant, JsonObject? additional})
Creates a new WeaviateObject instance.
WeaviateObject.fromJson(JsonObject json)
Creates a WeaviateObject instance from a JSON map.
factory

Properties

additional JsonObject?
(Response only) Additional meta information about a single object.
final
className String
The class of the Weaviate object.
final
creationTimeUnix int?
(Response only) Timestamp of creation of this object in milliseconds since epoch UTC.
final
hashCode int
The hash code for this object.
no setterinherited
id String?
The ID of the Weaviate object.
final
lastUpdateTimeUnix int?
(Response only) Timestamp of the last object update in milliseconds since epoch UTC.
final
properties JsonObject?
The properties of the Weaviate object.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tenant String?
Name of the tenant.
final
vector List<double>?
The vector associated with the Weaviate object.
final
vectors JsonObject?
This field returns vectors associated with the Object.
final
vectorWeights JsonObject?
Allow custom overrides of vector weights as math expressions in word-based vectorization models. E.g. "pancake": "7" will set the weight for the word pancake to 7 in the vectorization, whereas "w * 3" would triple the originally calculated word.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() JsonObject
Converts the WeaviateObject instance to a JSON map.
toString() String
A string representation of this object.
override

Operators

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