|
Mobios v0.91 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Index
The primary interface for distance-based index. Through Index, the user can build a database index, or read a pre-built index from a file, and then do the search.
| Method Summary | |
|---|---|
void |
close()
Closes anything used internally that needs to be closed. |
void |
destroy()
Deletes the index from the file, and also release it from memory. |
List<IndexObject> |
getAllPoints()
Returns all the data points in the index |
Metric |
getMetric()
|
ObjectIOManager |
getOIOM()
TODO |
long |
getRootAddress()
TODO |
void |
preLoad(int level)
When a lot of queries are to be answered, for the sake of performance, it is a good idea to have the top levels of the index tree reside in memory. |
Cursor |
search(Query query)
Executes a range query. |
int |
size()
|
| Method Detail |
|---|
Metric getMetric()
int size()
void preLoad(int level)
level - number of levels, from the root, to be pre-loaded into memory.Cursor search(Query query)
query - the Query object
Cursor over the results of the queryList<IndexObject> getAllPoints()
void close()
throws IOException
IOException
void destroy()
throws IOException
IOExceptionObjectIOManager getOIOM()
long getRootAddress()
|
Mobios v0.91 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||