Examples of ScoreNode


Examples of org.apache.jackrabbit.core.query.lucene.ScoreNode

            IndexReader reader = context.getIndexReader();
            QueryHits hits = context.evaluate(and);
            try {
                matches = new BitSet();
                ScoreNode sn;
                while ((sn = hits.nextScoreNode()) != null) {
                    matches.set(sn.getDoc(reader));
                }
            } finally {
                hits.close();
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.core.query.lucene.ScoreNode

            throws IOException {
        NodeId baseId = getBaseNodeId(context);
        if (baseId == null) {
            return false;
        }
        ScoreNode sn = row[getSelectorIndex(selectorNames)];
        if (sn == null) {
            return false;
        }
        NodeId id = sn.getNodeId();
        SessionImpl session = context.getSession();
        try {
            NodeImpl parent = session.getNodeById(id);
            for (;;) {
                // throws exception if there is no parent
View Full Code Here

Examples of org.apache.jackrabbit.core.query.lucene.ScoreNode

     */
    public boolean evaluate(ScoreNode[] row,
                            Name[] selectorNames,
                            EvaluationContext context)
            throws IOException {
        ScoreNode sn = row[getSelectorIndex(selectorNames)];
        if (sn == null) {
            return false;
        }
        SessionImpl session = context.getSession();
        NodeImpl parent;
        try {
            parent = (NodeImpl) session.getNodeById(sn.getNodeId()).getParent();
        } catch (RepositoryException e) {
            return false;
        }
        return parent.getId().equals(getBaseNodeId(context));
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.query.lucene.ScoreNode

     */
    public boolean evaluate(ScoreNode[] row,
                            Name[] selectorNames,
                            EvaluationContext context)
            throws IOException {
        ScoreNode sn = row[getSelectorIndex(selectorNames)];
        if (sn == null) {
            return false;
        }
        Value[] values = operand1.getValues(sn, context);
        try {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.ScoreNode

      Set<String> result = new HashSet<String>();
      try
      {
         QueryHits hits = handler.executeQuery(query);

         ScoreNode sn;

         while ((sn = hits.nextScoreNode()) != null)
         {
            // Node node = session.getNodeById(sn.getNodeId());
            result.add(sn.getNodeId());
         }
      }
      catch (IOException e)
      {
         throw new RepositoryException(e.getLocalizedMessage(), e);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.ScoreNode

      QueryHits hits = null;
      try
      {
         hits = handler.executeQuery(query);

         ScoreNode sn;
         while ((sn = hits.nextScoreNode()) != null)
         {
            result.add(sn.getNodeId());
         }
         return result;
      }
      catch (IndexOfflineIOException e)
      {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.ScoreNode

      QueryHits hits = null;
      try
      {
         hits = handler.executeQuery(query);

         ScoreNode sn;
         while ((sn = hits.nextScoreNode()) != null)
         {
            result.add(sn.getNodeId());
         }
         return result;
      }
      catch (IndexOfflineIOException e)
      {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.ScoreNode

      Set<String> result = new HashSet<String>();
      try
      {
         QueryHits hits = handler.executeQuery(query);

         ScoreNode sn;

         while ((sn = hits.nextScoreNode()) != null)
         {
            // Node node = session.getNodeById(sn.getNodeId());
            result.add(sn.getNodeId());
         }
      }
      catch (IOException e)
      {
         throw new RepositoryException(e.getLocalizedMessage(), e);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.ScoreNode

      Set<String> result = new HashSet<String>();
      try
      {
         QueryHits hits = handler.executeQuery(query);

         ScoreNode sn;

         while ((sn = hits.nextScoreNode()) != null)
         {
            // Node node = session.getNodeById(sn.getNodeId());
            result.add(sn.getNodeId());
         }
      }
      catch (IndexOfflineIOException e)
      {
         throw new IndexOfflineRepositoryException(e.getMessage(), e);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.ScoreNode

      Set<String> result = new HashSet<String>();
      try
      {
         QueryHits hits = handler.executeQuery(query);

         ScoreNode sn;

         while ((sn = hits.nextScoreNode()) != null)
         {
            // Node node = session.getNodeById(sn.getNodeId());
            result.add(sn.getNodeId());
         }
      }
      catch (IOException e)
      {
         throw new RepositoryException(e.getLocalizedMessage(), e);
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.