|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FeatureIndex
Feature index interface
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
void addFeatureVector(FeatureVectorElement elem)
throws Exception
elem - The element
Exception - An unrecoverable for the operation error occured
void addFeatureVector(FeatureVectorElement[] elem)
throws Exception
elem - The elements
Exception - An unrecoverable for the operation error occured
void commit()
throws Exception
Exception - An unrecoverable for the operation error occured
long getNumberOfElements()
throws Exception
Exception - An unrecoverable for the operation error occured
void removeEntry(String id)
throws Exception
id - The id of the record
Exception - An unrecoverable for the operation error occured
ArrayList<RankedResultElement> lookup(float[] vector,
int k)
throws Exception
vector - The prototype vectork - The number of results
Exception - An unrecoverable for the operation error occured
ArrayList<RankedResultElement> lookup(float[] vector,
int k,
LookupParams params)
throws Exception
vector - The prototype vectork - The number of resultsparams - The parameters of the lookup
Exception - An unrecoverable for the operation error occured
String getIndexID()
throws Exception
Exception - An unrecoverable for the operation error occured
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||