|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.util.Set
org.basex.index.Names
public final class Names
This class indexes and organizes the tags or attribute names, used in an XML document.
| Field Summary |
|---|
| Fields inherited from class org.basex.util.Set |
|---|
size |
| Constructor Summary | |
|---|---|
Names(boolean t)
Empty Constructor. |
|
Names(java.lang.String db,
boolean t)
Constructor, specifying an input file. |
|
| Method Summary | |
|---|---|
int |
counter(int id)
Returns the tag counter. |
void |
finish(java.lang.String db)
Finishes the index structure and optimizes its memory usage. |
int |
index(byte[] k)
Indexes a key and returns its unique id. |
java.lang.String |
info()
Returns index information. |
boolean |
noLeaf(int id)
Returns node flag for the specified id. |
void |
noleaf(int id,
boolean l)
Sets node flag for the specified id. |
| Methods inherited from class org.basex.util.Set |
|---|
add, id, key, keys, size |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Names(boolean t)
t - index type (tags/attribute names).
public Names(java.lang.String db,
boolean t)
throws java.io.IOException
db - name of the databaset - index type (tags/attribute names).
java.io.IOException - IO Exception| Method Detail |
|---|
public int counter(int id)
id - token id
public void finish(java.lang.String db)
throws java.io.IOException
db - name of the database
java.io.IOException - in case the file could not be writtenpublic int index(byte[] k)
k - key to be found
public java.lang.String info()
public boolean noLeaf(int id)
id - token id
public void noleaf(int id,
boolean l)
id - token idl - node flag
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||