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 ConsistencyLevel toThrift(ConsistencyLevel cl)
fromThrift
public static ConsistencyLevel fromThrift(ConsistencyLevel cl)
rethrow
public static void rethrow(RequestExecutionException e)
throws UnavailableException,
TimedOutException
- Throws:
UnavailableException
TimedOutException
toThrift
public static InvalidRequestException toThrift(RequestValidationException e)
toThrift
public static InvalidRequestException toThrift(InvalidRequestException e)
toThrift
public static UnavailableException toThrift(UnavailableException e)
toThrift
public static TimedOutException toThrift(RequestTimeoutException e)
Copyright © 2012 The Apache Software Foundation