public abstract class IndexStatistic<V extends StatisticValue<?>> extends Statistic<V>
cachedStatisticId, DEFAULT_TAG, INTERNAL_TAG
Constructor and Description |
---|
IndexStatistic(IndexStatisticType<V> statisticsType) |
IndexStatistic(IndexStatisticType<V> statisticsType,
String indexName) |
Modifier and Type | Method and Description |
---|---|
protected int |
byteLength() |
static ByteArray |
generateGroupId(String indexName) |
static <V extends StatisticValue<?>> |
generateStatisticId(String indexName,
IndexStatisticType<V> statisticType,
String tag) |
StatisticId<V> |
getId()
Return the unique identifier for the statistic.
|
String |
getIndexName() |
boolean |
isCompatibleWith(Class<?> indexClass)
Determine if the statistic is compatible with the given class.
|
protected void |
readBytes(ByteBuffer buffer) |
void |
setIndexName(String name) |
String |
toString() |
protected void |
writeBytes(ByteBuffer buffer) |
createEmpty, fromBinary, getBinningStrategy, getDescription, getStatisticType, getTag, isInternal, setBinningStrategy, setInternal, setTag, toBinary
public IndexStatistic(IndexStatisticType<V> statisticsType)
public IndexStatistic(IndexStatisticType<V> statisticsType, String indexName)
public void setIndexName(String name)
public String getIndexName()
public boolean isCompatibleWith(Class<?> indexClass)
Statistic
isCompatibleWith
in class Statistic<V extends StatisticValue<?>>
indexClass
- the class to checktrue
if the statistic is compatiblepublic final StatisticId<V> getId()
Statistic
getId
in class Statistic<V extends StatisticValue<?>>
protected int byteLength()
byteLength
in class Statistic<V extends StatisticValue<?>>
protected void writeBytes(ByteBuffer buffer)
writeBytes
in class Statistic<V extends StatisticValue<?>>
protected void readBytes(ByteBuffer buffer)
readBytes
in class Statistic<V extends StatisticValue<?>>
public static <V extends StatisticValue<?>> StatisticId<V> generateStatisticId(String indexName, IndexStatisticType<V> statisticType, String tag)
Copyright © 2013–2022. All rights reserved.