@Override public void createIndexConditions(Session session, TableFilter filter) { TableFilter tf = getTableFilter(); if (filter == tf && column.getType() == Value.BOOLEAN) { IndexCondition cond = IndexCondition.get(Comparison.EQUAL, this, ValueExpression.get(ValueBoolean.get(true))); filter.addIndexCondition(cond); } }
@Override public Expression getNotIfPossible(Session session) { return new Comparison( session, Comparison.EQUAL, this, ValueExpression.get(ValueBoolean.get(false))); }