|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.data.StatsKey
public final class StatsKey
This class provides statistics for a tag or attribute name and its contents.
| Nested Class Summary | |
|---|---|
static class |
StatsKey.Kind
Kind of Contents. |
| Field Summary | |
|---|---|
TokenSet |
cats
Categories. |
int |
counter
Number of occurrences. |
StatsKey.Kind |
kind
Node kind. |
boolean |
leaf
Leaf node flag. |
double |
len
Average text-length. |
double |
max
Maximum value. |
double |
min
Minimum value. |
| Constructor Summary | |
|---|---|
StatsKey()
Default constructor. |
|
StatsKey(DataInput in)
Constructor, specifying an input stream. |
|
| Method Summary | |
|---|---|
void |
add(byte[] val)
Adds a value. |
void |
finish(DataOutput out)
Writes the key statistics to the specified output stream. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public StatsKey.Kind kind
public TokenSet cats
public double min
public double max
public double len
public int counter
public boolean leaf
| Constructor Detail |
|---|
public StatsKey()
public StatsKey(DataInput in)
throws IOException
in - input stream
IOException - I/O exception| Method Detail |
|---|
public void finish(DataOutput out)
throws IOException
out - output stream
IOException - I/O exceptionpublic void add(byte[] val)
#MAXCATS, the cached
values are skipped, and contents are treated as arbitrary strings.
val - value to be addedpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||