public List<Condition> syspropConditions(HugeKeys key) { this.checkFlattened(); List<Condition> conditions = new ArrayList<>(); for (Condition condition : this.conditions) { Relation relation = (Relation) condition; if (relation.key().equals(key)) { conditions.add(relation); } } return conditions; }
public void resetUserpropConditions() { this.checkFlattened(); this.conditions.removeIf(condition -> !condition.isSysprop()); }
public List<Condition> userpropConditions() { this.checkFlattened(); List<Condition> conds = new ArrayList<>(); for (Condition c : this.conditions) { if (!c.isSysprop()) { conds.add(c); } } return conds; }
public List<Condition> syspropConditions() { this.checkFlattened(); List<Condition> conds = new ArrayList<>(); for (Condition c : this.conditions) { if (c.isSysprop()) { conds.add(c); } } return conds; }
public List<Condition> userpropConditions(Id key) { this.checkFlattened(); List<Condition> conditions = new ArrayList<>(); for (Condition condition : this.conditions) { Relation relation = (Relation) condition; if (relation.key().equals(key)) { conditions.add(relation); } } return conditions; }
public void unsetCondition(Object key) { this.checkFlattened(); for (Iterator<Condition> iter = this.conditions.iterator(); iter.hasNext();) { Condition c = iter.next(); assert c.isRelation(); if (((Condition.Relation) c).key().equals(key)) { iter.remove(); } } }
public Object condition(Object key) { this.checkFlattened(); List<Object> values = new ArrayList<>(); for (Condition c : this.conditions) { if (c.isRelation()) { Condition.Relation r = (Condition.Relation) c; if (r.key().equals(key) && r.relation() == RelationType.EQ) { values.add(r.value()); } } } if (values.isEmpty()) { return null; } E.checkState(values.size() == 1, "Illegal key '%s' with more than one value", key); return values.get(0); }
public Query indexQuery(ConditionQuery query) { query.checkFlattened();
public List<Condition> userpropConditions() { this.checkFlattened(); List<Condition> conds = new ArrayList<>(); for (Condition c : this.conditions) { if (!c.isSysprop()) { conds.add(c); } } return conds; }
public List<Condition> syspropConditions(HugeKeys key) { this.checkFlattened(); List<Condition> conditions = new ArrayList<>(); for (Condition condition : this.conditions) { Relation relation = (Relation) condition; if (relation.key().equals(key)) { conditions.add(relation); } } return conditions; }
public List<Condition> syspropConditions() { this.checkFlattened(); List<Condition> conds = new ArrayList<>(); for (Condition c : this.conditions) { if (c.isSysprop()) { conds.add(c); } } return conds; }
public List<Condition> userpropConditions(Id key) { this.checkFlattened(); List<Condition> conditions = new ArrayList<>(); for (Condition condition : this.conditions) { Relation relation = (Relation) condition; if (relation.key().equals(key)) { conditions.add(relation); } } return conditions; }
public void resetUserpropConditions() { this.checkFlattened(); this.conditions.removeIf(condition -> !condition.isSysprop()); }
public void unsetCondition(Object key) { this.checkFlattened(); for (Iterator<Condition> iter = this.conditions.iterator(); iter.hasNext();) { Condition c = iter.next(); assert c.isRelation(); if (((Condition.Relation) c).key().equals(key)) { iter.remove(); } } }
public Object condition(Object key) { this.checkFlattened(); List<Object> values = new ArrayList<>(); for (Condition c : this.conditions) { if (c.isRelation()) { Condition.Relation r = (Condition.Relation) c; if (r.key().equals(key)) { values.add(r.value()); } } } if (values.isEmpty()) { return null; } E.checkState(values.size() == 1, "Illegal key '%s' with more than one value", key); return values.get(0); }
public Query query(ConditionQuery query) { query.checkFlattened();