Skip to content
Snippets Groups Projects
Commit b31a5681 authored by liukun's avatar liukun Committed by Sean Busbey
Browse files

[basicdb] Modifty the example for basicdb in order to adapt to the curd interface (#1160)

parent f79a40e7
No related branches found
No related tags found
No related merge requests found
......@@ -378,15 +378,15 @@ public class BasicDB extends DB {
bdb.init();
HashMap<String, String> fields = new HashMap<String, String>();
fields.put("A", "X");
fields.put("B", "Y");
HashMap<String, String> fields = new HashMap<String, ByteIterator>();
fields.put("A", new StringByteIterator("X"));
fields.put("B", new StringByteIterator("Y"));
bdb.read("table", "key", null, null);
bdb.insert("table", "key", fields);
fields = new HashMap<String, String>();
fields.put("C", "Z");
fields = new HashMap<String, ByteIterator>();
fields.put("C", new StringByteIterator("Z"));
bdb.update("table", "key", fields);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment