|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.index.stats.Stats
public final class Stats
This class provides statistical data for an indexed node.
Field Summary | |
---|---|
TokenIntMap |
cats
Categories. |
int |
count
Number of occurrences. |
double |
max
Maximum value. |
double |
min
Minimum value. |
StatsType |
type
Data type. |
Constructor Summary | |
---|---|
Stats()
Default constructor. |
|
Stats(DataInput in)
Constructor, specifying an input stream. |
Method Summary | |
---|---|
void |
add(byte[] val,
MetaData meta)
Adds a value. |
boolean |
isLeaf()
Getter for leaf. |
void |
setLeaf(boolean l)
Setter for leaf. |
java.lang.String |
toString()
|
void |
write(DataOutput out)
Writes the key statistics to the specified output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public TokenIntMap cats
public StatsType type
public double min
public double max
public int count
Constructor Detail |
---|
public Stats()
public Stats(DataInput in) throws java.io.IOException
in
- input stream
java.io.IOException
- I/O exceptionMethod Detail |
---|
public boolean isLeaf()
public void setLeaf(boolean l)
l
- leaf or notpublic void write(DataOutput out) throws java.io.IOException
out
- output stream
java.io.IOException
- I/O exceptionpublic void add(byte[] val, MetaData meta)
val
- value to be addedmeta
- meta datapublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |