public PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize) throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[2] = recnum; // the station record cursor.tableData[2] = stationData; // obs(leaf) = 0, profile=1, station(root)=2 cursor.currentIndex = 2; ft.addParentJoin(cursor); // there may be parent joins return new TimeSeriesOfProfileFeatureIterator(cursor); }
public PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize) throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[2] = recnum; // the station record cursor.tableData[2] = stationData; // obs(leaf) = 0, profile=1, station(root)=2 cursor.currentIndex = 2; ft.addParentJoin(cursor); // there may be parent joins return new TimeSeriesOfProfileFeatureIterator(cursor); }
@Override public TrajectoryProfileFeature next() throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[2] = sdataIter.getCurrentRecno(); cursor.tableData[2] = sectionData; // obs(leaf) = 0, profile=1, section(root)=2 cursor.currentIndex = 2; ft.addParentJoin(cursor); // there may be parent joins TrajectoryProfileFeature result = new StandardSectionFeature(cursor, sectionData); prev = (DsgCollectionImpl) result; return result; }
@Override public TrajectoryFeature next() throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[1] = structIter.getCurrentRecno(); cursor.tableData[1] = nextTraj; cursor.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins prev = new StandardTrajectoryFeature(cursor, nextTraj); return prev; }
public TrajectoryFeature next() throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[1] = structIter.getCurrentRecno(); cursor.tableData[1] = nextTraj; cursor.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins return new StandardTrajectoryFeature(cursor); }
public SectionFeature next() throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[2] = sdataIter.getCurrentRecno(); cursor.tableData[2] = nextSection; // obs(leaf) = 0, profile=1, section(root)=2 cursor.currentIndex = 2; ft.addParentJoin(cursor); // there may be parent joins return new StandardSectionFeature(cursor); }
public TrajectoryFeature next() throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[1] = structIter.getCurrentRecno(); cursor.tableData[1] = nextTraj; cursor.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins return new StandardTrajectoryFeature(cursor, nextTraj); }
public SectionFeature next() throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[2] = sdataIter.getCurrentRecno(); cursor.tableData[2] = nextSection; // obs(leaf) = 0, profile=1, section(root)=2 cursor.currentIndex = 2; ft.addParentJoin(cursor); // there may be parent joins return new StandardSectionFeature(cursor, nextSection); }
@Override protected PointFeature makeFeature(int recnum, StructureData sdata) throws IOException { cursor.recnum[0] = recnum; cursor.tableData[0] = sdata; // always in the first position cursor.currentIndex = 0; ft.addParentJoin(cursor); // there may be parent joins if (isMissing()) return null; // missing data double obsTime = ft.getObsTime( this.cursor); // must send a copy, since sdata is changing each time, and StandardPointFeature may be stored return new StandardPointFeature(cursor.copy(), timeUnit, obsTime); }
protected PointFeature makeFeature(int recnum, StructureData sdata) throws IOException { cursor.recnum[0] = recnum; cursor.tableData[0] = sdata; // always in the first position cursor.currentIndex = 0; ft.addParentJoin(cursor); // there may be parent joins if (isMissing()) return null; // missing data double obsTime = ft.getObsTime( this.cursor); // must send a copy, since sdata is changing each time, and StandardPointFeature may be stored return new StandardPointFeature(cursor.copy(), timeUnit, obsTime); }
@Override public PointFeatureIterator getPointFeatureIterator() throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[1] = recnum; cursor.tableData[1] = stationData; cursor.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins StructureDataIterator obsIter = ft.getLeafFeatureDataIterator(cursor); return new StandardPointFeatureIterator(this, ft, timeUnit, obsIter, cursor); }
protected PointFeature makeFeature(int recnum, StructureData sdata) throws IOException { cursor.recnum[0] = recnum; cursor.tableData[0] = sdata; // always in the first position cursor.currentIndex = 0; ft.addParentJoin(cursor); // there may be parent joins if (isMissing()) return null; // missing data double obsTime = ft.getObsTime( this.cursor); // must send a copy, since sdata is changing each time, and StandardPointFeature may be stored return new StandardPointFeature(cursor.copy(), timeUnit, obsTime); }
StandardStationProfileFeature(Station s, Cursor cursor, StructureData stationProfileData, int recnum) throws IOException { super(s, StandardStationProfileCollectionImpl.this.getTimeUnit(), StandardStationProfileCollectionImpl.this.getAltUnits(), -1); this.cursor = cursor; //this.recnum = recnum; cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[2] = recnum; // the station record cursor.tableData[2] = stationProfileData; // obs(leaf) = 0, profile=1, station(root)=2 cursor.currentIndex = 2; ft.addParentJoin(cursor); // there may be parent joins }
public ProfileFeature next() throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.tableData[1] = nextProfileData; cursor.recnum[1] = structIter.getCurrentRecno(); cursor.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins return new StandardProfileFeature(cursor, ft.getObsTime(cursor), nextProfileData); }
@Override public ProfileFeature next() throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.tableData[1] = nextProfileData; cursor.recnum[1] = structIter.getCurrentRecno(); cursor.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins prev = new StandardProfileFeature(cursor, ft.getObsTime(cursor), nextProfileData); return prev; }
@Override public StationProfileFeature next() throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[2] = sdataIter.getCurrentRecno(); cursor.tableData[2] = stationProfileData; // obs(leaf) = 0, profile=1, section(root)=2 cursor.currentIndex = 2; ft.addParentJoin(cursor); // there may be parent joins StationProfileFeature result = new StandardStationProfileFeature(ft.makeStation(stationProfileData), cursor, stationProfileData, cursor.recnum[2]); prev = (DsgCollectionImpl) result; // common for Station and StationProfile return result; }
public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[1] = recnum; cursor.tableData[1] = stationData; cursor.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins StructureDataIterator obsIter = ft.getLeafFeatureDataIterator(cursor, bufferSize); StandardPointFeatureIterator iter = new StandardPointFeatureIterator(ft, timeUnit, obsIter, cursor); if ((boundingBox == null) || (dateRange == null) || (npts < 0)) iter.setCalculateBounds(this); return iter; }
public PointFeatureCollection next() throws IOException { Cursor cursorIter = cursor.copy(); profileData = iter.next(); cursorIter.tableData[1] = profileData; cursorIter.recnum[1] = iter.getCurrentRecno(); cursorIter.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins // double time = ft.getObsTime(cursorIter); return new StandardSectionProfileFeature(cursorIter, ft.getObsTime(cursor), profileData); }
public ProfileFeature next() throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.tableData[1] = nextProfileData; cursor.recnum[1] = structIter.getCurrentRecno(); cursor.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins return new StandardProfileFeature(cursor, ft.getObsTime(cursor)); }
public PointFeatureCollection next() throws IOException { Cursor cursorIter = cursor.copy(); cursorIter.tableData[1] = iter.next(); cursorIter.recnum[1] = iter.getCurrentRecno(); cursorIter.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins // double time = ft.getObsTime(cursorIter); return new StandardSectionProfileFeature(cursorIter, ft.getObsTime(cursor)); }