Category Archives: Oracle NoSQL

StoreIterator

The following code reads all records from key-value store : public class All { public static void main(String[] args) { final KVStore store; String storeName = “kvstore”; String hostName = “localhost”; String hostPort = “5000”; store = KVStoreFactory.getStore (new KVStoreConfig(storeName, hostName + “:” + hostPort)); ArrayList<String> majorKey = new ArrayList<String>(); ArrayList<String> minorKey = new ArrayList<String>();

Read More

Simple Get

The code for “Simple Get Method” is as: public class SimpleGet { public static void main(String[] args) { final KVStore store; String storeName = “kvstore”; String hostName = “localhost”; String hostPort = “5000”; store = KVStoreFactory.getStore (new KVStoreConfig(storeName, hostName + “:” + hostPort)); ArrayList<String> majorList = new ArrayList<String>(); ArrayList<String> minorList = new ArrayList<String>(); majorList.add(“Tanya”); majorList.add(“Smith”);

Read More