|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.obsearch.index.TestFrameworkShort<O>
public abstract class TestFrameworkShort<O extends OBShort>
TestFrameworkShort performs several tests on an index. This generated file works on shorts.
| Field Summary | |
|---|---|
protected O[] |
data
|
protected IndexShort<O> |
index
|
protected O[] |
queries
|
| Constructor Summary | |
|---|---|
TestFrameworkShort(Class<O> type,
int dbSize,
int querySize,
IndexShort<O> index)
Create a new test with a DB size of dbSize and a query size of querySize. |
|
| Method Summary | |
|---|---|
protected void |
close()
|
protected O[] |
createArray(int size)
Create an array of size size. |
protected void |
deletes()
|
protected abstract O |
next()
Create a new object. |
protected O |
nextQuery()
Generate an object for the query, defaults #nextO(). |
protected void |
search()
|
void |
search(IndexShort<O> index,
short range,
byte k)
Perform all the searches with |
void |
searchSequential(O o,
OBPriorityQueueShort<O> result,
IndexShort<O> index,
short range)
Sequential search. |
void |
test()
Perform all the tests and DB creation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected O extends OBShort[] queries
protected O extends OBShort[] data
protected IndexShort<O extends OBShort> index
| Constructor Detail |
|---|
public TestFrameworkShort(Class<O> type,
int dbSize,
int querySize,
IndexShort<O> index)
dbSize - querySize - index - The index that will be used for testing.| Method Detail |
|---|
public void test()
throws Exception
Exception
protected void search()
throws Exception
Exception
protected void deletes()
throws Exception
Exception
protected void close()
throws Exception
Exception
public void search(IndexShort<O> index,
short range,
byte k)
throws Exception
x - the index that will be usedrange - k -
Exception
public void searchSequential(O o,
OBPriorityQueueShort<O> result,
IndexShort<O> index,
short range)
throws Exception
o - The object to searchresult - The queue were the results are storedindex - the index to searchrange - The range to employ
Exception - If something goes really bad.protected O[] createArray(int size)
size -
protected abstract O next()
protected O nextQuery()
#nextO().
#nextO().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||