Package org.apache.jackrabbit.core.query.lucene

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


     */
    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

     */
    public boolean evaluate(ScoreNode[] row,
                            Name[] selectorNames,
                            EvaluationContext context)
            throws IOException {
        ScoreNode sn = row[getSelectorIndex(selectorNames)];
        return sn != null && evaluate(sn, context);
    }
View Full Code Here

            IndexReader reader = context.getIndexReader();
            QueryHits hits = context.evaluate(and);
            try {
                matches = new HashMap<Integer, Float>();
                ScoreNode sn;
                while ((sn = hits.nextScoreNode()) != null) {
                    matches.put(sn.getDoc(reader), sn.getScore());
                }
            } finally {
                hits.close();
            }
        }
View Full Code Here

     */
    public boolean evaluate(ScoreNode[] row,
                            Name[] selectorNames,
                            EvaluationContext context)
            throws IOException {
        ScoreNode sn = row[getSelectorIndex(selectorNames)];
        if (sn == null) {
            return false;
        } else {
            return sn.getNodeId().equals(getBaseNodeId(context));
        }
    }
View Full Code Here

            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

     */
    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

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

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

     */
    public boolean evaluate(ScoreNode[] row,
                            Name[] selectorNames,
                            EvaluationContext context)
            throws IOException {
        ScoreNode sn = row[getSelectorIndex(selectorNames)];
        return sn != null && evaluate(sn, context);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.query.lucene.ScoreNode

Copyright © 2018 www.massapicom. 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.