org.apache.spark.sql.types
Class DecimalType

Object
  extended by org.apache.spark.sql.types.DataType
      extended by org.apache.spark.sql.types.NumericType
          extended by 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

Constructor Summary
DecimalType(scala.Option<PrecisionInfo> precisionInfo)
           
 
Method Summary
static DecimalType apply()
           
static DecimalType apply(int precision, int scale)
           
 org.apache.spark.sql.types.Decimal.DecimalAsIfIntegral$ asIntegral()
           
 scala.reflect.ClassTag<Object> classTag()
           
 int defaultSize()
          The default size of a value of the DecimalType is 4096 bytes.
 org.apache.spark.sql.types.Decimal.DecimalIsFractional$ fractional()
           
static boolean isFixed(DataType dataType)
           
 org.apache.spark.sql.types.Decimal.DecimalIsFractional$ numeric()
           
 org.apache.spark.sql.types.Decimal.DecimalIsFractional$ ordering()
           
 int precision()
           
 scala.Option<PrecisionInfo> precisionInfo()
           
 int scale()
           
 String simpleString()
          Readable string representation for the type.
 scala.reflect.api.TypeTags.TypeTag<Decimal> tag()
           
 String toString()
           
 String typeName()
          Name of the type used in JSON serialization.
static boolean unapply(DataType t)
           
static boolean unapply(org.apache.spark.sql.catalyst.expressions.Expression e)
           
static DecimalType Unlimited()
           
 
Methods inherited from class org.apache.spark.sql.types.DataType
fromCaseClassString, fromJson, json, prettyJson
 
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
 

Constructor Detail

DecimalType

public DecimalType(scala.Option<PrecisionInfo> precisionInfo)
Method Detail

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()