Package ucar.nc2.ft.point.standard
Class NestedTable
- java.lang.Object
-
- 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 NestedTable Table is created after the Tables have been joined, and the leaves identified. It is a single chain of Table objects from child to parent. Highest parent is root. Lowest child is leafA 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:
- point : obsTable
- station : stnTable -> obsTable
- traj : trajTable -> obsTable
- profile : profileTable -> obsTable
- stationProfile : stnTable -> profileTable -> obsTable
- section : sectionTable -> trajTable -> obsTable
- Since:
- Mar 28, 2008
-
-
Method Summary
-
-
-
Method Detail
-
getFeatureType
public FeatureType getFeatureType()
-
getNumberOfLevels
public int getNumberOfLevels()
-
hasCoords
public boolean hasCoords()
-
getTimeName
public String getTimeName()
-
getTimeUnit
public CalendarDateUnit getTimeUnit()
-
getAltName
public String getAltName()
-
getAltUnits
public String getAltUnits()
-
getDataVariables
public List<VariableSimpleIF> getDataVariables()
-
getName
public String getName()
-
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)
-
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)
-
makeObsStructureData
public StructureData makeObsStructureData(Cursor cursor, int nest)
-
getObsDataIterator
public StructureDataIterator getObsDataIterator(Cursor cursor) throws IOException
- Throws:
IOException
-
getStationDataIterator
public StructureDataIterator getStationDataIterator() throws IOException
- Throws:
IOException
-
getRootFeatureDataIterator
public StructureDataIterator getRootFeatureDataIterator() throws IOException
- Throws:
IOException
-
getLeafFeatureDataIterator
public StructureDataIterator getLeafFeatureDataIterator(Cursor cursor) throws IOException
- Throws:
IOException
-
getMiddleFeatureDataIterator
public StructureDataIterator getMiddleFeatureDataIterator(Cursor cursor) throws IOException
- Throws:
IOException
-
getStationNestingLevel
public int getStationNestingLevel()
-
-