public final class Stats
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
TokenIntMap |
cats
Categories.
|
int |
count
Number of occurrences.
|
double |
max
Maximum value.
|
double |
min
Minimum value.
|
StatsType |
type
Data type.
|
| Constructor and Description |
|---|
Stats()
Default constructor.
|
Stats(DataInput in)
Constructor, specifying an input stream.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public TokenIntMap cats
public StatsType type
public double min
public double max
public int count
public Stats()
public Stats(DataInput in) throws java.io.IOException
in - input streamjava.io.IOException - I/O exceptionpublic boolean isLeaf()
public void setLeaf(boolean l)
l - leaf or notpublic void write(DataOutput out) throws java.io.IOException
out - output streamjava.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