Tabnine Logo
MergeRateLimiter.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.lucene.index.MergeRateLimiter
constructor

Best Java code snippets using org.apache.lucene.index.MergeRateLimiter.<init> (Showing top 6 results out of 315)

origin: org.apache.lucene/lucene-core

/** Sole constructor. */
public MergeThread(IndexWriter writer, OneMerge merge) {
 this.writer = writer;
 this.merge = merge;
 this.rateLimiter = new MergeRateLimiter(merge.getMergeProgress());
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

/** Sole constructor. */
public MergeThread(IndexWriter writer, OneMerge merge) {
 this.writer = writer;
 this.merge = merge;
 this.rateLimiter = new MergeRateLimiter(merge.getMergeProgress());
}
origin: org.infinispan/infinispan-embedded-query

/** Sole constructor.
 * @param segments List of {@link SegmentCommitInfo}s
 *        to be merged. */
public OneMerge(List<SegmentCommitInfo> segments) {
 if (0 == segments.size()) {
  throw new RuntimeException("segments must include at least one segment");
 }
 // clone the list, as the in list may be based off original SegmentInfos and may be modified
 this.segments = new ArrayList<>(segments);
 int count = 0;
 for(SegmentCommitInfo info : segments) {
  count += info.info.maxDoc();
 }
 totalMaxDoc = count;
 rateLimiter = new MergeRateLimiter(this);
}
origin: harbby/presto-connectors

/** Sole constructor.
 * @param segments List of {@link SegmentCommitInfo}s
 *        to be merged. */
public OneMerge(List<SegmentCommitInfo> segments) {
 if (0 == segments.size()) {
  throw new RuntimeException("segments must include at least one segment");
 }
 // clone the list, as the in list may be based off original SegmentInfos and may be modified
 this.segments = new ArrayList<>(segments);
 int count = 0;
 for(SegmentCommitInfo info : segments) {
  count += info.info.maxDoc();
 }
 totalMaxDoc = count;
 rateLimiter = new MergeRateLimiter(this);
}
origin: harbby/presto-connectors

                     context);
rateLimiters.set(new MergeRateLimiter(null));
origin: org.infinispan/infinispan-embedded-query

                     context);
rateLimiters.set(new MergeRateLimiter(null));
org.apache.lucene.indexMergeRateLimiter<init>

Javadoc

Sole constructor.

Popular methods of MergeRateLimiter

  • getMBPerSec
  • getTotalBytesWritten
    Returns total bytes written by this merge.
  • getTotalPausedNS
    Total NS merge was paused to rate limit IO.
  • getTotalStoppedNS
    Total NS merge was stopped.
  • maybePause
    Returns NO if no pause happened, STOPPED if pause because rate was 0.0 (merge is stopped), PAUSED if
  • setMBPerSec
  • checkAbort
    Throws MergePolicy.MergeAbortedException if this merge was aborted.
  • getAbort
    Returns true if this merge was aborted.
  • setAbort
    Mark this merge aborted.

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • CodeWhisperer alternatives
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