Examples of addIndexes()


Examples of com.basho.riak.pbc.RPB.RpbContent.Builder.addIndexes()

      }
    }

        synchronized (indexLock) {
            for (@SuppressWarnings("rawtypes") RiakIndex i : indexes) {
                b.addIndexes(RpbPair.newBuilder()
                             .setKey(ByteString.copyFromUtf8(i.getName()))
                             .setValue(ByteString.copyFromUtf8(i.getValue().toString()))
                             .build());
            }
        }
View Full Code Here

Examples of com.basho.riak.protobuf.RiakKvPB.RpbContent.Builder.addIndexes()

      }
    }

        synchronized (indexLock) {
            for (@SuppressWarnings("rawtypes") RiakIndex i : indexes) {
                b.addIndexes(RpbPair.newBuilder()
                             .setKey(ByteString.copyFromUtf8(i.getName()))
                             .setValue(ByteString.copyFromUtf8(i.getValue().toString()))
                             .build());
            }
        }
View Full Code Here

Examples of org.apache.cocoon.components.search.components.IndexManager.addIndexes()

            // Second, configure the index and add it to the IndexManager

            indexManager = (IndexManager) manager.lookup(IndexManager.ROLE);

            indexManager.addIndexes(indexSource);

            // TODO: release all objects!

            // RGE: End Soc addition
View Full Code Here

Examples of org.apache.cocoon.components.search.components.IndexManager.addIndexes()

            // Second, configure the index and add it to the IndexManager

            indexManager = (IndexManager) manager.lookup(IndexManager.ROLE);

            indexManager.addIndexes(indexSource);

            // TODO: release all objects!

            // RGE: End Soc addition
View Full Code Here

Examples of org.apache.cocoon.components.search.components.IndexManager.addIndexes()

            // Second, configure the index and add it to the IndexManager

            indexManager = (IndexManager) this.manager.lookup(IndexManager.ROLE);

            indexManager.addIndexes(indexSource);

            // TODO: release all objects!

            // RGE: End Soc addition
View Full Code Here

Examples of org.apache.lucene.index.IndexWriter.addIndexes()

  }

  public void addIndexes(Directory[] directories) {
    IndexWriter writer=IndexWriterFactoryUtils.getIndexWriter(indexFactory);
    try {
      writer.addIndexes(directories);
    } catch(IOException ex) {
      throw new LuceneIndexAccessException("Error during adding indexes.",ex);
    } finally {
      IndexWriterFactoryUtils.releaseIndexWriter(indexFactory,writer);
    }
View Full Code Here

Examples of org.apache.lucene.index.IndexWriter.addIndexes()

            isRollbackDueToException = true;
          }
          Path dirPath = directory.getPath();
          if (isSuccess) {
            LOG.info("Add index [{0}] [{1}/{2}]", directory, shard, table);
            indexWriter.addIndexes(directory);
            LOG.info("Removing delete markers [{0}] on [{1}/{2}]", directory, shard, table);
            indexWriter.deleteDocuments(new Term(BlurConstants.DELETE_MARKER, BlurConstants.DELETE_MARKER_VALUE));
            LOG.info("Finishing import [{0}], commiting on [{1}/{2}]", directory, shard, table);
            indexWriter.commit();
            indexWriter.maybeMerge();
View Full Code Here

Examples of org.apache.lucene.index.IndexWriter.addIndexes()

    IndexReader reader = IndexReader.open(input, true);

    SortingReader sorter = new SortingReader(reader, oldToNew(reader, field));
    IndexWriterConfig cfg = new IndexWriterConfig(Version.LUCENE_31, new WhitespaceAnalyzer(Version.LUCENE_31));
    IndexWriter writer = new IndexWriter(output, cfg);
    writer.addIndexes(new IndexReader[] { sorter });
    writer.close();
    long end = System.currentTimeMillis();
    LOG.info("IndexSorter: done, " + (end - start)
        + " total milliseconds");
  }
View Full Code Here

Examples of org.apache.lucene.index.IndexWriter.addIndexes()

      IndexWriter w = new IndexWriter(outputs[i], new IndexWriterConfig(
          Version.LUCENE_CURRENT,
          new WhitespaceAnalyzer(Version.LUCENE_CURRENT))
          .setOpenMode(OpenMode.CREATE));
      System.err.println("Writing part " + (i + 1) + " ...");
      w.addIndexes(new IndexReader[]{input});
      w.close();
    }
    System.err.println("Done.");
  }
 
View Full Code Here

Examples of org.apache.lucene.index.IndexWriter.addIndexes()

    private void copyAndOptimizeInFlightDir() throws IOException {
      CopyRateDirectory copyRateDirectory = new CopyRateDirectory(_finalDir, _copyRateCounter);
      copyRateDirectory.setLockFactory(NoLockFactory.getNoLockFactory());
      DirectoryReader reader = DirectoryReader.open(_localDir);
      IndexWriter writer = new IndexWriter(copyRateDirectory, _conf.clone());
      writer.addIndexes(reader);
      writer.close();
      rm(_localPath);
    }

    private void copyDir() throws IOException {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.