org.apache.spark.sql.types
Class NumericType
Object
org.apache.spark.sql.types.DataType
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.
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 Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumericType
public NumericType()
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()