Examples of Operator


Examples of org.apache.pig.newplan.Operator

        planTester.buildPlan("filtered = FILTER best_url BY url == 'badsite.com';");
        org.apache.pig.impl.logicalLayer.LogicalPlan plan = planTester.buildPlan("store filtered into 'empty';");

        LogicalPlan newLogicalPlan = migrateAndOptimizePlan( plan );

        Operator store = newLogicalPlan.getSinks().get( 0 );
        Operator filter = newLogicalPlan.getPredecessors(store).get(0);
        Assert.assertTrue( filter instanceof LOFilter );
    }
View Full Code Here

Examples of org.broad.igv.util.FilterElement.Operator

        // Item
        filterElement.setSelectedItem(getItem());

        // Comparison operator
        Operator operator = getOperatorForText(getComparisonOperator());
        filterElement.setComparisonOperator(operator);

        // Value
        filterElement.setExpectedValue(getExpectedValue());
    }
View Full Code Here

Examples of org.codehaus.jparsec.OperatorTable.Operator

  private static <T extends Comparable<T>> void assertSameOrder(T obj) {
    assertEquals(obj + " should be equal to itself", 0, obj.compareTo(obj));
  }
 
  private static Operator operator(int precedence, Associativity associativity) {
    return new Operator(OP, precedence, associativity);
  }
View Full Code Here

Examples of org.crank.crud.criteria.Operator

            } else {
              query.setParameter(name, comparison.getValue());
            }

          } else {
            Operator operator = comparison.getOperator();
            StringBuilder value = new StringBuilder(50);
            if (operator == Operator.LIKE) {
              value.append(comparison.getValue());
            } else if (operator == Operator.LIKE_CONTAINS) {
              value.append("%").append(comparison.getValue())
View Full Code Here

Examples of org.datanucleus.query.expression.Expression.Operator

                        {
                            // FK in this table
                            sqlTbl = theStmt.getTable(relTable, primaryName);
                            if (sqlTbl == null)
                            {
                                Operator op = (primExpr.getParent() != null ? primExpr.getParent().getOperator() : null);
                                if (!iter.hasNext() && (op == Expression.OP_EQ || op == Expression.OP_GT ||
                                    op == Expression.OP_LT || op == Expression.OP_GTEQ || op == Expression.OP_LTEQ ||
                                    op == Expression.OP_NOTEQ))
                                {
                                    // Just return the FK mapping since in a "a.b == c.d" type expression and not needing
View Full Code Here

Examples of org.drools.base.evaluators.Operator

    public void processRestriction( MVELDumperContext context,
                                    StringBuilder sbuilder,
                                    String left,
                                    OperatorDescr operator,
                                    String right ) {
        Operator op = Operator.determineOperator( operator.getOperator(),
                                                  operator.isNegated() );
        if ( op == Operator.determineOperator( "memberOf",
                                               operator.isNegated() ) ) {
            int lastAndPos = left.lastIndexOf("&&");
            if ( lastAndPos > 0 ) {
View Full Code Here

Examples of org.drools.core.base.evaluators.Operator

    public void processRestriction( MVELDumperContext context,
                                    StringBuilder sbuilder,
                                    String left,
                                    OperatorDescr operator,
                                    String right ) {
        Operator op = Operator.determineOperator( operator.getOperator(),
                                                  operator.isNegated() );
        if ( op == Operator.determineOperator( "memberOf",
                                               operator.isNegated() ) ) {
            int lastAndPos = left.lastIndexOf("&&");
            if ( lastAndPos > 0 ) {
View Full Code Here

Examples of org.drools.runtime.rule.Operator

    }

    public long calculateDeclaredMask(List<String> settableProperties) {
        Long typeBit = 0L;
        if ( constraint instanceof EvaluatorConstraint && ( (EvaluatorConstraint) constraint ).isSelf() ) {
            Operator op = ((EvaluatorConstraint) constraint).getEvaluator().getOperator();
            if ( op == IsAEvaluatorDefinition.ISA || op == IsAEvaluatorDefinition.NOT_ISA ) {
                typeBit = Long.MIN_VALUE;
            }
        }
        if (settableProperties == null || !(constraint instanceof MvelConstraint)) {
View Full Code Here

Examples of org.eclipse.jdt.core.dom.InfixExpression.Operator

  @Override
  public void endVisit(InfixExpression node) {
    EclipseCFGNode infix = nodeMap.get(node);
    EclipseCFGNode lhs = nodeMap.get(node.getLeftOperand());
    EclipseCFGNode rhs = nodeMap.get(node.getRightOperand());
    Operator op = node.getOperator();

    // short circuiting
    if (op.equals(Operator.CONDITIONAL_AND) || op.equals(Operator.CONDITIONAL_OR)) {
      boolean isAnd = node.getOperator().equals(InfixExpression.Operator.CONDITIONAL_AND);
      List<Expression> operands = new ArrayList<Expression>();
      EclipseCFGNode last = null;

      operands.add(node.getLeftOperand());
View Full Code Here

Examples of org.eclipse.jdt.core.dom.PrefixExpression.Operator

  }

  private boolean isReplacedByConstantValue(PrefixExpression node) {
    // for '-', '+', '~' and '!', if the operand is a constant value,
    // the expression is replaced by a constant value
    Operator operator = node.getOperator();
    if (operator != PrefixExpression.Operator.INCREMENT
        && operator != PrefixExpression.Operator.DECREMENT) {
      return isReplacedByConstantValue(node.getOperand());
    }
    return false;
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.