Examples of Operator


Examples of au.csiro.ontology.model.Operator

        }
    }

    protected void addDatatype(final List<Concept> result, au.csiro.snorocket.core.model.Datatype datatype) {
        Feature feature = new NamedFeature(factory.lookupFeatureId(datatype.getFeature()));
        Operator operator = Operator.EQUALS;
        Literal literal;
        if (datatype.getLiteral() instanceof DecimalLiteral) {
            literal = new au.csiro.ontology.model.DecimalLiteral(((DecimalLiteral) datatype.getLiteral()).getValue());
        } else if (datatype.getLiteral() instanceof IntegerLiteral) {
            literal = new au.csiro.ontology.model.IntegerLiteral(((IntegerLiteral) datatype.getLiteral()).getValue());
View Full Code Here

Examples of cascading.pipe.Operator

  public boolean applies( PlannerContext plannerContext, ElementGraph elementGraph, FlowElement flowElement )
    {
    if( !( flowElement instanceof Operator ) )
      return false;

    Operator operator = (Operator) flowElement;

    if( !operator.hasPlannerLevel() )
      return false;

    PlannerLevel plannerLevel = plannerContext.getPlannerLevelFor( plannerLevelClass );

    if( plannerLevel == null )
      return false;

    if( !( (PlannedOperation) operator.getOperation() ).supportsPlannerLevel( plannerLevel ) )
      return false;

    return operator.getPlannerLevel().isStricterThan( plannerLevel );
    }
View Full Code Here

Examples of cc.concurrent.mango.runtime.operator.Operator

        @Override
        protected Object handleInvocation(Object proxy, Method method, Object[] args) throws Throwable {
            if (logger.isDebugEnabled()) {
                logger.debug("{} #args={}", ToStringHelper.toString(method), args);
            }
            Operator operator = cache.get(method);
            Object r = operator.execute(args);
            if (logger.isDebugEnabled()) {
                logger.debug("{} #result={}", ToStringHelper.toString(method), r);
            }
            return r;
        }
View Full Code Here

Examples of com.adobe.idp.dsc.filter.Operator

                if (pit.hasNext())
                    lcUser = (User) (pit.next());
                Set<Group> groupMemberships = lcUser.getGroupMemberships();
                TaskSearchFilter taskSearchFilter = new TaskSearchFilter();
                taskSearchFilter.addCondition(TaskSearchingConstants.pSTATUS,
                        new Operator("="), StatusFilter.assigned);
                for (Group group : groupMemberships) {

                    if (!group.getCommonName().equals("Scanning Bureau")) {
                        taskSearchFilter.addCondition(
                                TaskSearchingConstants.pCURRENT_ASSIGNMENT_QUEUE_OWNER,
View Full Code Here

Examples of com.cloud.network.as.Condition.Operator

                                    counter_count++;
                                } while (1 == 1);

                                Double sum = avgCounter.get(counter_count);
                                Double avg = sum / currentVM;
                                Operator op = conditionVO.getRelationalOperator();
                                boolean bConditionCheck = ((op == com.cloud.network.as.Condition.Operator.EQ) && (thresholdPercent.equals(avg)))
                                    || ((op == com.cloud.network.as.Condition.Operator.GE) && (avg.doubleValue() >= thresholdPercent.doubleValue()))
                                    || ((op == com.cloud.network.as.Condition.Operator.GT) && (avg.doubleValue() > thresholdPercent.doubleValue()))
                                    || ((op == com.cloud.network.as.Condition.Operator.LE) && (avg.doubleValue() <= thresholdPercent.doubleValue()))
                                    || ((op == com.cloud.network.as.Condition.Operator.LT) && (avg.doubleValue() < thresholdPercent.doubleValue()));
View Full Code Here

Examples of com.damnhandy.uri.template.impl.Operator

    * @throws VariableExpansionException
    * @return
    */
   private String expressionReplacementString(Expression expression) throws VariableExpansionException
   {
      final Operator operator = expression.getOperator();
      final List<String> replacements = expandVariables(expression);
      String result = joinParts(operator.getSeparator(), replacements);
      if (result != null)
      {
         if (operator != Operator.RESERVED)
         {
            result = operator.getPrefix() + result;
         }
      }
      else
      {
         result = "";
View Full Code Here

Examples of com.ericsson.ssa.dd.Operator

        if (parent instanceof Pattern) {
            Pattern pattern = (Pattern) parent;
            pattern.addCondition(operand);
        } else {
            Operator operator = (Operator) parent;
            operator.addCondition(operand);
        }
    }
View Full Code Here

Examples of com.facebook.presto.operator.Operator

        return results;
    }

    private Object selectSingleValue(OperatorFactory operatorFactory, Session session)
    {
        Operator operator = operatorFactory.createOperator(createDriverContext(session));
        return selectSingleValue(operator);
    }
View Full Code Here

Examples of com.foundationdb.qp.operator.Operator

                Ordering ordering = API.ordering();
                for(int i = 0; i < expList.size(); ++i) {
                    TPreparedExpression prep = expList.get(i).getTPreparedExpression();
                    ordering.append(ExpressionGenerators.field(prep.resultType(), i), true);
                }
                Operator plan = API.groupScan_Default(cType.table().getGroup());
                plan = API.filter_Default(plan, Arrays.asList(cType, oType, iType));
                plan = API.flatten_HKeyOrdered(plan, cType, oType, JoinType.LEFT_JOIN);
                plan = API.flatten_HKeyOrdered(plan, plan.rowType(), iType, JoinType.LEFT_JOIN);
                plan = API.project_Default(plan, expList, plan.rowType());
                plan = API.sort_General(plan, plan.rowType(), ordering, SortOption.PRESERVE_DUPLICATES);
                return plan;
            }
        });
    }
View Full Code Here

Examples of com.google.caja.parser.js.Operator

          if (rnd.nextBoolean()) { out.append('m'); }
          if (rnd.nextBoolean()) { out.append('i'); }
          tok = out.toString();
          break;
        case PUNCTUATION:
          Operator op = OPERATORS[rnd.nextInt(OPERATORS.length)];
          if (op.getClosingSymbol() != null) {
            tok = rnd.nextBoolean()
                ? op.getOpeningSymbol()
                : op.getClosingSymbol();
          } else {
            tok = op.getSymbol();
          }
          if (tok.startsWith("/")) {
            // Make sure / operators follow numbers so they're not interpreted
            // as regular expressions.
            tokens.add("3");
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.