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

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


  {
        Namespace ns = new Namespace(Namespace.DEFAULT_BUCKET_TYPE, "bucket");
    ArrayList<BucketKeyInput.IndividualInput> inputs = new ArrayList<BucketKeyInput.IndividualInput>();
    inputs.add(new BucketKeyInput.IndividualInput(new Location(ns, "key")));
    inputs.add(new BucketKeyInput.IndividualInput(new Location(ns, "key"), "data"));
    BucketKeyInput input = new BucketKeyInput(inputs);

    jg.writeObject(input);

    assertEquals("[[\"bucket\",\"key\",\"\"],[\"bucket\",\"key\",\"data\"]]", out.toString());
View Full Code Here


  {
        Namespace ns = new Namespace("type", "bucket");
    ArrayList<BucketKeyInput.IndividualInput> inputs = new ArrayList<BucketKeyInput.IndividualInput>();
    inputs.add(new BucketKeyInput.IndividualInput(new Location(ns, "key")));
    inputs.add(new BucketKeyInput.IndividualInput(new Location(ns, "key"), "data"));
    BucketKeyInput input = new BucketKeyInput(inputs);

    jg.writeObject(input);

    assertEquals("[[\"bucket\",\"key\",\"\",\"type\"],[\"bucket\",\"key\",\"data\",\"type\"]]", out.toString());
View Full Code Here

TOP

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

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.