| Package | Description |
|---|---|
| org.apache.flink.connector.file.src.impl | |
| org.apache.flink.connector.file.src.reader | |
| org.apache.flink.connector.file.src.util |
| Modifier and Type | Class and Description |
|---|---|
static class |
FileRecordFormatAdapter.Reader<T>
The reader adapter, from
FileRecordFormat.Reader to BulkFormat.Reader. |
static class |
StreamFormatAdapter.Reader<T>
The reader adapter, from
StreamFormat.Reader to BulkFormat.Reader. |
| Modifier and Type | Method and Description |
|---|---|
BulkFormat.Reader<T> |
StreamFormatAdapter.createReader(org.apache.flink.configuration.Configuration config,
FileSourceSplit split) |
BulkFormat.Reader<T> |
FileRecordFormatAdapter.createReader(org.apache.flink.configuration.Configuration config,
FileSourceSplit split) |
BulkFormat.Reader<T> |
StreamFormatAdapter.restoreReader(org.apache.flink.configuration.Configuration config,
FileSourceSplit split) |
BulkFormat.Reader<T> |
FileRecordFormatAdapter.restoreReader(org.apache.flink.configuration.Configuration config,
FileSourceSplit split) |
| Modifier and Type | Method and Description |
|---|---|
BulkFormat.Reader<T> |
BulkFormat.createReader(org.apache.flink.configuration.Configuration config,
SplitT 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. |
BulkFormat.Reader<T> |
BulkFormat.restoreReader(org.apache.flink.configuration.Configuration config,
SplitT split)
Creates a new reader that reads from
split.path() starting at offset and reads
until length bytes after the offset. |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
Utils.forEachRemaining(BulkFormat.Reader<T> reader,
java.util.function.Consumer<? super T> action)
Performs the given action for each remaining element in
BulkFormat.Reader until all
elements have been processed or the action throws an exception. |
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.