|
|||||||||
| 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(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
|
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
|
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)
|
|
| 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(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.BadRequestException
public 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.NotFoundException
org.apache.cassandra.thrift.InvalidRequestException
org.apache.thrift.TException
com.netflix.astyanax.connectionpool.exceptions.BadRequestException
public 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||