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