public class FileInputFormatCompactReader<T> extends Object implements CompactReader<T>
CompactReader
to delegate FileInputFormat
.Modifier and Type | Method and Description |
---|---|
void |
close() |
static <T> CompactReader.Factory<T> |
factory(FileInputFormat<T> format) |
T |
read()
Read a record, return null if no more record.
|
public T read() throws IOException
CompactReader
read
in interface CompactReader<T>
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public static <T> CompactReader.Factory<T> factory(FileInputFormat<T> format)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.