public abstract class DataReader<T> extends Object
| Constructor and Description |
|---|
DataReader() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Method for closing the reader.
|
abstract int |
estimateSizeInBytes(T item)
Method that should estimate memory usage of given item, for purpose
of limiting amount of data kept in memory during pre-sorting phase.
|
abstract T |
readNext()
Method for reading the next data item; will return
null to indicate end of input, otherwise return a non-null
item.
|
public abstract T readNext() throws IOException
IOExceptionpublic abstract int estimateSizeInBytes(T item)
public abstract void close()
throws IOException
IOExceptionCopyright © 2012-2014 FasterXML. All Rights Reserved.