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 Summary
Nested 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 Summary
Static 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
- 
of
Returns aVectorValuesobject suitable for supplying a single vector to aVectorCollectionconfigured with one vector index.- Parameters:
 vector- the vector- Returns:
 - a 
VectorValuesobject representing the given vector 
 - 
of
Returns aVectorValuesobject that represents a single named vector.- Parameters:
 indexName- the index namevector- the vector- Returns:
 - a 
VectorValuesrepresenting the given vector with name. 
 - 
of
Returns aVectorValuesobject that represents two mappings of index names to associated vectors.- Parameters:
 indexName1- the first mapping's index namevector1- the first mapping's vectorindexName2- the second mapping's index namevector2- the second mapping's vector- Returns:
 - a 
VectorValuesobject with two index name to vector mappings. 
 - 
of
Returns 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. 
 
 -