@Test public void testPutGetH() { final Table<Integer, Integer> table = ezdb.getTable("test-simple", IntegerSerde.get, IntegerSerde.get); table.put(1, 1); assertEquals(new Integer(1), table.get(1)); table.put(1, 2); assertEquals(new Integer(2), table.get(1)); table.close(); }
@Override public <H, V> Table<H, V> getTable(String tableName, Serde<H> hashKeySerde, Serde<V> valueSerde) { return getTable(tableName, hashKeySerde, ByteSerde.get, valueSerde); }
EzLmDb implements Db<byte[]> { @Override public <H, V> Table<H, V> getTable(String tableName, Serde<H> hashKeySerde, Serde<V> valueSerde) { return getTable(tableName, hashKeySerde, ByteSerde.get, valueSerde); } }
EzLmDb implements Db<byte[]> { @Override public <H, V> Table<H, V> getTable(String tableName, Serde<H> hashKeySerde, Serde<V> valueSerde) { return getTable(tableName, hashKeySerde, ByteSerde.get, valueSerde); } EzLmDb(File root);  EzLmDb(File root, EzLmDbFactory factory); }
EzLmDb implements Db<byte[]> { @Override public <H, V> Table<H, V> getTable(String tableName, Serde<H> hashKeySerde, Serde<V> valueSerde) { return getTable(tableName, hashKeySerde, ByteSerde.get, valueSerde); } EzLmDb(File root);  EzLmDb(File root, EzLmDbFactory factory); @Override void deleteTable(String tableName); @Override Table<H, V> getTable(String tableName, Serde<H> hashKeySerde, Serde<V> valueSerde); @Override RangeTable<H, R, V> getTable(String tableName, Serde<H> hashKeySerde, Serde<R> rangeKeySerde, Serde<V> valueSerde); @SuppressWarnings("unchecked") @Override RangeTable<H, R, V> getTable(String tableName, Serde<H> hashKeySerde, Serde<R> rangeKeySerde, Serde<V> valueSerde, Comparator<byte[]> hashKeyComparator, Comparator<byte[]> rangeKeyComparator); }
EzLmDb implements Db<byte[]> { @Override public <H, V> Table<H, V> getTable(String tableName, Serde<H> hashKeySerde, Serde<V> valueSerde) { return getTable(tableName, hashKeySerde, ByteSerde.get, valueSerde); } EzLmDb(File root);  EzLmDb(File root, EzLmDbFactory factory); @Override void deleteTable(String tableName); @Override Table<H, V> getTable(String tableName, Serde<H> hashKeySerde, Serde<V> valueSerde); @Override RangeTable<H, R, V> getTable(String tableName, Serde<H> hashKeySerde, Serde<R> rangeKeySerde, Serde<V> valueSerde); @SuppressWarnings("unchecked") @Override RangeTable<H, R, V> getTable(String tableName, Serde<H> hashKeySerde, Serde<R> rangeKeySerde, Serde<V> valueSerde, Comparator<byte[]> hashKeyComparator, Comparator<byte[]> rangeKeyComparator);  }