public class DrillParquetGroupConverter
extends org.apache.parquet.io.api.GroupConverter
Modifier and Type | Field and Description |
---|---|
protected List<org.apache.parquet.io.api.Converter> |
converters |
Modifier | Constructor and Description |
---|---|
|
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.
|
protected |
DrillParquetGroupConverter(OutputMutator mutator,
BaseWriter baseWriter,
OptionManager options,
ParquetReaderUtility.DateCorruptionStatus containsCorruptedDates)
Constructor is responsible for creation of converter without creation of child converters.
|
Modifier and Type | Method and Description |
---|---|
void |
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() |
String |
toString() |
protected final List<org.apache.parquet.io.api.Converter> converters
protected DrillParquetGroupConverter(OutputMutator mutator, BaseWriter baseWriter, OptionManager options, ParquetReaderUtility.DateCorruptionStatus containsCorruptedDates)
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 handlingpublic DrillParquetGroupConverter(OutputMutator mutator, BaseWriter baseWriter, org.apache.parquet.schema.GroupType schema, Collection<SchemaPath> columns, OptionManager options, ParquetReaderUtility.DateCorruptionStatus containsCorruptedDates, boolean skipRepeated, String parentName)
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 constructorprotected org.apache.parquet.io.api.PrimitiveConverter getConverterForType(String name, org.apache.parquet.schema.PrimitiveType type)
public org.apache.parquet.io.api.Converter getConverter(int i)
getConverter
in class org.apache.parquet.io.api.GroupConverter
public void start()
start
in class org.apache.parquet.io.api.GroupConverter
public void end()
end
in class org.apache.parquet.io.api.GroupConverter
Copyright © 1970 The Apache Software Foundation. All rights reserved.