public Iterator<Map.Entry<Key,Value>> iterator(final Transaction tx, Key startKey, Key endKey) throws IOException { if (startKey == null) { return iterator(tx); } if( isBranch() ) { return getLeafNode(tx, this, startKey).iterator(tx, startKey, endKey); } else { int idx = Arrays.binarySearch(keys, startKey); if (idx < 0) { idx = -(idx + 1); } return new BTreeIterator(tx, this, idx, endKey); } }
public Iterator<Map.Entry<Key,Value>> iterator(final Transaction tx, Key startKey, Key endKey) throws IOException { if (startKey == null) { return iterator(tx); } if( isBranch() ) { return getLeafNode(tx, this, startKey).iterator(tx, startKey, endKey); } else { int idx = Arrays.binarySearch(keys, startKey); if (idx < 0) { idx = -(idx + 1); } return new BTreeIterator(tx, this, idx, endKey); } }
public Iterator<Map.Entry<Key,Value>> iterator(final Transaction tx) throws IOException { return new BTreeIterator(tx, getFirstLeafNode(tx), 0, null); }
public Iterator<Map.Entry<Key,Value>> iterator(final Transaction tx, Key startKey, Key endKey) throws IOException { if (startKey == null) { return iterator(tx); } if( isBranch() ) { return getLeafNode(tx, this, startKey).iterator(tx, startKey, endKey); } else { int idx = Arrays.binarySearch(keys, startKey); if (idx < 0) { idx = -(idx + 1); } return new BTreeIterator(tx, this, idx, endKey); } }
public Iterator<Map.Entry<Key,Value>> iterator(final Transaction tx, Key startKey, Key endKey) throws IOException { if (startKey == null) { return iterator(tx); } if( isBranch() ) { return getLeafNode(tx, this, startKey).iterator(tx, startKey, endKey); } else { int idx = Arrays.binarySearch(keys, startKey); if (idx < 0) { idx = -(idx + 1); } return new BTreeIterator(tx, this, idx, endKey); } }
public Iterator<Map.Entry<Key,Value>> iterator(final Transaction tx) throws IOException { return new BTreeIterator(tx, getFirstLeafNode(tx), 0, null); }
public Iterator<Map.Entry<Key,Value>> iterator(final Transaction tx) throws IOException { return new BTreeIterator(tx, getFirstLeafNode(tx), 0, null); }
public Iterator<Map.Entry<Key,Value>> iterator(final Transaction tx) throws IOException { return new BTreeIterator(tx, getFirstLeafNode(tx), 0, null); }