public class CassandraEntityReader extends AbstractEntityReader implements EntityReader
kunderaMetadata, kunderaQuery| Constructor and Description |
|---|
CassandraEntityReader(EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Instantiates a new cassandra entity reader.
|
CassandraEntityReader(KunderaQuery kunderaQuery,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Instantiates a new cassandra entity reader.
|
| Modifier and Type | Method and Description |
|---|---|
EnhanceEntity |
findById(Object primaryKey,
EntityMetadata m,
Client client) |
List |
handleFindByRange(EntityMetadata m,
Client client,
List result,
Map<Boolean,List<org.apache.cassandra.thrift.IndexClause>> ixClause,
boolean isRowKeyQuery,
List<String> columns,
int maxResults)
Handle find by range.
|
List<EnhanceEntity> |
populateRelation(EntityMetadata m,
Client client,
int maxResults)
Method responsible for reading back entity and relations using secondary
indexes(if it holds any relation), else retrieve row keys using lucene.
|
List<EnhanceEntity> |
readFromIndexTable(EntityMetadata m,
Client client,
Map<Boolean,List<org.apache.cassandra.thrift.IndexClause>> indexClauseMap)
Read from index table.
|
void |
setConditions(Map<Boolean,List<org.apache.cassandra.thrift.IndexClause>> conditions)
Method to set indexcluase conditions.
|
fetchDataFromLucene, getId, onAssociationUsingLucene, recursivelyFindEntities, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrecursivelyFindEntitiespublic CassandraEntityReader(KunderaQuery kunderaQuery, EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
kunderaQuery - the kundera querykunderaMetadata - the kundera metadatapublic CassandraEntityReader(EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
kunderaMetadata - the kundera metadatapublic EnhanceEntity findById(Object primaryKey, EntityMetadata m, Client client)
findById in interface EntityReaderfindById in class AbstractEntityReaderpublic List<EnhanceEntity> populateRelation(EntityMetadata m, Client client, int maxResults)
populateRelation in interface EntityReaderm - entity meta dataclient - client instancemaxResults - the max resultspublic List handleFindByRange(EntityMetadata m, Client client, List result, Map<Boolean,List<org.apache.cassandra.thrift.IndexClause>> ixClause, boolean isRowKeyQuery, List<String> columns, int maxResults)
m - the mclient - the clientresult - the resultixClause - the ix clauseisRowKeyQuery - the is row key querycolumns - the columnsmaxResults - the max resultspublic List<EnhanceEntity> readFromIndexTable(EntityMetadata m, Client client, Map<Boolean,List<org.apache.cassandra.thrift.IndexClause>> indexClauseMap)
m - the mclient - the clientindexClauseMap - the index clause mapCopyright © 2016. All Rights Reserved.