Package org.apache.lucene.store

Examples of org.apache.lucene.store.GAEDirectory


      }

      long timeStart = System.currentTimeMillis();
      //System.out.println(GAEIndexReaderPool.class.getClassLoader().getResource("indices/" + category + "/index").getFile());
      //File index = new File(GAEIndexReaderPool.class.getClassLoader().getResource("indices/" + category + "/index").getFile());
      GAEDirectory directory = cachedDirectories.get(category);
      if (directory == null) {
        log.info("trying to instance a directory for '" + category + "' version=" + version);
        directory = new GAEDirectory(category, version);
        cachedDirectories.put(category, directory);
      }

      try {
        GAEIndexReader reader = GAEIndexReader.getReader(directory);
View Full Code Here


  // reinstance the index reader and update the hashtable entity
  public synchronized void reloadReader(String category, long version) throws IOException {
    GAEIndexReader oldReader = cachedReaders.get(category);

    GAEDirectory directory = new GAEDirectory(category, new Long(version));
    GAEIndexReader newReader = GAEIndexReader.getReader(directory);
    cachedReaders.put(category, newReader);

    if (oldReader != null) {
      oldReader.destory();
View Full Code Here

TOP

Related Classes of org.apache.lucene.store.GAEDirectory

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.