## org.autoplot.datasource.RecordIterator

Introduce class to hold code for iterating through any dataset. This will detect the time series browse capability and streaming. So if the data source is already streaming, then this is trivial. If not, then it will request chunks of data from the time series browse and handle them one chunk at a time. And additional trim can be used, see constrainDepend0.

## RecordIterator( String suri, DatumRange timeRange )

create a new RecordIterator for the given URI and time range.

## RecordIterator( String suri, DatumRange timeRange, boolean allowStream )

create a new RecordIterator for the given URI and time range.

## collect

collect( java.util.Iterator qds ) → QDataSet

do the opposite function, collect all the records and return a dataset.

### Parameters

qds - a java.util.Iterator

### Returns:

a QDataSet
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## constrainDepend0

constrainDepend0( DatumRange dr ) → void

limit the data returned such that only data within the datum range provided are returned.

### Parameters

dr - the timerange.

### Returns:

void (returns nothing)
[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]

## next

next( ) → QDataSet

### Returns:

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

## remove

remove( ) → void

### Returns:

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

## resortFields

resortFields( int[] sort ) → void

get a subset or rearrange the fields of each record.

### Parameters

sort - an int[]

### Returns:

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