public interface DoubleDataSource
| Modifier and Type | Field and Description |
|---|---|
static int |
NOT_SPECIFIED |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
The number of doubles that can currently be read from this double data source without blocking.
|
double[] |
getAllData()
Get all the data that can be read from this data source, in a single double array.
|
int |
getData(double[] target)
Try to get as many double data from this DoubleDataSource as target can hold.
|
int |
getData(double[] target,
int targetPos,
int length)
Try to get length doubles from this DoubleDataSource, and copy them into target, starting from targetPos.
|
double[] |
getData(int amount)
Request to get the specified amount of data in a new double array.
|
long |
getDataLength()
Get the total length of the data in this data source, if available.
|
boolean |
hasMoreData()
Whether or not any more data can be read from this data source.
|
static final int NOT_SPECIFIED
double[] getData(int amount)
amount - the number of doubles requestedint getData(double[] target)
target - the double array in which to write the dataint getData(double[] target,
int targetPos,
int length)
target - the double array to write intotargetPos - position in target where to start writinglength - the amount of data requestedboolean hasMoreData()
int available()
double[] getAllData()
OutOfMemoryError - if a sufficiently large double array cannot be created.long getDataLength()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.