Class CsvFileFormatFactory.CsvBulkDecodingFormat

  • All Implemented Interfaces:
    org.apache.flink.connector.file.table.format.BulkDecodingFormat<org.apache.flink.table.data.RowData>, org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.connector.file.src.reader.BulkFormat<org.apache.flink.table.data.RowData,​org.apache.flink.connector.file.src.FileSourceSplit>>, org.apache.flink.table.connector.format.FileBasedStatisticsReportableInputFormat, org.apache.flink.table.connector.format.Format, org.apache.flink.table.connector.format.ProjectableDecodingFormat<org.apache.flink.connector.file.src.reader.BulkFormat<org.apache.flink.table.data.RowData,​org.apache.flink.connector.file.src.FileSourceSplit>>
    Enclosing class:
    CsvFileFormatFactory

    @VisibleForTesting
    public static class CsvFileFormatFactory.CsvBulkDecodingFormat
    extends Object
    implements org.apache.flink.connector.file.table.format.BulkDecodingFormat<org.apache.flink.table.data.RowData>, org.apache.flink.table.connector.format.ProjectableDecodingFormat<org.apache.flink.connector.file.src.reader.BulkFormat<org.apache.flink.table.data.RowData,​org.apache.flink.connector.file.src.FileSourceSplit>>, org.apache.flink.table.connector.format.FileBasedStatisticsReportableInputFormat
    CsvBulkDecodingFormat which implements FileBasedStatisticsReportableInputFormat.
    • Constructor Summary

      Constructors 
      Constructor Description
      CsvBulkDecodingFormat​(org.apache.flink.configuration.ReadableConfig formatOptions)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.flink.connector.file.src.reader.BulkFormat<org.apache.flink.table.data.RowData,​org.apache.flink.connector.file.src.FileSourceSplit> createRuntimeDecoder​(org.apache.flink.table.connector.source.DynamicTableSource.Context context, org.apache.flink.table.types.DataType physicalDataType, int[][] projections)  
      org.apache.flink.table.connector.ChangelogMode getChangelogMode()  
      org.apache.flink.table.plan.stats.TableStats reportStatistics​(List<org.apache.flink.core.fs.Path> files, org.apache.flink.table.types.DataType producedDataType)  
      • Methods inherited from interface org.apache.flink.connector.file.table.format.BulkDecodingFormat

        applyFilters
      • Methods inherited from interface org.apache.flink.table.connector.format.DecodingFormat

        applyReadableMetadata, listReadableMetadata
      • Methods inherited from interface org.apache.flink.table.connector.format.ProjectableDecodingFormat

        createRuntimeDecoder, supportsNestedProjection
    • Constructor Detail

      • CsvBulkDecodingFormat

        public CsvBulkDecodingFormat​(org.apache.flink.configuration.ReadableConfig formatOptions)
    • Method Detail

      • createRuntimeDecoder

        public org.apache.flink.connector.file.src.reader.BulkFormat<org.apache.flink.table.data.RowData,​org.apache.flink.connector.file.src.FileSourceSplit> createRuntimeDecoder​(org.apache.flink.table.connector.source.DynamicTableSource.Context context,
                                                                                                                                                                                         org.apache.flink.table.types.DataType physicalDataType,
                                                                                                                                                                                         int[][] projections)
        Specified by:
        createRuntimeDecoder in interface org.apache.flink.table.connector.format.ProjectableDecodingFormat<org.apache.flink.connector.file.src.reader.BulkFormat<org.apache.flink.table.data.RowData,​org.apache.flink.connector.file.src.FileSourceSplit>>
      • getChangelogMode

        public org.apache.flink.table.connector.ChangelogMode getChangelogMode()
        Specified by:
        getChangelogMode in interface org.apache.flink.table.connector.format.Format
      • reportStatistics

        public org.apache.flink.table.plan.stats.TableStats reportStatistics​(List<org.apache.flink.core.fs.Path> files,
                                                                             org.apache.flink.table.types.DataType producedDataType)
        Specified by:
        reportStatistics in interface org.apache.flink.table.connector.format.FileBasedStatisticsReportableInputFormat