Examples of Match


Examples of cascading.flow.planner.iso.finder.Match

      .arcs( SHARED_TAP, SHARED_HASHJOIN )
      .arcs( SHARED_TAP, SHARED_HASHJOIN );

    GraphFinder graphFinder = new GraphFinder( expressionGraph );

    Match match = graphFinder.findFirstMatch( graph );

    match.getMatchedGraph().writeDOT( getPlanPath() + "/match.dot" );
    }
View Full Code Here

Examples of ch.inftec.ju.util.RegexUtil.Match

          // Now, we'll try to access the resource within a JAR. We'll still make sure that the JAR actually exists as an
          // accessible file.
          RegexUtil jarFile = new RegexUtil("(file:.+/([^/]+\\.jar))/");
          Match[] matches = jarFile.getMatches(newPath);
          if (matches.length > 0) {
            Match lastMatch = matches[matches.length - 1];
            String jarFilePath = lastMatch.getGroups()[0];
            if (IOUtil.exists().file(jarFilePath)) {
              String jarFileName = lastMatch.getGroups()[1];

              newPath = "jar:" + newPath.replaceAll(jarFileName + "/", jarFileName + "!/");

              try {
                return new URL(newPath);
View Full Code Here

Examples of cli.System.Text.RegularExpressions.Match

            position = -1;
            return null;
        }

        if (matches.MoveNext()) {
            Match match = (Match)matches.get_Current();
            current = input.subSequence(prevEnd, match.get_Index());
            prevEnd = match.get_Index() + match.get_Length();
        } else {
            current = input.subSequence(prevEnd, input.length());
            prevEnd = -1;
        }
        position++;
View Full Code Here

Examples of com.brosinski.eclipse.regex.Match

        //getViewSite().getActionBars().getMenuManager().add(registerAction);
        getViewSite().getActionBars().getMenuManager().add(aboutAction);
    }

    public void selectNextMatch() {
        Match match = regex.getMatches().nextMatch();
        if (match != null) {
            StyledText searchText = txt_SearchText;
            StyledText resultText = txt_Result;
            searchText.setSelection(match.getStart(), match.getEnd());

            String resultStr = resultText.getText();
            Pattern patt = Pattern.compile("start=" + match.getStart()
                    + ", end=" + match.getEnd());
            Matcher matcher = patt.matcher(resultStr);
            if (matcher.find()) {
                resultText.setSelection(matcher.start(), matcher.end());
            }
        }
View Full Code Here

Examples of com.cloud.network.nicira.Match

             
              // Setup the source nat rule
              SourceNatRule snr = new SourceNatRule();
              snr.setToSourceIpAddressMin(publicNetworkIpAddress.split("/")[0]);
              snr.setToSourceIpAddressMax(publicNetworkIpAddress.split("/")[0]);
              Match match = new Match();
              match.setSourceIpAddresses(internalNetworkAddress);
              snr.setMatch(match);
              snr.setOrder(200);
              _niciraNvpApi.createLogicalRouterNatRule(lrc.getUuid(), snr);
          } catch (NiciraNvpApiException e) {
            // We need to destroy the router if we already created it
View Full Code Here

Examples of com.dtrules.xmlparser.XMLTree.Node.MATCH

    /**
     * Returns a message about the difference between the nodes.
     * If there is no difference, a null is returned.
     */
    public String compareNodes(Node thisResult, Node oldResult){
         MATCH v = thisResult.compareToNode(oldResult, false);
       if(MATCH.match == v) {
         // If this node matches, check all the children of this node.
         if(thisResult.getTags()!= null){
           for(int i=0; i < thisResult.getTags().size(); i++){
             String r = compareNodes(thisResult.getTags().get(i),
View Full Code Here

Examples of com.ibatis.sqlmap.engine.mapper.matcher.Match

    List matchList = buildMatchList(canonicalProperties, canonicalFields);

    Map matchedNames = new HashMap();
    Iterator matches = matchList.iterator();
    while(matches.hasNext()) {
      Match match = (Match)matches.next();
      String property = (String) propertyMap.get(match.getProperty());
      String field = (String) fieldMap.get(match.getField());
      matchedNames.put(property, field);
    }
    return matchedNames;
  }
View Full Code Here

Examples of com.moncruist.audiorecogn.model.Match

            log.log(Level.INFO, "Search start");
            int idx = 0;
            while (cursor.hasNext()) {
                //log.log(Level.INFO, String.format("Search idx %d", idx));
                DBObject dbo = cursor.next();
                Match newMatch = Match.fromDBObject(dbo);
                ArrayList arr = (ArrayList) dbo.get("hash");


                double[][] music = new double[arr.size()][hash[0].length];
                for(int i = 0; i < arr.size(); i++) {
                    ArrayList<Double> arr2 = (ArrayList<Double>)arr.get(i);
                    for(int j = 0; j < arr2.size(); j++)
                        music[i][j] = arr2.get(j);
                }
                int music_len = music.length;


//                if(newMatch.getTitle().equals("Tie You Up (The Pain Of Love)")) {
//                log.log(Level.INFO, String.format("Music length %d", music_len));
//                for(int i = 0; i < music_len; i++) {
//                    String str = "[";
//                    for(int j = 0; j < music[i].length; j++)
//                        str += Double.toString(music[i][j]) + " ";
//                    str += "]";
//                    log.log(Level.INFO, str);
//                }
//                }

                double score = Double.MAX_VALUE;
                for(int i = 0; i < music_len - hash_len; i++) {
                    double sum = 0.0;
                    for(int j = 0; j < hash_len; j++) {
                        sum += SearchUtils.distance(music[i+j], hash[j], min_max);
                    }
                    if(sum < score)
                        score = sum;
                }

                newMatch.setScore(score);
                newMatch.setClassScore(clresult);
                if(newMatch.getTitle().equals("Tie You Up (The Pain Of Love)"))
                    log.log(Level.INFO, String.format("Tie You Up (The Pain Of Love) match %f", newMatch.getScore()));
                if(matches.size() < 10) {
                    matches.add(newMatch);
                    Collections.sort(matches, new MatchComparator());
                }
                else {
View Full Code Here

Examples of com.redcareditor.onig.Match

    }
  }

  // this method is mainly for testing in the Ruby specs
  public static String testRank(String selector_a, String selector_b, String scope_string) {
    Match m1 = match(selector_a, scope_string);
    Match m2 = match(selector_b, scope_string);
    int r = compareMatch(scope_string, m1, m2);
    if (r > 0) {
      return selector_a;
    } else if (r == 0) {
      return selector_a + " == " + selector_b;
View Full Code Here

Examples of com.redcareditor.onig.Match

      return selector_b;
    }
  }

  public static boolean testMatch(String selectorString, String scopeString) {
    Match m = getMatch(selectorString, scopeString);
    return (m != null);
  }
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.