public class Criteria extends Object implements Symbol
Criteria is an object that is used to encapsulate the semantics of
a complex query. Any any given time, objects of this class can exist in one
of two modes: building or built. When a Criteria is
built, it is guaranteed to represent a fully and well formed query
that can be processed. On the other hand, when a Criteria is building
it is in an incomplete state.
This class is the public interface to Criteria construction. It is meant to
be used in a chained manner, where the caller initially calls
where() and continues to construct the Criteria using the
options available from each subsequently returned state.
| Modifier | Constructor and Description |
|---|---|
protected |
Criteria()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(Symbol symbol)
Add a
Symbol to this Criteria. |
Criteria |
at(Timestamp timestamp)
Return this
Criteria with each expression (e.g. |
protected void |
close()
Mark this
Criteria as built. |
boolean |
equals(Object obj) |
String |
getCclString()
Return a CCL string that is equivalent to this object.
|
protected List<Symbol> |
getSymbols()
Return the order list of symbols that make up this
Criteria. |
int |
hashCode() |
static Criteria |
parse(String ccl)
Return a
Criteria object that expresses the same as the
ccl statement. |
String |
toString() |
static StartState |
where()
Start building a new
Criteria. |
public static Criteria parse(String ccl)
Criteria object that expresses the same as the
ccl statement.ccl - the CCL statement to parseCriteria objectpublic static StartState where()
Criteria.public Criteria at(Timestamp timestamp)
Criteria with each expression (e.g. {key} {operator}
{values}) pinned to the specified timestamp.
NOTE: Any timestamps that are pinned to any expressions
within this Criteria will be replaced by the specified timestamp.public String getCclString()
protected void add(Symbol symbol)
Symbol to this Criteria.symbol - protected void close()
Criteria as built.