|
||||||||||
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 contains statistics for the tag or attribute name of a document.
Nested Class Summary | |
---|---|
static class |
StatsKey.Kind
Kind of Contents. |
Field Summary | |
---|---|
Set |
cats
Categories. |
StatsKey.Kind |
kind
Node kind. |
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public StatsKey.Kind kind
public Set cats
public double min
public double max
Constructor Detail |
---|
public StatsKey()
public StatsKey(DataInput in) throws java.io.IOException
in
- input stream
java.io.IOException
- I/O exceptionMethod Detail |
---|
public void finish(DataOutput out) throws java.io.IOException
out
- output stream
java.io.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 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 |