DataTypes

object DataTypes


Helper class to facilitate working with DataTypes.

Summary

Public methods

static final @Nullable DataType

Get the aggregate DataType from a raw DataType, or null if it doesn't exist.

static final @NonNull Set<@NonNull DataType>

Get the aggregate, average, and max DataType from a raw DataType if they exist.

static final @Nullable DataType

Get the average DataType from a raw DataType, or null if it doesn't exist.

static final @Nullable DataType

Get the max DataType from a raw DataType, or null if it doesn't exist.

static final @Nullable DataType

Get the raw DataType from an aggregate DataType, or null if it doesn't exist.

static final @Nullable DataType

Get the raw DataType from an average DataType, or null if it doesn't exist.

static final @Nullable DataType

Get the raw DataType from a max DataType, or null if it doesn't exist.

static final boolean

Check if a DataType represents aggregate value of a collection of non-aggregate data.

static final boolean

Check if a DataType represents raw data value, i.e., neither aggregate value nor statistical value.

static final boolean

Check if a DataType represents the average value of a collection of non-aggregate data.

static final boolean

Check if a DataType represents the maximum value of a collection of non-aggregate data.

Public methods

getAggregateTypeFromRawType

@Nullable
public static final DataType getAggregateTypeFromRawType(@NonNull DataType rawType)

Get the aggregate DataType from a raw DataType, or null if it doesn't exist.

getAggregatedDataTypesFromRawType

@NonNull
public static final Set<@NonNull DataTypegetAggregatedDataTypesFromRawType(@NonNull DataType rawType)

Get the aggregate, average, and max DataType from a raw DataType if they exist.

getAverageTypeFromRawType

@Nullable
public static final DataType getAverageTypeFromRawType(@NonNull DataType rawType)

Get the average DataType from a raw DataType, or null if it doesn't exist.

getMaxTypeFromRawType

@Nullable
public static final DataType getMaxTypeFromRawType(@NonNull DataType rawType)

Get the max DataType from a raw DataType, or null if it doesn't exist.

getRawTypeFromAggregateType

@Nullable
public static final DataType getRawTypeFromAggregateType(@NonNull DataType aggregateType)

Get the raw DataType from an aggregate DataType, or null if it doesn't exist.

getRawTypeFromAverageType

@Nullable
public static final DataType getRawTypeFromAverageType(@NonNull DataType averageType)

Get the raw DataType from an average DataType, or null if it doesn't exist.

getRawTypeFromMaxType

@Nullable
public static final DataType getRawTypeFromMaxType(@NonNull DataType maxType)

Get the raw DataType from a max DataType, or null if it doesn't exist.

isAggregateDataType

@NonNull
public static final boolean isAggregateDataType(@NonNull DataType dataType)

Check if a DataType represents aggregate value of a collection of non-aggregate data.

isRawType

@NonNull
public static final boolean isRawType(@NonNull DataType dataType)

Check if a DataType represents raw data value, i.e., neither aggregate value nor statistical value.

isStatisticalAverageDataType

@NonNull
public static final boolean isStatisticalAverageDataType(@NonNull DataType dataType)

Check if a DataType represents the average value of a collection of non-aggregate data.

isStatisticalMaxDataType

@NonNull
public static final boolean isStatisticalMaxDataType(@NonNull DataType dataType)

Check if a DataType represents the maximum value of a collection of non-aggregate data.