|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.virbo.dataset.QubeDataSetIterator
public class QubeDataSetIterator
Nested Class Summary | |
---|---|
static interface |
QubeDataSetIterator.DimensionIterator
|
static interface |
QubeDataSetIterator.DimensionIteratorFactory
|
static class |
QubeDataSetIterator.IndexListIterator
|
static class |
QubeDataSetIterator.IndexListIteratorFactory
|
static class |
QubeDataSetIterator.SingletonIterator
|
static class |
QubeDataSetIterator.SingletonIteratorFactory
|
static class |
QubeDataSetIterator.StartStopStepIterator
|
static class |
QubeDataSetIterator.StartStopStepIteratorFactory
|
Constructor Summary | |
---|---|
QubeDataSetIterator(QDataSet ds)
dataset iterator to help in implementing the complex indexing types of python. |
Method Summary | |
---|---|
double |
getValue(QDataSet ds)
get the value from ds at the current iterator position. |
boolean |
hasNext()
|
int |
index(int dim)
|
int |
length(int dim)
|
void |
next()
|
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. |
void |
setIndexIteratorFactory(int dim,
QubeDataSetIterator.DimensionIteratorFactory fit)
reinitializes the iterator. |
static QubeDataSetIterator |
sliceIterator(QDataSet ds,
int sliceIndex)
return an iterator for the slice of a dataset. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QubeDataSetIterator(QDataSet ds)
ds
- Method Detail |
---|
public static QubeDataSetIterator sliceIterator(QDataSet ds, int sliceIndex)
ds
- sliceIndex
-
public void setIndexIteratorFactory(int dim, QubeDataSetIterator.DimensionIteratorFactory fit)
dim
- fit
- public boolean hasNext()
hasNext
in interface DataSetIterator
public void next()
next
in interface DataSetIterator
public int index(int dim)
index
in interface DataSetIterator
public int length(int dim)
length
in interface DataSetIterator
public int rank()
DataSetIterator
rank
in interface DataSetIterator
public java.lang.String toString()
toString
in class java.lang.Object
public final double getValue(QDataSet ds)
getValue
in interface DataSetIterator
ds
- a dataset with capatible geometry as the iterator's geometry.
public final void putValue(WritableDataSet ds, double v)
putValue
in interface DataSetIterator
ds
- a writable dataset with capatible geometry as the iterator's geometry.v
- the value to insert.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |