ucar.nc2.ft.point
Class PointIteratorMultidim

java.lang.Object
  extended by ucar.nc2.ft.point.PointIteratorMultidim
All Implemented Interfaces:
PointFeatureIterator

public abstract class PointIteratorMultidim
extends Object
implements PointFeatureIterator

A PointFeatureIterator using the "multidimensional representation". Not currently used.

Since:
Mar 26, 2008
Author:
caron

Nested Class Summary
 
Nested classes/interfaces inherited from interface ucar.nc2.ft.PointFeatureIterator
PointFeatureIterator.Filter
 
Constructor Summary
PointIteratorMultidim(String name, List<Variable> vars, int outerIndex, PointFeatureIterator.Filter filter)
           
 
Method Summary
 boolean hasNext()
          Check if another PointFeature is available
protected abstract  PointFeature makeFeature(int recnum, StructureData sdata)
           
 PointFeature next()
          Returns the next PointFeature.
 void setBufferSize(int bytes)
          Hint to use this much memory in buffering the iteration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ucar.nc2.ft.PointFeatureIterator
finish, getBoundingBox, getCount, getDateRange, setCalculateBounds
 

Constructor Detail

PointIteratorMultidim

public PointIteratorMultidim(String name,
                             List<Variable> vars,
                             int outerIndex,
                             PointFeatureIterator.Filter filter)
Method Detail

makeFeature

protected abstract PointFeature makeFeature(int recnum,
                                            StructureData sdata)
                                     throws IOException
Throws:
IOException

hasNext

public boolean hasNext()
                throws IOException
Description copied from interface: PointFeatureIterator
Check if another PointFeature is available

Specified by:
hasNext in interface PointFeatureIterator
Returns:
true if another PointFeature is available
Throws:
IOException - on i/o error

next

public PointFeature next()
                  throws IOException
Description copied from interface: PointFeatureIterator
Returns the next PointFeature. You must call hasNext() before calling next(), even if you know it will return true.

Specified by:
next in interface PointFeatureIterator
Returns:
the next PointFeature
Throws:
IOException - on i/o error

setBufferSize

public void setBufferSize(int bytes)
Description copied from interface: PointFeatureIterator
Hint to use this much memory in buffering the iteration. No guarentee that it will be used by the implementation.

Specified by:
setBufferSize in interface PointFeatureIterator
Parameters:
bytes - amount of memory in bytes


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.