IndexDatapoint class final

A datapoint of Index.

Inheritance
  • Object
  • ProtoMessage
  • IndexDatapoint

Constructors

IndexDatapoint({required String datapointId, required List<double> featureVector, IndexDatapoint_SparseEmbedding? sparseEmbedding, List<IndexDatapoint_Restriction> restricts = const [], List<IndexDatapoint_NumericRestriction> numericRestricts = const [], IndexDatapoint_CrowdingTag? crowdingTag, Struct? embeddingMetadata})
IndexDatapoint.fromJson(Object? j)
factory

Properties

crowdingTag IndexDatapoint_CrowdingTag?
Optional. CrowdingTag of the datapoint, the number of neighbors to return in each crowding can be configured during query.
final
datapointId String
Required. Unique identifier of the datapoint.
final
embeddingMetadata → Struct?
Optional. The key-value map of additional metadata for the datapoint.
final
featureVector List<double>
Required. Feature embedding vector for dense index. An array of numbers with the length of NearestNeighborSearchConfig.dimensions.
final
hashCode int
The hash code for this object.
no setterinherited
numericRestricts List<IndexDatapoint_NumericRestriction>
Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses numeric comparisons.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
restricts List<IndexDatapoint_Restriction>
Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sparseEmbedding IndexDatapoint_SparseEmbedding?
Optional. Feature embedding vector for sparse index.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
override
toString() String
A string representation of this object.
override

Operators

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

Constants

fullyQualifiedName → const String