public abstract class Candidate extends Object
| Constructor and Description |
|---|
Candidate() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getNative() |
String |
getNativeStats() |
void |
getStats(TestStats S) |
double |
knnQuery(int k,
double[] center)
Called when the tree should execute the
k-nearest-neighbor queries defined by the arguments.
|
abstract void |
load(double[] data,
int idxDim) |
abstract int |
pointQuery(Object qA)
Called when the tree should execute the point
queries defined by the arguments.
|
abstract Object |
preparePointQuery(double[][] q)
This method is called before the actual point
query, providing the underlying tree with the
possibility to pre-process the query data
|
abstract int |
query(double[] min,
double[] max)
Called when tree should execute a range query
|
List<?> |
queryToList(double[] min,
double[] max) |
abstract void |
release()
This method is invoked at the end of the test run
to allow freeing of allocated resources
|
protected void |
run(Candidate x,
int N,
int DIM) |
protected void |
runSmokeTest(Candidate x,
int dims) |
boolean |
supportsKNN() |
boolean |
supportsPointQuery() |
boolean |
supportsUnload() |
boolean |
supportsUpdate() |
boolean |
supportsWindowQuery() |
String |
toString() |
abstract int |
unload()
Called when the tree should delete all the points
it contains.
|
abstract int |
update(double[][] updateTable) |
public abstract void release()
public abstract void load(double[] data,
int idxDim)
public abstract Object preparePointQuery(double[][] q)
q - raw query datapublic abstract int pointQuery(Object qA)
qA - pre-processed query datapublic double knnQuery(int k,
double[] center)
k - number of desired neighborscenter - of querypublic abstract int unload()
public abstract int query(double[] min,
double[] max)
min - lower cornermax - upper cornerpublic abstract int update(double[][] updateTable)
public List<?> queryToList(double[] min, double[] max)
protected void run(Candidate x, int N, int DIM)
protected void runSmokeTest(Candidate x, int dims)
public void getStats(TestStats S)
public boolean supportsWindowQuery()
public boolean supportsPointQuery()
public boolean supportsKNN()
public boolean supportsUpdate()
public boolean supportsUnload()
public Object getNative()
public String getNativeStats()
Copyright © 2018 ETH Zurich. All rights reserved.