|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.index.WordsCTA
public final class WordsCTA
This class indexes text contents in a compressed trie on disk.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.basex.index.Index |
|---|
Index.TYPE |
| Field Summary | |
|---|---|
int |
nrIds
last/current number of ids. |
int |
size
Number of hash entries. |
| Constructor Summary | |
|---|---|
WordsCTA(java.lang.String db,
DiskData d)
Constructor, initializing the index structure. |
|
| Method Summary | |
|---|---|
void |
close()
Close the index. |
int[][] |
idPos(byte[] tok,
FTOption ftO)
Returns all ids from trie stored for tok, with repsect to ftO. |
int[] |
ids(byte[] tok)
Returns all ids from trie stored for token. |
int[] |
ids(byte[] tok,
FTOption ftO)
Returns all ids from trie stored for tok, with repsect to ftO. |
void |
info(PrintOutput out)
Returns information on the index structure. |
int |
nrIDs(byte[] tok)
Returns the decompressed ids for the specified token. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int nrIds
public int size
| Constructor Detail |
|---|
public WordsCTA(java.lang.String db,
DiskData d)
throws java.io.IOException
db - name of the databased - disk data reference
java.io.IOException - IO Exception| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface Indexjava.io.IOException - in case of write errors
public int[][] idPos(byte[] tok,
FTOption ftO)
idPos in interface Indextok - token to be foundftO - FTOption for tok
public int[] ids(byte[] tok)
ids in interface Indextok - token to be found
public int[] ids(byte[] tok,
FTOption ftO)
ids in interface Indextok - token to be foundftO - FTOption for tok
public void info(PrintOutput out)
throws java.io.IOException
info in interface Indexout - output stream
java.io.IOException - in case of write errorspublic int nrIDs(byte[] tok)
nrIDs in interface Indextok - token to be found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||