|
|||||||||
| 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.MemValues
public final class MemValues
This class provides a main-memory access to attribute values and text contents.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.basex.index.Index |
|---|
Index.TYPE |
| Field Summary |
|---|
| Fields inherited from class org.basex.util.Set |
|---|
size |
| Constructor Summary | |
|---|---|
MemValues()
|
|
| Method Summary | |
|---|---|
void |
close()
Close the index. |
int |
get(byte[] key)
Returns the id for the specified key. |
int[][] |
idPos(byte[] tok,
FTOption ftO)
Returns all ids from index stored for tok with respect to ftO. |
int[] |
ids(byte[] key)
Returns the value for the specified key. |
int[] |
ids(byte[] tok,
FTOption ftO)
Returns all ids from index stored for tok with respect to ftO. |
int |
index(byte[] key,
int id)
Indexes the specified keys and values. |
void |
info(PrintOutput out)
Returns information on the index structure. |
int |
nrIDs(byte[] key)
Returns the value for the specified key. |
byte[] |
token(int id)
Returns the token 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 MemValues()
| Method Detail |
|---|
public void close()
close in interface Indexpublic int get(byte[] key)
key - key
public int[][] idPos(byte[] tok,
FTOption ftO)
idPos in interface Indextok - token to be foundftO - FTOption for tok
public int[] ids(byte[] key)
ids in interface Indexkey - key to be found
public int[] ids(byte[] tok,
FTOption ftO)
ids in interface Indextok - token to be foundftO - FTOption for tok
public int index(byte[] key,
int id)
key - keyid - id value
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[] key)
nrIDs in interface Indexkey - key to be found
public byte[] token(int id)
id - id
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||