Package org.apache.jackrabbit.oak.query.fulltext

Examples of org.apache.jackrabbit.oak.query.fulltext.FullTextVisitor$FullTextVisitorBase


        return solrQuery;
    }

    private String getFullTextQuery(FullTextExpression ft) {
        final StringBuilder fullTextString = new StringBuilder();
        ft.accept(new FullTextVisitor() {

            @Override
            public boolean visit(FullTextOr or) {
                fullTextString.append('(');
                for (int i = 0; i < or.list.size(); i++) {
View Full Code Here


    static Query getFullTextQuery(FullTextExpression ft, final Analyzer analyzer, final IndexReader reader) {
        // a reference to the query, so it can be set in the visitor
        // (a "non-local return")
        final AtomicReference<Query> result = new AtomicReference<Query>();
        ft.accept(new FullTextVisitor() {

            @Override
            public boolean visit(FullTextOr or) {
                BooleanQuery q = new BooleanQuery();
                for (FullTextExpression e : or.list) {
View Full Code Here

            return false;
        }
        final AtomicReference<Boolean> composite = new AtomicReference<Boolean>();
        composite.set(false);

        ft.accept(new FullTextVisitor() {

            @Override
            public boolean visit(FullTextTerm term) {
                return true;
            }
View Full Code Here

            final NodeState state) {
        if (constraint == null) {
            return null;
        }
        final AtomicReference<Cursor> result = new AtomicReference<Cursor>();
        constraint.accept(new FullTextVisitor() {

            @Override
            public boolean visit(FullTextTerm term) {
                result.set(filterToCursor(newAggregationFilter(filter, term),
                        index, state));
View Full Code Here

        if (constraint == null) {
            return Double.POSITIVE_INFINITY;
        }
        final AtomicReference<Double> result = new AtomicReference<Double>();
        result.set(0d);
        constraint.accept(new FullTextVisitor() {

            @Override
            public boolean visit(FullTextTerm term) {
                result.set(result.get() + index.getCost(newAggregationFilter(filter, term), state));
                return true;
View Full Code Here

    static Query getFullTextQuery(FullTextExpression ft, final Analyzer analyzer, final IndexReader reader) {
        // a reference to the query, so it can be set in the visitor
        // (a "non-local return")
        final AtomicReference<Query> result = new AtomicReference<Query>();
        ft.accept(new FullTextVisitor() {

            @Override
            public boolean visit(FullTextOr or) {
                BooleanQuery q = new BooleanQuery();
                for (FullTextExpression e : or.list) {
View Full Code Here

        return solrQuery;
    }

    private String getFullTextQuery(FullTextExpression ft) {
        final StringBuilder fullTextString = new StringBuilder();
        ft.accept(new FullTextVisitor() {

            @Override
            public boolean visit(FullTextOr or) {
                fullTextString.append('(');
                for (int i = 0; i < or.list.size(); i++) {
View Full Code Here

            return false;
        }
        final AtomicReference<Boolean> composite = new AtomicReference<Boolean>();
        composite.set(false);

        ft.accept(new FullTextVisitor() {

            @Override
            public boolean visit(FullTextTerm term) {
                return true;
            }
View Full Code Here

            final String path) {
        if (constraint == null) {
            return null;
        }
        final AtomicReference<Cursor> result = new AtomicReference<Cursor>();
        constraint.accept(new FullTextVisitor() {

            @Override
            public boolean visit(FullTextTerm term) {
                IndexPlan p = plan.getPlan(path);
                result.set(newAggregationCursor(p, state));
View Full Code Here

            final List<OrderEntry> sortOrder,
            final NodeState state,
            final AggregateIndexPlan target,
            final String path) {
       
        constraint.accept(new FullTextVisitor() {

            @Override
            public boolean visit(FullTextTerm term) {
                List<IndexPlan> list = baseIndex.getPlans(
                        newAggregationFilter(filter, term), sortOrder, state);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.query.fulltext.FullTextVisitor$FullTextVisitorBase

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.