Tabnine Logo
Batch.size
Code IndexAdd Tabnine to your IDE (free)

How to use
size
method
in
org.apache.cassandra.batchlog.Batch

Best Java code snippets using org.apache.cassandra.batchlog.Batch.size (Showing top 6 results out of 315)

origin: org.apache.cassandra/cassandra-all

private static void syncWriteToBatchlog(WriteResponseHandler<?> handler, Batch batch, Collection<InetAddress> endpoints)
throws WriteTimeoutException, WriteFailureException
{
  MessageOut<Batch> message = new MessageOut<>(MessagingService.Verb.BATCH_STORE, batch, Batch.serializer);
  for (InetAddress target : endpoints)
  {
    logger.trace("Sending batchlog store request {} to {} for {} mutations", batch.id, target, batch.size());
    if (canDoLocalRequest(target))
      performLocally(Stage.MUTATION, Optional.empty(), () -> BatchlogManager.store(batch), handler);
    else
      MessagingService.instance().sendRR(message, target, handler);
  }
}
origin: jsevellec/cassandra-unit

private static void syncWriteToBatchlog(WriteResponseHandler<?> handler, Batch batch, Collection<InetAddress> endpoints)
throws WriteTimeoutException, WriteFailureException
{
  MessageOut<Batch> message = new MessageOut<>(MessagingService.Verb.BATCH_STORE, batch, Batch.serializer);
  for (InetAddress target : endpoints)
  {
    logger.trace("Sending batchlog store request {} to {} for {} mutations", batch.id, target, batch.size());
    if (canDoLocalRequest(target))
      performLocally(Stage.MUTATION, Optional.empty(), () -> BatchlogManager.store(batch), handler);
    else
      MessagingService.instance().sendRR(message, target, handler);
  }
}
origin: com.strapdata.cassandra/cassandra-all

private static void syncWriteToBatchlog(WriteResponseHandler<?> handler, Batch batch, Collection<InetAddress> endpoints)
throws WriteTimeoutException, WriteFailureException
{
  MessageOut<Batch> message = new MessageOut<>(MessagingService.Verb.BATCH_STORE, batch, Batch.serializer);
  for (InetAddress target : endpoints)
  {
    logger.trace("Sending batchlog store request {} to {} for {} mutations", batch.id, target, batch.size());
    if (canDoLocalRequest(target))
      performLocally(Stage.MUTATION, Optional.empty(), () -> BatchlogManager.store(batch), handler);
    else
      MessagingService.instance().sendRR(message, target, handler);
  }
}
origin: org.apache.cassandra/cassandra-all

public static void syncWriteToBatchlog(WriteResponseHandler<?> handler, Batch batch, Collection<InetAddress> endpoints)
throws WriteTimeoutException, WriteFailureException
{
  for (InetAddress target : endpoints)
  {
    logger.trace("Sending legacy batchlog store request {} to {} for {} mutations", batch.id, target, batch.size());
    int targetVersion = MessagingService.instance().getVersion(target);
    MessagingService.instance().sendRR(getStoreMutation(batch, targetVersion).createMessage(MessagingService.Verb.MUTATION),
                      target,
                      handler,
                      false);
  }
}
origin: jsevellec/cassandra-unit

public static void syncWriteToBatchlog(WriteResponseHandler<?> handler, Batch batch, Collection<InetAddress> endpoints)
throws WriteTimeoutException, WriteFailureException
{
  for (InetAddress target : endpoints)
  {
    logger.trace("Sending legacy batchlog store request {} to {} for {} mutations", batch.id, target, batch.size());
    int targetVersion = MessagingService.instance().getVersion(target);
    MessagingService.instance().sendRR(getStoreMutation(batch, targetVersion).createMessage(MessagingService.Verb.MUTATION),
                      target,
                      handler,
                      false);
  }
}
origin: com.strapdata.cassandra/cassandra-all

public static void syncWriteToBatchlog(WriteResponseHandler<?> handler, Batch batch, Collection<InetAddress> endpoints)
throws WriteTimeoutException, WriteFailureException
{
  for (InetAddress target : endpoints)
  {
    logger.trace("Sending legacy batchlog store request {} to {} for {} mutations", batch.id, target, batch.size());
    int targetVersion = MessagingService.instance().getVersion(target);
    MessagingService.instance().sendRR(getStoreMutation(batch, targetVersion).createMessage(MessagingService.Verb.MUTATION),
                      target,
                      handler,
                      false);
  }
}
org.apache.cassandra.batchlogBatchsize

Javadoc

Count of the mutations in the batch.

Popular methods of Batch

  • <init>
  • createLocal
    Creates a 'local' batch - with all enclosed mutations in decoded form (as Mutation instances)
  • createRemote
    Creates a 'remote' batch - with all enclosed mutations in encoded form (as ByteBuffer instances) The

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JFrame (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 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