Examples of operatorType


Examples of fr.insalyon.citi.golo.runtime.OperatorType

    }
  }

  @Override
  public void visitBinaryOperation(BinaryOperation binaryOperation) {
    OperatorType operatorType = binaryOperation.getType();
    if (AND.equals(operatorType)) {
      andOperator(binaryOperation);
    } else if (OR.equals(operatorType)) {
      orOperator(binaryOperation);
    } else {
View Full Code Here

Examples of fr.insalyon.citi.golo.runtime.OperatorType

    for (String operatorSymbol : symbols) {
      operators.push(operationFrom(operatorSymbol));
    }
    ExpressionStatement right = expressions.pop();
    ExpressionStatement left = expressions.pop();
    OperatorType operator = operators.pop();
    BinaryOperation current = new BinaryOperation(operator, left, right);
    if (operator == ELVIS_METHOD_CALL) {
      MethodInvocation invocation = (MethodInvocation) right;
      invocation.setNullSafeGuarded(true);
    }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.api.OperatorType

    if (ops == null) {
      return EMPTY_ARR;
    }
    Set<String> features = Sets.newHashSet();
    for (Operator<?> op : ops) {
      OperatorType opType = op.getType();
      // some operators are discarded
      if (!skipType(opType)) {
        features.add(opType.toString());
      }
    }

    // if taskTag is other than 'NO_TAG', include it in the feature list
    if (taskTagId == Task.NO_TAG) {
View Full Code Here

Examples of org.apache.metamodel.query.OperatorType

        final Column column = selectItem.getColumn();
        sb.append(column.getName());
        sb.append(' ');

        final OperatorType operator = filterItem.getOperator();
        if (operator == OperatorType.IN) {
            throw new UnsupportedOperationException("IN operator not supported: " + filterItem);
        }
        sb.append(operator.toSql());
        sb.append(' ');

        final Object operand = filterItem.getOperand();
        if (operand == null) {
            sb.append("null");
View Full Code Here

Examples of org.apache.metamodel.query.OperatorType

            return super.rewriteFilterItem(item);
        }

        final SelectItem selectItem = item.getSelectItem();
        final Object operand = item.getOperand();
        final OperatorType operator = item.getOperator();

        if (selectItem == null || operand == null || operator == null) {
            return super.rewriteFilterItem(item);
        }
View Full Code Here

Examples of org.apache.metamodel.query.OperatorType

                buildIdList(idList, childItem);
            }
            return;
        }

        final OperatorType operator = whereItem.getOperator();

        if (operator != OperatorType.EQUALS_TO && operator != OperatorType.IN) {
            throw new IllegalStateException(
                    "Salesforce only allows deletion of records by their specific IDs. Violated by operator in where item: "
                            + whereItem);
View Full Code Here

Examples of org.apache.metamodel.query.OperatorType

            return sb.toString();
        }

        final String primaryFilterSql = item.toSql(isSchemaIncludedInColumnPaths());

        final OperatorType operator = item.getOperator();
        if (operator == OperatorType.DIFFERENT_FROM) {
            final Object operand = item.getOperand();
            if (operand != null) {
                // special case in SQL where NULL is not treated as a value -
                // see Ticket #1058
View Full Code Here

Examples of org.apache.metamodel.query.OperatorType

    @Override
    public String rewriteFilterItem(FilterItem item) {
        SelectItem _selectItem = item.getSelectItem();
        Object _operand = item.getOperand();
        OperatorType _operator = item.getOperator();
        if (null != _selectItem && _operand != null) {
            ColumnType columnType = _selectItem.getExpectedColumnType();
            if (columnType != null) {
                if (columnType.isTimeBased()) {
                    // special logic for DB2 based time operands.
View Full Code Here

Examples of org.apache.metamodel.query.OperatorType

    @Override
    public String rewriteFilterItem(FilterItem item) {
        SelectItem _selectItem = item.getSelectItem();
        Object _operand = item.getOperand();
        OperatorType _operator = item.getOperator();
        if (null != _selectItem && _operand != null) {
            ColumnType columnType = _selectItem.getExpectedColumnType();
            if (columnType != null) {
                if (columnType.isTimeBased()) {
                    // special logic for DB2 based time operands.
View Full Code Here

Examples of org.apache.metamodel.query.OperatorType

            return sb.toString();
        }

        final String primaryFilterSql = item.toSql(isSchemaIncludedInColumnPaths());

        final OperatorType operator = item.getOperator();
        if (operator == OperatorType.DIFFERENT_FROM) {
            final Object operand = item.getOperand();
            if (operand != null) {
                // special case in SQL where NULL is not treated as a value -
                // see Ticket #1058
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.