public interface FeatureIndex
| Modifier and Type | Method and Description |
|---|---|
void |
addFeatureVector(FeatureVectorElement elem)
Adds a new element
|
void |
addFeatureVector(FeatureVectorElement[] elem)
Adds new elements
|
void |
commit()
Commits additions
|
String |
getIndexID()
Returns the index id of the index instance
|
long |
getNumberOfElements()
Retrieves the number of elements in the index
|
ArrayList<RankedResultElement> |
lookup(float[] vector,
int k)
Performs a lookup with default parameter values
|
ArrayList<RankedResultElement> |
lookup(float[] vector,
int k,
LookupParams params)
Performs a lookup with default parameter values
|
void |
removeEntry(String id)
Removes the record from the index
|
void addFeatureVector(FeatureVectorElement elem) throws Exception
elem - The elementException - An unrecoverable for the operation error occuredvoid addFeatureVector(FeatureVectorElement[] elem) throws Exception
elem - The elementsException - An unrecoverable for the operation error occuredvoid commit()
throws Exception
Exception - An unrecoverable for the operation error occuredlong getNumberOfElements()
throws Exception
Exception - An unrecoverable for the operation error occuredvoid removeEntry(String id) throws Exception
id - The id of the recordException - An unrecoverable for the operation error occuredArrayList<RankedResultElement> lookup(float[] vector, int k) throws Exception
vector - The prototype vectork - The number of resultsException - An unrecoverable for the operation error occuredArrayList<RankedResultElement> lookup(float[] vector, int k, LookupParams params) throws Exception
vector - The prototype vectork - The number of resultsparams - The parameters of the lookupException - An unrecoverable for the operation error occuredCopyright © 2014. All Rights Reserved.