public class ParquetFileFormatFactory extends Object implements BulkReaderFormatFactory, BulkWriterFormatFactory
Modifier and Type | Class and Description |
---|---|
static class |
ParquetFileFormatFactory.ParquetBulkDecodingFormat
ParquetBulkDecodingFormat which implements
FileBasedStatisticsReportableInputFormat . |
Modifier and Type | Field and Description |
---|---|
static String |
IDENTIFIER |
static ConfigOption<String> |
TIMESTAMP_TIME_UNIT |
static ConfigOption<Boolean> |
UTC_TIMEZONE |
static ConfigOption<Boolean> |
WRITE_INT64_TIMESTAMP |
Constructor and Description |
---|
ParquetFileFormatFactory() |
Modifier and Type | Method and Description |
---|---|
BulkDecodingFormat<RowData> |
createDecodingFormat(DynamicTableFactory.Context context,
ReadableConfig formatOptions)
Creates a
BulkDecodingFormat from the given context and format options. |
EncodingFormat<BulkWriter.Factory<RowData>> |
createEncodingFormat(DynamicTableFactory.Context context,
ReadableConfig formatOptions)
Creates a format from the given context and format options.
|
String |
factoryIdentifier()
Returns a unique identifier among same factory interfaces.
|
Set<ConfigOption<?>> |
optionalOptions()
Returns a set of
ConfigOption that an implementation of this factory consumes in
addition to Factory.requiredOptions() . |
Set<ConfigOption<?>> |
requiredOptions()
Returns a set of
ConfigOption that an implementation of this factory requires in
addition to Factory.optionalOptions() . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forwardOptions
public static final String IDENTIFIER
public static final ConfigOption<Boolean> UTC_TIMEZONE
public static final ConfigOption<String> TIMESTAMP_TIME_UNIT
public static final ConfigOption<Boolean> WRITE_INT64_TIMESTAMP
public BulkDecodingFormat<RowData> createDecodingFormat(DynamicTableFactory.Context context, ReadableConfig formatOptions)
BulkReaderFormatFactory
BulkDecodingFormat
from the given context and format options.createDecodingFormat
in interface BulkReaderFormatFactory
createDecodingFormat
in interface DecodingFormatFactory<BulkFormat<RowData,FileSourceSplit>>
public EncodingFormat<BulkWriter.Factory<RowData>> createEncodingFormat(DynamicTableFactory.Context context, ReadableConfig formatOptions)
EncodingFormatFactory
The format options have been projected to top-level options (e.g. from format.ignore-errors
to ignore-errors
).
createEncodingFormat
in interface EncodingFormatFactory<BulkWriter.Factory<RowData>>
public String factoryIdentifier()
Factory
For consistency, an identifier should be declared as one lower case word (e.g. kafka
). If multiple factories exist for different versions, a version should be appended
using "-" (e.g. elasticsearch-7
).
factoryIdentifier
in interface Factory
public Set<ConfigOption<?>> requiredOptions()
Factory
ConfigOption
that an implementation of this factory requires in
addition to Factory.optionalOptions()
.
See the documentation of Factory
for more information.
requiredOptions
in interface Factory
public Set<ConfigOption<?>> optionalOptions()
Factory
ConfigOption
that an implementation of this factory consumes in
addition to Factory.requiredOptions()
.
See the documentation of Factory
for more information.
optionalOptions
in interface Factory
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.