protected final Batch moveToNextRow() { if (findNextBatch() == null || !currentBatch.hasNext()) throw new NoSuchElementException(); currentBatch.nextRow(); ++position; return currentBatch; }
protected final Batch moveToNextRow() { if (findNextBatch() == null || !currentBatch.hasNext()) throw new NoSuchElementException(); currentBatch.nextRow(); ++position; return currentBatch; }
@Override public boolean hasNext() { return original.hasNext(); }
protected Batch findNextNonEmptyLeftBatch() { while (currentLeft == null) { currentLeft = left.nextBatch(); if (currentLeft == null) return null; // no more left if (currentLeft.isEmpty() || !currentLeft.hasNext()) { // Skip any empty batches ... currentLeft = null; } } return currentLeft; }
@Override public boolean hasNext() { return right.hasNext(); }
@Override public boolean hasNext() { return rowsUsed < rowCount && original.hasNext(); }
@Override public boolean hasNext() { return left.hasNext(); }
protected SingleWidthBatch( Batch batch ) { this.original = batch; long count = 0L; while (original.hasNext()) { original.nextRow(); addRow(original); ++count; } rowCount = count; }
@Override public boolean hasNext() { while (findNextBatch() != null) { if (currentBatch.hasNext()) return true; currentBatch = null; } return false; }
protected Batch findNextNonEmptyLeftBatch() { while (currentLeft == null) { currentLeft = left.nextBatch(); if (currentLeft == null) return null; // no more left if (currentLeft.isEmpty() || !currentLeft.hasNext()) { // Skip any empty batches ... currentLeft = null; } } return currentLeft; }
private boolean hasNext2() { if (batch2 == null) return false; if (batch2.hasNext()) return true; batch2 = null; return false; }
private boolean hasNext1() { if (batch1 == null) return false; if (batch1.hasNext()) return true; batch1 = null; return false; }
protected Batch findNextBatch() { if (currentBatch == null || !currentBatch.hasNext()) { currentBatch = sequence.nextBatch(); } return currentBatch; }
@Override public boolean hasNext() { while (findNextBatch() != null) { if (currentBatch.hasNext()) return true; currentBatch = null; } return false; }
protected SingleWidthBatch( Batch batch ) { this.original = batch; long count = 0L; while (original.hasNext()) { original.nextRow(); addRow(original); ++count; } rowCount = count; }
private boolean hasNext2() { if (batch2 == null) return false; if (batch2.hasNext()) return true; batch2 = null; return false; }
@Override public boolean hasNext() { return left.hasNext(); }
@Override public boolean hasNext() { return rowsUsed < rowCount && original.hasNext(); }
protected Batch findNextBatch() { if (currentBatch == null || !currentBatch.hasNext()) { currentBatch = sequence.nextBatch(); } return currentBatch; }
private boolean hasNext1() { if (batch1 == null) return false; if (batch1.hasNext()) return true; batch1 = null; return false; }