@Override public T next(T reuse) { if (this.currentTotal < this.numTotal) { if (this.currentInSegment >= this.numPerSegment) { this.currentInSegment = 0; this.currentSegmentIndex++; this.in.set(sortBuffer.get(this.currentSegmentIndex), 0); } this.currentTotal++; this.currentInSegment++; try { return this.comp.readWithKeyDenormalization(reuse, this.in); } catch (IOException ioe) { throw new RuntimeException(ioe); } } else { return null; } }
@Override public T next(T reuse) { if (this.currentTotal < this.numTotal) { if (this.currentInSegment >= this.numPerSegment) { this.currentInSegment = 0; this.currentSegmentIndex++; this.in.set(sortBuffer.get(this.currentSegmentIndex), 0); } this.currentTotal++; this.currentInSegment++; try { return this.comp.readWithKeyDenormalization(reuse, this.in); } catch (IOException ioe) { throw new RuntimeException(ioe); } } else { return null; } }
@Override public T next(T reuse) { if (this.currentTotal < this.numTotal) { if (this.currentInSegment >= this.numPerSegment) { this.currentInSegment = 0; this.currentSegmentIndex++; this.in.set(sortBuffer.get(this.currentSegmentIndex), 0); } this.currentTotal++; this.currentInSegment++; try { return this.comp.readWithKeyDenormalization(reuse, this.in); } catch (IOException ioe) { throw new RuntimeException(ioe); } } else { return null; } }
inView.set(currentIndexSegment, offset);
inView.set(currentIndexSegment, offset);
inView.set(currentIndexSegment, offset);
inView.set(currentIndexSegment, offset);
inView.set(currentIndexSegment, 0);
inView.set(currentIndexSegment, 0);
inView.set(currentIndexSegment, 0);
inView.set(currentIndexSegment, 0);
@Override public T next(T reuse) { if (this.currentTotal < this.numTotal) { if (this.currentInSegment >= this.numPerSegment) { this.currentInSegment = 0; this.currentSegmentIndex++; this.in.set(sortBuffer.get(this.currentSegmentIndex), 0); } this.currentTotal++; this.currentInSegment++; try { return this.comp.readWithKeyDenormalization(reuse, this.in); } catch (IOException ioe) { throw new RuntimeException(ioe); } } else { return null; } }
@Override public T next() { if (this.currentTotal < this.numTotal) { if (this.currentInSegment >= this.numPerSegment) { this.currentInSegment = 0; this.currentSegmentIndex++; this.in.set(sortBuffer.get(this.currentSegmentIndex), 0); } this.currentTotal++; this.currentInSegment++; try { return this.comp.readWithKeyDenormalization(serializer.createInstance(), this.in); } catch (IOException ioe) { throw new RuntimeException(ioe); } } else { return null; } } };
@Override public T next() { if (this.currentTotal < this.numTotal) { if (this.currentInSegment >= this.numPerSegment) { this.currentInSegment = 0; this.currentSegmentIndex++; this.in.set(sortBuffer.get(this.currentSegmentIndex), 0); } this.currentTotal++; this.currentInSegment++; try { return this.comp.readWithKeyDenormalization(serializer.createInstance(), this.in); } catch (IOException ioe) { throw new RuntimeException(ioe); } } else { return null; } } };
@Override public T next() { if (this.currentTotal < this.numTotal) { if (this.currentInSegment >= this.numPerSegment) { this.currentInSegment = 0; this.currentSegmentIndex++; this.in.set(sortBuffer.get(this.currentSegmentIndex), 0); } this.currentTotal++; this.currentInSegment++; try { return this.comp.readWithKeyDenormalization(serializer.createInstance(), this.in); } catch (IOException ioe) { throw new RuntimeException(ioe); } } else { return null; } } };
@Override public T next() { if (this.currentTotal < this.numTotal) { if (this.currentInSegment >= this.numPerSegment) { this.currentInSegment = 0; this.currentSegmentIndex++; this.in.set(sortBuffer.get(this.currentSegmentIndex), 0); } this.currentTotal++; this.currentInSegment++; try { return this.comp.readWithKeyDenormalization(serializer.createInstance(), this.in); } catch (IOException ioe) { throw new RuntimeException(ioe); } } else { return null; } } };
@Override public T getRecord(T reuse, int logicalPosition) throws IOException { final int buffer = logicalPosition / this.recordsPerSegment; final int inBuffer = (logicalPosition % this.recordsPerSegment) * this.recordSize; this.inView.set(this.sortBuffer.get(buffer), inBuffer); return this.comparator.readWithKeyDenormalization(reuse, this.inView); }
@Override public T getRecord(T reuse, int logicalPosition) throws IOException { final int buffer = logicalPosition / this.recordsPerSegment; final int inBuffer = (logicalPosition % this.recordsPerSegment) * this.recordSize; this.inView.set(this.sortBuffer.get(buffer), inBuffer); return this.comparator.readWithKeyDenormalization(reuse, this.inView); }
@Override public T getRecord(T reuse, int logicalPosition) throws IOException { final int buffer = logicalPosition / this.recordsPerSegment; final int inBuffer = (logicalPosition % this.recordsPerSegment) * this.recordSize; this.inView.set(this.sortBuffer.get(buffer), inBuffer); return this.comparator.readWithKeyDenormalization(reuse, this.inView); }
@Override public T getRecord(T reuse, int logicalPosition) throws IOException { final int buffer = logicalPosition / this.recordsPerSegment; final int inBuffer = (logicalPosition % this.recordsPerSegment) * this.recordSize; this.inView.set(this.sortBuffer.get(buffer), inBuffer); return this.comparator.readWithKeyDenormalization(reuse, this.inView); }