ucar.nc2.ft.point.standard
Class NestedTable

java.lang.Object
  extended by ucar.nc2.ft.point.standard.NestedTable

public class NestedTable
extends java.lang.Object

Implements "nested table" views of point feature datasets.

A nested (aka flattened) table starts with a leaf table (no children), plus all of its parents. There is a "join" for each child and parent.

Assumes that we have Tables that can be iterated over with a StructureDataIterator. A parent-child join assumes that for each row of the parent, a StructureDataIterator exists that iterates over the rows of the child table for that parent.

Since:
Mar 28, 2008
Author:
caron

Nested Class Summary
 class NestedTable.Table
          A generalization of a Structure.
static class NestedTable.TableType
           
 
Method Summary
 java.util.List<VariableSimpleIF> getDataVariables()
           
 EarthLocation getEarthLocation(java.util.List<StructureData> structList)
           
 FeatureType getFeatureType()
           
 java.lang.String getName()
           
 StructureDataIterator getObsDataIterator(int bufferSize)
           
 StructureDataIterator getStationDataIterator(int bufferSize)
           
 StructureDataIterator getStationObsDataIterator(StructureData stationData, int bufferSize)
           
 StructureDataIterator getStationProfileDataIterator(StructureData stationData, int bufferSize)
           
 StructureDataIterator getStationProfileObsDataIterator(java.util.List<StructureData> structList, int bufferSize)
           
 double getTime(java.util.List<StructureData> structList)
           
 DateUnit getTimeUnit()
           
 boolean isOk()
           
 StructureData makeObsStructureData(java.util.List<StructureData> structList)
           
 Station makeStation(StructureData stationData)
           
 void show(java.util.Formatter formatter)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getFeatureType

public FeatureType getFeatureType()

isOk

public boolean isOk()

getTimeUnit

public DateUnit getTimeUnit()

getDataVariables

public java.util.List<VariableSimpleIF> getDataVariables()

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

show

public void show(java.util.Formatter formatter)

getObsDataIterator

public StructureDataIterator getObsDataIterator(int bufferSize)
                                         throws java.io.IOException
Throws:
java.io.IOException

getStationDataIterator

public StructureDataIterator getStationDataIterator(int bufferSize)
                                             throws java.io.IOException
Throws:
java.io.IOException

getStationObsDataIterator

public StructureDataIterator getStationObsDataIterator(StructureData stationData,
                                                       int bufferSize)
                                                throws java.io.IOException
Throws:
java.io.IOException

getStationProfileDataIterator

public StructureDataIterator getStationProfileDataIterator(StructureData stationData,
                                                           int bufferSize)
                                                    throws java.io.IOException
Throws:
java.io.IOException

getStationProfileObsDataIterator

public StructureDataIterator getStationProfileObsDataIterator(java.util.List<StructureData> structList,
                                                              int bufferSize)
                                                       throws java.io.IOException
Throws:
java.io.IOException

getTime

public double getTime(java.util.List<StructureData> structList)

getEarthLocation

public EarthLocation getEarthLocation(java.util.List<StructureData> structList)

makeStation

public Station makeStation(StructureData stationData)

makeObsStructureData

public StructureData makeObsStructureData(java.util.List<StructureData> structList)