public abstract class AbstractDataSet extends BaseObject implements DataSet
Constructor and Description |
---|
AbstractDataSet(DataSet dataSet)
Constructor appropriate for dataset implementations that wrap other
datasets, such as the
MaxRowsDataSet , FilteredDataSet and
more. |
AbstractDataSet(DataSetHeader header) |
AbstractDataSet(List<SelectItem> selectItems) |
AbstractDataSet(SelectItem[] selectItems) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the DataSet and any resources it may be holding.
|
protected void |
decorateIdentity(List<Object> identifiers)
Subclasses should implement this method and add all fields to the list
that are to be included in equals(...) and hashCode() evaluation
|
protected DataSetHeader |
getHeader() |
List<SelectItem> |
getSelectItems() |
int |
indexOf(SelectItem item)
Finds the index of a given SelectItem
|
Iterator<Row> |
iterator()
Converts the DataSet into an Iterator.
|
List<Object[]> |
toObjectArrays()
Converts the DataSet into a list of object arrays (will load all values
into memory)
|
List<Row> |
toRows()
Converts the DataSet into a list of rows (will load all rows into memory)
|
String |
toString() |
classEquals, equals, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public AbstractDataSet(SelectItem[] selectItems)
public AbstractDataSet(List<SelectItem> selectItems)
public AbstractDataSet(DataSet dataSet)
MaxRowsDataSet
, FilteredDataSet
and
more.dataSet
- public AbstractDataSet(DataSetHeader header)
public List<SelectItem> getSelectItems()
getSelectItems
in interface DataSet
protected DataSetHeader getHeader()
public final int indexOf(SelectItem item)
public void close()
public final List<Object[]> toObjectArrays()
toObjectArrays
in interface DataSet
public String toString()
toString
in class BaseObject
protected void decorateIdentity(List<Object> identifiers)
BaseObject
decorateIdentity
in class BaseObject
public List<Row> toRows()
DataSet
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.