Package org.exoplatform.services.jcr.impl.core.query

Examples of org.exoplatform.services.jcr.impl.core.query.QueryHandler


    * @return an index reader for this search index.
    * @throws IOException the index reader cannot be obtained.
    */
   public IndexReader getIndexReader(boolean includeSystemIndex) throws IOException
   {
      QueryHandler parentHandler = getContext().getParentHandler();
      CachingMultiIndexReader parentReader = null;
      if (parentHandler instanceof SearchIndex && includeSystemIndex)
      {
         parentReader = ((SearchIndex)parentHandler).index.getIndexReader();
      }
View Full Code Here


   {
      if (synProvider != null)
      {
         return synProvider;
      }
      QueryHandler handler = getContext().getParentHandler();
      if (handler instanceof SearchIndex)
         return ((SearchIndex)handler).getSynonymProvider();
      return null;

   }
View Full Code Here

     */
    public SynonymProvider getSynonymProvider() {
  if (synProvider != null) {
      return synProvider;
  } else {
      QueryHandler handler = getContext().getParentHandler();
      if (handler instanceof SearchIndex) {
    return ((SearchIndex) handler).getSynonymProvider();
      } else {
    return null;
      }
View Full Code Here

     * @throws IOException
     *             the index reader cannot be obtained.
     */
    protected IndexReader getIndexReader(boolean includeSystemIndex)
      throws IOException {
  QueryHandler parentHandler = getContext().getParentHandler();
  CachingMultiIndexReader parentReader = null;
  if (parentHandler instanceof SearchIndex && includeSystemIndex) {
      parentReader = ((SearchIndex) parentHandler).index.getIndexReader();
  }

View Full Code Here

      {
         return synProvider;
      }
      else
      {
         QueryHandler handler = getContext().getParentHandler();
         if (handler instanceof SearchIndex)
         {
            return ((SearchIndex)handler).getSynonymProvider();
         }
         else
View Full Code Here

    * @throws IOException
    *             the index reader cannot be obtained.
    */
   protected IndexReader getIndexReader(boolean includeSystemIndex) throws IOException
   {
      QueryHandler parentHandler = getContext().getParentHandler();
      CachingMultiIndexReader parentReader = null;
      if (parentHandler instanceof SearchIndex && includeSystemIndex)
      {
         parentReader = ((SearchIndex)parentHandler).index.getIndexReader();
      }
View Full Code Here

      {
         return synProvider;
      }
      else
      {
         QueryHandler handler = getContext().getParentHandler();
         if (handler instanceof SearchIndex)
         {
            return ((SearchIndex)handler).getSynonymProvider();
         }
         else
View Full Code Here

      // deny query execution if index in offline mode and allowQuery is false
      if (!index.isOnline() && !allowQuery.get())
      {
         throw new IndexOfflineIOException("Index is offline");
      }
      QueryHandler parentHandler = getContext().getParentHandler();
      CachingMultiIndexReader parentReader = null;
      if (parentHandler instanceof SearchIndex && includeSystemIndex)
      {
         parentReader = ((SearchIndex)parentHandler).index.getIndexReader();
      }
View Full Code Here

      {
         return synProvider;
      }
      else
      {
         QueryHandler handler = getContext().getParentHandler();
         if (handler instanceof SearchIndex)
         {
            return ((SearchIndex)handler).getSynonymProvider();
         }
         else
View Full Code Here

    * @throws IOException
    *             the index reader cannot be obtained.
    */
   protected IndexReader getIndexReader(boolean includeSystemIndex) throws IOException
   {
      QueryHandler parentHandler = getContext().getParentHandler();
      CachingMultiIndexReader parentReader = null;
      if (parentHandler instanceof SearchIndex && includeSystemIndex)
      {
         parentReader = ((SearchIndex)parentHandler).index.getIndexReader();
      }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.core.query.QueryHandler

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.