Examples of EndsWithFilter


Examples of com.basho.riak.client.api.commands.mapreduce.filters.EndsWithFilter

  public void testBucketInputSerializerWithFilter() throws IOException
  {

    Namespace ns = new Namespace(Namespace.DEFAULT_BUCKET_TYPE, "bucket");
    ArrayList<KeyFilter> filters = new ArrayList<KeyFilter>();
    filters.add(new EndsWithFilter("dave"));
    BucketInput input = new BucketInput(ns, filters);

    jg.writeObject(input);

    assertEquals("{\"bucket\":\"bucket\",\"key_filters\":[[\"ends_with\",\"dave\"]]}", out.toString());
View Full Code Here

Examples of com.basho.riak.client.api.commands.mapreduce.filters.EndsWithFilter

  public void testBucketInputSerializerWithTypeAndFilter() throws IOException
  {

    Namespace ns = new Namespace("type", "bucket");
    ArrayList<KeyFilter> filters = new ArrayList<KeyFilter>();
    filters.add(new EndsWithFilter("dave"));
    BucketInput input = new BucketInput(ns, filters);

    jg.writeObject(input);

    assertEquals("{\"bucket\":[\"type\",\"bucket\"],\"key_filters\":[[\"ends_with\",\"dave\"]]}", out.toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.