public final class MaxRowsDataSet extends AbstractDataSet implements WrappingDataSet
Constructor and Description |
---|
MaxRowsDataSet(DataSet dataSet,
int maxRows) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the DataSet and any resources it may be holding.
|
Row |
getRow() |
DataSet |
getWrappedDataSet()
Gets the
DataSet that is wrapped by this WrappingDataSet . |
boolean |
next()
Moves forward to the next row.
|
decorateIdentity, getHeader, getSelectItems, indexOf, iterator, toObjectArrays, toRows, toString
classEquals, equals, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getSelectItems, indexOf, iterator, toObjectArrays, toRows
forEach, spliterator
public MaxRowsDataSet(DataSet dataSet, int maxRows)
public DataSet getWrappedDataSet()
WrappingDataSet
DataSet
that is wrapped by this WrappingDataSet
.getWrappedDataSet
in interface WrappingDataSet
public void close()
AbstractDataSet
close
in interface Closeable
close
in interface AutoCloseable
close
in interface DataSet
close
in class AbstractDataSet
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.