Tabnine Logo
Memtable.accepts
Code IndexAdd Tabnine to your IDE (free)

How to use
accepts
method
in
org.apache.cassandra.db.Memtable

Best Java code snippets using org.apache.cassandra.db.Memtable.accepts (Showing top 4 results out of 315)

origin: com.facebook.presto.cassandra/cassandra-server

public Memtable getMemtableFor(OpOrder.Group opGroup, ReplayPosition replayPosition)
{
  // since any new memtables appended to the list after we fetch it will be for operations started
  // after us, we can safely assume that we will always find the memtable that 'accepts' us;
  // if the barrier for any memtable is set whilst we are reading the list, it must accept us.
  // there may be multiple memtables in the list that would 'accept' us, however we only ever choose
  // the oldest such memtable, as accepts() only prevents us falling behind (i.e. ensures we don't
  // assign operations to a memtable that was retired/queued before we started)
  for (Memtable memtable : view.get().liveMemtables)
  {
    if (memtable.accepts(opGroup, replayPosition))
      return memtable;
  }
  throw new AssertionError(view.get().liveMemtables.toString());
}
origin: jsevellec/cassandra-unit

/**
 * get the Memtable that the ordered writeOp should be directed to
 */
public Memtable getMemtableFor(OpOrder.Group opGroup, CommitLogPosition commitLogPosition)
{
  // since any new memtables appended to the list after we fetch it will be for operations started
  // after us, we can safely assume that we will always find the memtable that 'accepts' us;
  // if the barrier for any memtable is set whilst we are reading the list, it must accept us.
  // there may be multiple memtables in the list that would 'accept' us, however we only ever choose
  // the oldest such memtable, as accepts() only prevents us falling behind (i.e. ensures we don't
  // assign operations to a memtable that was retired/queued before we started)
  for (Memtable memtable : view.get().liveMemtables)
  {
    if (memtable.accepts(opGroup, commitLogPosition))
      return memtable;
  }
  throw new AssertionError(view.get().liveMemtables.toString());
}
origin: org.apache.cassandra/cassandra-all

/**
 * get the Memtable that the ordered writeOp should be directed to
 */
public Memtable getMemtableFor(OpOrder.Group opGroup, CommitLogPosition commitLogPosition)
{
  // since any new memtables appended to the list after we fetch it will be for operations started
  // after us, we can safely assume that we will always find the memtable that 'accepts' us;
  // if the barrier for any memtable is set whilst we are reading the list, it must accept us.
  // there may be multiple memtables in the list that would 'accept' us, however we only ever choose
  // the oldest such memtable, as accepts() only prevents us falling behind (i.e. ensures we don't
  // assign operations to a memtable that was retired/queued before we started)
  for (Memtable memtable : view.get().liveMemtables)
  {
    if (memtable.accepts(opGroup, commitLogPosition))
      return memtable;
  }
  throw new AssertionError(view.get().liveMemtables.toString());
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * get the Memtable that the ordered writeOp should be directed to
 */
public Memtable getMemtableFor(OpOrder.Group opGroup, CommitLogPosition commitLogPosition)
{
  // since any new memtables appended to the list after we fetch it will be for operations started
  // after us, we can safely assume that we will always find the memtable that 'accepts' us;
  // if the barrier for any memtable is set whilst we are reading the list, it must accept us.
  // there may be multiple memtables in the list that would 'accept' us, however we only ever choose
  // the oldest such memtable, as accepts() only prevents us falling behind (i.e. ensures we don't
  // assign operations to a memtable that was retired/queued before we started)
  for (Memtable memtable : view.get().liveMemtables)
  {
    if (memtable.accepts(opGroup, commitLogPosition))
      return memtable;
  }
  throw new AssertionError(view.get().liveMemtables.toString());
}
org.apache.cassandra.dbMemtableaccepts

Popular methods of Memtable

  • getOperations
  • <init>
  • getAllocator
  • getLiveDataSize
  • isClean
  • isExpired
  • partitionCount
  • put
    Should only be called by ColumnFamilyStore.apply via Keyspace.apply, which supplies the appropriate
  • setDiscarded
  • setDiscarding
  • toString
  • abortRunnables
  • toString,
  • abortRunnables,
  • createFlushRunnables,
  • findMinLocalDeletionTime,
  • flushRunnables,
  • getCommitLogLowerBound,
  • getCommitLogUpperBound,
  • getMinTimestamp,
  • getPartition

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top Sublime Text plugins
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