public interface DataSetIterator
Modifier and Type | Method and Description |
---|---|
DDataSet |
createEmptyDs()
return a dataset that will have the same geometry at the
dataset implied by each dimension iterator.
|
QDataSet |
getRank0Value(QDataSet ds)
get the rank 0 data set the current iterator position.
|
double |
getValue(QDataSet ds)
get the value from ds at the current iterator position.
|
boolean |
hasNext()
return true while the iterator has a next element.
|
int |
index(int dim)
return the current index for the dimension.
|
int |
length(int dim)
return the length of the dimension, or the length reported by the
iterator.
|
void |
next()
iterate to the next position.
|
void |
putRank0Value(WritableDataSet ds,
QDataSet v)
replace the value in ds at the current iterator position.
|
void |
putValue(WritableDataSet ds,
double v)
replace the value in ds at the current iterator position.
|
int |
rank()
return the rank of the dataset which the iterator will walk through.
|
boolean hasNext()
int index(int dim)
dim
- the dimension number (0<=dim<inputRank)int length(int dim)
dim
- the dimension number (0<=dim<inputRank)void next()
double getValue(QDataSet ds)
ds
- a dataset with compatible geometry as the iterator's geometry.QDataSet getRank0Value(QDataSet ds)
ds
- void putValue(WritableDataSet ds, double v)
ds
- a writable dataset with compatible geometry as the iterator's geometry.v
- the value to insert.void putRank0Value(WritableDataSet ds, QDataSet v)
ds
- a writable dataset with compatible geometry as the iterator's geometry.v
- the rank 0 value to insertint rank()
DDataSet createEmptyDs()
QubeDataSetIterator.createEmptyDs()