@Override protected SortedReader<ByteBuffer> createReader(NavigableMap<byte[], byte[]> data) { SortedOplogConfiguration config = new SortedOplogConfiguration("test"); SortedBuffer<Integer> sb = new SortedBuffer<Integer>(config, 0); for (Entry<byte[], byte[]> entry : data.entrySet()) { sb.put(entry.getKey(), entry.getValue()); } return sb; } }
@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); }