org.apache.cassandra.thrift
Class ThriftConversion

java.lang.Object
  extended by org.apache.cassandra.thrift.ThriftConversion

public class ThriftConversion
extends java.lang.Object

Static utility methods to convert internal structure to and from thrift ones.


Constructor Summary
ThriftConversion()
           
 
Method Summary
static ConsistencyLevel fromThrift(org.apache.cassandra.thrift.ConsistencyLevel cl)
           
static void rethrow(RequestExecutionException e)
           
static org.apache.cassandra.thrift.AuthenticationException toThrift(AuthenticationException e)
           
static org.apache.cassandra.thrift.ConsistencyLevel toThrift(ConsistencyLevel cl)
           
static org.apache.cassandra.thrift.InvalidRequestException toThrift(InvalidRequestException e)
           
static org.apache.cassandra.thrift.TimedOutException toThrift(RequestTimeoutException e)
           
static org.apache.cassandra.thrift.InvalidRequestException toThrift(RequestValidationException e)
           
static org.apache.cassandra.thrift.UnavailableException toThrift(UnavailableException e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftConversion

public ThriftConversion()
Method Detail

toThrift

public static org.apache.cassandra.thrift.ConsistencyLevel toThrift(ConsistencyLevel cl)

fromThrift

public static ConsistencyLevel fromThrift(org.apache.cassandra.thrift.ConsistencyLevel cl)

rethrow

public static void rethrow(RequestExecutionException e)
                    throws org.apache.cassandra.thrift.UnavailableException,
                           org.apache.cassandra.thrift.TimedOutException
Throws:
org.apache.cassandra.thrift.UnavailableException
org.apache.cassandra.thrift.TimedOutException

toThrift

public static org.apache.cassandra.thrift.InvalidRequestException toThrift(RequestValidationException e)

toThrift

public static org.apache.cassandra.thrift.InvalidRequestException toThrift(InvalidRequestException e)

toThrift

public static org.apache.cassandra.thrift.UnavailableException toThrift(UnavailableException e)

toThrift

public static org.apache.cassandra.thrift.AuthenticationException toThrift(AuthenticationException e)

toThrift

public static org.apache.cassandra.thrift.TimedOutException toThrift(RequestTimeoutException e)


Copyright © 2012 The Apache Software Foundation