ucar.nc2.ft.point.standard
Class NestedTable

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

public class NestedTable
extends Object

Implements "nested table" views of point feature datasets. A NestedTable is initialized with a TableConfig.

A nested 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.

Nested Tables must be put in canonical form, based on feature type:

  1. point : obsTable
  2. station : stnTable -> obsTable
  3. traj : trajTable -> obsTable
  4. profile : profileTable -> obsTable
  5. stationProfile : stnTable -> profileTable -> obsTable
  6. section : sectionTable -> trajTable -> obsTable

Since:
Mar 28, 2008
Author:
caron

Method Summary
 List<VariableSimpleIF> getDataVariables()
           
 EarthLocation getEarthLocation(Cursor cursor)
           
 String getFeatureName(Cursor cursor)
           
 FeatureType getFeatureType()
           
 double getLatitude(Cursor cursor)
           
 StructureDataIterator getLeafFeatureDataIterator(Cursor cursor, int bufferSize)
           
 double getLongitude(Cursor cursor)
           
 StructureDataIterator getMiddleFeatureDataIterator(Cursor cursor, int bufferSize)
           
 String getName()
           
 double getNomTime(Cursor cursor)
           
 int getNumberOfLevels()
           
 StructureDataIterator getObsDataIterator(Cursor cursor, int bufferSize)
           
 double getObsTime(Cursor cursor)
           
 StructureDataIterator getRootFeatureDataIterator(int bufferSize)
           
 StructureDataIterator getStationDataIterator(int bufferSize)
           
 DateUnit getTimeUnit()
           
 boolean hasCoords()
           
 boolean isAltMissing(Cursor cursor)
           
 boolean isFeatureMissing(StructureData sdata)
           
 boolean isMissing(Cursor cursor)
           
 boolean isTimeMissing(Cursor cursor)
           
 StructureData makeObsStructureData(Cursor cursor)
           
 void show(Formatter formatter)
           
 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()

getNumberOfLevels

public int getNumberOfLevels()

hasCoords

public boolean hasCoords()

getTimeUnit

public DateUnit getTimeUnit()

getDataVariables

public List<VariableSimpleIF> getDataVariables()

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object

show

public void show(Formatter formatter)

getObsTime

public double getObsTime(Cursor cursor)

getNomTime

public double getNomTime(Cursor cursor)

getLatitude

public double getLatitude(Cursor cursor)

getLongitude

public double getLongitude(Cursor cursor)

getEarthLocation

public EarthLocation getEarthLocation(Cursor cursor)

getFeatureName

public String getFeatureName(Cursor cursor)

isFeatureMissing

public boolean isFeatureMissing(StructureData sdata)

isTimeMissing

public boolean isTimeMissing(Cursor cursor)

isAltMissing

public boolean isAltMissing(Cursor cursor)

isMissing

public boolean isMissing(Cursor cursor)

makeObsStructureData

public StructureData makeObsStructureData(Cursor cursor)

getObsDataIterator

public StructureDataIterator getObsDataIterator(Cursor cursor,
                                                int bufferSize)
                                         throws IOException
Throws:
IOException

getStationDataIterator

public StructureDataIterator getStationDataIterator(int bufferSize)
                                             throws IOException
Throws:
IOException

getRootFeatureDataIterator

public StructureDataIterator getRootFeatureDataIterator(int bufferSize)
                                                 throws IOException
Throws:
IOException

getLeafFeatureDataIterator

public StructureDataIterator getLeafFeatureDataIterator(Cursor cursor,
                                                        int bufferSize)
                                                 throws IOException
Throws:
IOException

getMiddleFeatureDataIterator

public StructureDataIterator getMiddleFeatureDataIterator(Cursor cursor,
                                                          int bufferSize)
                                                   throws IOException
Throws:
IOException


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