public class MapIndexExample extends Object
The map information used is artificial and comprises a small set of keys that are known. Using a map allows addition or removal of a new key string without schema evolution, which is an advantage over using a fixed record instead.
To build (from the examples/table directory):
javac -d . -cp .:<path-to-kvclient.jar> MapIndexExample.java
To run (a KVLite or other store instance must be running on the specified host and port, under the store name. All parameters are required.
java -cp .:<path-to-kvclient.jar> table.MapIndexExample \ -host <hostName> \ -port <port> \ -store <storeName> [-clean]If -clean is specified the example will remove any existing table (and data) before and after it is run.
public static void main(String[] args)
Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.