@API(value=STABLE) public class Comparisons extends Object
Comparisons.Comparison
s.Modifier and Type | Class and Description |
---|---|
static interface |
Comparisons.Comparison
A comparison between a value associated with someplace in the record (such as a field) and a value associated
with the plan (such as a constant or a bound parameter).
|
static class |
Comparisons.EvaluationContextRequiredException
Exception thrown when comparison evaluation needs the query context, but none was supplied.
|
static class |
Comparisons.ListComparison
A comparison with a list of values.
|
static class |
Comparisons.NullComparison
A unary predicate for special nullity checks, such as
NULL and NOT NULL . |
static class |
Comparisons.ParameterComparison
A comparison with a bound parameter, as opposed to a literal constant in the query.
|
static class |
Comparisons.SimpleComparison
A comparison with a constant value.
|
static class |
Comparisons.TextComparison
A text-style comparison, such as containing a given set of tokens.
|
static class |
Comparisons.TextContainsAllPrefixesComparison
A
Comparisons.TextComparison that checks for all prefixes. |
static class |
Comparisons.TextWithMaxDistanceComparison
A
Comparisons.TextComparison that must be satisfied within a certain number of text tokens. |
static class |
Comparisons.Type
The type for a
Comparisons.Comparison predicate. |
Modifier and Type | Field and Description |
---|---|
static Object |
COMPARISON_SKIPPED_BINDING |
Modifier and Type | Method and Description |
---|---|
static int |
compare(Object fieldValue,
Object comparand) |
static Boolean |
evalComparison(Comparisons.Type type,
Object value,
Object comparand) |
static Boolean |
evalListComparison(Comparisons.Type type,
Object value,
List comparand) |
static String |
toPrintable(Object value) |
public static final Object COMPARISON_SKIPPED_BINDING
@Nullable public static Boolean evalComparison(@Nonnull Comparisons.Type type, @Nullable Object value, @Nullable Object comparand)
@Nullable public static Boolean evalListComparison(@Nonnull Comparisons.Type type, @Nullable Object value, @Nullable List comparand)