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