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

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


  }

  @Test
  public void testSerializeLinkPhase() throws IOException
  {
    LinkPhase phase = new LinkPhase("bucket", "tag", true);

    jg.writeObject(phase);

    assertEquals("{\"link\":{\"bucket\":\"bucket\",\"tag\":\"tag\"}}", out.toString());
  }
View Full Code Here


  {

    ArrayList<MapReducePhase> phases = new ArrayList<MapReducePhase>();
    phases.add(new MapPhase(Function.newNamedJsFunction("map_func")));
    phases.add(new ReducePhase(Function.newNamedJsFunction("reduce_func")));
    phases.add(new LinkPhase("bucket", "tag"));
    BucketInput input = new BucketInput(new Namespace("bucket"), Collections.<KeyFilter>emptyList());

    MapReduceSpec spec = new MapReduceSpec(input, phases, 1000L);

    jg.writeObject(spec);
View Full Code Here

TOP

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

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.