@Internal public class DeserializationSchemaAdapter extends Object implements BulkFormat<org.apache.flink.table.data.RowData,FileSourceSplit>
DeserializationSchema into a BulkFormat.BulkFormat.RecordIterator<T>| 构造器和说明 |
|---|
DeserializationSchemaAdapter(org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData> deserializationSchema) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.connector.file.table.DeserializationSchemaAdapter.Reader |
createReader(org.apache.flink.configuration.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. |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.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(org.apache.flink.configuration.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(org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData> deserializationSchema)
public org.apache.flink.connector.file.table.DeserializationSchemaAdapter.Reader createReader(org.apache.flink.configuration.Configuration config,
FileSourceSplit split)
throws IOException
BulkFormatsplit's path starting
at the FileSourceSplit.offset() split's offset} and reads length bytes after the offset.createReader 在接口中 BulkFormat<org.apache.flink.table.data.RowData,FileSourceSplit>IOExceptionpublic org.apache.flink.connector.file.table.DeserializationSchemaAdapter.Reader restoreReader(org.apache.flink.configuration.Configuration config,
FileSourceSplit split)
throws IOException
BulkFormatsplit.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 在接口中 BulkFormat<org.apache.flink.table.data.RowData,FileSourceSplit>IOExceptionpublic boolean isSplittable()
BulkFormatSee top-level JavaDocs (section "Splitting") for details.
isSplittable 在接口中 BulkFormat<org.apache.flink.table.data.RowData,FileSourceSplit>public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> getProducedType()
BulkFormatgetProducedType 在接口中 org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>getProducedType 在接口中 BulkFormat<org.apache.flink.table.data.RowData,FileSourceSplit>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.