private Map<String, Object> getEqualityOperations(OAndBlock condition, OCommandContext ctx) { Map<String, Object> result = new HashMap<String, Object>(); for (OBooleanExpression expression : condition.subBlocks) { if (expression instanceof OBinaryCondition) { OBinaryCondition b = (OBinaryCondition) expression; if (b.operator instanceof OEqualsCompareOperator) { if (b.left.isBaseIdentifier() && b.right.isEarlyCalculated(ctx)) { result.put(b.left.toString(), b.right.execute((OResult) null, ctx)); } } } } return result; }
if (select.getProjection() != null) { boolean isMappable = select.getProjection().getItems().stream().peek(i -> fields.add(i.getProjectionAliasAsString())) .allMatch(i -> i.getExpression().isBaseIdentifier()); if (!isMappable) fields.clear();
public OIdentifier getDefaultAlias() { OIdentifier identifier; if (isBaseIdentifier()) { identifier = new OIdentifier(((OBaseExpression) mathExpression).identifier.getSuffix().identifier.getStringValue()); } else { identifier = new OIdentifier(this.toString()); } return identifier; }
private OExpression fieldNamesToStrings(OExpression left) { if (left.isBaseIdentifier()) { OIdentifier identifier = ((OBaseExpression) left.mathExpression).identifier.suffix.identifier; OCollection newColl = new OCollection(-1); if (exp.isBaseIdentifier()) { OIdentifier identifier = ((OBaseExpression) exp.mathExpression).identifier.suffix.identifier; OExpression val = identifierToStringExpr(identifier);
if (alias.equals(exp.getDefaultAlias().getStringValue()) && exp.isBaseIdentifier()) { found = true; newGroupBy.getItems().add(exp);
if (!binaryCondition.getLeft().isBaseIdentifier()) { return false;
if (singleExp instanceof OBinaryCondition) { OExpression left = ((OBinaryCondition) singleExp).getLeft(); if (left.isBaseIdentifier()) { String fieldName = left.getDefaultAlias().getStringValue(); if (indexField.equals(fieldName)) { && isMap(clazz, indexField) && isIndexByValue(index, indexField)) { OExpression left = ((OContainsValueCondition) singleExp).getLeft(); if (left.isBaseIdentifier()) { String fieldName = left.getDefaultAlias().getStringValue(); if (indexField.equals(fieldName)) { if (left.isBaseIdentifier()) { String fieldName = left.getDefaultAlias().getStringValue(); if (indexField.equals(fieldName)) { if (left.isBaseIdentifier()) { String fieldName = left.getDefaultAlias().getStringValue(); if (indexField.equals(fieldName)) {