@PublicEvolving public class InputFormatBasedReader<T> extends Object implements RecordWiseFileCompactor.Reader<T>
RecordWiseFileCompactor.Reader implementation that reads the file using the FileInputFormat.| Modifier and Type | Class and Description |
|---|---|
static class |
InputFormatBasedReader.Factory<T>
Factory for
InputFormatBasedReader. |
| Constructor and Description |
|---|
InputFormatBasedReader(org.apache.flink.core.fs.Path path,
org.apache.flink.api.common.io.FileInputFormat<T> inputFormat) |
public InputFormatBasedReader(org.apache.flink.core.fs.Path path,
org.apache.flink.api.common.io.FileInputFormat<T> inputFormat)
throws IOException
IOExceptionpublic T read() throws IOException
read in interface RecordWiseFileCompactor.Reader<T>IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.