DATATYPE
- the data type which can be returnedpublic interface DataSource<DATATYPE> extends Iterable<DATATYPE>
Modifier and Type | Method and Description |
---|---|
DATATYPE |
getData(int row)
Get the data for a given row
|
void |
getData(int startRow,
int stopRow,
DATATYPE[] data)
Get data between given rows.
|
void |
getRandomRows(DATATYPE[] data) |
int |
numDimensions() |
int |
numRows() |
void getData(int startRow, int stopRow, DATATYPE[] data)
numRows()
.
data is guaranteed to have (stopRow - startRow) valid entriesstartRow
- where to start (inclusive)stopRow
- where to stop (exclusive)data
- the array to fillDATATYPE getData(int row)
row
- the row numberint numDimensions()
void getRandomRows(DATATYPE[] data)
data
- a random set of data. This array is guaranteed to be filled.int numRows()