public interface CassandraDataHandler
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
fromThriftRow(Class<?> clazz,
EntityMetadata m,
List<String> relationNames,
boolean isWrapReq,
org.apache.cassandra.thrift.ConsistencyLevel consistencyLevel,
Object... rowIds)
From thrift row.
|
Object |
fromThriftRow(Class<?> clazz,
EntityMetadata m,
Object rowKey,
List<String> relationNames,
boolean isWrapReq,
org.apache.cassandra.thrift.ConsistencyLevel consistencyLevel)
From thrift row.
|
<E> E |
fromThriftRow(Class<E> clazz,
EntityMetadata m,
DataRow<org.apache.cassandra.thrift.SuperColumn> tr)
From thrift row.
|
Object |
populateEntity(ThriftRow tr,
EntityMetadata m,
Object entity,
List<String> relationNames,
boolean isWrapReq)
Populate entity.
|
Collection<ThriftRow> |
toThriftRow(Object e,
Object id,
EntityMetadata m,
String columnFamily,
Object columnTTLs)
To thrift row.
|
<E> E fromThriftRow(Class<E> clazz, EntityMetadata m, DataRow<org.apache.cassandra.thrift.SuperColumn> tr) throws Exception
E - the element typeclazz - the clazzm - the mtr - the trException - the exceptionList<Object> fromThriftRow(Class<?> clazz, EntityMetadata m, List<String> relationNames, boolean isWrapReq, org.apache.cassandra.thrift.ConsistencyLevel consistencyLevel, Object... rowIds) throws Exception
clazz - the clazzm - the mrelationNames - the relation namesisWrapReq - the is wrap reqconsistencyLevel - the consistency levelrowIds - the row idsException - the exceptionObject fromThriftRow(Class<?> clazz, EntityMetadata m, Object rowKey, List<String> relationNames, boolean isWrapReq, org.apache.cassandra.thrift.ConsistencyLevel consistencyLevel) throws Exception
clazz - the clazzm - the mrowKey - the row keyrelationNames - the relation namesisWrapReq - the is wrap reqconsistencyLevel - the consistency levelException - the exceptionObject populateEntity(ThriftRow tr, EntityMetadata m, Object entity, List<String> relationNames, boolean isWrapReq)
tr - the trm - the mrelationNames - the relation namesisWrapReq - the is wrap reqCollection<ThriftRow> toThriftRow(Object e, Object id, EntityMetadata m, String columnFamily, Object columnTTLs) throws Exception
e - the eid - the idm - the mcolumnFamily - the column familycolumnTTLs - TODOException - the exceptionCopyright © 2016. All Rights Reserved.