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

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

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

origin: com.facebook.presto.cassandra/cassandra-server

/**
 * Insert/Update the column family for this key.
 * Caller is responsible for acquiring Keyspace.switchLock
 * param @ lock - lock that needs to be used.
 * param @ key - key for update/insert
 * param @ columnFamily - columnFamily changes
 */
public void apply(DecoratedKey key, ColumnFamily columnFamily, SecondaryIndexManager.Updater indexer, OpOrder.Group opGroup, ReplayPosition replayPosition)
{
  long start = System.nanoTime();
  Memtable mt = data.getMemtableFor(opGroup, replayPosition);
  final long timeDelta = mt.put(key, columnFamily, indexer, opGroup);
  maybeUpdateRowCache(key);
  metric.samplers.get(Sampler.WRITES).addSample(key.getKey(), key.hashCode(), 1);
  metric.writeLatency.addNano(System.nanoTime() - start);
  if(timeDelta < Long.MAX_VALUE)
    metric.colUpdateTimeDeltaHistogram.update(timeDelta);
}
origin: org.apache.cassandra/cassandra-all

long timeDelta = mt.put(update, indexer, opGroup);
DecoratedKey key = update.partitionKey();
invalidateCachedPartition(key);
origin: jsevellec/cassandra-unit

long timeDelta = mt.put(update, indexer, opGroup);
DecoratedKey key = update.partitionKey();
invalidateCachedPartition(key);
origin: com.strapdata.cassandra/cassandra-all

long timeDelta = mt.put(update, indexer, opGroup);
DecoratedKey key = update.partitionKey();
invalidateCachedPartition(key);
org.apache.cassandra.dbMemtableput

Javadoc

Should only be called by ColumnFamilyStore.apply via Keyspace.apply, which supplies the appropriate OpOrdering. replayPosition should only be null if this is a secondary index, in which case it is *expected* to be null

Popular methods of Memtable

  • getOperations
  • <init>
  • accepts
  • getAllocator
  • getLiveDataSize
  • isClean
  • isExpired
  • partitionCount
  • setDiscarded
  • setDiscarding
  • toString
  • abortRunnables
  • toString,
  • abortRunnables,
  • createFlushRunnables,
  • findMinLocalDeletionTime,
  • flushRunnables,
  • getCommitLogLowerBound,
  • getCommitLogUpperBound,
  • getMinTimestamp,
  • getPartition

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • Kernel (java.awt.image)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Join (org.hibernate.mapping)
  • 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