Examples of search()


Examples of org.chaidb.db.index.btree.BTreePage.search()

            BTreePage rootPage = new BTreePage(id, root, btreeSpec, buffer);
            if (rootPage.getPage() == null) {
                return it;
            }
            BTreeNode n = rootPage.search(key, kContext);
            if (n != null) {
                NodePosition firstNode = new NodePosition(n.getPageNumber().getPageNumber(), n.getDataNodeOffset());
                it.initIterator(firstNode);
            }
            // unfix root and leaf page.

Examples of org.cruxframework.crux.scanner.archiveiterator.URLIterator.search()

   
    scanner.setScanned();
    scanner.startScanning();

    URLIterator iterator = resourceHandler.getDirectoryIteratorFactory().create(baseLocation, scanners);
    iterator.search();

    List<URL> result = new ArrayList<URL>();
   
    for (ScannerMatch match : scanner.getAllMatches())
    {

Examples of org.dbunit.util.search.DepthFirstSearch.search()

    {
        logger.debug("getDependentTables(connection={}, rootTables={}) - start", connection, rootTables);

        ImportedKeysSearchCallback callback = new ImportedKeysSearchCallback(connection);
        DepthFirstSearch search = new DepthFirstSearch();
        Set tables = search.search( rootTables, callback );
        return CollectionsHelper.setToStrings( tables );
    }

    /**
     * Get the name of all tables that the given rootTable depends on (i.e, all tables whose PK is a FK for the root table).

Examples of org.dspace.app.cris.discovery.CrisSearchService.search()

                // before
                // and all the item modified today and archived yesterday
                query.setQuery("(item.lastmodified:(NOW/DAY-1DAY) AND dateaccessioned:(NOW/DAY-1DAY)) OR ((item.lastmodified:(NOW/DAY) AND dateaccessioned:(NOW/DAY-1DAY)))");
            }

            QueryResponse qResponse = searchService.search(query);
            SolrDocumentList results = qResponse.getResults();

            // Only add to buffer if there are new items
            if (results.getNumFound() > 0)

Examples of org.dspace.discovery.SearchService.search()

        queryArgs.add("f.location.facet.mincount", "0");

        SearchService service = getSearchService();

        queryResults = service.search(queryArgs);

    }

}

Examples of org.eclipse.dltk.core.index2.search.ISearchEngine.search()

          paths.add(sourceModule.getPath().toString());
        }
      };

      searchEngine.search(IModelElement.FIELD, null, "$testField", 0, 0,
          0, SearchFor.ALL_OCCURENCES, MatchRule.EXACT, scope,
          requestor, new NullProgressMonitor());

    }
    return paths;

Examples of org.eclipse.dltk.core.search.SearchEngine.search()

   
    SearchEngine engine = new SearchEngine();
    SearchParticipant defaultSearchParticipant = SearchEngine.getDefaultSearchParticipant();
    IDLTKSearchScope scope = SearchEngine.createSearchScope(searchProj);
   
    engine.search(searchPattern, array(defaultSearchParticipant), scope, requestor, new NullProgressMonitor());
    return requestor;
  }
 
  protected void testSearch(SearchPattern searchPattern, HashSet<IModelElement> expected) throws CoreException {
    SearchRequestorResultCollector requestor = executeSearch(searchPattern);

Examples of org.eclipse.jdt.core.search.SearchEngine.search()

        };
       
        IJavaSearchScope scope = getScope(null);
       
        SearchEngine searchEngine = new SearchEngine();
        searchEngine.search(pattern, new SearchParticipant[] {SearchEngine.getDefaultSearchParticipant()}, scope, requestor, null);

        if (matches.size() != 1) {
            throw new IllegalArgumentException("Failed to find unique type; found "+matches.size());
        }

Examples of org.eclipse.jdt.internal.core.util.DOMFinder.search()

        for (int i = 0; i < intList.length; i++) {
          final int index = intList.list[i];
          SourceRefElement element = (SourceRefElement) elements[index];
          DOMFinder finder = new DOMFinder(ast, element, true/*resolve binding*/);
          try {
            finder.search();
          } catch (JavaModelException e) {
            throw new IllegalArgumentException(element + " does not exist"); //$NON-NLS-1$
          }
          this.bindings[index] = finder.foundBinding;
        }

Examples of org.eclipse.jface.text.Document.search()

        int offset = 0;   // TODO in forms use "\" + varName + "\"
        MultiTextEdit multiEdit = new MultiTextEdit();
        int len = variableName.length();
        while (offset > -1) {
            offset = document.search(offset, variableName, true, true, true);
            if (offset == -1) {
                break;
            }
            ReplaceEdit replaceEdit = new ReplaceEdit(offset, len, replacement);
            multiEdit.addChild(replaceEdit);
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.