public final class RowPublisherDataSet extends AbstractDataSet
DataSet implementation for use in scenarios where a
pull-oriented style of reading data is not supported. This implementation
instead allows a publshing action to publish rows to the dataset in a
blocking manner, and thereby to adapt without having to load all rows into
memory.| Constructor and Description |
|---|
RowPublisherDataSet(SelectItem[] selectItems,
int maxRows,
Action<RowPublisher> publishAction) |
RowPublisherDataSet(SelectItem[] selectItems,
int maxRows,
Action<RowPublisher> publishAction,
Closeable... closeables) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the DataSet and any resources it may be holding.
|
protected void |
finalize() |
int |
getMaxRows() |
Row |
getRow() |
boolean |
next()
Moves forward to the next row.
|
decorateIdentity, getHeader, getSelectItems, indexOf, iterator, toObjectArrays, toRows, toStringclassEquals, equals, hashCodeforEach, spliteratorpublic RowPublisherDataSet(SelectItem[] selectItems, int maxRows, Action<RowPublisher> publishAction)
public RowPublisherDataSet(SelectItem[] selectItems, int maxRows, Action<RowPublisher> publishAction, Closeable... closeables)
public int getMaxRows()
public void close()
AbstractDataSetclose in interface Closeableclose in interface AutoCloseableclose in interface DataSetclose in class AbstractDataSetprotected void finalize()
throws Throwable
public boolean next()
DataSetpublic Row getRow()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.