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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classParquet currently supports a fixed binary type INT96 for storing hive, impala timestamp with nanoseconds precision.static classParquet currently supports a fixed binary type, which is not implemented in Drill.static classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDrillParquetGroupConverter(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 TypeMethodDescriptionvoidend()org.apache.parquet.io.api.ConvertergetConverter(int i) protected org.apache.parquet.io.api.PrimitiveConvertergetConverterForType(String name, org.apache.parquet.schema.PrimitiveType type) voidstart()toString()Methods inherited from class org.apache.parquet.io.api.GroupConverter
asGroupConverter, isPrimitiveMethods 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:
getConverterin classorg.apache.parquet.io.api.GroupConverter
-
start
public void start()- Specified by:
startin classorg.apache.parquet.io.api.GroupConverter
-
end
public void end()- Specified by:
endin classorg.apache.parquet.io.api.GroupConverter
-
toString
-