public class

ThriftConverter

extends Object
java.lang.Object
   ↳ com.netflix.astyanax.thrift.ThriftConverter

Summary

Public Constructors
ThriftConverter()
Public Methods
static ConnectionException ToConnectionPoolException(Exception e)
Convert from Thrift exceptions to an internal ConnectionPoolException
static org.apache.cassandra.thrift.ConsistencyLevel ToThriftConsistencyLevel(ConsistencyLevel cl)
static <K> ColumnParent getColumnParent(ColumnFamily<?, ?> columnFamily, ColumnPath<?> path)
Construct a Hector ColumnParent based on the information in the query and the type of column family being queried.@return
static <K> org.apache.cassandra.thrift.ColumnPath getColumnPath(ColumnFamily<?, ?> columnFamily, ColumnPath<?> path)
Construct a Thrift ColumnPath based on the information in the query and the type of column family being queried.@return
static <C> SlicePredicate getPredicate(ColumnSlice<C> columns, Serializer<C> colSer)
Return a Hector SlicePredicate based on the provided column slice
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ThriftConverter ()

Public Methods

public static ConnectionException ToConnectionPoolException (Exception e)

Convert from Thrift exceptions to an internal ConnectionPoolException

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

public static ColumnParent getColumnParent (ColumnFamily<?, ?> columnFamily, ColumnPath<?> path)

Construct a Hector ColumnParent based on the information in the query and the type of column family being queried.@return

public static org.apache.cassandra.thrift.ColumnPath getColumnPath (ColumnFamily<?, ?> columnFamily, ColumnPath<?> path)

Construct a Thrift ColumnPath based on the information in the query and the type of column family being queried.@return

Throws
NotFoundException
InvalidRequestException
BadRequestException

public static SlicePredicate getPredicate (ColumnSlice<C> columns, Serializer<C> colSer)

Return a Hector SlicePredicate based on the provided column slice