startTime = compactionStats.begin();
assert handler != null; long start = factory.getConfiguration().getStatistics().getFlush().begin();
startTime = compactionStats.begin();
long start = stats.getFlush().begin(); int byteCount = 0; if (writer == null) {
long start = stats.getFlush().begin(); int byteCount = 0;
long start = stats.getFlush().begin(); int byteCount = 0;
long start = stats.getFlush().begin(); int byteCount = 0; if (writer == null) {
long start = factory.getConfiguration().getStatistics().getMinorCompaction().begin(); try { compacted |= level.compact(aborted);
@Override public SortedHoplogPersistedEvent read(byte[] key) throws IOException { long startTime = stats.getRead().begin(); String user = logger.isDebugEnabled() ? "Read" : null;
@Override public SortedHoplogPersistedEvent read(byte[] key) throws IOException { long startTime = stats.getRead().begin(); String user = logger.fineEnabled() ? "Read" : null;
@Override public ByteBuffer read(byte[] key) throws IOException { assert key != null; if (logger.finestEnabled()) { logger.finest(String.format("Reading key %s from %s", Hex.toHex(key), path)); } long start = sopConfig.getStatistics().getRead().begin(); try { HFileScanner seek = reader.getScanner(true, true); if (seek.seekTo(key) == 0) { ByteBuffer val = seek.getValue(); sopConfig.getStatistics().getRead().end(val.remaining(), start); return val; } sopConfig.getStatistics().getRead().end(start); sopConfig.getStatistics().getBloom().falsePositive(); return null; } catch (IOException e) { sopConfig.getStatistics().getRead().error(start); throw (IOException) e.fillInStackTrace(); } }
@Override public void put(byte[] key, byte[] value) { assert key != null; assert value != null; long start = factory.getConfiguration().getStatistics().getPut().begin(); getCurrent().put(key, value); factory.getConfiguration().getStatistics().getPut().end(value.length, start); }