Package org.apache.blur.index

Examples of org.apache.blur.index.ExitableReader$ExitableFields


    return wrap(super.getReader(applyAllDeletes));
  }

  private DirectoryReader wrap(DirectoryReader reader) {
    if (_makeReaderExitable) {
      reader = new ExitableReader(reader);
    }
    return reader;
  }
View Full Code Here


  }

  private IndexSearcherClosable resetRunning(IndexSearcherClosable indexSearcherClosable) {
    IndexReader indexReader = indexSearcherClosable.getIndexReader();
    if (indexReader instanceof ExitableReader) {
      ExitableReader er = (ExitableReader) indexReader;
      er.getRunning().set(true);
    }
    return indexSearcherClosable;
  }
View Full Code Here

      BlurIndex index = entry.getValue();
      IndexSearcherClosable searcher = index.getIndexReader();
      try {
        IndexReader indexReader = searcher.getIndexReader();
        if (indexReader instanceof ExitableReader) {
          ExitableReader er = (ExitableReader) indexReader;
          er.setRunning(_running);
        } else {
          throw new IOException("IndexReader is not ExitableReader");
        }
        if (_shardServerContext != null) {
          _shardServerContext.setIndexSearcherClosable(_table, shard, searcher);
View Full Code Here

      IndexSearcherClosable searcher = index.getIndexSearcher();
      Tracer trace2 = null;
      try {
        IndexReader indexReader = searcher.getIndexReader();
        if (indexReader instanceof ExitableReader) {
          ExitableReader er = (ExitableReader) indexReader;
          er.setRunning(_running);
        } else {
          throw new IOException("IndexReader is not ExitableReader");
        }
        if (_shardServerContext != null) {
          _shardServerContext.setIndexSearcherClosable(_table, shard, searcher);
View Full Code Here

    _writerOpener.start();
  }

  private DirectoryReader wrap(DirectoryReader reader) throws IOException {
    if (_makeReaderExitable) {
      reader = new ExitableReader(reader);
    }
    return _policy.register(reader);
  }
View Full Code Here

TOP

Related Classes of org.apache.blur.index.ExitableReader$ExitableFields

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.