public StructureDataIterator getStructureDataIterator(Cursor cursor, int bufferSize) throws IOException { int parentIndex = cursor.getParentRecnum(); List<Integer> index = indexMap.get(parentIndex); if (index == null) index = new ArrayList<Integer>(); return new StructureDataIteratorIndexed(struct, index); }
public StructureDataIterator getStructureDataIterator(Cursor cursor, int bufferSize) throws IOException { int parentIndex = cursor.getParentRecnum(); List<Integer> index = indexMap.get(parentIndex); if (index == null) index = new ArrayList<>(); return new StructureDataIteratorIndexed(struct, index); }
public StructureDataIterator getStructureDataIterator(Cursor cursor, int bufferSize) throws IOException { int parentIndex = cursor.getParentRecnum(); ParentInfo info = indexMap[parentIndex]; List<Integer> index = (info == null) ? new ArrayList<Integer>() : info.recnumList; return new StructureDataIteratorIndexed(struct, index); }
@Override public StructureDataIterator getStructureDataIterator(Cursor cursor) throws IOException { int parentIndex = cursor.getParentRecnum(); ParentInfo info = indexMap[parentIndex]; List<Integer> index = (info == null) ? new ArrayList<>() : info.recnumList; return new StructureDataIteratorIndexed(struct, index); }
public StructureDataIterator getStructureDataIterator(Cursor cursor, int bufferSize) throws IOException { int parentIndex = cursor.getParentRecnum(); ParentInfo info = indexMap[parentIndex]; List<Integer> index = (info == null) ? new ArrayList<Integer>() : info.recnumList; return new StructureDataIteratorIndexed(struct, index); }
@Override public StructureDataIterator getStructureDataIterator(Cursor cursor) throws IOException { int parentIndex = cursor.getParentRecnum(); List<Integer> index = indexMap.get(parentIndex); if (index == null) index = new ArrayList<>(); return new StructureDataIteratorIndexed(struct, index); }
public StructureDataIterator getStructureDataIterator(Cursor cursor, int bufferSize) throws IOException { int firstRecno, numrecs; StructureData parentStruct = cursor.getParentStructure(); if (startIndex != null) { int parentIndex = cursor.getParentRecnum(); firstRecno = startIndex[parentIndex]; numrecs = numRecords[parentIndex]; } else { firstRecno = parentStruct.getScalarInt(startVarName); numrecs = parentStruct.getScalarInt(numRecordsVarName); } return new StructureDataIteratorLinked(struct, firstRecno, numrecs, null); }
public StructureDataIterator getStructureDataIterator(Cursor cursor, int bufferSize) throws IOException { int recnum = cursor.getParentRecnum(); try { Section section = new Section().appendRange(recnum, recnum); int count = 1; while (count++ < struct.getRank()) // handles multidim case section.appendRange(null); ArrayStructure data = (ArrayStructure) struct.read(section); // read all the data for a fixed outer index return data.getStructureDataIterator(); } catch (InvalidRangeException e) { throw new IllegalStateException(e); } }
public StructureDataIterator getStructureDataIterator(Cursor cursor, int bufferSize) throws IOException { int recnum = cursor.getParentRecnum(); try { Section section = new Section().appendRange(recnum, recnum); int count = 1; while (count++ < struct.getRank()) // handles multidim case section.appendRange(null); ArrayStructure data = (ArrayStructure) struct.read(section); // read all the data for a fixed outer index return data.getStructureDataIterator(); } catch (InvalidRangeException e) { throw new IllegalStateException(e); } }
public StructureDataIterator getStructureDataIterator(Cursor cursor, int bufferSize) throws IOException { int recnum = cursor.getParentRecnum(); try { StructureData parentStruct = struct.readStructure(recnum); ArrayStructureMA asma = new ArrayStructureMA(sm, new int[]{inner.getLength()}); for (String colName : cols.keySet()) { Array data = parentStruct.getArray(colName); StructureMembers.Member childm = sm.findMember(colName); childm.setDataArray(data); } return asma.getStructureDataIterator(); } catch (InvalidRangeException e) { throw new IllegalStateException(e); } }
@Override public StructureDataIterator getStructureDataIterator(Cursor cursor) throws IOException { int recnum = cursor.getParentRecnum(); try { Section section = new Section().appendRange(recnum, recnum); int count = 1; while (count++ < struct.getRank()) // handles multidim case section.appendRange(null); ArrayStructure data = (ArrayStructure) struct.read(section); // read all the data for a fixed outer index return data.getStructureDataIterator(); } catch (InvalidRangeException e) { throw new IllegalStateException(e); } }
@Override public StructureDataIterator getStructureDataIterator(Cursor cursor) throws IOException { if (!isInit) init(); int firstRecno, numrecs; StructureData parentStruct = cursor.getParentStructure(); if (startIndex != null) { int parentIndex = cursor.getParentRecnum(); firstRecno = startIndex[parentIndex]; numrecs = numRecords[parentIndex]; } else { firstRecno = parentStruct.getScalarInt(startVarName); numrecs = parentStruct.getScalarInt(numRecordsVarName); } return new StructureDataIteratorLinked(struct, firstRecno, numrecs, null); }
public StructureDataIterator getStructureDataIterator(Cursor cursor, int bufferSize) throws IOException { if (!isInit) init(); int firstRecno, numrecs; StructureData parentStruct = cursor.getParentStructure(); if (startIndex != null) { int parentIndex = cursor.getParentRecnum(); firstRecno = startIndex[parentIndex]; numrecs = numRecords[parentIndex]; } else { firstRecno = parentStruct.getScalarInt(startVarName); numrecs = parentStruct.getScalarInt(numRecordsVarName); } return new StructureDataIteratorLinked(struct, firstRecno, numrecs, null); }
public StructureDataIterator getStructureDataIterator(Cursor cursor, int bufferSize) throws IOException { int recnum = cursor.getParentRecnum(); try { StructureData parentStruct = struct.readStructure(recnum); ArrayStructureMA asma = new ArrayStructureMA(sm, new int[]{inner.getLength()}); for (VariableSimpleIF v : cols) { Array data = parentStruct.getArray(v.getShortName()); StructureMembers.Member childm = sm.findMember(v.getShortName()); childm.setDataArray(data); } return asma.getStructureDataIterator(); } catch (InvalidRangeException e) { throw new IllegalStateException(e); } }