Class IndexStats
java.lang.Object
org.cojen.tupl.diag.IndexStats
- All Implemented Interfaces:
Serializable
,Cloneable
Collection of stats from the
analyze
method.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
The estimated number of index entries.double
The estimated amount of free bytes in the index.double
The estimated amount of bytes occupied by keys in the index.double
The estimated total amount of bytes in the index.double
The estimated amount of bytes occupied by values in the index. -
Constructor Summary
ConstructorsConstructorDescriptionIndexStats
(double entryCount, double keyBytes, double valueBytes, double freeBytes, double totalBytes) -
Method Summary
Modifier and TypeMethodDescriptionadd
(IndexStats augend) Adds stats into a new object.clone()
divide
(double scalar) Divide the stats by a scalar into a new object.divideAndRound
(double scalar) Divide the stats by a scalar and round to whole numbers into a new object.boolean
int
hashCode()
round()
Round the stats to whole numbers into a new object.subtract
(IndexStats subtrahend) Subtract stats into a new object.toString()
-
Field Details
-
entryCount
public double entryCountThe estimated number of index entries. -
keyBytes
public double keyBytesThe estimated amount of bytes occupied by keys in the index. -
valueBytes
public double valueBytesThe estimated amount of bytes occupied by values in the index. -
freeBytes
public double freeBytesThe estimated amount of free bytes in the index. -
totalBytes
public double totalBytesThe estimated total amount of bytes in the index.
-
-
Constructor Details
-
IndexStats
public IndexStats() -
IndexStats
public IndexStats(double entryCount, double keyBytes, double valueBytes, double freeBytes, double totalBytes)
-
-
Method Details
-
add
Adds stats into a new object. -
subtract
Subtract stats into a new object. -
divide
Divide the stats by a scalar into a new object. -
round
Round the stats to whole numbers into a new object. -
divideAndRound
Divide the stats by a scalar and round to whole numbers into a new object. -
clone
-
hashCode
-
equals
-
toString
-