|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.indexmanagement.featureindexlibrary.fullscan.FullVectorScan
public class FullVectorScan
The Full scan index
| Constructor Summary | |
|---|---|
FullVectorScan(FullScanParams charact)
Creates a new index |
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FullVectorScan(FullScanParams charact)
throws Exception
charact - the head params
Exception - An error| Method Detail |
|---|
public long getNumberOfElements()
FeatureIndex
getNumberOfElements in interface FeatureIndexFeatureIndex.getNumberOfElements()
public void addFeatureVector(FeatureVectorElement elem)
throws Exception
FeatureIndex
addFeatureVector in interface FeatureIndexelem - The element to add
Exception - an errorFeatureIndex.addFeatureVector(org.gcube.indexmanagement.featureindexlibrary.commons.FeatureVectorElement)
public void addFeatureVector(FeatureVectorElement[] elem)
throws Exception
FeatureIndex
addFeatureVector in interface FeatureIndexelem - the elements to add
Exception - an errorFeatureIndex.addFeatureVector(org.gcube.indexmanagement.featureindexlibrary.commons.FeatureVectorElement[])
public void commit()
throws Exception
FeatureIndex
commit in interface FeatureIndexException - an errorFeatureIndex.commit()
public ArrayList<RankedResultElement> lookup(float[] vector,
int k)
throws Exception
FeatureIndex
lookup in interface FeatureIndexvector - the vectror to search fork - the number of results
Exception - an errorFeatureIndex.lookup(float[], int)
public ArrayList<RankedResultElement> lookup(float[] vector,
int k,
LookupParams params)
throws Exception
FeatureIndex
lookup in interface FeatureIndexvector - the vectror to search fork - the number of resultsparams - lookup parameters
Exception - an errorFeatureIndex.lookup(float[], int, org.gcube.indexmanagement.featureindexlibrary.commons.LookupParams)
public void removeEntry(String id)
throws Exception
FeatureIndex
removeEntry in interface FeatureIndexid - the id to remove
Exception - an errorFeatureIndex.removeEntry(java.lang.String)
public String getIndexID()
throws Exception
getIndexID in interface FeatureIndexException - An unrecoverable for the operation error occuredFeatureIndex.getIndexID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||