public interface Condition
| Modifier and Type | Interface and Description |
|---|---|
static class |
Condition.Op |
| Modifier and Type | Method and Description |
|---|---|
Condition |
and()
Begins a new AND compound condition block.
|
Condition |
build()
Closes all nested compound condition blocks.
|
Condition |
close()
Closes a compound condition block.
|
Condition |
condition(Condition conditionToAdd)
Appends the specified condition to the current condition
block.
|
Condition |
equals(org.ojai.FieldPath path,
List<? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath equals the specified List value. |
Condition |
equals(org.ojai.FieldPath path,
Map<String,? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath equals the specified Map value. |
Condition |
equals(String path,
List<? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath equals the specified List value. |
Condition |
equals(String path,
Map<String,? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath equals the specified Map value. |
Condition |
exists(org.ojai.FieldPath path)
Adds a condition that tests for existence of the specified
FieldPath. |
Condition |
exists(String path)
Adds a condition that tests for existence of the specified
FieldPath. |
Condition |
in(org.ojai.FieldPath path,
List<? extends Object> listOfValue)
Adds a condition that tests if the
Value at the specified
FieldPath is equal to at least one of the values in the
specified List. |
Condition |
in(String path,
List<? extends Object> listOfValue)
Adds a condition that tests if the
Value at the specified
FieldPath is equal to at least one of the values in the
specified List. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
BigDecimal value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified BigDecimal value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
boolean value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified boolean value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
byte value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified byte value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
ByteBuffer value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified ByteBuffer value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
Date value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Date value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
double value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified double value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
float value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified float value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
int value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified int value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
org.ojai.types.Interval value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Interval value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
long value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified long value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
short value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified short value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
String value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified String value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
Time value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Time value. |
Condition |
is(org.ojai.FieldPath path,
Condition.Op op,
Timestamp value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Timestamp value. |
Condition |
is(String path,
Condition.Op op,
BigDecimal value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified BigDecimal value. |
Condition |
is(String path,
Condition.Op op,
boolean value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified boolean value. |
Condition |
is(String path,
Condition.Op op,
byte value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified byte value. |
Condition |
is(String path,
Condition.Op op,
ByteBuffer value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified ByteBuffer value. |
Condition |
is(String path,
Condition.Op op,
Date value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Date value. |
Condition |
is(String path,
Condition.Op op,
double value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified double value. |
Condition |
is(String path,
Condition.Op op,
float value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified float value. |
Condition |
is(String path,
Condition.Op op,
int value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified int value. |
Condition |
is(String path,
Condition.Op op,
org.ojai.types.Interval value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Interval value. |
Condition |
is(String path,
Condition.Op op,
long value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified long value. |
Condition |
is(String path,
Condition.Op op,
short value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified short value. |
Condition |
is(String path,
Condition.Op op,
String value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified String value. |
Condition |
is(String path,
Condition.Op op,
Time value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Time value. |
Condition |
is(String path,
Condition.Op op,
Timestamp value)
Adds a condition that tests if the
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Timestamp value. |
boolean |
isBuilt() |
boolean |
isEmpty() |
Condition |
matches(org.ojai.FieldPath path,
String regex)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and matches the specified regular
expression. |
Condition |
matches(String path,
String regex)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and matches the specified regular
expression. |
Condition |
notEquals(org.ojai.FieldPath path,
List<? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath does not equal the specified List value. |
Condition |
notEquals(org.ojai.FieldPath path,
Map<String,? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath does not equal the specified Map value. |
Condition |
notEquals(String path,
List<? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath does not equal the specified List value. |
Condition |
notEquals(String path,
Map<String,? extends Object> value)
Adds a condition that tests if the
Value at the specified
FieldPath does not equal the specified Map value. |
Condition |
notExists(org.ojai.FieldPath path)
Adds a condition that tests for non-existence of the specified
FieldPath. |
Condition |
notExists(String path)
Adds a condition that tests for non-existence of the specified
FieldPath. |
Condition |
notIn(org.ojai.FieldPath path,
List<? extends Object> listOfValue)
Adds a condition that tests if the
Value at the specified
FieldPath is not equal to any of the values in the
specified List. |
Condition |
notIn(String path,
List<? extends Object> listOfValue)
Adds a condition that tests if the
Value at the specified
FieldPath is not equal to any of the values in the
specified List. |
Condition |
notMatches(org.ojai.FieldPath path,
String regex)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and does not match the specified
regular expression. |
Condition |
notMatches(String path,
String regex)
Adds a condition that tests if the
Value at the specified
FieldPath is a String and does not match the specified
regular expression. |
Condition |
notTypeOf(org.ojai.FieldPath path,
org.ojai.Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is not of the specified Type. |
Condition |
notTypeOf(String path,
org.ojai.Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is not of the specified Type. |
Condition |
or()
Begins a new OR compound condition block.
|
Condition |
typeOf(org.ojai.FieldPath path,
org.ojai.Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is of the specified Type. |
Condition |
typeOf(String path,
org.ojai.Value.Type type)
Adds a condition that tests if the
Value at the specified
FieldPath is of the specified Type. |
boolean isEmpty()
true if this condition is emptyboolean isBuilt()
true if this condition is builtCondition and()
this for chainingCondition or()
this for chainingCondition close()
this for chainingCondition build()
thisCondition condition(Condition conditionToAdd)
this for chainingCondition exists(String path)
FieldPath.path - the FieldPath to testthis for chained invocationCondition exists(org.ojai.FieldPath path)
FieldPath.path - the FieldPath to testthis for chained invocationCondition notExists(String path)
FieldPath.path - the FieldPath to testthis for chained invocationCondition notExists(org.ojai.FieldPath path)
FieldPath.path - the FieldPath to testthis for chained invocationCondition in(String path, List<? extends Object> listOfValue)
Value at the specified
FieldPath is equal to at least one of the values in the
specified List.path - the FieldPath to testlistOfValue - the List of values to test againstthis for chained invocationCondition in(org.ojai.FieldPath path, List<? extends Object> listOfValue)
Value at the specified
FieldPath is equal to at least one of the values in the
specified List.path - the FieldPath to testlistOfValue - the List of values to test againstthis for chained invocationCondition notIn(String path, List<? extends Object> listOfValue)
Value at the specified
FieldPath is not equal to any of the values in the
specified List.path - the FieldPath to testlistOfValue - the List of values to test againstthis for chained invocationCondition notIn(org.ojai.FieldPath path, List<? extends Object> listOfValue)
Value at the specified
FieldPath is not equal to any of the values in the
specified List.path - the FieldPath to testlistOfValue - the List of values to test againstthis for chained invocationCondition typeOf(String path, org.ojai.Value.Type type)
Value at the specified
FieldPath is of the specified Type.path - the FieldPath to testthis for chained invocationCondition typeOf(org.ojai.FieldPath path, org.ojai.Value.Type type)
Value at the specified
FieldPath is of the specified Type.path - the FieldPath to testthis for chained invocationCondition notTypeOf(String path, org.ojai.Value.Type type)
Value at the specified
FieldPath is not of the specified Type.path - the FieldPath to testthis for chained invocationCondition notTypeOf(org.ojai.FieldPath path, org.ojai.Value.Type type)
Value at the specified
FieldPath is not of the specified Type.path - the FieldPath to testthis for chained invocationCondition matches(String path, String regex)
Value at the specified
FieldPath is a String and matches the specified regular
expression.path - the FieldPath to testregex - the reference regular expressionthis for chained invocationCondition matches(org.ojai.FieldPath path, String regex)
Value at the specified
FieldPath is a String and matches the specified regular
expression.path - the FieldPath to testregex - the reference regular expressionthis for chained invocationCondition notMatches(String path, String regex)
Value at the specified
FieldPath is a String and does not match the specified
regular expression.path - the FieldPath to testregex - the reference regular expressionthis for chained invocationCondition notMatches(org.ojai.FieldPath path, String regex)
Value at the specified
FieldPath is a String and does not match the specified
regular expression.path - the FieldPath to testregex - the reference regular expressionthis for chained invocationCondition is(String path, Condition.Op op, boolean value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified boolean value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference boolean Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, boolean value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified boolean value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference boolean Valuethis for chained invocationCondition is(String path, Condition.Op op, String value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified String value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference String Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, String value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified String value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference String Valuethis for chained invocationCondition is(String path, Condition.Op op, byte value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified byte value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference byte Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, byte value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified byte value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference byte Valuethis for chained invocationCondition is(String path, Condition.Op op, short value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified short value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference short Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, short value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified short value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference short Valuethis for chained invocationCondition is(String path, Condition.Op op, int value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified int value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference int Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, int value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified int value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference int Valuethis for chained invocationCondition is(String path, Condition.Op op, long value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified long value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference long Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, long value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified long value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference long Valuethis for chained invocationCondition is(String path, Condition.Op op, float value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified float value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference float Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, float value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified float value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference float Valuethis for chained invocationCondition is(String path, Condition.Op op, double value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified double value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference double Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, double value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified double value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference double Valuethis for chained invocationCondition is(String path, Condition.Op op, BigDecimal value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified BigDecimal value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference BigDecimal Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, BigDecimal value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified BigDecimal value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference BigDecimal Valuethis for chained invocationCondition is(String path, Condition.Op op, Date value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Date value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference Date Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, Date value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Date value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference Date Valuethis for chained invocationCondition is(String path, Condition.Op op, Time value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Time value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference Time Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, Time value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Time value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference Time Valuethis for chained invocationCondition is(String path, Condition.Op op, Timestamp value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Timestamp value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference Timestamp Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, Timestamp value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Timestamp value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference Timestamp Valuethis for chained invocationCondition is(String path, Condition.Op op, org.ojai.types.Interval value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Interval value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference Interval Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, org.ojai.types.Interval value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified Interval value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference Interval Valuethis for chained invocationCondition is(String path, Condition.Op op, ByteBuffer value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified ByteBuffer value. Only the byte sequence between
the position and limit in the ByteBuffer is
used as the reference value. The function does not alter the passed
ByteBuffer state or content.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference ByteBuffer Valuethis for chained invocationCondition is(org.ojai.FieldPath path, Condition.Op op, ByteBuffer value)
Value at the specified
FieldPath satisfies the given Condition.Op against
the specified ByteBuffer value. Only the byte sequence between
the position and limit in the ByteBuffer is
used as the reference value. The function does not alter the passed
ByteBuffer state or content.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference ByteBuffer Valuethis for chained invocationCondition equals(String path, Map<String,? extends Object> value)
Value at the specified
FieldPath equals the specified Map value.
Two Maps are considered equal if and only if they contain the same
key-value pair in the same order.path - the FieldPath to testvalue - the reference Map Valuethis for chained invocationorg.ojai.exceptions.TypeException - if a value at any level in the specified
Map is not one of the Value typesCondition equals(org.ojai.FieldPath path, Map<String,? extends Object> value)
Value at the specified
FieldPath equals the specified Map value.
Two Maps are considered equal if and only if they contain the same
key-value pair in the same order.path - the FieldPath to testvalue - the reference Map Valuethis for chained invocationorg.ojai.exceptions.TypeException - if a value at any level in the specified
Map is not one of the Value typesCondition equals(String path, List<? extends Object> value)
Value at the specified
FieldPath equals the specified List value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference List Valuethis for chained invocationorg.ojai.exceptions.TypeException - if a value in the specified List is not one of
the Value typesCondition equals(org.ojai.FieldPath path, List<? extends Object> value)
Value at the specified
FieldPath equals the specified List value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference List Valuethis for chained invocationorg.ojai.exceptions.TypeException - if a value in the specified List is not one of
the Value typesCondition notEquals(String path, Map<String,? extends Object> value)
Value at the specified
FieldPath does not equal the specified Map value.
Two Maps are considered equal if and only if they contain the same
key-value pair in the same order.path - the FieldPath to testvalue - the reference Map Valuethis for chained invocationorg.ojai.exceptions.TypeException - if a value at any level in the specified
Map is not one of the Value typesCondition notEquals(org.ojai.FieldPath path, Map<String,? extends Object> value)
Value at the specified
FieldPath does not equal the specified Map value.
Two Maps are considered equal if and only if they contain the same
key-value pair in the same order.path - the FieldPath to testvalue - the reference Map Valuethis for chained invocationorg.ojai.exceptions.TypeException - if a value at any level in the specified
Map is not one of the Value typesCondition notEquals(String path, List<? extends Object> value)
Value at the specified
FieldPath does not equal the specified List value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference List Valuethis for chained invocationorg.ojai.exceptions.TypeException - if a value in the specified List is not one of
the Value typesCondition notEquals(org.ojai.FieldPath path, List<? extends Object> value)
Value at the specified
FieldPath does not equal the specified List value.path - the FieldPath to testop - the ConditionOp to applyvalue - the reference List Valuethis for chained invocationorg.ojai.exceptions.TypeException - if a value in the specified List is not one of
the Value typesCopyright © 2015 Mapr Technologies, Inc.. All rights reserved.