ucar.nc2.ft.point.standard
Class Table

java.lang.Object
  extended by ucar.nc2.ft.point.standard.Table
Direct Known Subclasses:
Table.TableArrayStructure, Table.TableConstruct, Table.TableMultidimInner, Table.TableMultidimInner3D, Table.TableNestedStructure, Table.TableSingleton, Table.TableStructure, Table.TableTop

public abstract class Table
extends Object

A generalization of a Structure. Main function is to return a StructureDataIterator, iterating over its table rows

Since:
Jan 20, 2009
Author:
caron

Nested Class Summary
static class Table.CoordName
           
static class Table.TableArrayStructure
          ArrayStructure is passed in config.as Used by UnidataPointFeature: type StationProfile (deprecated)
static class Table.TableConstruct
          When theres no seperate station table, but info is duplicated in the obs structure.
static class Table.TableContiguous
          Contiguous children, using start and numRecords variables in the parent.
static class Table.TableLinkedList
          Linked list of children, using start variable in the parent, and next in the child.
static class Table.TableMultidimInner
           
static class Table.TableMultidimInner3D
           
static class Table.TableMultidimInnerPsuedo
          Used for PsuedoStructure(station, time).
static class Table.TableMultidimInnerPsuedo3D
           
static class Table.TableMultidimStructure
          Used for Structure(station, time).
static class Table.TableNestedStructure
          A Structure inside of a parent Structure.
static class Table.TableParentId
          The children have a field containing the id of the parent.
static class Table.TableParentIndex
          The children have a field containing the index of the parent.
static class Table.TableSingleton
          Table is a single StructureData, passed in as config.sdata.
static class Table.TableStructure
          A Structure, PsuedoStructure, or Sequence.
static class Table.TableTop
          Table is a single StructureData, which is empty.
static class Table.Type
           
 
Constructor Summary
protected Table(NetcdfDataset ds, TableConfig config)
           
 
Method Summary
protected  void checkNonDataVariable(String name)
           
static Table factory(NetcdfDataset ds, TableConfig config)
           
 VariableDS findVariable(String axisName)
           
 FeatureType getFeatureType()
           
 String getName()
           
abstract  StructureDataIterator getStructureDataIterator(Cursor cursor, int bufferSize)
          Iterate over the rows of this table.
 int show(Formatter f, int indent)
           
 String showAll()
           
 String showDimension()
           
protected abstract  void showTableExtraInfo(String indent, Formatter f)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Table

protected Table(NetcdfDataset ds,
                TableConfig config)
Method Detail

factory

public static Table factory(NetcdfDataset ds,
                            TableConfig config)

checkNonDataVariable

protected void checkNonDataVariable(String name)

getStructureDataIterator

public abstract StructureDataIterator getStructureDataIterator(Cursor cursor,
                                                               int bufferSize)
                                                        throws IOException
Iterate over the rows of this table. Subclasses must implement this.

Parameters:
cursor - state of comlpete iteration. Table implementations may not modify.
bufferSize - hit on how much memory (in bytes) can be used to buffer.
Returns:
iterater over the rows of this table.
Throws:
IOException - on read error

getName

public String getName()

getFeatureType

public FeatureType getFeatureType()

findVariable

public VariableDS findVariable(String axisName)

showDimension

public String showDimension()

toString

public String toString()
Overrides:
toString in class Object

showAll

public String showAll()

show

public int show(Formatter f,
                int indent)

showTableExtraInfo

protected abstract void showTableExtraInfo(String indent,
                                           Formatter f)


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