@Internal public class DeserializationSchemaAdapter extends Object implements BulkFormat<RowData,FileSourceSplit>
DeserializationSchema
into a BulkFormat
.BulkFormat.RecordIterator<T>
Constructor and Description |
---|
DeserializationSchemaAdapter(DeserializationSchema<RowData> deserializationSchema) |
Modifier and Type | Method and Description |
---|---|
org.apache.flink.connector.file.table.DeserializationSchemaAdapter.Reader |
createReader(Configuration config,
FileSourceSplit split)
Creates a new reader that reads from the
split's path starting
at the FileSourceSplit.offset() split's offset} and reads length bytes after the offset. |
TypeInformation<RowData> |
getProducedType()
Gets the type produced by this format.
|
boolean |
isSplittable()
Checks whether this format is splittable.
|
org.apache.flink.connector.file.table.DeserializationSchemaAdapter.Reader |
restoreReader(Configuration config,
FileSourceSplit split)
Creates a new reader that reads from
split.path() starting at offset and
reads until length bytes after the offset. |
public DeserializationSchemaAdapter(DeserializationSchema<RowData> deserializationSchema)
public org.apache.flink.connector.file.table.DeserializationSchemaAdapter.Reader createReader(Configuration config, FileSourceSplit split) throws IOException
BulkFormat
split's path
starting
at the FileSourceSplit.offset()
split's offset} and reads length
bytes after the offset.createReader
in interface BulkFormat<RowData,FileSourceSplit>
IOException
public org.apache.flink.connector.file.table.DeserializationSchemaAdapter.Reader restoreReader(Configuration config, FileSourceSplit split) throws IOException
BulkFormat
split.path()
starting at offset
and
reads until length
bytes after the offset. A number of recordsToSkip
records
should be read and discarded after the offset. This is typically part of restoring a reader
to a checkpointed position.restoreReader
in interface BulkFormat<RowData,FileSourceSplit>
IOException
public boolean isSplittable()
BulkFormat
See top-level JavaDocs
(section "Splitting") for details.
isSplittable
in interface BulkFormat<RowData,FileSourceSplit>
public TypeInformation<RowData> getProducedType()
BulkFormat
getProducedType
in interface ResultTypeQueryable<RowData>
getProducedType
in interface BulkFormat<RowData,FileSourceSplit>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.