DATATYPE - the data type which can be returnedpublic abstract class AbstractDataSource<DATATYPE> extends Object implements DataSource<DATATYPE>
DataSource implementations. Simplifies
implementation by providing iterator() and
getRandomRows(Object[]) methods that proxy their work to
DataSource.getData(int).| Constructor and Description |
|---|
AbstractDataSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
getRandomRows(DATATYPE[] data) |
Iterator<DATATYPE> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTemporaryArray, getData, getData, numDimensions, sizeforEach, spliteratorpublic AbstractDataSource()
public void getRandomRows(DATATYPE[] data)
getRandomRows in interface DataSource<DATATYPE>data - a random set of data. This array is guaranteed to be filled.