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

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

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

origin: org.apache.cassandra/cassandra-all

/**
 * Flush if there is unflushed data that was written to the CommitLog before @param flushIfDirtyBefore
 * (inclusive).
 *
 * @return a Future yielding the commit log position that can be guaranteed to have been successfully written
 *         to sstables for this table once the future completes
 */
public ListenableFuture<?> forceFlush(CommitLogPosition flushIfDirtyBefore)
{
  // we don't loop through the remaining memtables since here we only care about commit log dirtiness
  // and this does not vary between a table and its table-backed indexes
  Memtable current = data.getView().getCurrentMemtable();
  if (current.mayContainDataBefore(flushIfDirtyBefore))
    return switchMemtableIfCurrent(current);
  return waitForFlushes();
}
origin: jsevellec/cassandra-unit

/**
 * Flush if there is unflushed data that was written to the CommitLog before @param flushIfDirtyBefore
 * (inclusive).
 *
 * @return a Future yielding the commit log position that can be guaranteed to have been successfully written
 *         to sstables for this table once the future completes
 */
public ListenableFuture<?> forceFlush(CommitLogPosition flushIfDirtyBefore)
{
  // we don't loop through the remaining memtables since here we only care about commit log dirtiness
  // and this does not vary between a table and its table-backed indexes
  Memtable current = data.getView().getCurrentMemtable();
  if (current.mayContainDataBefore(flushIfDirtyBefore))
    return switchMemtableIfCurrent(current);
  return waitForFlushes();
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * Flush if there is unflushed data that was written to the CommitLog before @param flushIfDirtyBefore
 * (inclusive).
 *
 * @return a Future yielding the commit log position that can be guaranteed to have been successfully written
 *         to sstables for this table once the future completes
 */
public ListenableFuture<?> forceFlush(CommitLogPosition flushIfDirtyBefore)
{
  // we don't loop through the remaining memtables since here we only care about commit log dirtiness
  // and this does not vary between a table and its table-backed indexes
  Memtable current = data.getView().getCurrentMemtable();
  if (current.mayContainDataBefore(flushIfDirtyBefore))
    return switchMemtableIfCurrent(current);
  return waitForFlushes();
}
org.apache.cassandra.dbMemtablemayContainDataBefore

Popular methods of Memtable

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • Path (java.nio.file)
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Vim 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