Package com.hazelcast.vector
Interface VectorValues
- All Known Subinterfaces:
- VectorValues.MultiIndexVectorValues,- VectorValues.SingleVectorValues
A 
VectorValues instance contains the vectors that describe a VectorDocument.
 VectorValues may come in different forms:
 - When a single vector index is defined in a VectorCollection, then a plainfloat[]can be used, as defined inVectorValues.SingleVectorValues
- When more than one vector index is defined, then the vector representation of a
     VectorDocumentrequires a mapping from index name to the associatedfloat[]vector .
- Since:
- 5.5
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceProvides a mapping from index name to vector, supplying vectors for aVectorCollectionwith multiple indexes defined.static interfaceRepresents values of a single vector.
- 
Method SummaryStatic MethodsModifier and TypeMethodDescriptionstatic VectorValuesof(float[] vector) Returns aVectorValuesobject suitable for supplying a single vector to aVectorCollectionconfigured with one vector index.static VectorValuesReturns aVectorValuesobject that represents a single named vector.static VectorValuesReturns aVectorValuesobject that represents two mappings of index names to associated vectors.static VectorValuesReturns aVectorValuesobject that represents the given mappings of index names to associated vectors.
- 
Method Details- 
ofReturns aVectorValuesobject suitable for supplying a single vector to aVectorCollectionconfigured with one vector index.- Parameters:
- vector- the vector
- Returns:
- a VectorValuesobject representing the given vector
 
- 
ofReturns aVectorValuesobject that represents a single named vector.- Parameters:
- indexName- the index name
- vector- the vector
- Returns:
- a VectorValuesrepresenting the given vector with name.
 
- 
ofReturns aVectorValuesobject that represents two mappings of index names to associated vectors.- Parameters:
- indexName1- the first mapping's index name
- vector1- the first mapping's vector
- indexName2- the second mapping's index name
- vector2- the second mapping's vector
- Returns:
- a VectorValuesobject with two index name to vector mappings.
 
- 
ofReturns aVectorValuesobject that represents the given mappings of index names to associated vectors.- Parameters:
- indexNameToVector- the index name to vector mappings
- Returns:
- a VectorValuesobject populated with the given mappings.
 
 
-