Class DrillParquetGroupConverter
java.lang.Object
org.apache.parquet.io.api.Converter
org.apache.parquet.io.api.GroupConverter
org.apache.drill.exec.store.parquet2.DrillParquetGroupConverter
public class DrillParquetGroupConverter
extends org.apache.parquet.io.api.GroupConverter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
Parquet currently supports a fixed binary type INT96 for storing hive, impala timestamp with nanoseconds precision.static class
Parquet currently supports a fixed binary type, which is not implemented in Drill.static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
DrillParquetGroupConverter
(OutputMutator mutator, BaseWriter baseWriter, OptionManager options, ParquetReaderUtility.DateCorruptionStatus containsCorruptedDates) Constructor is responsible for creation of converter without creation of child converters.DrillParquetGroupConverter
(OutputMutator mutator, BaseWriter baseWriter, org.apache.parquet.schema.GroupType schema, Collection<SchemaPath> columns, OptionManager options, ParquetReaderUtility.DateCorruptionStatus containsCorruptedDates, boolean skipRepeated, String parentName) The constructor is responsible for creation of converters tree and may invoke itself for creation of child converters when nested field is group type field too. -
Method Summary
Modifier and TypeMethodDescriptionvoid
end()
org.apache.parquet.io.api.Converter
getConverter
(int i) protected org.apache.parquet.io.api.PrimitiveConverter
getConverterForType
(String name, org.apache.parquet.schema.PrimitiveType type) void
start()
toString()
Methods inherited from class org.apache.parquet.io.api.GroupConverter
asGroupConverter, isPrimitive
Methods inherited from class org.apache.parquet.io.api.Converter
asPrimitiveConverter
-
Field Details
-
converters
-
-
Constructor Details
-
DrillParquetGroupConverter
protected DrillParquetGroupConverter(OutputMutator mutator, BaseWriter baseWriter, OptionManager options, ParquetReaderUtility.DateCorruptionStatus containsCorruptedDates) Constructor is responsible for creation of converter without creation of child converters.- Parameters:
mutator
- output mutator, used to share managed buffer with primitive convertersbaseWriter
- map or list writer associated with the group converteroptions
- option manager used to check enabled option when necessarycontainsCorruptedDates
- allows to select strategy for dates handling
-
DrillParquetGroupConverter
public DrillParquetGroupConverter(OutputMutator mutator, BaseWriter baseWriter, org.apache.parquet.schema.GroupType schema, Collection<SchemaPath> columns, OptionManager options, ParquetReaderUtility.DateCorruptionStatus containsCorruptedDates, boolean skipRepeated, String parentName) The constructor is responsible for creation of converters tree and may invoke itself for creation of child converters when nested field is group type field too. Assumed that ordering of fields from schema parameter matches ordering of paths in columns list. Though columns may have fields which aren't present in schema.- Parameters:
mutator
- output mutator, used to share managed buffer with primitive convertersbaseWriter
- map or list writer associated with the group converterschema
- group type of the convertercolumns
- columns to projectoptions
- option manager used to check enabled option when necessarycontainsCorruptedDates
- allows to select strategy for dates handlingskipRepeated
- true only if parent field in schema detected as list and current schema is repeated group typeparentName
- name of group converter which called the constructor
-
-
Method Details
-
getConverterForType
protected org.apache.parquet.io.api.PrimitiveConverter getConverterForType(String name, org.apache.parquet.schema.PrimitiveType type) -
getConverter
public org.apache.parquet.io.api.Converter getConverter(int i) - Specified by:
getConverter
in classorg.apache.parquet.io.api.GroupConverter
-
start
public void start()- Specified by:
start
in classorg.apache.parquet.io.api.GroupConverter
-
end
public void end()- Specified by:
end
in classorg.apache.parquet.io.api.GroupConverter
-
toString
-