Package io.trino.plugin.hive.type
Class DecimalTypeInfo
java.lang.Object
io.trino.plugin.hive.type.TypeInfo
io.trino.plugin.hive.type.PrimitiveTypeInfo
io.trino.plugin.hive.type.DecimalTypeInfo
-
Field Summary
FieldsFields inherited from class io.trino.plugin.hive.type.PrimitiveTypeInfo
typeName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecimalTypeName(int precision, int scale) booleanlonginthashCode()Generate the hashCode for this TypeInfo.intintscale()Methods inherited from class io.trino.plugin.hive.type.PrimitiveTypeInfo
getCategory, getDeclaredFieldsRetainedSizeInBytes, getPrimitiveCategory
-
Field Details
-
MAX_PRECISION
public static final int MAX_PRECISION- See Also:
-
MAX_SCALE
public static final int MAX_SCALE- See Also:
-
-
Constructor Details
-
DecimalTypeInfo
public DecimalTypeInfo(int precision, int scale)
-
-
Method Details
-
getTypeName
- Overrides:
getTypeNamein classPrimitiveTypeInfo
-
equals
- Overrides:
equalsin classPrimitiveTypeInfo
-
hashCode
public int hashCode()Description copied from class:PrimitiveTypeInfoGenerate the hashCode for this TypeInfo.- Overrides:
hashCodein classPrimitiveTypeInfo
-
precision
public int precision() -
scale
public int scale() -
decimalTypeName
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()- Overrides:
getRetainedSizeInBytesin classPrimitiveTypeInfo
-