public class CatalystArrayConverter extends CatalystConverter
parquet.io.api.GroupConverter
that converts a single-element groups that
match the characteristics of an array (see
ParquetTypesConverter
) into an
ArrayType
.
Constructor and Description |
---|
CatalystArrayConverter(org.apache.spark.sql.types.DataType elementType,
int index,
CatalystConverter parent) |
CatalystArrayConverter(org.apache.spark.sql.types.DataType elementType,
int index,
CatalystConverter parent,
scala.collection.mutable.Buffer<Object> buffer) |
Modifier and Type | Method and Description |
---|---|
org.apache.spark.sql.types.DataType |
elementType() |
void |
end() |
parquet.io.api.Converter |
getConverter(int fieldIndex) |
int |
index()
The index of this converter in the parent
|
static int |
INITIAL_ARRAY_SIZE() |
int |
size()
The number of fields this group has
|
void |
start() |
ARRAY_CONTAINS_NULL_BAG_SCHEMA_NAME, ARRAY_ELEMENTS_SCHEMA_NAME, getCurrentRecord, MAP_KEY_SCHEMA_NAME, MAP_SCHEMA_NAME, MAP_VALUE_SCHEMA_NAME, THRIFT_ARRAY_ELEMENTS_SCHEMA_NAME_SUFFIX
public CatalystArrayConverter(org.apache.spark.sql.types.DataType elementType, int index, CatalystConverter parent, scala.collection.mutable.Buffer<Object> buffer)
public CatalystArrayConverter(org.apache.spark.sql.types.DataType elementType, int index, CatalystConverter parent)
public static int INITIAL_ARRAY_SIZE()
public org.apache.spark.sql.types.DataType elementType()
public int index()
CatalystConverter
public parquet.io.api.Converter getConverter(int fieldIndex)
getConverter
in class parquet.io.api.GroupConverter
public int size()
CatalystConverter
public void start()
start
in class parquet.io.api.GroupConverter
public void end()
end
in class parquet.io.api.GroupConverter