org.apache.cassandra.thrift
Class ThriftConversion
java.lang.Object
org.apache.cassandra.thrift.ThriftConversion
public class ThriftConversion
- extends java.lang.Object
Static utility methods to convert internal structure to and from thrift ones.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThriftConversion
public ThriftConversion()
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