|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.index.Words
public final class Words
This class provides access to words of attribute values and text contents stored on disk.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.basex.index.Index |
|---|
Index.TYPE |
| Constructor Summary | |
|---|---|
Words(java.lang.String db)
Constructor, specifying a filename. |
|
| Method Summary | |
|---|---|
void |
close()
Close the index. |
int[][] |
idPos(byte[] tok,
FTOption ftO)
Returns all ids from trie stored for token with respect to ftO. |
int[] |
ids(byte[] tok)
Returns all ids from index stored for token. |
int[] |
ids(byte[] tok,
FTOption ftO)
Returns all ids from trie stored for token with respect 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 |
| Constructor Detail |
|---|
public Words(java.lang.String db)
throws java.io.IOException
db - name of the database
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 | ||||||||