## org.das2.qds.IndexListDataSetIterator

Iterator that uses a rank 2 list of indeces. For example, to iterate over 10 points of a rank 2 dataset, this would be constructed with a dataset[10,2].

## IndexListDataSetIterator( QDataSet indeces )

Create the iterator

## createEmptyDs

createEmptyDs( ) → org.das2.qds.DDataSet

### Returns:

org.das2.qds.DDataSet
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getRank0Value

getRank0Value( QDataSet ds ) → QDataSet

### Parameters

ds - a QDataSet

### Returns:

org.das2.qds.QDataSet
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getValue

getValue( QDataSet ds ) → double

get the value from ds at the current iterator position.

### Parameters

ds - a dataset with compatible geometry as the iterator's geometry.

### Returns:

the value of ds at the current iterator position.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## hasNext

hasNext( ) → boolean

### Returns:

boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## index

index( int dim ) → int

### Parameters

dim - an int

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## length

length( int dim ) → int

### Parameters

dim - an int

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## next

next( ) → void

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## putRank0Value

putRank0Value( org.das2.qds.WritableDataSet ds, QDataSet vds ) → void

### Parameters

ds - a WritableDataSet
vds - a QDataSet

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## putValue

putValue( org.das2.qds.WritableDataSet ds, double v ) → void

replace the value in ds at the current iterator position.

### Parameters

ds - a writable dataset with compatible geometry as the iterator's geometry.
v - the value to insert.

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## rank

rank( ) → int

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## toString

toString( ) → String

### Returns:

java.lang.String
[search for examples] [view on GitHub] [view on old javadoc] [view source]