public final class Batch
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| long | creationTime | 
| java.util.UUID | id | 
| static org.apache.cassandra.batchlog.Batch.Serializer | serializer | 
| Modifier and Type | Method and Description | 
|---|---|
| static Batch | createLocal(java.util.UUID id,
           long creationTime,
           java.util.Collection<Mutation> mutations)Creates a 'local' batch - with all enclosed mutations in decoded form (as Mutation instances) | 
| static Batch | createRemote(java.util.UUID id,
            long creationTime,
            java.util.Collection<java.nio.ByteBuffer> mutations)Creates a 'remote' batch - with all enclosed mutations in encoded form (as ByteBuffer instances)
 The mutations will always be encoded using the current messaging version. | 
| int | size()Count of the mutations in the batch. | 
public static final org.apache.cassandra.batchlog.Batch.Serializer serializer
public final java.util.UUID id
public final long creationTime
public static Batch createLocal(java.util.UUID id, long creationTime, java.util.Collection<Mutation> mutations)
public static Batch createRemote(java.util.UUID id, long creationTime, java.util.Collection<java.nio.ByteBuffer> mutations)
public int size()
Copyright © 2018 The Apache Software Foundation