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) |
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, toString, toTableModel
classEquals, equals, hashCode
public RowPublisherDataSet(SelectItem[] selectItems, int maxRows, Action<RowPublisher> publishAction)
public int getMaxRows()
public void close()
AbstractDataSet
close
in interface Closeable
close
in interface AutoCloseable
close
in interface DataSet
close
in class AbstractDataSet
protected void finalize() throws Throwable
public boolean next()
DataSet
public Row getRow()
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.