static long p_longGetBE(/*P*/ byte[] page, int index) { return decodeLongBE(page, index); }
static long p_longGetBE(/*P*/ byte[] page, int index) { return decodeLongBE(page, index); }
static long p_longGetBE(/*P*/ byte[] page, int index) { return decodeLongBE(page, index); }
/** * Returns an index by its identifier, returning null if not found. * * @param id big-endian encoded long integer * @throws IllegalArgumentException if id is malformed or reserved */ public default Index indexById(byte[] id) throws IOException { if (id.length != 8) { throw new IllegalArgumentException("Expected an 8 byte identifier: " + id.length); } return indexById(decodeLongBE(id, 0)); }
public long readLongBE() throws IOException { int start = require(8); long v = Utils.decodeLongBE(mBuffer, start); mStart = start + 8; mPos += 8; return v; }
/** * Returns an index by its identifier, returning null if not found. * * @param id big-endian encoded long integer * @throws IllegalArgumentException if id is malformed or reserved */ public default Index indexById(byte[] id) throws IOException { if (id.length != 8) { throw new IllegalArgumentException("Expected an 8 byte identifier: " + id.length); } return indexById(decodeLongBE(id, 0)); }
public long readLongBE() throws IOException { int start = require(8); long v = Utils.decodeLongBE(mBuffer, start); mStart = start + 8; mPos += 8; return v; }
public long readLongBE() throws IOException { int start = require(8); long v = Utils.decodeLongBE(mBuffer, start); mStart = start + 8; mPos += 8; return v; }
/** * Returns an index by its identifier, returning null if not found. * * @param id big-endian encoded long integer * @throws IllegalArgumentException if id is malformed or reserved */ public default Index indexById(byte[] id) throws IOException { if (id.length != 8) { throw new IllegalArgumentException("Expected an 8 byte identifier: " + id.length); } return indexById(decodeLongBE(id, 0)); }
/** * @return false if stopped */ private boolean scanAllIndexes(ScanVisitor visitor) throws IOException { if (!visitor.apply(mRegistry)) { return false; } if (!visitor.apply(mRegistryKeyMap)) { return false; } _FragmentedTrash trash = mFragmentedTrash; if (trash != null) { if (!visitor.apply(trash.mTrash)) { return false; } } Cursor all = indexRegistryByName().newCursor(null); try { for (all.first(); all.key() != null; all.next()) { long id = decodeLongBE(all.value(), 0); Index index = indexById(id); if (index instanceof _Tree && !visitor.apply((_Tree) index)) { return false; } } } finally { all.reset(); } return true; }
/** * @return false if stopped */ private boolean scanAllIndexes(ScanVisitor visitor) throws IOException { if (!visitor.apply(mRegistry)) { return false; } if (!visitor.apply(mRegistryKeyMap)) { return false; } FragmentedTrash trash = mFragmentedTrash; if (trash != null) { if (!visitor.apply(trash.mTrash)) { return false; } } Cursor all = indexRegistryByName().newCursor(null); try { for (all.first(); all.key() != null; all.next()) { long id = decodeLongBE(all.value(), 0); Index index = indexById(id); if (index instanceof Tree && !visitor.apply((Tree) index)) { return false; } } } finally { all.reset(); } return true; }
/** * @return false if stopped */ private boolean scanAllIndexes(ScanVisitor visitor) throws IOException { if (!visitor.apply(mRegistry)) { return false; } if (!visitor.apply(mRegistryKeyMap)) { return false; } FragmentedTrash trash = mFragmentedTrash; if (trash != null) { if (!visitor.apply(trash.mTrash)) { return false; } } Cursor all = indexRegistryByName().newCursor(null); try { for (all.first(); all.key() != null; all.next()) { long id = decodeLongBE(all.value(), 0); Index index = indexById(id); if (index instanceof Tree && !visitor.apply((Tree) index)) { return false; } } } finally { all.reset(); } return true; }
/** * @return false if stopped */ private boolean scanAllIndexes(ScanVisitor visitor) throws IOException { if (!visitor.apply(mRegistry)) { return false; } if (!visitor.apply(mRegistryKeyMap)) { return false; } _FragmentedTrash trash = mFragmentedTrash; if (trash != null) { if (!visitor.apply(trash.mTrash)) { return false; } } Cursor all = indexRegistryByName().newCursor(null); try { for (all.first(); all.key() != null; all.next()) { long id = decodeLongBE(all.value(), 0); Index index = indexById(id); if (index instanceof _Tree && !visitor.apply((_Tree) index)) { return false; } } } finally { all.reset(); } return true; }
try { for (all.first(); all.key() != null; all.next()) { long id = decodeLongBE(all.value(), 0);
try { for (all.first(); all.key() != null; all.next()) { long id = decodeLongBE(all.value(), 0);
long treeId = decodeLongBE(treeIdBytes, 0);
long treeId = decodeLongBE(treeIdBytes, 0);
long treeId = decodeLongBE(treeIdBytes, 0);
long treeId = decodeLongBE(treeIdBytes, 0);
long treeId = decodeLongBE(treeIdBytes, 0);