public class FileStoreSourceReader extends org.apache.flink.connector.base.source.reader.SingleThreadMultiplexSourceReaderBase<org.apache.flink.connector.file.src.reader.BulkFormat.RecordIterator<org.apache.flink.table.data.RowData>,org.apache.flink.table.data.RowData,FileStoreSourceSplit,FileStoreSourceSplitState>
SourceReader
that read records from FileStoreSourceSplit
.Constructor and Description |
---|
FileStoreSourceReader(org.apache.flink.api.connector.source.SourceReaderContext readerContext,
TableRead tableRead,
FileStoreSourceReaderMetrics metrics,
IOManager ioManager,
Long limit) |
FileStoreSourceReader(org.apache.flink.api.connector.source.SourceReaderContext readerContext,
TableRead tableRead,
FileStoreSourceReaderMetrics metrics,
IOManager ioManager,
Long limit,
org.apache.flink.connector.base.source.reader.synchronization.FutureCompletingBlockingQueue<org.apache.flink.connector.base.source.reader.RecordsWithSplitIds<org.apache.flink.connector.file.src.reader.BulkFormat.RecordIterator<org.apache.flink.table.data.RowData>>> elementsQueue) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected FileStoreSourceSplitState |
initializedState(FileStoreSourceSplit split) |
protected void |
onSplitFinished(Map<String,FileStoreSourceSplitState> finishedSplitIds) |
void |
start() |
protected FileStoreSourceSplit |
toSplitType(String splitId,
FileStoreSourceSplitState splitState) |
addSplits, getNumberOfCurrentlyAssignedSplits, handleSourceEvents, isAvailable, notifyNoMoreSplits, pauseOrResumeSplits, pollNext, snapshotState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public FileStoreSourceReader(org.apache.flink.api.connector.source.SourceReaderContext readerContext, TableRead tableRead, FileStoreSourceReaderMetrics metrics, IOManager ioManager, @Nullable Long limit)
public FileStoreSourceReader(org.apache.flink.api.connector.source.SourceReaderContext readerContext, TableRead tableRead, FileStoreSourceReaderMetrics metrics, IOManager ioManager, @Nullable Long limit, org.apache.flink.connector.base.source.reader.synchronization.FutureCompletingBlockingQueue<org.apache.flink.connector.base.source.reader.RecordsWithSplitIds<org.apache.flink.connector.file.src.reader.BulkFormat.RecordIterator<org.apache.flink.table.data.RowData>>> elementsQueue)
public void start()
start
in interface org.apache.flink.api.connector.source.SourceReader<org.apache.flink.table.data.RowData,FileStoreSourceSplit>
start
in class org.apache.flink.connector.base.source.reader.SourceReaderBase<org.apache.flink.connector.file.src.reader.BulkFormat.RecordIterator<org.apache.flink.table.data.RowData>,org.apache.flink.table.data.RowData,FileStoreSourceSplit,FileStoreSourceSplitState>
protected void onSplitFinished(Map<String,FileStoreSourceSplitState> finishedSplitIds)
onSplitFinished
in class org.apache.flink.connector.base.source.reader.SourceReaderBase<org.apache.flink.connector.file.src.reader.BulkFormat.RecordIterator<org.apache.flink.table.data.RowData>,org.apache.flink.table.data.RowData,FileStoreSourceSplit,FileStoreSourceSplitState>
protected FileStoreSourceSplitState initializedState(FileStoreSourceSplit split)
initializedState
in class org.apache.flink.connector.base.source.reader.SourceReaderBase<org.apache.flink.connector.file.src.reader.BulkFormat.RecordIterator<org.apache.flink.table.data.RowData>,org.apache.flink.table.data.RowData,FileStoreSourceSplit,FileStoreSourceSplitState>
protected FileStoreSourceSplit toSplitType(String splitId, FileStoreSourceSplitState splitState)
toSplitType
in class org.apache.flink.connector.base.source.reader.SourceReaderBase<org.apache.flink.connector.file.src.reader.BulkFormat.RecordIterator<org.apache.flink.table.data.RowData>,org.apache.flink.table.data.RowData,FileStoreSourceSplit,FileStoreSourceSplitState>
public void close() throws Exception
close
in interface AutoCloseable
close
in class org.apache.flink.connector.base.source.reader.SourceReaderBase<org.apache.flink.connector.file.src.reader.BulkFormat.RecordIterator<org.apache.flink.table.data.RowData>,org.apache.flink.table.data.RowData,FileStoreSourceSplit,FileStoreSourceSplitState>
Exception
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.