Tabnine Logo
Memtable.isExpired
Code IndexAdd Tabnine 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)

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
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JTextField (javax.swing)
  • Best IntelliJ 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