/** * Advance cursor by n positions within the block. * * @param n * Number of key-value pairs to skip in block. * @throws IOException */ private void inBlockAdvance(long n) throws IOException { for (long i = 0; i < n; ++i) { checkKey(); if (!valueBufferInputStream.isClosed()) { valueBufferInputStream.close(); } klen = -1; currentLocation.incRecordIndex(); } }
/** * Advance cursor by n positions within the block. * * @param n * Number of key-value pairs to skip in block. * @throws IOException */ private void inBlockAdvance(long n) throws IOException { for (long i = 0; i < n; ++i) { checkKey(); if (!valueBufferInputStream.isClosed()) { valueBufferInputStream.close(); } klen = -1; currentLocation.incRecordIndex(); } }
/** * Advance cursor by n positions within the block. * * @param n * Number of key-value pairs to skip in block. * @throws IOException */ private void inBlockAdvance(long n) throws IOException { for (long i = 0; i < n; ++i) { checkKey(); if (!valueBufferInputStream.isClosed()) { valueBufferInputStream.close(); } klen = -1; currentLocation.incRecordIndex(); } }
/** * Advance cursor by n positions within the block. * * @param n * Number of key-value pairs to skip in block. * @throws IOException */ private void inBlockAdvance(long n) throws IOException { for (long i = 0; i < n; ++i) { checkKey(); if (!valueBufferInputStream.isClosed()) { valueBufferInputStream.close(); } klen = -1; currentLocation.incRecordIndex(); } }
/** * Advance cursor by n positions within the block. * * @param n * Number of key-value pairs to skip in block. * @throws IOException */ private void inBlockAdvance(long n) throws IOException { for (long i = 0; i < n; ++i) { checkKey(); if (!valueBufferInputStream.isClosed()) { valueBufferInputStream.close(); } klen = -1; currentLocation.incRecordIndex(); } }
/** * Internal API. Comparing the key at cursor to user-specified key. * * @param other * user-specified key. * @return negative if key at cursor is smaller than user key; 0 if equal; * and positive if key at cursor greater than user key. * @throws IOException */ int compareCursorKeyTo(RawComparable other) throws IOException { checkKey(); return reader.compareKeys(keyBuffer, 0, klen, other.buffer(), other .offset(), other.size()); }
/** * Internal API. Comparing the key at cursor to user-specified key. * * @param other * user-specified key. * @return negative if key at cursor is smaller than user key; 0 if equal; * and positive if key at cursor greater than user key. * @throws IOException */ int compareCursorKeyTo(RawComparable other) throws IOException { checkKey(); return reader.compareKeys(keyBuffer, 0, klen, other.buffer(), other .offset(), other.size()); }
/** * Internal API. Comparing the key at cursor to user-specified key. * * @param other * user-specified key. * @return negative if key at cursor is smaller than user key; 0 if equal; * and positive if key at cursor greater than user key. * @throws IOException */ int compareCursorKeyTo(RawComparable other) throws IOException { checkKey(); return reader.compareKeys(keyBuffer, 0, klen, other.buffer(), other .offset(), other.size()); }
/** * Internal API. Comparing the key at cursor to user-specified key. * * @param other * user-specified key. * @return negative if key at cursor is smaller than user key; 0 if equal; * and positive if key at cursor greater than user key. * @throws IOException */ int compareCursorKeyTo(RawComparable other) throws IOException { checkKey(); return reader.compareKeys(keyBuffer, 0, klen, other.buffer(), other .offset(), other.size()); }
/** * Get an entry to access the key and value. * * @return The Entry object to access the key and value. * @throws IOException */ public Entry entry() throws IOException { checkKey(); return new Entry(); }
/** * Internal API. Comparing the key at cursor to user-specified key. * * @param other * user-specified key. * @return negative if key at cursor is smaller than user key; 0 if equal; * and positive if key at cursor greater than user key. * @throws IOException */ int compareCursorKeyTo(RawComparable other) throws IOException { checkKey(); return reader.compareKeys(keyBuffer, 0, klen, other.buffer(), other .offset(), other.size()); }
/** * Get an entry to access the key and value. * * @return The Entry object to access the key and value. * @throws IOException */ public Entry entry() throws IOException { checkKey(); return new Entry(); }
/** * Get an entry to access the key and value. * * @return The Entry object to access the key and value. * @throws IOException */ public Entry entry() throws IOException { checkKey(); return new Entry(); }
/** * Get an entry to access the key and value. * * @return The Entry object to access the key and value. * @throws IOException */ public Entry entry() throws IOException { checkKey(); return new Entry(); }
/** * Get an entry to access the key and value. * * @return The Entry object to access the key and value. * @throws IOException */ public Entry entry() throws IOException { checkKey(); return new Entry(); }
/** * Advance cursor by n positions within the block. * * @param n * Number of key-value pairs to skip in block. * @throws IOException */ private void inBlockAdvance(long n) throws IOException { for (long i = 0; i < n; ++i) { checkKey(); if (!valueBufferInputStream.isClosed()) { valueBufferInputStream.close(); } klen = -1; currentLocation.incRecordIndex(); } }
/** * Internal API. Comparing the key at cursor to user-specified key. * * @param other * user-specified key. * @return negative if key at cursor is smaller than user key; 0 if equal; * and positive if key at cursor greater than user key. * @throws IOException */ int compareCursorKeyTo(RawComparable other) throws IOException { checkKey(); return reader.compareKeys(keyBuffer, 0, klen, other.buffer(), other .offset(), other.size()); }
/** * Get an entry to access the key and value. * * @return The Entry object to access the key and value. * @throws IOException */ public Entry entry() throws IOException { checkKey(); return new Entry(); }