public BytesRef next() throws IOException { if (pos < size) { return get(spare, ords == null ? pos++ : ords[pos++]); } return null; }
@Override protected void setPivot(int i) { final int ord = orderdEntries[i]; get(pivot, ord); }
@Override protected int comparePivot(int j) { final int ord = orderdEntries[j]; return comp.compare(pivot, get(scratch2, ord)); }
public BytesRef next() throws IOException { if (++curPos < entries.size()) { entries.get(spare, curPos); return spare; } return null; }
@Override public BytesRef next() throws IOException { if (++curPos < entries.size()) { return entries.get(spare, (currentOrd = ords[curPos])); } return null; } }