public abstract class DecimalType extends AbstractPrimitiveType implements FixedWidthType
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PRECISION |
static int |
DEFAULT_SCALE |
| Modifier and Type | Method and Description |
|---|---|
static DecimalType |
createDecimalType() |
static DecimalType |
createDecimalType(int precision) |
static DecimalType |
createDecimalType(int precision,
int scale) |
int |
getPrecision() |
int |
getScale() |
boolean |
isComparable()
True if the type supports equalTo and hash.
|
boolean |
isOrderable()
True if the type supports compareTo.
|
boolean |
isShort() |
getTypeSignaturecompareTo, equals, equalTo, getBlockUnchecked, getBoolean, getBooleanUnchecked, getDisplayName, getDouble, getDoubleUnchecked, getJavaType, getLong, getLongUnchecked, getObject, getSlice, getSliceUnchecked, getTypeParameters, hash, hashCode, toString, writeBoolean, writeDouble, writeLong, writeObject, writeSlice, writeSliceclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateFixedSizeBlockBuilder, getFixedSizeappendTo, compareTo, createBlockBuilder, createBlockBuilder, equalTo, getBlockUnchecked, getBoolean, getBooleanUnchecked, getDisplayName, getDouble, getDoubleUnchecked, getJavaType, getLong, getLongUnchecked, getObject, getObjectValue, getSlice, getSliceUnchecked, getTypeParameters, getTypeSignature, hash, writeBoolean, writeDouble, writeLong, writeObject, writeSlice, writeSlicepublic static final int DEFAULT_SCALE
public static final int DEFAULT_PRECISION
public static DecimalType createDecimalType(int precision, int scale)
public static DecimalType createDecimalType(int precision)
public static DecimalType createDecimalType()
public final boolean isComparable()
TypeisComparable in interface TypeisComparable in class AbstractTypepublic final boolean isOrderable()
TypeisOrderable in interface TypeisOrderable in class AbstractTypepublic int getPrecision()
public int getScale()
public boolean isShort()
Copyright © 2012–2022. All rights reserved.