use of org.apache.cassandra.index.sasi.plan.Expression in project cassandra by apache.
the class OnDiskIndexTest method expressionFor.
private static Expression expressionFor(long lower, boolean lowerInclusive, long upper, boolean upperInclusive) {
Expression expression = new Expression("", LongType.instance);
expression.add(lowerInclusive ? Operator.GTE : Operator.GT, LongType.instance.decompose(lower));
expression.add(upperInclusive ? Operator.LTE : Operator.LT, LongType.instance.decompose(upper));
return expression;
}
use of org.apache.cassandra.index.sasi.plan.Expression in project cassandra by apache.
the class OnDiskIndexTest method expressionFor.
private static Expression expressionFor(Operator op, AbstractType<?> validator, ByteBuffer term) {
Expression expression = new Expression("", validator);
expression.add(op, term);
return expression;
}
Aggregations