/** * Return the current position within this iterator */ public int[] getCurrentLocation() { return iterator.getCurrentLocation(); }
/** * Delegate to the underlying iterator */ public boolean hasNext() { return iterator.hasNext(); }
/** * Wraps the output of the underlying iterator's next() method into a Map * with the key being the name of this BaclavaIteratorNode */ public Object next() { Map result = new HashMap(); result.put(name, iterator.next()); return result; }
boolean isFlat = rows.size() == 1; while (rows.hasNext()) { DataThing row = (DataThing) rows.next(); while (bi.hasNext()) { DataThing containedThing = (DataThing) bi.next(); String containedValue = (String) containedThing.getDataObject(); int columnOffset = 0; int[] location = bi.getCurrentLocation(); if (!isFlat && location.length > 0) { columnOffset = location[location.length-1];
/** * Return the size of the underlying iterator */ public int size() { return iterator.size(); }
/** * Reset the underlying iterator to its initial state */ public void reset() { iterator.reset(); }
/** * Remove operation not supported */ public void remove() throws UnsupportedOperationException { iterator.remove(); }
List<DataThing> dataThingList = new ArrayList<DataThing>(); dataThingList.add(this); return new BaclavaIterator(dataThingList); return new BaclavaIterator(this, targetList, indexList);
boolean isFlat = rows.size() == 1; while (rows.hasNext()) { DataThing row = (DataThing) rows.next(); while (bi.hasNext()) { DataThing containedThing = (DataThing) bi.next(); String containedValue = (String) containedThing.getDataObject(); int columnOffset = 0; int[] location = bi.getCurrentLocation(); if (!isFlat && location.length > 0) { columnOffset = location[location.length-1];