org.apache.spark.sql.types
Class NumericType

Object
  extended by org.apache.spark.sql.types.DataType
      extended by org.apache.spark.sql.types.NumericType
Direct Known Subclasses:
ByteType, DecimalType, DoubleType, FloatType, IntegerType, LongType, ShortType

public abstract class NumericType
extends DataType

:: DeveloperApi :: Numeric data types.


Constructor Summary
NumericType()
           
 
Method Summary
 scala.reflect.ClassTag<Object> classTag()
           
abstract  scala.math.Numeric<Object> numeric()
           
abstract  scala.math.Ordering<Object> ordering()
           
abstract  scala.reflect.api.TypeTags.TypeTag<Object> tag()
           
static boolean unapply(org.apache.spark.sql.catalyst.expressions.Expression e)
          Enables matching against NumericType for expressions:
 
Methods inherited from class org.apache.spark.sql.types.DataType
defaultSize, fromCaseClassString, fromJson, json, prettyJson, simpleString, typeName
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericType

public NumericType()
Method Detail

unapply

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

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

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

numeric

public abstract scala.math.Numeric<Object> numeric()

tag

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

ordering

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

classTag

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