Package org.voltdb.client

Examples of org.voltdb.client.NullCallback


        String timeStamp = "2013-06-18 02:00:00.123457";

        String[] myProcs = {"R1.insert", "P1.insert"};
        for (String insertProc: myProcs) {
            for (int ii = 1; ii <= numOfRecords; ii++) {
                client.callProcedure(new NullCallback(),
                        insertProc, ii,  ii % 1000,  ii % 2 , timeStamp);
            }
        }

        try {
View Full Code Here


        // preload keys if requested
        System.out.println();
        if (config.preload) {
            System.out.println("Preloading data store...");
            for(int i=0; i < config.poolsize; i++) {
                client.callProcedure(new NullCallback(),
                                     "Put",
                                     String.format(processor.KeyFormat, i),
                                     processor.generateForStore().getStoreValue());
            }
            client.drain();
View Full Code Here

TOP

Related Classes of org.voltdb.client.NullCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.