public class ArrowUtils
extends Object
Constructor and Description |
---|
ArrowUtils() |
Modifier and Type | Method and Description |
---|---|
static DataType |
fromArrowField(org.apache.arrow.vector.types.pojo.Field field) |
static StructType |
fromArrowSchema(org.apache.arrow.vector.types.pojo.Schema schema) |
static DataType |
fromArrowType(org.apache.arrow.vector.types.pojo.ArrowType dt) |
static scala.collection.immutable.Map<String,String> |
getPythonRunnerConfMap(org.apache.spark.sql.internal.SQLConf conf)
Return Map with conf settings to be used in ArrowPythonRunner
|
static org.apache.arrow.memory.RootAllocator |
rootAllocator() |
static org.apache.arrow.vector.types.pojo.Field |
toArrowField(String name,
DataType dt,
boolean nullable,
String timeZoneId)
Maps field from Spark to Arrow.
|
static org.apache.arrow.vector.types.pojo.Schema |
toArrowSchema(StructType schema,
String timeZoneId)
Maps schema from Spark to Arrow.
|
static org.apache.arrow.vector.types.pojo.ArrowType |
toArrowType(DataType dt,
String timeZoneId)
Maps data type from Spark to Arrow.
|
public static org.apache.arrow.memory.RootAllocator rootAllocator()
public static org.apache.arrow.vector.types.pojo.ArrowType toArrowType(DataType dt, String timeZoneId)
public static DataType fromArrowType(org.apache.arrow.vector.types.pojo.ArrowType dt)
public static org.apache.arrow.vector.types.pojo.Field toArrowField(String name, DataType dt, boolean nullable, String timeZoneId)
public static DataType fromArrowField(org.apache.arrow.vector.types.pojo.Field field)
public static org.apache.arrow.vector.types.pojo.Schema toArrowSchema(StructType schema, String timeZoneId)
public static StructType fromArrowSchema(org.apache.arrow.vector.types.pojo.Schema schema)
public static scala.collection.immutable.Map<String,String> getPythonRunnerConfMap(org.apache.spark.sql.internal.SQLConf conf)