/** Read the next value. */ public long next() throws IOException { if (ord == valueCount) { throw new EOFException(); } if (off == blockSize) { refill(); } final long value = values[off++]; ++ord; return value; }
/** Read between <tt>1</tt> and <code>count</code> values. */ public LongsRef next(int count) throws IOException { assert count > 0; if (ord == valueCount) { throw new EOFException(); } if (off == blockSize) { refill(); } count = Math.min(count, blockSize - off); count = (int) Math.min(count, valueCount - ord); valuesRef.offset = off; valuesRef.length = count; off += count; ord += count; return valuesRef; }
refill(); ord += count; off += count;
/** Read the next value. */ public long next() throws IOException { if (ord == valueCount) { throw new EOFException(); } if (off == blockSize) { refill(); } final long value = values[off++]; ++ord; return value; }
/** Read the next value. */ public long next() throws IOException { if (ord == valueCount) { throw new EOFException(); } if (off == blockSize) { refill(); } final long value = values[off++]; ++ord; return value; }
/** Read the next value. */ public long next() throws IOException { if (ord == valueCount) { throw new EOFException(); } if (off == blockSize) { refill(); } final long value = values[off++]; ++ord; return value; }
/** Read between <tt>1</tt> and <code>count</code> values. */ public LongsRef next(int count) throws IOException { assert count > 0; if (ord == valueCount) { throw new EOFException(); } if (off == blockSize) { refill(); } count = Math.min(count, blockSize - off); count = (int) Math.min(count, valueCount - ord); valuesRef.offset = off; valuesRef.length = count; off += count; ord += count; return valuesRef; }
/** Read between <tt>1</tt> and <code>count</code> values. */ public LongsRef next(int count) throws IOException { assert count > 0; if (ord == valueCount) { throw new EOFException(); } if (off == blockSize) { refill(); } count = Math.min(count, blockSize - off); count = (int) Math.min(count, valueCount - ord); valuesRef.offset = off; valuesRef.length = count; off += count; ord += count; return valuesRef; }
/** Read between <tt>1</tt> and <code>count</code> values. */ public LongsRef next(int count) throws IOException { assert count > 0; if (ord == valueCount) { throw new EOFException(); } if (off == blockSize) { refill(); } count = Math.min(count, blockSize - off); count = (int) Math.min(count, valueCount - ord); valuesRef.offset = off; valuesRef.length = count; off += count; ord += count; return valuesRef; }
refill(); ord += count; off += count;
refill(); ord += count; off += count;
refill(); ord += count; off += count;