ByteType

class pyspark.sql.types. ByteType [source]

字节数据类型,即单字节中的有符号整数。

方法

fromInternal (obj)

将内部SQL对象转换为本地Python对象。

json ()

jsonValue ()

needConversion ()

这种类型是否需要在Python对象和内部SQL对象之间进行转换。

simpleString ()

toInternal (obj)

将Python对象转换为内部SQL对象。

typeName ()

方法文档

fromInternal ( obj : Any ) → Any

将内部SQL对象转换为本地Python对象。

json ( ) → str
jsonValue ( ) → Union [ str , Dict [ str , Any ] ]
needConversion ( ) → bool

这种类型是否需要在Python对象和内部SQL对象之间进行转换。

这用于避免对 ArrayType/MapType/StructType 进行不必要的转换。

simpleString ( ) → str [source]
toInternal ( obj : Any ) → Any

将Python对象转换为内部SQL对象。

classmethod typeName ( ) → str