|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IndexTree<K extends java.lang.Comparable<K>>
Interface for creating index structures for the instances.
| Field Summary | |
|---|---|
static java.lang.String |
LEAF_EXT
Extension of leaf node of the index tree |
static java.lang.String |
NON_LEAF_EXT
Extension of non-leaf node of the index tree |
| Method Summary | |
|---|---|
void |
close()
Closes the index structure files. |
void |
create(java.util.List<Node<K>> nodes)
Creates the index for given set of key-value pair. |
KeyList<K,java.lang.Short> |
getMetaIndex(K key)
Returns the meta-index of the index structure. |
int[] |
getValues(K key)
Retrieves the values for the specified key |
| Field Detail |
|---|
static final java.lang.String LEAF_EXT
static final java.lang.String NON_LEAF_EXT
| Method Detail |
|---|
void close()
throws java.io.IOException
java.io.IOException - if the file operation fails
void create(java.util.List<Node<K>> nodes)
throws java.io.IOException
The key-value pair is represented as Node.
nodes - Node list
java.io.IOException - if the file operation fails
KeyList<K,java.lang.Short> getMetaIndex(K key)
throws java.io.IOException
key - key of the index structure
KeyList
java.io.IOException - if the file operation fails
int[] getValues(K key)
throws java.io.IOException
key - key of the index structure
java.io.IOException - if the file operation fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||