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

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

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

origin: org.apache.cassandra/cassandra-all

  public CommitLogPosition call()
  {
    try
    {
      // we wait on the latch for the commitLogUpperBound to be set, and so that waiters
      // on this task can rely on all prior flushes being complete
      latch.await();
    }
    catch (InterruptedException e)
    {
      throw new IllegalStateException();
    }
    CommitLogPosition commitLogUpperBound = CommitLogPosition.NONE;
    // If a flush errored out but the error was ignored, make sure we don't discard the commit log.
    if (flushFailure == null && !memtables.isEmpty())
    {
      Memtable memtable = memtables.get(0);
      commitLogUpperBound = memtable.getCommitLogUpperBound();
      CommitLog.instance.discardCompletedSegments(metadata.cfId, memtable.getCommitLogLowerBound(), commitLogUpperBound);
    }
    metric.pendingFlushes.dec();
    if (flushFailure != null)
      throw Throwables.propagate(flushFailure);
    return commitLogUpperBound;
  }
}
origin: com.strapdata.cassandra/cassandra-all

  public CommitLogPosition call()
  {
    try
    {
      // we wait on the latch for the commitLogUpperBound to be set, and so that waiters
      // on this task can rely on all prior flushes being complete
      latch.await();
    }
    catch (InterruptedException e)
    {
      throw new IllegalStateException();
    }
    CommitLogPosition commitLogUpperBound = CommitLogPosition.NONE;
    // If a flush errored out but the error was ignored, make sure we don't discard the commit log.
    if (flushFailure == null && !memtables.isEmpty())
    {
      Memtable memtable = memtables.get(0);
      commitLogUpperBound = memtable.getCommitLogUpperBound();
      CommitLog.instance.discardCompletedSegments(metadata.cfId, memtable.getCommitLogLowerBound(), commitLogUpperBound);
    }
    metric.pendingFlushes.dec();
    if (flushFailure != null)
      throw Throwables.propagate(flushFailure);
    return commitLogUpperBound;
  }
}
origin: jsevellec/cassandra-unit

  public CommitLogPosition call()
  {
    try
    {
      // we wait on the latch for the commitLogUpperBound to be set, and so that waiters
      // on this task can rely on all prior flushes being complete
      latch.await();
    }
    catch (InterruptedException e)
    {
      throw new IllegalStateException();
    }
    CommitLogPosition commitLogUpperBound = CommitLogPosition.NONE;
    // If a flush errored out but the error was ignored, make sure we don't discard the commit log.
    if (flushFailure == null && !memtables.isEmpty())
    {
      Memtable memtable = memtables.get(0);
      commitLogUpperBound = memtable.getCommitLogUpperBound();
      CommitLog.instance.discardCompletedSegments(metadata.cfId, memtable.getCommitLogLowerBound(), commitLogUpperBound);
    }
    metric.pendingFlushes.dec();
    if (flushFailure != null)
      throw Throwables.propagate(flushFailure);
    return commitLogUpperBound;
  }
}
org.apache.cassandra.dbMemtablegetCommitLogUpperBound

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,
  • getMinTimestamp,
  • getPartition

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JPanel (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • From CI to AI: The AI layer in your organization
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