Package com.basho.riak.client.api.commands.mapreduce

Examples of com.basho.riak.client.api.commands.mapreduce.SearchMapReduce


        client.execute(sv);
       
        // Sleep some more or ... yeah, it doesn't work.
        Thread.sleep(3000);
       
        SearchMapReduce smr = new SearchMapReduce.Builder()
                            .withIndex(index.getName())
                            .withQuery("NOT leader_b:true")
                            .withMapPhase(Function.newAnonymousJsFunction("function(v) { return [1]; }"), false)
                            .withReducePhase(Function.newNamedJsFunction("Riak.reduceSum"), true)
                            .build();
View Full Code Here

TOP

Related Classes of com.basho.riak.client.api.commands.mapreduce.SearchMapReduce

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.