@Test public void getEntry() { }
@Override public Entry getEntry(RocksIterator iterator) throws KitDBException { try (CloseLock ignored = checkClose()) { byte[] key_bs = iterator.key(); if (key_bs == null) { return null; } SData sData = SDataD.build(key_bs).convertValue(); Entry entry = new Entry(sData.value); return entry; } }
RSet extends RCollection { @Override public Entry getEntry(RocksIterator iterator) throws KitDBException { try (CloseLock ignored = checkClose()) { byte[] key_bs = iterator.key(); if (key_bs == null) { return null; } SData sData = SDataD.build(key_bs).convertValue(); Entry entry = new Entry(sData.value); return entry; } } }
RSet extends RCollection { @Override public Entry getEntry(RocksIterator iterator) throws KitDBException { try (CloseLock ignored = checkClose()) { byte[] key_bs = iterator.key(); if (key_bs == null) { return null; } SData sData = SDataD.build(key_bs).convertValue(); Entry entry = new Entry(sData.value); return entry; } } protected  RSet(DB db); }
RSet extends RCollection { @Override public Entry getEntry(RocksIterator iterator) throws KitDBException { try (CloseLock ignored = checkClose()) { byte[] key_bs = iterator.key(); if (key_bs == null) { return null; } SData sData = SDataD.build(key_bs).convertValue(); Entry entry = new Entry(sData.value); return entry; } } protected  RSet(DB db); List<byte[]> pop(String key, int num); void remove(String key, byte[]... values); boolean contains(String key, byte[] value); void addMayTTL(String key, int ttl, byte[]... values); void add(String key, byte[]... values); @Override void delete(String key); @Override KeyIterator getKeyIterator(); void deleteFast(String key); @Override @SuppressWarnings("unchecked") RIterator<RSet> iterator(String key); @Override int getTtl(String key); @Override void delTtl(String key); @Override void ttl(String key, int ttl); @Override boolean isExist(String key); @Override int size(String key); @Override Entry getEntry(RocksIterator iterator); }
RSet extends RCollection { @Override public Entry getEntry(RocksIterator iterator) throws KitDBException { try (CloseLock ignored = checkClose()) { byte[] key_bs = iterator.key(); if (key_bs == null) { return null; } SData sData = SDataD.build(key_bs).convertValue(); Entry entry = new Entry(sData.value); return entry; } } protected  RSet(DB db); List<byte[]> pop(String key, int num); void remove(String key, byte[]... values); boolean contains(String key, byte[] value); void addMayTTL(String key, int ttl, byte[]... values); void add(String key, byte[]... values); @Override void delete(String key); @Override KeyIterator getKeyIterator(); void deleteFast(String key); @Override @SuppressWarnings("unchecked") RIterator<RSet> iterator(String key); @Override int getTtl(String key); @Override void delTtl(String key); @Override void ttl(String key, int ttl); @Override boolean isExist(String key); @Override int size(String key); @Override Entry getEntry(RocksIterator iterator); final static String HEAD; final static byte[] HEAD_B; final static byte[] HEAD_V_B; }