org.apache.spark.sql.types
Class IntegerType

Object
  extended by org.apache.spark.sql.types.DataType
      extended by org.apache.spark.sql.types.NumericType
          extended by org.apache.spark.sql.types.IntegerType

public class IntegerType
extends NumericType

:: DeveloperApi :: The data type representing Int values. Please use the singleton DataTypes.IntegerType.


Method Summary
 scala.reflect.ClassTag<Object> classTag()
           
 int defaultSize()
          The default size of a value of the IntegerType is 4 bytes.
 scala.math.Integral<Object> integral()
           
 scala.math.Numeric<Object> numeric()
           
 scala.math.Ordering<Object> ordering()
           
 String simpleString()
          Readable string representation for the type.
 scala.reflect.api.TypeTags.TypeTag<Object> tag()
           
static boolean unapply(org.apache.spark.sql.catalyst.expressions.Expression e)
          Enables matching against IntegralType for expressions:
 
Methods inherited from class org.apache.spark.sql.types.DataType
fromCaseClassString, fromJson, json, prettyJson, typeName
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

tag

public scala.reflect.api.TypeTags.TypeTag<Object> tag()

numeric

public scala.math.Numeric<Object> numeric()
Specified by:
numeric in class NumericType

integral

public scala.math.Integral<Object> integral()

ordering

public scala.math.Ordering<Object> ordering()

defaultSize

public int defaultSize()
The default size of a value of the IntegerType is 4 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

unapply

public static boolean unapply(org.apache.spark.sql.catalyst.expressions.Expression e)
Enables matching against IntegralType for expressions:

   case Cast(child @ IntegralType(), StringType) =>
     ...
 

Parameters:
e - (undocumented)
Returns:
(undocumented)

classTag

public scala.reflect.ClassTag<Object> classTag()