congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SegmentMerger.mergeFields
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.lucene/lucene-core

 t0 = System.nanoTime();
int numMerged = mergeFields();
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();
int numMerged = mergeFields();
if (mergeState.infoStream.isEnabled("SM")) {
 long t1 = System.nanoTime();
origin: org.infinispan/infinispan-embedded-query

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

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

Javadoc

Merge stored fields 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.
  • mergeNorms
  • mergeTerms
  • mergeVectors
    Merge the TermVectors from each of the segments into the new one.
  • 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

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JTable (javax.swing)
  • From CI to AI: The AI layer in your organization
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