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 boolean
equals(java.lang.Object o)
int
hashCode()
static Types.DecimalType
of(int precision, int scale)
int
precision()
int
scale()
java.lang.String
toString()
Type.TypeID
typeId()
-
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:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classType.PrimitiveType
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classType.PrimitiveType
-
-