@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(Path path,
FileInputFormat<T> inputFormat) |
public InputFormatBasedReader(Path path, FileInputFormat<T> inputFormat) throws IOException
IOException
public T read() throws IOException
read
in interface RecordWiseFileCompactor.Reader<T>
IOException
public void close() throws IOException
close
in interface AutoCloseable
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.