java.lang.Object | |
↳ | com.netflix.astyanax.thrift.AbstractThriftMutationBatchImpl |
Basic implementation of a mutation batch using the thrift data structures. The thrift mutation data structure is, Map of Keys -> Map of ColumnFamily -> MutationList
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
timestamp |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete the row for all the specified column families
| |||||||||||
Re-recreate a mutation batch from a serialized ByteBuffer created by a
call to serialize().
| |||||||||||
Discard any pending mutations.
| |||||||||||
Returns the number of rows being mutated
| |||||||||||
Return a mapping of column families to rows being modified
| |||||||||||
Checks whether the mutation object contains rows.
| |||||||||||
Force all future mutations to have the same timestamp.
| |||||||||||
Perform a shallow merge of mutations from another batch.
| |||||||||||
Serialize the entire mutation batch into a ByteBuffer.@return
| |||||||||||
This never really did anything :)
| |||||||||||
Set the timestamp for all subsequent operations on this mutation
| |||||||||||
Generate a string representation of the mutation with the following
syntax Key1: cf1: Mutation count cf2: Mutation count Key2: cf1: Mutation
count cf2: Mutation count
| |||||||||||
Mutate a row.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.netflix.astyanax.Execution
| |||||||||||
From interface
com.netflix.astyanax.MutationBatch
|
Delete the row for all the specified column families
Re-recreate a mutation batch from a serialized ByteBuffer created by a call to serialize(). Serialization of MutationBatches from different implementations is not guaranteed to match.
Exception |
---|
Discard any pending mutations. All previous references returned by row are now invalid.
Returns the number of rows being mutated
Return a mapping of column families to rows being modified
Checks whether the mutation object contains rows. While the map may contain row keys the row keys may not contain any mutations.
Force all future mutations to have the same timestamp. Make sure to call lockTimestamp before doing any other operations otherwise previously created withRow mutations will use the previous timestamp.
Perform a shallow merge of mutations from another batch.
Serialize the entire mutation batch into a ByteBuffer.@return
Exception |
---|
Set the timestamp for all subsequent operations on this mutation
Generate a string representation of the mutation with the following syntax Key1: cf1: Mutation count cf2: Mutation count Key2: cf1: Mutation count cf2: Mutation count
Mutate a row. The ColumnFamilyMutation is only valid until execute() or discardMutations is called.