Tabnine Logo
Tracker.emptySet
Code IndexAdd Tabnine to your IDE (free)

How to use
emptySet
method
in
org.apache.cassandra.db.lifecycle.Tracker

Best Java code snippets using org.apache.cassandra.db.lifecycle.Tracker.emptySet (Showing top 18 results out of 315)

origin: org.apache.cassandra/cassandra-all

  @VisibleForTesting
  public void removeUnsafe(Set<SSTableReader> toRemove)
  {
    Pair<View, View> result = apply(view -> {
      return updateLiveSet(toRemove, emptySet()).apply(view);
    });
  }
}
origin: com.strapdata.cassandra/cassandra-all

  @VisibleForTesting
  public void removeUnsafe(Set<SSTableReader> toRemove)
  {
    Pair<View, View> result = apply(view -> {
      return updateLiveSet(toRemove, emptySet()).apply(view);
    });
  }
}
origin: jsevellec/cassandra-unit

  @VisibleForTesting
  public void removeUnsafe(Set<SSTableReader> toRemove)
  {
    Pair<View, View> result = apply(view -> {
      return updateLiveSet(toRemove, emptySet()).apply(view);
    });
  }
}
origin: jsevellec/cassandra-unit

public void addInitialSSTables(Iterable<SSTableReader> sstables)
{
  if (!isDummy())
    setupOnline(sstables);
  apply(updateLiveSet(emptySet(), sstables));
  maybeFail(updateSizeTracking(emptySet(), sstables, null));
  // no notifications or backup necessary
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public void addInitialSSTables(Iterable<SSTableReader> sstables)
{
  if (!isDummy())
    setupOnline(sstables);
  apply(updateLiveSet(emptySet(), sstables));
  maybeFail(updateSizeTracking(emptySet(), sstables, null));
  // no notifications or backup necessary
}
origin: org.apache.cassandra/cassandra-all

public void addInitialSSTables(Iterable<SSTableReader> sstables)
{
  if (!isDummy())
    setupOnline(sstables);
  apply(updateLiveSet(emptySet(), sstables));
  maybeFail(updateSizeTracking(emptySet(), sstables, null));
  // no notifications or backup necessary
}
origin: com.strapdata.cassandra/cassandra-all

public void addInitialSSTables(Iterable<SSTableReader> sstables)
{
  if (!isDummy())
    setupOnline(sstables);
  apply(updateLiveSet(emptySet(), sstables));
  maybeFail(updateSizeTracking(emptySet(), sstables, null));
  // no notifications or backup necessary
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * @return a Transaction over the provided sstables if we are able to mark the given @param sstables as compacted, before anyone else
 */
public LifecycleTransaction tryModify(Iterable<SSTableReader> sstables, OperationType operationType)
{
  if (Iterables.isEmpty(sstables))
    return new LifecycleTransaction(this, operationType, sstables);
  if (null == apply(permitCompacting(sstables), updateCompacting(emptySet(), sstables)))
    return null;
  return new LifecycleTransaction(this, operationType, sstables);
}
origin: org.apache.cassandra/cassandra-all

/**
 * @return a Transaction over the provided sstables if we are able to mark the given @param sstables as compacted, before anyone else
 */
public LifecycleTransaction tryModify(Iterable<SSTableReader> sstables, OperationType operationType)
{
  if (Iterables.isEmpty(sstables))
    return new LifecycleTransaction(this, operationType, sstables);
  if (null == apply(permitCompacting(sstables), updateCompacting(emptySet(), sstables)))
    return null;
  return new LifecycleTransaction(this, operationType, sstables);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

/**
 * @return a Transaction over the provided sstables if we are able to mark the given @param sstables as compacted, before anyone else
 */
public LifecycleTransaction tryModify(Iterable<SSTableReader> sstables, OperationType operationType)
{
  if (Iterables.isEmpty(sstables))
    return new LifecycleTransaction(this, operationType, sstables);
  if (null == apply(permitCompacting(sstables), updateCompacting(emptySet(), sstables)))
    return null;
  return new LifecycleTransaction(this, operationType, sstables);
}
origin: org.apache.cassandra/cassandra-all

  return updateLiveSet(toremove, emptySet()).apply(view);
});
    accumulate = updateSizeTracking(removed, emptySet(), accumulate);
    accumulate = release(selfRefs(removed), accumulate);
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

  return updateLiveSet(toremove, emptySet()).apply(view);
});
    accumulate = updateSizeTracking(removed, emptySet(), accumulate);
    accumulate = release(selfRefs(removed), accumulate);
origin: jsevellec/cassandra-unit

/**
 * @return a Transaction over the provided sstables if we are able to mark the given @param sstables as compacted, before anyone else
 */
public LifecycleTransaction tryModify(Iterable<SSTableReader> sstables, OperationType operationType)
{
  if (Iterables.isEmpty(sstables))
    return new LifecycleTransaction(this, operationType, sstables);
  if (null == apply(permitCompacting(sstables), updateCompacting(emptySet(), sstables)))
    return null;
  return new LifecycleTransaction(this, operationType, sstables);
}
origin: com.strapdata.cassandra/cassandra-all

  return updateLiveSet(toremove, emptySet()).apply(view);
});
    accumulate = updateSizeTracking(removed, emptySet(), accumulate);
    accumulate = release(selfRefs(removed), accumulate);
origin: com.strapdata.cassandra/cassandra-all

public void replaceFlushed(Memtable memtable, Iterable<SSTableReader> sstables)
{
  assert !isDummy();
  if (Iterables.isEmpty(sstables))
  {
    // sstable may be null if we flushed batchlog and nothing needed to be retained
    // if it's null, we don't care what state the cfstore is in, we just replace it and continue
    apply(View.replaceFlushed(memtable, null));
    return;
  }
  sstables.forEach(SSTableReader::setupOnline);
  // back up before creating a new Snapshot (which makes the new one eligible for compaction)
  maybeIncrementallyBackup(sstables);
  apply(View.replaceFlushed(memtable, sstables));
  Throwable fail;
  fail = updateSizeTracking(emptySet(), sstables, null);
  notifyDiscarded(memtable);
  // TODO: if we're invalidated, should we notifyadded AND removed, or just skip both?
  fail = notifyAdded(sstables, memtable, fail);
  if (!isDummy() && !cfstore.isValid())
    dropSSTables();
  maybeFail(fail);
}
origin: org.apache.cassandra/cassandra-all

public void replaceFlushed(Memtable memtable, Iterable<SSTableReader> sstables)
{
  assert !isDummy();
  if (Iterables.isEmpty(sstables))
  {
    // sstable may be null if we flushed batchlog and nothing needed to be retained
    // if it's null, we don't care what state the cfstore is in, we just replace it and continue
    apply(View.replaceFlushed(memtable, null));
    return;
  }
  sstables.forEach(SSTableReader::setupOnline);
  // back up before creating a new Snapshot (which makes the new one eligible for compaction)
  maybeIncrementallyBackup(sstables);
  apply(View.replaceFlushed(memtable, sstables));
  Throwable fail;
  fail = updateSizeTracking(emptySet(), sstables, null);
  notifyDiscarded(memtable);
  // TODO: if we're invalidated, should we notifyadded AND removed, or just skip both?
  fail = notifyAdded(sstables, fail);
  if (!isDummy() && !cfstore.isValid())
    dropSSTables();
  maybeFail(fail);
}
origin: jsevellec/cassandra-unit

  return updateLiveSet(toremove, emptySet()).apply(view);
});
    accumulate = updateSizeTracking(removed, emptySet(), accumulate);
    accumulate = release(selfRefs(removed), accumulate);
origin: jsevellec/cassandra-unit

public void replaceFlushed(Memtable memtable, Iterable<SSTableReader> sstables)
{
  assert !isDummy();
  if (Iterables.isEmpty(sstables))
  {
    // sstable may be null if we flushed batchlog and nothing needed to be retained
    // if it's null, we don't care what state the cfstore is in, we just replace it and continue
    apply(View.replaceFlushed(memtable, null));
    return;
  }
  sstables.forEach(SSTableReader::setupOnline);
  // back up before creating a new Snapshot (which makes the new one eligible for compaction)
  maybeIncrementallyBackup(sstables);
  apply(View.replaceFlushed(memtable, sstables));
  Throwable fail;
  fail = updateSizeTracking(emptySet(), sstables, null);
  notifyDiscarded(memtable);
  // TODO: if we're invalidated, should we notifyadded AND removed, or just skip both?
  fail = notifyAdded(sstables, fail);
  if (!isDummy() && !cfstore.isValid())
    dropSSTables();
  maybeFail(fail);
}
org.apache.cassandra.db.lifecycleTrackeremptySet

Popular methods of Tracker

  • tryModify
  • <init>
  • addInitialSSTables
  • apply
    atomically tests permit against the view and applies function to it, if permit yields true, returnin
  • dropSSTables
    removes all sstables that are not busy compacting.
  • dropSSTablesIfInvalid
  • isDummy
  • updateSizeTracking
  • addSSTables
  • getCompacting
  • getMemtableFor
    get the Memtable that the ordered writeOp should be directed to
  • getUncompacting
  • getMemtableFor,
  • getUncompacting,
  • getView,
  • markFlushing,
  • maybeIncrementallyBackup,
  • notify,
  • notifyAdded,
  • notifyDeleting,
  • notifyDiscarded

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Top plugins for Android Studio
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