public class CompactBulkReader<T> extends Object implements CompactReader<T>
CompactReader
to delegate CompactBulkReader
.Constructor and Description |
---|
CompactBulkReader(BulkFormat.Reader<T> reader) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static <T> CompactReader.Factory<T> |
factory(BulkFormat<T,FileSourceSplit> format) |
T |
read()
Read a record, return null if no more record.
|
public CompactBulkReader(BulkFormat.Reader<T> reader) throws IOException
IOException
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(BulkFormat<T,FileSourceSplit> format)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.