All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adobe.cq.searchcollections.lucene.QueryObjectModelFactoryImpl Maven / Gradle / Ivy

/*************************************************************************
 *
 * ADOBE CONFIDENTIAL
 * __________________
 *
 *  Copyright 2012 Adobe Systems Incorporated
 *  All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated and its
 * suppliers and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 **************************************************************************/
package com.adobe.cq.searchcollections.lucene;

import javax.jcr.Session;
import javax.jcr.query.qom.Column;
import javax.jcr.query.qom.Constraint;
import javax.jcr.query.qom.Ordering;
import javax.jcr.query.qom.QueryObjectModel;
import javax.jcr.query.qom.Source;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.store.Directory;

import com.adobe.cq.searchcollections.qom.AbstractQueryObjectModelFactory;

/**
 * @deprecated
 */
class QueryObjectModelFactoryImpl extends AbstractQueryObjectModelFactory {

    private final Directory directory;

    private final Analyzer analyzer;

    private final Session session;

    public QueryObjectModelFactoryImpl(Directory directory, Analyzer analyzer,
            Session session) {
        this.directory = directory;
        this.analyzer = analyzer;
        this.session = session;
    }

    public QueryObjectModel createQuery(Source source, Constraint constraint,
            Ordering[] orderings, Column[] columns) {
        return new QueryObjectModelImpl(directory, analyzer, session, this,
                source, constraint, orderings, columns);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy