Package org.apache.iceberg.types
Class Types.DecimalType
- java.lang.Object
-
- org.apache.iceberg.types.Type.PrimitiveType
-
- org.apache.iceberg.types.Types.DecimalType
-
- All Implemented Interfaces:
java.io.Serializable,Type
- Enclosing class:
- Types
public static class Types.DecimalType extends Type.PrimitiveType
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.iceberg.types.Type
Type.NestedType, Type.PrimitiveType, Type.TypeID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()static Types.DecimalTypeof(int precision, int scale)intprecision()intscale()java.lang.StringtoString()Type.TypeIDtypeId()-
Methods inherited from class org.apache.iceberg.types.Type.PrimitiveType
asPrimitiveType, isPrimitiveType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.iceberg.types.Type
asListType, asMapType, asNestedType, asStructType, isListType, isMapType, isNestedType, isStructType
-
-
-
-
Method Detail
-
of
public static Types.DecimalType of(int precision, int scale)
-
scale
public int scale()
-
precision
public int precision()
-
typeId
public Type.TypeID typeId()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classType.PrimitiveType
-
hashCode
public int hashCode()
- Overrides:
hashCodein classType.PrimitiveType
-
-