com.datasalt.pangool.tuplemr
Class Criteria

java.lang.Object
  extended by com.datasalt.pangool.tuplemr.Criteria

public class Criteria
extends Object

Criteria specifies a sorting criteria defined by a list of Criteria.SortElement instances that contain a field name and its corresponding order defined by Criteria.Order.

In addition, the criteria allows to specify,for every field, a custom comparator implementing RawComparator


Nested Class Summary
static class Criteria.NullOrder
           
static class Criteria.Order
           
static class Criteria.SortElement
          Basic Criteria element.
 
Constructor Summary
Criteria()
           
Criteria(List<Criteria.SortElement> elements)
           
 
Method Summary
 boolean equals(Object a)
           
 List<Criteria.SortElement> getElements()
           
 int hashCode()
           
static Criteria parse(org.codehaus.jackson.JsonNode node)
           
 void toJson(org.codehaus.jackson.JsonGenerator gen)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Criteria

public Criteria(List<Criteria.SortElement> elements)

Criteria

public Criteria()
Method Detail

getElements

public List<Criteria.SortElement> getElements()

toString

public String toString()
Overrides:
toString in class Object

toJson

public void toJson(org.codehaus.jackson.JsonGenerator gen)
            throws IOException
Throws:
IOException

parse

public static Criteria parse(org.codehaus.jackson.JsonNode node)
                      throws IOException
Throws:
IOException

equals

public boolean equals(Object a)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © –2014 Datasalt Systems S.L.. All rights reserved.