public IsNullPredicate(PathElement pathElement) { this(new Path(Collections.singletonList(pathElement))); } }
public LEPredicate(PathElement pathElement, Object value) { this(new Path(Collections.singletonList(pathElement)), value); } }
public LTPredicate(PathElement pathElement, Object value) { this(new Path(Collections.singletonList(pathElement)), value); } }
public GTPredicate(PathElement pathElement, Object value) { this(new Path(Collections.singletonList(pathElement)), value); } }
public TruePredicate(PathElement pathElement) { this(new Path(Collections.singletonList(pathElement))); } }
public NotNullPredicate(PathElement pathElement) { this(new Path(Collections.singletonList(pathElement))); } }
public PrefixInsensitivePredicate(PathElement pathElement, List<Object> values) { this(new Path(Collections.singletonList(pathElement)), values); }
public InPredicate(PathElement pathElement, List<Object> values) { this(new Path(Collections.singletonList(pathElement)), values); }
public InInsensitivePredicate(PathElement pathElement, List<Object> values) { this(new Path(Collections.singletonList(pathElement)), values); }
public GEPredicate(PathElement pathElement, Object value) { this(new Path(Collections.singletonList(pathElement)), value); } }
public InfixInsensitivePredicate(PathElement pathElement, List<Object> values) { this(new Path(Collections.singletonList(pathElement)), values); }
public PrefixPredicate(PathElement pathElement, List<Object> values) { this(new Path(Collections.singletonList(pathElement)), values); }
public IsNullPredicate(PathElement pathElement) { this(new Path(Collections.singletonList(pathElement))); } }
public LEPredicate(PathElement pathElement, Object value) { this(new Path(Collections.singletonList(pathElement)), value); } }
public TruePredicate(PathElement pathElement) { this(new Path(Collections.singletonList(pathElement))); } }
public InfixPredicate(PathElement pathElement, List<Object> values) { this(new Path(Collections.singletonList(pathElement)), values); }
public FilterPredicate(Path path, Operator op, List<Object> values) { this.operator = op; this.path = new Path(path); this.values = ImmutableList.copyOf(values); this.field = path.lastElement() .map(PathElement::getFieldName) .orElse(null); this.fieldPath = path.getPathElements().stream() .map(PathElement::getFieldName) .collect(Collectors.joining(PERIOD)); }
public FilterPredicate(Path path, Operator op, List<Object> values) { this.operator = op; this.path = new Path(path); this.values = ImmutableList.copyOf(values); this.field = path.lastElement() .map(PathElement::getFieldName) .orElse(null); this.fieldPath = path.getPathElements().stream() .map(PathElement::getFieldName) .collect(Collectors.joining(PERIOD)); }
/** * Create a copy of this filter that is scoped by scope. This is used in calculating page totals, we need to * scope this filter in the context of it's parent. * * @param scope the path element to add to the head of the path * @return the scoped filter expression. */ public FilterPredicate scopedBy(PathElement scope) { List<PathElement> pathElements = Lists.asList(scope, path.getPathElements().toArray(ELEMENT_ARRAY)); return new FilterPredicate(new Path(pathElements), operator, values); }
/** * Create a copy of this filter that is scoped by scope. This is used in calculating page totals, we need to * scope this filter in the context of it's parent. * * @param scope the path element to add to the head of the path * @return the scoped filter expression. */ public FilterPredicate scopedBy(PathElement scope) { List<PathElement> pathElements = Lists.asList(scope, path.getPathElements().toArray(ELEMENT_ARRAY)); return new FilterPredicate(new Path(pathElements), operator, values); }