@Override public StructureData next() throws IOException { recnum++; return currIter.next(); }
@Override public StructureData next() throws IOException { recnum++; return currIter.next(); }
@Override public StructureData next() throws IOException { StructureData sdata = orgIter.next(); return newStruct.convert(sdata, count++); }
public Object next() { // LOOK needs IOException StructureData sdata; try { sdata = structIter.next(); } catch (IOException e) { throw new RuntimeException(e); } try { return makeDatatypeWithData( recnum++, sdata); } catch (IOException e) { throw new RuntimeException(e.getMessage()); } }
public Object next() { // LOOK needs IOException StructureData sdata; try { sdata = structIter.next(); } catch (IOException e) { throw new RuntimeException(e); } try { return makeDatatypeWithData( recnum++, sdata); } catch (IOException e) { throw new RuntimeException(e.getMessage()); } }
private StructureData nextStructureData() throws IOException { return structIter.hasNext() ? structIter.next() : null; } }
@Override public StructureData next() throws IOException { StructureData sdata = orgIter.next(); return newStruct.convert(sdata, count++); }
@Override public StructureData next() throws IOException { StructureData sdata = orgIter.next(); return newStruct.convert(sdata, count++); }
@Override public StructureData next() throws IOException { StructureData sdata = orgIter.next(); return newStruct.convert(sdata, count++); }
public boolean hasNext() throws IOException { while (true) { if (!sdataIter.hasNext()) return false; nextSection = sdataIter.next(); if (!ft.isFeatureMissing(nextSection)) break; } return true; }
public boolean hasNext() throws IOException { while (true) { if (!structIter.hasNext()) return false; nextProfileData = structIter.next(); if (!ft.isFeatureMissing(nextProfileData)) break; } return true; }
public boolean hasNext() throws IOException { while (true) { if (!sdataIter.hasNext()) return false; nextSection = sdataIter.next(); if (!ft.isFeatureMissing(nextSection)) break; } return true; }
public boolean hasNext() throws IOException { while (true) { if(!structIter.hasNext()) return false; nextTraj = structIter.next(); if (!ft.isFeatureMissing(nextTraj)) break; } return true; }
public boolean hasNext() throws IOException { while (true) { if (!structIter.hasNext()) return false; nextProfileData = structIter.next(); if (!ft.isFeatureMissing(nextProfileData)) break; } return true; }
public boolean hasNext() throws IOException { while (true) { if(!structIter.hasNext()) return false; nextTraj = structIter.next(); if (!ft.isFeatureMissing(nextTraj)) break; } return true; }
static private void printSequence(PrintWriter out, ArraySequence seq, Indent indent, CancelTask ct) { // throws IOException { try (StructureDataIterator iter = seq.getStructureDataIterator()) { while (iter.hasNext()) { StructureData sdata = iter.next(); out.println("\n" + indent + "{"); printStructureData(out, sdata, indent, ct); out.print(indent + "} " + sdata.getName()); if (ct != null && ct.isCancel()) return; } } catch (IOException e) { e.printStackTrace(); // shouldnt happen ?? } }
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)); }
@Override public PointFeatureCollection next() throws IOException { Cursor cursorIter = cursor.copy(); profileData = sdataIter.next(); cursorIter.tableData[1] = profileData; cursorIter.recnum[1] = sdataIter.getCurrentRecno(); cursorIter.currentIndex = 1; ft.addParentJoin(cursorIter); // there may be parent joins LOOK cursor or cursorIter ? // double time = ft.getObsTime(cursorIter); PointFeatureCollection result = new StandardSectionProfileFeature(cursorIter, ft.getObsTime(cursor), profileData); prev = (DsgCollectionImpl) result; // common for Station and StationProfile return result; }
private void extractFirst(StructureDataIterator sdataIter, Extract result) throws IOException { while (sdataIter.hasNext()) { StructureData sdata = sdataIter.next(); for (StructureMembers.Member m : sdata.getMembers()) { if (m.getName().equals("Buoy/platform identifier")) result.platformId = sdata.convertScalarDouble(m); else if (m.getDataType() == DataType.SEQUENCE) { ArraySequence data = (ArraySequence) sdata.getArray(m); extractNested(data.getStructureDataIterator(), result); } } } }
static private void extractSectionFromSequence(ParsedSectionSpec child, ArraySequence outerData, IndexIterator to) throws IOException, InvalidRangeException { try (StructureDataIterator sdataIter = outerData.getStructureDataIterator()) { while (sdataIter.hasNext()) { StructureData sdata = sdataIter.next(); StructureMembers.Member m = outerData.findMember(child.v.getShortName()); Array innerData = sdata.getArray(child.v.getShortName()); MAMath.copy(m.getDataType(), innerData.getIndexIterator(), to); } } }