|
def
apply(i: Int): Any
Returns
the value at position i. If the value is null, null is returned. The
following is a mapping between Spark SQL types and return types:
BooleanType
-> java.lang.Boolean
ByteType
-> java.lang.Byte
ShortType
-> java.lang.Short
IntegerType
-> java.lang.Integer
FloatType
-> java.lang.Float
DoubleType
-> java.lang.Double
StringType
-> String
DecimalType
-> java.math.BigDecimal
DateType
-> java.sql.Date
TimestampType
-> java.sql.Timestamp
BinaryType
-> byte array
ArrayType
-> scala.collection.Seq (use getList for java.util.List)
MapType
-> scala.collection.Map (use getJavaMap for java.util.Map)
StructType
-> org.apache.spark.sql.Row
|
No comments:
Post a Comment