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

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

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

origin: org.apache.cassandra/cassandra-all

private List<FlushRunnable> createFlushRunnables(LifecycleTransaction txn)
{
  DiskBoundaries diskBoundaries = cfs.getDiskBoundaries();
  List<PartitionPosition> boundaries = diskBoundaries.positions;
  List<Directories.DataDirectory> locations = diskBoundaries.directories;
  if (boundaries == null)
    return Collections.singletonList(new FlushRunnable(txn));
  List<FlushRunnable> runnables = new ArrayList<>(boundaries.size());
  PartitionPosition rangeStart = cfs.getPartitioner().getMinimumToken().minKeyBound();
  try
  {
    for (int i = 0; i < boundaries.size(); i++)
    {
      PartitionPosition t = boundaries.get(i);
      runnables.add(new FlushRunnable(rangeStart, t, locations.get(i), txn));
      rangeStart = t;
    }
    return runnables;
  }
  catch (Throwable e)
  {
    throw Throwables.propagate(abortRunnables(runnables, e));
  }
}
origin: com.strapdata.cassandra/cassandra-all

private List<FlushRunnable> createFlushRunnables(LifecycleTransaction txn)
{
  DiskBoundaries diskBoundaries = cfs.getDiskBoundaries();
  List<PartitionPosition> boundaries = diskBoundaries.positions;
  List<Directories.DataDirectory> locations = diskBoundaries.directories;
  if (boundaries == null)
    return Collections.singletonList(new FlushRunnable(txn));
  List<FlushRunnable> runnables = new ArrayList<>(boundaries.size());
  PartitionPosition rangeStart = cfs.getPartitioner().getMinimumToken().minKeyBound();
  try
  {
    for (int i = 0; i < boundaries.size(); i++)
    {
      PartitionPosition t = boundaries.get(i);
      runnables.add(new FlushRunnable(rangeStart, t, locations.get(i), txn));
      rangeStart = t;
    }
    return runnables;
  }
  catch (Throwable e)
  {
    throw Throwables.propagate(abortRunnables(runnables, e));
  }
}
origin: jsevellec/cassandra-unit

private List<FlushRunnable> createFlushRunnables(LifecycleTransaction txn)
{
  DiskBoundaries diskBoundaries = cfs.getDiskBoundaries();
  List<PartitionPosition> boundaries = diskBoundaries.positions;
  List<Directories.DataDirectory> locations = diskBoundaries.directories;
  if (boundaries == null)
    return Collections.singletonList(new FlushRunnable(txn));
  List<FlushRunnable> runnables = new ArrayList<>(boundaries.size());
  PartitionPosition rangeStart = cfs.getPartitioner().getMinimumToken().minKeyBound();
  try
  {
    for (int i = 0; i < boundaries.size(); i++)
    {
      PartitionPosition t = boundaries.get(i);
      runnables.add(new FlushRunnable(rangeStart, t, locations.get(i), txn));
      rangeStart = t;
    }
    return runnables;
  }
  catch (Throwable e)
  {
    throw Throwables.propagate(abortRunnables(runnables, e));
  }
}
origin: org.apache.cassandra/cassandra-all

t = memtable.abortRunnables(flushRunnables, t);
t = txn.abort(t);
throw Throwables.propagate(t);
origin: com.strapdata.cassandra/cassandra-all

t = memtable.abortRunnables(flushRunnables, t);
t = txn.abort(t);
throw Throwables.propagate(t);
origin: jsevellec/cassandra-unit

t = memtable.abortRunnables(flushRunnables, t);
t = txn.abort(t);
throw Throwables.propagate(t);
org.apache.cassandra.dbMemtableabortRunnables

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,
  • createFlushRunnables,
  • findMinLocalDeletionTime,
  • flushRunnables,
  • getCommitLogLowerBound,
  • getCommitLogUpperBound,
  • getMinTimestamp,
  • getPartition

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • ImageIO (javax.imageio)
  • Github Copilot alternatives
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