Tabnine Logo
Memtable.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.cassandra.db.Memtable
constructor

Best Java code snippets using org.apache.cassandra.db.Memtable.<init> (Showing top 14 results out of 315)

origin: org.apache.cassandra/cassandra-all

  public Void call()
  {
    cfs.data.reset(new Memtable(new AtomicReference<>(CommitLogPosition.NONE), cfs));
    return null;
  }
}, true, false);
origin: jsevellec/cassandra-unit

  public Void call()
  {
    cfs.data.reset(new Memtable(new AtomicReference<>(CommitLogPosition.NONE), cfs));
    return null;
  }
}, true, false);
origin: com.strapdata.cassandra/cassandra-all

  public Void call()
  {
    cfs.data.reset(new Memtable(new AtomicReference<>(CommitLogPosition.NONE), cfs));
    return null;
  }
}, true, false);
origin: com.facebook.presto.cassandra/cassandra-server

/** (Re)initializes the tracker, purging all references. */
void init()
{
  view.set(new View(
           ImmutableList.of(new Memtable(cfstore)),
           ImmutableList.<Memtable>of(),
           Collections.<SSTableReader, SSTableReader>emptyMap(),
           Collections.<SSTableReader>emptySet(),
           Collections.<SSTableReader>emptySet(),
           SSTableIntervalTree.empty()));
}
origin: org.apache.cassandra/cassandra-all

/**
 * For testing.  No effort is made to clear historical or even the current memtables, nor for
 * thread safety.  All we do is wipe the sstable containers clean, while leaving the actual
 * data files present on disk.  (This allows tests to easily call loadNewSSTables on them.)
 */
@VisibleForTesting
public void clearUnsafe()
{
  for (final ColumnFamilyStore cfs : concatWithIndexes())
  {
    cfs.runWithCompactionsDisabled(new Callable<Void>()
    {
      public Void call()
      {
        cfs.data.reset(new Memtable(new AtomicReference<>(CommitLogPosition.NONE), cfs));
        return null;
      }
    }, true, false);
  }
}
origin: jsevellec/cassandra-unit

/**
 * For testing.  No effort is made to clear historical or even the current memtables, nor for
 * thread safety.  All we do is wipe the sstable containers clean, while leaving the actual
 * data files present on disk.  (This allows tests to easily call loadNewSSTables on them.)
 */
@VisibleForTesting
public void clearUnsafe()
{
  for (final ColumnFamilyStore cfs : concatWithIndexes())
  {
    cfs.runWithCompactionsDisabled(new Callable<Void>()
    {
      public Void call()
      {
        cfs.data.reset(new Memtable(new AtomicReference<>(CommitLogPosition.NONE), cfs));
        return null;
      }
    }, true, false);
  }
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * For testing.  No effort is made to clear historical or even the current memtables, nor for
 * thread safety.  All we do is wipe the sstable containers clean, while leaving the actual
 * data files present on disk.  (This allows tests to easily call loadNewSSTables on them.)
 */
@VisibleForTesting
public void clearUnsafe()
{
  for (final ColumnFamilyStore cfs : concatWithIndexes())
  {
    cfs.runWithCompactionsDisabled(new Callable<Void>()
    {
      public Void call()
      {
        cfs.data.reset(new Memtable(new AtomicReference<>(CommitLogPosition.NONE), cfs));
        return null;
      }
    }, true, false);
  }
}
origin: com.facebook.presto.cassandra/cassandra-server

/**
 * Switch the current memtable. This atomically appends a new memtable to the end of the list of active memtables,
 * returning the previously last memtable. It leaves the previous Memtable in the list of live memtables until
 * discarding(memtable) is called. These two methods must be synchronized/paired, i.e. m = switchMemtable
 * must be followed by discarding(m), they cannot be interleaved.
 *
 * @return the previously active memtable
 */
public Memtable switchMemtable(boolean truncating)
{
  Memtable newMemtable = new Memtable(cfstore);
  Memtable toFlushMemtable;
  View currentView, newView;
  do
  {
    currentView = view.get();
    toFlushMemtable = currentView.getCurrentMemtable();
    newView = currentView.switchMemtable(newMemtable);
  }
  while (!view.compareAndSet(currentView, newView));
  if (truncating)
    notifyRenewed(newMemtable);
  return toFlushMemtable;
}
origin: jsevellec/cassandra-unit

Memtable newMemtable = new Memtable(commitLogUpperBound, cfs);
Memtable oldMemtable = cfs.data.switchMemtable(truncate, newMemtable);
oldMemtable.setDiscarding(writeBarrier, commitLogUpperBound);
origin: com.strapdata.cassandra/cassandra-all

Memtable newMemtable = new Memtable(commitLogUpperBound, cfs);
Memtable oldMemtable = cfs.data.switchMemtable(truncate, newMemtable);
oldMemtable.setDiscarding(writeBarrier, commitLogUpperBound);
origin: org.apache.cassandra/cassandra-all

Memtable newMemtable = new Memtable(commitLogUpperBound, cfs);
Memtable oldMemtable = cfs.data.switchMemtable(truncate, newMemtable);
oldMemtable.setDiscarding(writeBarrier, commitLogUpperBound);
origin: com.strapdata.cassandra/cassandra-all

  initialMemtable = new Memtable(new AtomicReference<>(CommitLog.instance.getCurrentPosition()), this);
data = new Tracker(initialMemtable, loadSSTables);
origin: org.apache.cassandra/cassandra-all

  initialMemtable = new Memtable(new AtomicReference<>(CommitLog.instance.getCurrentPosition()), this);
data = new Tracker(initialMemtable, loadSSTables);
origin: jsevellec/cassandra-unit

  initialMemtable = new Memtable(new AtomicReference<>(CommitLog.instance.getCurrentPosition()), this);
data = new Tracker(initialMemtable, loadSSTables);
org.apache.cassandra.dbMemtable<init>

Popular methods of Memtable

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

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Runner (org.openjdk.jmh.runner)
  • Top 12 Jupyter Notebook extensions
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