org.apache.cassandra.db
Class Truncation

java.lang.Object
  extended by org.apache.cassandra.db.Truncation

public class Truncation
extends java.lang.Object

A truncate operation descriptor

Author:
[email protected]

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 makeTruncationMessage()
           
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

makeTruncationMessage

public Message makeTruncationMessage()
                              throws java.io.IOException
Throws:
java.io.IOException

toString

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


Copyright © 2011 The Apache Software Foundation