Examples of SearchResult


Examples of com.nineteendrops.tracdrops.client.api.search.SearchResult

        ArrayList<SearchResult> results = new ArrayList<SearchResult>();

        Object[] resultArray = (Object[])result;
        for(int i=0; i<resultArray.length; i++){
            Object[] o = (Object[])resultArray[i];
            results.add(new SearchResult(o[0].toString(),
                                         o[1].toString(),
                                         o[2].toString(),
                                         o[3].toString(),
                                         o[4].toString()));
        }
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.dsl.linking.PPFinder.SearchResult

            IPPDiagnostics.ISSUE__NOT_CLASSREF);
        }
        CrossReferenceAdapter.clear(o.getNameExpr());
        break CLASSPARAMS;
      }
      SearchResult searchResult = ppFinder.findHostClasses(o, className, importedNames);
      List<IEObjectDescription> descs = searchResult.getAdjusted();
      if(descs.size() < 1) {
        if(searchResult.getRaw().size() > 0) {
          // Sort of ok
          importedNames.addResolved(searchResult.getRaw());
          CrossReferenceAdapter.set(o.getNameExpr(), searchResult.getRaw());
          acceptor.acceptWarning(
            "Found outside current search path (parameters not validated): '" + className + "'", o,
            PPPackage.Literals.RESOURCE_BODY__NAME_EXPR, IPPDiagnostics.ISSUE__NOT_ON_PATH);
          return; // skip validating parameters
View Full Code Here

Examples of com.rackspacecloud.blueflood.io.SearchResult

    private ElasticIO elasticIO;
    private EsSetup esSetup;

    private static SearchResult createExpectedResult(String tenantId, int x, String y, int z, String unit) {
        Locator locator = createTestLocator(tenantId, x, y, z);
        return new SearchResult(tenantId, locator.getMetricName(), unit);
    }
View Full Code Here

Examples of com.sleepycat.je.tree.SearchResult

                     curBin.getKey(curBin.getNEntries() - 1) :
                     curBin.getKey(0));
                final BIN binToFind = curBin;
                curBin = null; // BIN latch will be released.

                final SearchResult result = tree.getParentINForChildIN
                    (binToFind, true /*requireExactMatch*/,
                     CacheMode.UNCHANGED);

                final IN parent = result.parent;
                boolean fetchOrWait = false;
View Full Code Here

Examples of com.sun.star.util.SearchResult

    * Has <b>OK</b> if the correct substring position returned.
    */
    public void _searchForward() {
        requiredMethod("setOptions()") ;

        SearchResult res = oObj.searchForward(str, startPos, endPos) ;

        log.println("Result of searching '" + searchStr + "' substring in \n'" +
            str + "' string (" + res.subRegExpressions + " matches):") ;

        for (int i = 0; i < res.subRegExpressions; i++)
View Full Code Here

Examples of com.tistory.devyongsik.crescent.search.entity.SearchResult

    searchRequest.setKeyword("1");
    searchRequest.setCollectionName("sample");
   
    CrescentSearchRequestWrapper csrw = new CrescentSearchRequestWrapper(searchRequest);
   
    SearchResult searchResult = crescentDocSearcher.search(csrw);
   
    Assert.assertTrue(searchResult.getResultList().size() > 0);
  }
View Full Code Here

Examples of com.tll.dao.SearchResult

  protected static <E extends IEntity> List<SearchResult> transformEntityList(final List<E> entityList,
      final Collection<String> inclusionProperties) {
    final List<SearchResult> slist = new ArrayList<SearchResult>(entityList.size());
    for(final E e : entityList) {
      if(inclusionProperties != null) {
        slist.add(new SearchResult(scalarize(e, inclusionProperties)));
      }
      else {
        slist.add(new SearchResult(e));
      }
    }
    return slist;
  }
View Full Code Here

Examples of com.unboundid.ldap.sdk.SearchResult

    assertNull(userOneModel);
  }

  @Test
  public void checkIfUsersConfContainsAllUsersFromSampleDataLdif() throws Exception {
    SearchResult searchResult = ds.search("OU=Users,OU=UserControl,OU=MyOrganization,DC=MyDomain", SearchScope.SUB, "objectClass=person");
    assertEquals("Number of ldap users in gitblit user model", searchResult.getEntryCount(), countLdapUsersInUserManager());
  }
View Full Code Here

Examples of data.SearchResult

    public Object getValueAt(int rowIndex, int columnIndex) {
        if (rowIndex >= results.size() || rowIndex < 0) {
            throw new IllegalArgumentException(String.format("Row out of bounds! (Items: %d, Row: %d)", results.size(), rowIndex));
        }

        SearchResult searchResult = get(rowIndex);
        Object value = null;
        switch (columnIndex) {
            case COL_FILENAME:
                value = searchResult.getFileName();
                break;
            case COL_FILEPATH:
                value = searchResult.getPath();
                break;
            case COL_FILESIZE:
                value = searchResult.getSize();
                break;
            case COL_FILETYPE:
                value = searchResult.getFileType();
                break;
            case COL_LASTCHANGE:
                value = searchResult.getLastChange();
                break;
            default:
                log(ERROR, "Invalid column-id <" + columnIndex + ">!");
                throw new IllegalArgumentException(String.format("Invalid column %d!", columnIndex));
        }
View Full Code Here

Examples of edu.uga.galileo.voci.bo.SearchResult

          User user = (User) request.getSession()
              .getAttribute("user");
          // if user is null, stick with the default that none of
          // the results is editable
          if (user != null) {
            SearchResult result;
            boolean includeExtras = request
                .getParameter("includeExtras") == null ? false
                : true;
            for (int m = results.size() - 1; m >= 0; m--) {
              result = results.get(m);
              try {
                if (wm.canEdit(user, pm.getProjectHandle(result
                    .getProjectId()), ContentType.valueOf(
                    result.getVBO().getType()).getPlural(),
                    result.getVBO().getId())) {
                  result.setUserEditable(true);
                } else if (!includeExtras) {
                  results.remove(m);
                }
              } catch (NoSuchProjectException e) {
                Logger
                    .error("Couldn't get project handle for ID "
                        + result.getProjectId());
              }
            }
          }
        }
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.