/** * Returns true if the document referenced by this document operation is accepted by this selector * * @param op A document operation * @return True if the document is accepted. * @throws RuntimeException if the evaluation enters an illegal state */ public Result accepts(DocumentOperation op) { return accepts(new Context(op)); }
/** * Returns the list of different variables resulting in a true state for this * expression. * * @param op The document to evaluate. * @return True if the document is accepted. * @throws RuntimeException if the evaluation enters an illegal state */ public ResultList getMatchingResultList(DocumentOperation op) { return getMatchingResultList(new Context(op)); }
/** * Constructs a new bucket set that contains a single id. * * @param id The id to add to this as initial value. */ public BucketSet(BucketId id) { add(id); }
public DocumentSelectionConverter(String selection) throws ParseException, UnsupportedOperationException, IllegalArgumentException { this.selector = new DocumentSelector(selection); NowCheckVisitor nowChecker = new NowCheckVisitor(); selector.visit(nowChecker); if (nowChecker.requiresConversion()) { SelectionExpressionConverter converter = new SelectionExpressionConverter(); selector.visit(converter); this.queryExpressionMap = converter.getQueryMap(); } else { this.queryExpressionMap = null; } }
public Selection(String documentSelection, long fromTimestamp, long toTimestamp) throws ParseException { this.documentSelection = new DocumentSelector(documentSelection); this.fromTimestamp = fromTimestamp; this.toTimestamp = toTimestamp; }
@Override public void accept(Visitor visitor) { visitor.visit(this); }
/** * Returns the intersection between this bucket set and another. * * @param rhs The set to form an intersection with. * @return The intersection. */ public BucketSet intersection(BucketSet rhs) { if (rhs == null) { return new BucketSet(this); // The other has all buckets marked, this is the smaller. } else { BucketSet ret = new BucketSet(this); ret.retainAll(rhs); return ret; } }
/** * Constructs a new bucket set that is a copy of another. * * @param set The set to copy. */ public BucketSet(BucketSet set) { this.addAll(set); }
public static ResultList fromBoolean(boolean result) { return new ResultList(result ? Result.TRUE : Result.FALSE); }
public void accept(Visitor visitor) { visitor.visit(this); } }
@Override public void accept(Visitor visitor) { visitor.visit(this); }
public void accept(Visitor visitor) { visitor.visit(this); }
public void accept(Visitor visitor) { visitor.visit(this); }
public void accept(Visitor visitor) { visitor.visit(this); }
public void accept(Visitor visitor) { visitor.visit(this); }
public void accept(Visitor visitor) { visitor.visit(this); }
public void accept(Visitor visitor) { visitor.visit(this); }
public void accept(Visitor visitor) { visitor.visit(this); }
public void accept(Visitor visitor) { visitor.visit(this); }
public void accept(Visitor visitor) { visitor.visit(this); }