@Override public Stats analyze(byte[] lowKey, byte[] highKey) throws IOException { TreeCursor cursor = newCursor(Transaction.BOGUS); try { cursor.mKeyOnly = true; cursor.random(lowKey, highKey); return cursor.key() == null ? new Stats(0, 0, 0, 0, 0) : cursor.analyze(); } catch (Throwable e) { cursor.reset(); throw e; } }
@Override public Stats analyze(byte[] lowKey, byte[] highKey) throws IOException { TreeCursor cursor = new TreeCursor(this, Transaction.BOGUS); try { cursor.autoload(false); cursor.random(lowKey, highKey); return cursor.key() == null ? new Stats(0, 0, 0, 0, 0) : cursor.analyze(); } catch (Throwable e) { cursor.reset(); throw e; } }
@Override public Stats analyze(byte[] lowKey, byte[] highKey) throws IOException { TreeCursor cursor = new TreeCursor(this, Transaction.BOGUS); try { cursor.autoload(false); cursor.random(lowKey, highKey); return cursor.key() == null ? new Stats(0, 0, 0, 0, 0) : cursor.analyze(); } catch (Throwable e) { cursor.reset(); throw e; } }