public class ThriftConverter
extends java.lang.Object
| Constructor and Description |
|---|
ThriftConverter() |
| Modifier and Type | Method and Description |
|---|---|
static <K> org.apache.cassandra.thrift.ColumnParent |
getColumnParent(com.netflix.astyanax.model.ColumnFamily<?,?> columnFamily,
com.netflix.astyanax.model.ColumnPath<?> path)
Construct a Hector ColumnParent based on the information in the query and
the type of column family being queried.
|
static <K> org.apache.cassandra.thrift.ColumnPath |
getColumnPath(com.netflix.astyanax.model.ColumnFamily<?,?> columnFamily,
com.netflix.astyanax.model.ColumnPath<?> path)
Construct a Thrift ColumnPath based on the information in the query and
the type of column family being queried.
|
static <C> org.apache.cassandra.thrift.SlicePredicate |
getPredicate(com.netflix.astyanax.model.ColumnSlice<C> columns,
com.netflix.astyanax.Serializer<C> colSer)
Return a Hector SlicePredicate based on the provided column slice
|
static com.netflix.astyanax.connectionpool.exceptions.ConnectionException |
ToConnectionPoolException(java.lang.Throwable e)
Convert from Thrift exceptions to an internal ConnectionPoolException
|
static org.apache.cassandra.thrift.ConsistencyLevel |
ToThriftConsistencyLevel(com.netflix.astyanax.model.ConsistencyLevel cl) |
public static <K> org.apache.cassandra.thrift.ColumnParent getColumnParent(com.netflix.astyanax.model.ColumnFamily<?,?> columnFamily,
com.netflix.astyanax.model.ColumnPath<?> path)
throws com.netflix.astyanax.connectionpool.exceptions.BadRequestException
K - columnFamily - path - com.netflix.astyanax.connectionpool.exceptions.BadRequestExceptionpublic static <K> org.apache.cassandra.thrift.ColumnPath getColumnPath(com.netflix.astyanax.model.ColumnFamily<?,?> columnFamily,
com.netflix.astyanax.model.ColumnPath<?> path)
throws com.netflix.astyanax.connectionpool.exceptions.BadRequestException
K - columnFamily - path - org.apache.cassandra.thrift.NotFoundExceptionorg.apache.cassandra.thrift.InvalidRequestExceptionorg.apache.thrift.TExceptioncom.netflix.astyanax.connectionpool.exceptions.BadRequestExceptionpublic static <C> org.apache.cassandra.thrift.SlicePredicate getPredicate(com.netflix.astyanax.model.ColumnSlice<C> columns,
com.netflix.astyanax.Serializer<C> colSer)
C - columns - colSer - public static com.netflix.astyanax.connectionpool.exceptions.ConnectionException ToConnectionPoolException(java.lang.Throwable e)
e - public static org.apache.cassandra.thrift.ConsistencyLevel ToThriftConsistencyLevel(com.netflix.astyanax.model.ConsistencyLevel cl)