pitt.search.semanticvectors
Interface VectorStore

All Known Subinterfaces:
CloseableVectorStore
All Known Implementing Classes:
DocVectors, TermTermVectorsFromLucene, TermVectorsFromLucene, VectorStoreRAM, VectorStoreReaderLucene, VectorStoreReaderText, VectorStoreSparseRAM

public interface VectorStore

Classes implementing this interface are used to represent a collection of object vectors, including i. methods for accessing individual ObjectVectors and ii. an enumeration of all the vectors.

Author:
Dominic Widdows
See Also:
ObjectVector

Method Summary
 java.util.Enumeration<ObjectVector> getAllVectors()
           
 int getNumVectors()
           
 float[] getVector(java.lang.Object object)
           
 

Method Detail

getVector

float[] getVector(java.lang.Object object)
Parameters:
object - the object whose vector you want to look up
Returns:
a vector (of floats)

getAllVectors

java.util.Enumeration<ObjectVector> getAllVectors()
Returns:
an enumeration of all the object vectors in the store.

getNumVectors

int getNumVectors()
Returns:
a count of the number of vectors in the store.