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

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


  private void JsBucketKeyMR(String bucketType) throws InterruptedException, ExecutionException, IOException
  {
    initValues(bucketType);
       
        Namespace ns = new Namespace(bucketType, mrBucket);
    MapReduce mr = new BucketKeyMapReduce.Builder()
        .withLocation(new Location(ns, "p1"))
        .withLocation(new Location(ns, "p2"))
        .withLocation(new Location(ns, "p3"))
        .withMapPhase(Function.newAnonymousJsFunction(
            "function(v, key_data) {" +
View Full Code Here


    private void erlangBucketKeyMR(String bucketType) throws ExecutionException, InterruptedException
    {
        initValues(bucketType);
        Namespace ns = new Namespace(bucketType, mrBucket);
       
        MapReduce mr = new BucketKeyMapReduce.Builder()
        .withLocation(new Location(ns, "p1"))
        .withLocation(new Location(ns, "p2"))
        .withLocation(new Location(ns, "p3"))
                .withMapPhase(Function.newErlangFunction("riak_kv_mapreduce", "map_object_value"), false)
                .withReducePhase(Function.newErlangFunction("riak_kv_mapreduce","reduce_sort"), true)
View Full Code Here

TOP

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

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.