org.apache.spark.sql.types
Class DecimalType
Object
org.apache.spark.sql.types.DataType
org.apache.spark.sql.types.NumericType
org.apache.spark.sql.types.DecimalType
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
public class DecimalType
- extends NumericType
- implements scala.Product, scala.Serializable
- See Also:
- Serialized Form
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
DecimalType
public DecimalType(scala.Option<PrecisionInfo> precisionInfo)
Unlimited
public static DecimalType Unlimited()
apply
public static DecimalType apply()
apply
public static DecimalType apply(int precision,
int scale)
unapply
public static boolean unapply(DataType t)
unapply
public static boolean unapply(org.apache.spark.sql.catalyst.expressions.Expression e)
isFixed
public static boolean isFixed(DataType dataType)
precisionInfo
public scala.Option<PrecisionInfo> precisionInfo()
tag
public scala.reflect.api.TypeTags.TypeTag<Decimal> tag()
numeric
public org.apache.spark.sql.types.Decimal.DecimalIsFractional$ numeric()
fractional
public org.apache.spark.sql.types.Decimal.DecimalIsFractional$ fractional()
ordering
public org.apache.spark.sql.types.Decimal.DecimalIsFractional$ ordering()
asIntegral
public org.apache.spark.sql.types.Decimal.DecimalAsIfIntegral$ asIntegral()
precision
public int precision()
scale
public int scale()
typeName
public String typeName()
- Description copied from class:
DataType
- Name of the type used in JSON serialization.
- Overrides:
typeName
in class DataType
toString
public String toString()
- Overrides:
toString
in class Object
defaultSize
public int defaultSize()
- The default size of a value of the DecimalType is 4096 bytes.
- Specified by:
defaultSize
in class DataType
- Returns:
- (undocumented)
simpleString
public String simpleString()
- Description copied from class:
DataType
- Readable string representation for the type.
- Overrides:
simpleString
in class DataType
classTag
public scala.reflect.ClassTag<Object> classTag()