|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.TokenSet
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 | |
---|---|
int |
tn
total number of entries. |
Constructor Summary | |
---|---|
Names()
Default constructor. |
|
Names(DataInput in)
Constructor, specifying an input file. |
Method Summary | |
---|---|
int |
index(byte[] k,
byte[] v,
boolean st)
Indexes a name and returns its unique id. |
void |
index(int i,
byte[] v)
Evaluates the value for the specified key id. |
byte[] |
info()
Returns index information. |
void |
init()
Initializes the statistics. |
StatsKey |
stat(int id)
Returns the statistics for the specified key id. |
void |
write(DataOutput out)
Writes the token set to the specified output. |
Methods inherited from class org.basex.util.TokenSet |
---|
add, delete, id, key, keys, read, size |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int tn
Constructor Detail |
---|
public Names()
public Names(DataInput in) throws IOException
in
- input stream
IOException
- I/O exceptionMethod Detail |
---|
public void init()
public int index(byte[] k, byte[] v, boolean st)
k
- name to be foundv
- value, evaluated in statisticsst
- statistics flag
public void index(int i, byte[] v)
i
- key idv
- value, used for statisticspublic void write(DataOutput out) throws IOException
TokenSet
write
in class TokenSet
out
- output stream
IOException
- I/O exceptionpublic StatsKey stat(int id)
id
- id
public byte[] info()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |