Tabnine Logo
StripeStoreFlusher$SizeStripeFlushRequest
Code IndexAdd Tabnine to your IDE (free)

How to use
StripeStoreFlusher$SizeStripeFlushRequest
in
org.apache.hadoop.hbase.regionserver

Best Java code snippets using org.apache.hadoop.hbase.regionserver.StripeStoreFlusher$SizeStripeFlushRequest (Showing top 2 results out of 315)

origin: harbby/presto-connectors

public StripeStoreFlusher.StripeFlushRequest selectFlush(
  StripeInformationProvider si, int kvCount) {
 if (this.config.isUsingL0Flush()) {
  return new StripeStoreFlusher.StripeFlushRequest(); // L0 is used, return dumb request.
 }
 if (si.getStripeCount() == 0) {
  // No stripes - start with the requisite count, derive KVs per stripe.
  int initialCount = this.config.getInitialCount();
  return new StripeStoreFlusher.SizeStripeFlushRequest(initialCount, kvCount / initialCount);
 }
 // There are stripes - do according to the boundaries.
 return new StripeStoreFlusher.BoundaryStripeFlushRequest(si.getStripeBoundaries());
}
origin: apache/hbase

public StripeStoreFlusher.StripeFlushRequest selectFlush(CellComparator comparator,
  StripeInformationProvider si, int kvCount) {
 if (this.config.isUsingL0Flush()) {
  // L0 is used, return dumb request.
  return new StripeStoreFlusher.StripeFlushRequest(comparator);
 }
 if (si.getStripeCount() == 0) {
  // No stripes - start with the requisite count, derive KVs per stripe.
  int initialCount = this.config.getInitialCount();
  return new StripeStoreFlusher.SizeStripeFlushRequest(comparator, initialCount,
    kvCount / initialCount);
 }
 // There are stripes - do according to the boundaries.
 return new StripeStoreFlusher.BoundaryStripeFlushRequest(comparator, si.getStripeBoundaries());
}
org.apache.hadoop.hbase.regionserverStripeStoreFlusher$SizeStripeFlushRequest

Javadoc

Stripe flush request wrapper based on size.

Most used methods

  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JPanel (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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