public static class Types.DecimalType extends Type.PrimitiveType
Type.NestedType, Type.PrimitiveType, Type.TypeID| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
We need to override equals because the check
intType1 == intType2 can return false. |
static Types.DecimalType |
get(int precision,
int scale) |
int |
hashCode() |
boolean |
isTighterThan(Type.PrimitiveType other)
Returns whether this DecimalType is tighter than `other`.
|
boolean |
isWiderThan(Type.PrimitiveType other)
Returns whether this DecimalType is wider than `other`.
|
int |
precision() |
int |
scale() |
String |
toString() |
Type.TypeID |
typeId() |
isNestedTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitfromPartitionString, fromValuepublic static Types.DecimalType get(int precision, int scale)
public boolean isWiderThan(Type.PrimitiveType other)
public boolean isTighterThan(Type.PrimitiveType other)
public int scale()
public int precision()
public Type.TypeID typeId()
public boolean equals(Object o)
Type.PrimitiveTypeintType1 == intType2 can return false.
Despite the fact that most subclasses look like singleton with static field INSTANCE,
they can still be created by deserializer.equals in class Type.PrimitiveTypepublic int hashCode()
hashCode in class Type.PrimitiveTypeCopyright © 2024 The Apache Software Foundation. All rights reserved.