|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.thrift.ThriftConverter
public class ThriftConverter
Constructor Summary | |
---|---|
ThriftConverter()
|
Method Summary | ||
---|---|---|
static
|
getColumnParent(ColumnFamily<?,?> columnFamily,
ColumnPath<?> path)
Construct a Hector ColumnParent based on the information in the query and the type of column family being queried. |
|
static
|
getColumnPath(ColumnFamily<?,?> columnFamily,
ColumnPath<?> path)
Construct a Thrift ColumnPath based on the information in the query and the type of column family being queried. |
|
static
|
getPredicate(ColumnSlice<C> columns,
Serializer<C> colSer)
Return a Hector SlicePredicate based on the provided column slice |
|
static ConnectionException |
ToConnectionPoolException(Exception e)
Convert from Thrift exceptions to an internal ConnectionPoolException |
|
static org.apache.cassandra.thrift.ConsistencyLevel |
ToThriftConsistencyLevel(ConsistencyLevel cl)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThriftConverter()
Method Detail |
---|
public static <K> org.apache.cassandra.thrift.ColumnParent getColumnParent(ColumnFamily<?,?> columnFamily, ColumnPath<?> path) throws BadRequestException
K
- columnFamily
- path
-
BadRequestException
public static <K> org.apache.cassandra.thrift.ColumnPath getColumnPath(ColumnFamily<?,?> columnFamily, ColumnPath<?> path) throws BadRequestException
K
- columnFamily
- path
-
org.apache.cassandra.thrift.NotFoundException
org.apache.cassandra.thrift.InvalidRequestException
org.apache.thrift.TException
BadRequestException
public static <C> org.apache.cassandra.thrift.SlicePredicate getPredicate(ColumnSlice<C> columns, Serializer<C> colSer)
C
- columns
- colSer
-
public static ConnectionException ToConnectionPoolException(Exception e)
e
-
public static org.apache.cassandra.thrift.ConsistencyLevel ToThriftConsistencyLevel(ConsistencyLevel cl)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |