Tabnine Logo
SegmentMerger.mergeVectors
Code IndexAdd Tabnine to your IDE (free)

How to use
mergeVectors
method
in
org.apache.lucene.index.SegmentMerger

Best Java code snippets using org.apache.lucene.index.SegmentMerger.mergeVectors (Showing top 7 results out of 315)

origin: org.apache.lucene/lucene-core

 t0 = System.nanoTime();
numMerged = mergeVectors();
if (mergeState.infoStream.isEnabled("SM")) {
 long t1 = System.nanoTime();
origin: org.apache.lucene/com.springsource.org.apache.lucene

/**
 * Merges the readers specified by the {@link #add} method
 * into the directory passed to the constructor.
 * @param mergeDocStores if false, we will not merge the
 * stored fields nor vectors files
 * @return The number of documents that were merged
 * @throws CorruptIndexException if the index is corrupt
 * @throws IOException if there is a low-level IO error
 */
final int merge(boolean mergeDocStores) throws CorruptIndexException, IOException {
 this.mergeDocStores = mergeDocStores;
 
 // NOTE: it's important to add calls to
 // checkAbort.work(...) if you make any changes to this
 // method that will spend alot of time.  The frequency
 // of this check impacts how long
 // IndexWriter.close(false) takes to actually stop the
 // threads.
 mergedDocs = mergeFields();
 mergeTerms();
 mergeNorms();
 if (mergeDocStores && fieldInfos.hasVectors())
  mergeVectors();
 return mergedDocs;
}
origin: org.apache.lucene/lucene-core-jfrog

/**
 * Merges the readers specified by the {@link #add} method
 * into the directory passed to the constructor.
 * @param mergeDocStores if false, we will not merge the
 * stored fields nor vectors files
 * @return The number of documents that were merged
 * @throws CorruptIndexException if the index is corrupt
 * @throws IOException if there is a low-level IO error
 */
final int merge(boolean mergeDocStores) throws CorruptIndexException, IOException {
 this.mergeDocStores = mergeDocStores;
 
 // NOTE: it's important to add calls to
 // checkAbort.work(...) if you make any changes to this
 // method that will spend alot of time.  The frequency
 // of this check impacts how long
 // IndexWriter.close(false) takes to actually stop the
 // threads.
 mergedDocs = mergeFields();
 mergeTerms();
 mergeNorms();
 if (mergeDocStores && fieldInfos.hasVectors())
  mergeVectors();
 return mergedDocs;
}
origin: lucene/lucene

/**
 * Merges the readers specified by the {@link #add} method into the directory passed to the constructor
 * @return The number of documents that were merged
 * @throws IOException
 */
final int merge() throws IOException {
 int value;
 
 value = mergeFields();
 mergeTerms();
 mergeNorms();
 if (fieldInfos.hasVectors())
  mergeVectors();
 if (useCompoundFile)
  createCompoundFile();
 return value;
}

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

 t0 = System.nanoTime();
numMerged = mergeVectors();
if (mergeState.infoStream.isEnabled("SM")) {
 long t1 = System.nanoTime();
origin: org.infinispan/infinispan-embedded-query

 t0 = System.nanoTime();
numMerged = mergeVectors();
if (mergeState.infoStream.isEnabled("SM")) {
 long t1 = System.nanoTime();
origin: harbby/presto-connectors

 t0 = System.nanoTime();
numMerged = mergeVectors();
if (mergeState.infoStream.isEnabled("SM")) {
 long t1 = System.nanoTime();
org.apache.lucene.indexSegmentMergermergeVectors

Javadoc

Merge the TermVectors from each of the segments into the new one.

Popular methods of SegmentMerger

  • <init>
  • merge
    Merges the readers specified by the #add method into the directory passed to the constructor.
  • mergeFields
  • mergeNorms
  • mergeTerms
  • mergeDocValues
  • mergeFieldInfos
  • shouldMerge
    True if any merging should happen
  • add
    Add an IndexReader to the collection of readers that are to be merged
  • appendPostings
    Process postings from multiple segments all positioned on the same term. Writes out merged entries i
  • closeReaders
    close all IndexReaders that have been added. Should not be called before merge().
  • createCompoundFile
  • closeReaders,
  • createCompoundFile,
  • mergeTermInfo,
  • mergeTermInfos,
  • addIndexed,
  • appendPostingsNoTf,
  • getDelCounts,
  • getDocMaps,
  • hasProx

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now