public class CatalystPrimitiveStringConverter extends CatalystPrimitiveConverter
parquet.io.api.PrimitiveConverter
that converts Parquet Binary to Catalyst String.
Supports dictionaries to reduce Binary to String conversion overhead.
Follows pattern in Parquet of using dictionaries, where supported, for String conversion.
Constructor and Description |
---|
CatalystPrimitiveStringConverter(CatalystConverter parent,
int fieldIndex) |
Modifier and Type | Method and Description |
---|---|
void |
addBinary(parquet.io.api.Binary value) |
void |
addValueFromDictionary(int dictionaryId) |
boolean |
hasDictionarySupport() |
void |
setDictionary(parquet.column.Dictionary dictionary) |
addBoolean, addDouble, addFloat, addInt, addLong
public CatalystPrimitiveStringConverter(CatalystConverter parent, int fieldIndex)
public boolean hasDictionarySupport()
hasDictionarySupport
in class parquet.io.api.PrimitiveConverter
public void setDictionary(parquet.column.Dictionary dictionary)
setDictionary
in class parquet.io.api.PrimitiveConverter
public void addValueFromDictionary(int dictionaryId)
addValueFromDictionary
in class parquet.io.api.PrimitiveConverter
public void addBinary(parquet.io.api.Binary value)
addBinary
in class CatalystPrimitiveConverter