|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.index.Index
org.basex.index.FTTrie
public final class FTTrie
This class indexes text contents in a compressed trie on disk.
| Field Summary | |
|---|---|
DataAccess |
inD
FTData on disk. |
| Constructor Summary | |
|---|---|
FTTrie(Data d,
java.lang.String db)
Constructor, initializing the index structure. |
|
| Method Summary | |
|---|---|
void |
close()
Close the index. |
IndexIterator |
ids(IndexToken ind)
Returns an iterator for the index results. |
byte[] |
info()
Returns information on the index structure. |
int |
nrIDs(IndexToken ind)
Returns the (approximate/estimated) number of ids for the specified token. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final DataAccess inD
| Constructor Detail |
|---|
public FTTrie(Data d,
java.lang.String db)
throws java.io.IOException
d - data referencedb - name of the database
java.io.IOException - IO Exception| Method Detail |
|---|
public byte[] info()
Index
info in class Indexpublic int nrIDs(IndexToken ind)
Index
nrIDs in class Indexind - token to be found
public IndexIterator ids(IndexToken ind)
Index
ids in class Indexind - token to be found
public void close()
throws java.io.IOException
Index
close in class Indexjava.io.IOException - in case of write errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||