|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectiitb.con.indexing.IndexBuilder
public class IndexBuilder
Builds the index for the given set of nodes (Node).
The nodes are key-value pair where the key is the attribute of the type
and the value is the attribute's value.
| Constructor Summary | |
|---|---|
IndexBuilder()
|
|
| Method Summary | ||
|---|---|---|
static
|
createIndex(java.lang.String fileName,
java.lang.String mode,
java.util.List<Node<K>> nodes)
Creates the index structure for the given list of nodes |
|
static boolean |
dropIndex(java.lang.String fileName)
Drops the index by deleting the index file. |
|
static java.lang.String |
getIndexFileName(java.lang.Short typeId,
java.lang.String attributeName)
Gets the file name for the index. |
|
static boolean |
hasIndex(java.lang.Short typeId,
java.lang.String attributeName)
Returns true if index is present for the specified type's attribute |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexBuilder()
| Method Detail |
|---|
public static <K extends java.lang.Comparable<K>> boolean createIndex(java.lang.String fileName,
java.lang.String mode,
java.util.List<Node<K>> nodes)
K - data type of the keyfileName - index file namemode - file modenodes - node list
Nodepublic static boolean dropIndex(java.lang.String fileName)
fileName - index file name
public static java.lang.String getIndexFileName(java.lang.Short typeId,
java.lang.String attributeName)
The index file name is created as the string formed of type id and attribute name
typeId - type idattributeName - attribute name
public static boolean hasIndex(java.lang.Short typeId,
java.lang.String attributeName)
typeId - type idattributeName - attribute name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||