Examples of find()


Examples of org.compass.core.CompassSearchSession.find()

      List<Archivale> archivalien = new ArrayList<Archivale>();
      rechercheBean.setArchivalien(archivalien);

      CompassSearchSession session = compass.openSearchSession();
      try {
        CompassHits hits = session.find(suchKriterium);
        System.out.println("Hits");
        for (int i = 0; i < hits.getLength(); i++) {
          archivalien.add((Archivale) hits.data(i));
          System.out.println(hits.hit(i).score() + " "
              + hits.hit(i).getHighlightedText());
View Full Code Here

Examples of org.compass.core.CompassSession.find()

 
  public void removeItem(Item item) {
    CompassSession compassSession = compass.openSession();
    CompassTransaction compassTransaction = compassSession.beginTransaction();
    String query = "+itemId:" + item.getItemId().toString();
    CompassHits hits = compassSession.find(query);
    Iterator<?> iterator = hits.detach().iterator();
    while (iterator.hasNext()) {
      DefaultCompassHit defaultCompassHit = (DefaultCompassHit) iterator.next();
      compassSession.delete(defaultCompassHit.getData());
    }
View Full Code Here

Examples of org.crank.crud.test.dao.EmployeeDAO.find()

  }

  @Test (groups="reads", dependsOnGroups="createsObjectInDB")
  public void testFindRelatedField() {
    EmployeeDAO employeeDAO = (EmployeeDAO) this.employeeDao;
    List<Employee> employees = employeeDAO.find("department.name",
        "Engineering");
    AssertJUnit.assertTrue(employees.size() > 0);
  }
 
  @Test (groups="reads", dependsOnGroups="createsObjectInDB")
View Full Code Here

Examples of org.culturegraph.registry.mongo.MongoDao.find()

 
  private final static Logger logger = Logger.getLogger(MongoDaoTest.class);

  public void testSearch() throws UnknownHostException, MongoException {
    MongoDao dao = MongoDao.Factory.newTestMongoDao();
    Collection<PropertyRecord> result = dao.find("_id", "urn:nbn:de:eki:cg010018727");
    logger.info("" + result.size());
   
    Iterator<PropertyRecord> it = result.iterator();
    while(it.hasNext()){
      logger.info(it.next().getLastModified());
View Full Code Here

Examples of org.dbwiki.data.database.DatabaseGroupNode.find()

      DatabaseGroupNode nextNode = null;
      for (int iNode = 0; iNode < nodes.size(); iNode++) {
        DatabaseGroupNode childNode = (DatabaseGroupNode)nodes.get(iNode);
        if (versionParameter.matches(childNode)) {
          int matches = 0;
          DatabaseElementList valueNodes = childNode.find(rule.value().path().substring(childNode.schema().path().length() + 1));
          for (int iValueNode = 0; iValueNode < valueNodes.size(); iValueNode++) {
            DatabaseAttributeNode attributeNode = (DatabaseAttributeNode)valueNodes.get(iValueNode);
            for (int iAttrValue = 0; iAttrValue < attributeNode.value().size(); iAttrValue++) {
              DatabaseTextNode textNode = attributeNode.value().get(iAttrValue);
              if ((versionParameter.matches(textNode)) && (textNode.value().equals(keyValue))) {
View Full Code Here

Examples of org.docx4j.fonts.fop.fonts.autodetect.FontFileFinder.find()

   
        FontFileFinder fontFileFinder = new FontFileFinder();
       
        // Automagically finds a list of font files on local system
        // based on os.name
        List fontFileList = fontFileFinder.find();     
       
       
        if (regex==null) {
            for (Iterator iter = fontFileList.iterator(); iter.hasNext();) {
             
View Full Code Here

Examples of org.eaxy.Element.find()

            if (1 != skinSet.size()) {
                throw new ColladaParseException("Found " + skinSet.size() + " skin sets for controller id=" + controller.id() + " name=" + controller.name());
            }
            Element skin = skinSet.first();

            ElementSet jointsSet = skin.find("joints");
            if (1 != jointsSet.size()) {
                throw new ColladaParseException("Found " + jointsSet.size() + " joints sets for controller id=" + controller.id() + " name=" + controller.name());
            }
            Element joints = jointsSet.first();
View Full Code Here

Examples of org.eclipse.core.runtime.jobs.IJobManager.find()

     * during the current build.
     */
    private void cancelPreviousPerlBuilderJob()
    {
        IJobManager jobMan = Platform.getJobManager();
        Job[] jobs = jobMan.find(PerlBuilderJob.JOB_FAMILY);

        if (jobs.length == 0) return; // no previous build found
       
        jobMan.cancel(PerlBuilderJob.JOB_FAMILY);
        try { jobMan.join(PerlBuilderJob.JOB_FAMILY, null); }
View Full Code Here

Examples of org.eclipse.egit.core.project.RepositoryFinder.find()

      TableItem item = children[i];
      IProject data = (IProject) item.getData();
      RepositoryFinder repositoryFinder = new RepositoryFinder(data);
      repositoryFinder.setFindInChildren(false);
      try {
        Collection<RepositoryMapping> find = repositoryFinder
            .find(new NullProgressMonitor());
        if (find.size() != 1)
          item.setChecked(true);
      } catch (CoreException e1) {
        item.setText(2, e1.getMessage());
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.ObjectVector.find()

public void add(PossibleMatch possibleMatch) {
  IPath path = possibleMatch.openable.getPackageFragmentRoot().getPath();
  ObjectVector possibleMatches = (ObjectVector) this.rootsToPossibleMatches.get(path);
  if (possibleMatches != null) {
    PossibleMatch storedMatch = (PossibleMatch) possibleMatches.find(possibleMatch);
    if (storedMatch != null) {
      while (storedMatch.getSimilarMatch() != null) {
        storedMatch = storedMatch.getSimilarMatch();
      }
      storedMatch.setSimilarMatch(possibleMatch);
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.