Codota Logo
Memtable.isExpired
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Memtable
private void myMethod () {
Memtable m =
  • Codota IconTracker tracker;tracker.getView().getCurrentMemtable()
  • Codota IconColumnFamilyStore columnFamilyStore;columnFamilyStore.getTracker().getView().getCurrentMemtable()
  • Codota IconView view;view.getCurrentMemtable()
  • Smart code suggestions by Codota
}
origin: org.apache.cassandra/cassandra-all

  protected void runMayThrow()
  {
    synchronized (data)
    {
      Memtable current = data.getView().getCurrentMemtable();
      // if we're not expired, we've been hit by a scheduled flush for an already flushed memtable, so ignore
      if (current.isExpired())
      {
        if (current.isClean())
        {
          // if we're still clean, instead of swapping just reschedule a flush for later
          scheduleFlush();
        }
        else
        {
          // we'll be rescheduled by the constructor of the Memtable.
          forceFlush();
        }
      }
    }
  }
};
origin: jsevellec/cassandra-unit

  protected void runMayThrow()
  {
    synchronized (data)
    {
      Memtable current = data.getView().getCurrentMemtable();
      // if we're not expired, we've been hit by a scheduled flush for an already flushed memtable, so ignore
      if (current.isExpired())
      {
        if (current.isClean())
        {
          // if we're still clean, instead of swapping just reschedule a flush for later
          scheduleFlush();
        }
        else
        {
          // we'll be rescheduled by the constructor of the Memtable.
          forceFlush();
        }
      }
    }
  }
};
origin: com.strapdata.cassandra/cassandra-all

  protected void runMayThrow()
  {
    synchronized (data)
    {
      Memtable current = data.getView().getCurrentMemtable();
      // if we're not expired, we've been hit by a scheduled flush for an already flushed memtable, so ignore
      if (current.isExpired())
      {
        if (current.isClean())
        {
          // if we're still clean, instead of swapping just reschedule a flush for later
          scheduleFlush();
        }
        else
        {
          // we'll be rescheduled by the constructor of the Memtable.
          forceFlush();
        }
      }
    }
  }
};
origin: com.facebook.presto.cassandra/cassandra-server

  protected void runMayThrow() throws Exception
  {
    synchronized (data)
    {
      Memtable current = data.getView().getCurrentMemtable();
      // if we're not expired, we've been hit by a scheduled flush for an already flushed memtable, so ignore
      if (current.isExpired())
      {
        if (current.isClean())
        {
          // if we're still clean, instead of swapping just reschedule a flush for later
          scheduleFlush();
        }
        else
        {
          // we'll be rescheduled by the constructor of the Memtable.
          forceFlush();
        }
      }
    }
  }
};
org.apache.cassandra.dbMemtableisExpired

Popular methods of Memtable

  • getOperations
  • <init>
  • accepts
  • getAllocator
  • getLiveDataSize
  • isClean
  • 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

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getContentResolver (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Menu (java.awt)
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now