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

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

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

origin: org.apache.lucene/com.springsource.org.apache.lucene

 df = appendPostingsNoTf(smis, n);     
} else{
 df = appendPostings(smis, n);      
origin: lucene/lucene

/** Merge one term found in one or more segments. The array <code>smis</code>
 *  contains segments that are positioned at the same term. <code>N</code>
 *  is the number of cells in the array actually occupied.
 *
 * @param smis array of segments
 * @param n number of cells in the array actually occupied
 */
private final void mergeTermInfo(SegmentMergeInfo[] smis, int n)
    throws IOException {
 long freqPointer = freqOutput.getFilePointer();
 long proxPointer = proxOutput.getFilePointer();
 int df = appendPostings(smis, n);		  // append posting data
 long skipPointer = writeSkip();
 if (df > 0) {
  // add an entry to the dictionary with pointers to prox and freq files
  termInfo.set(df, freqPointer, proxPointer, (int) (skipPointer - freqPointer));
  termInfosWriter.add(smis[0].term, termInfo);
 }
}
origin: org.apache.lucene/lucene-core-jfrog

 df = appendPostingsNoTf(smis, n);     
} else{
 df = appendPostings(smis, n);      
org.apache.lucene.indexSegmentMergerappendPostings

Javadoc

Process postings from multiple segments all positioned on the same term. Writes out merged entries into freqOutput and the proxOutput streams.

Popular methods of SegmentMerger

  • <init>
  • merge
    Merges the readers specified by the #add method into the directory passed to the constructor.
  • mergeFields
  • 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
  • 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

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • 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