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 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
- Author:
- caron
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.