org.apache.cassandra.db
Class Truncation

java.lang.Object
  extended by org.apache.cassandra.db.Truncation
All Implemented Interfaces:
MessageProducer

public class Truncation
extends java.lang.Object
implements MessageProducer

A truncate operation descriptor


Field Summary
 java.lang.String columnFamily
           
 java.lang.String keyspace
           
 
Constructor Summary
Truncation(java.lang.String keyspace, java.lang.String columnFamily)
           
 
Method Summary
 void apply()
          This is equivalent to calling commit.
 Message getMessage(java.lang.Integer version)
           
static ICompactSerializer<Truncation> serializer()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

keyspace

public final java.lang.String keyspace

columnFamily

public final java.lang.String columnFamily
Constructor Detail

Truncation

public Truncation(java.lang.String keyspace,
                  java.lang.String columnFamily)
Method Detail

serializer

public static ICompactSerializer<Truncation> serializer()

apply

public void apply()
           throws java.io.IOException
This is equivalent to calling commit. Applies the changes to to the table that is obtained by calling Table.open().

Throws:
java.io.IOException

getMessage

public Message getMessage(java.lang.Integer version)
                   throws java.io.IOException
Specified by:
getMessage in interface MessageProducer
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011 The Apache Software Foundation