org.usergrid.persistence.cassandra
Class CassandraIndexedQueries
java.lang.Object
org.usergrid.persistence.cassandra.CassandraIndexedQueries
public class CassandraIndexedQueries
- extends Object
Field Summary |
static me.prettyprint.cassandra.serializers.ByteBufferSerializer |
be
|
static me.prettyprint.cassandra.serializers.StringSerializer |
se
|
static me.prettyprint.cassandra.serializers.UUIDSerializer |
ue
|
static EntityValueSerializer |
ve
|
Method Summary |
static void |
doSearchEntityIndex(me.prettyprint.hector.api.Keyspace ko,
String entityType,
List<UUID> outputList,
List<Entity> outputEntities,
String propertyName,
Object propertyValue,
String... propertyNames)
Do search entity index. |
static List<Entity> |
findEntities(me.prettyprint.hector.api.Keyspace ko,
String entityType,
Map<String,Object> subkeyProperties,
UUID start,
int count,
String... propertyNames)
|
static List<UUID> |
findEntityIds(me.prettyprint.hector.api.Keyspace ko,
String entityType,
Map<String,Object> subkeyProperties,
UUID start,
int count)
|
static List<Entity> |
searchEntities(me.prettyprint.hector.api.Keyspace ko,
String entityType,
String propertyName,
Object propertyValue)
Search entities. |
static List<UUID> |
searchEntityIndex(me.prettyprint.hector.api.Keyspace ko,
String entityType,
String propertyName,
Object propertyValue,
String... propertyNames)
Search entity index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
se
public static final me.prettyprint.cassandra.serializers.StringSerializer se
be
public static final me.prettyprint.cassandra.serializers.ByteBufferSerializer be
ve
public static final EntityValueSerializer ve
ue
public static final me.prettyprint.cassandra.serializers.UUIDSerializer ue
CassandraIndexedQueries
public CassandraIndexedQueries()
findEntityIds
public static List<UUID> findEntityIds(me.prettyprint.hector.api.Keyspace ko,
String entityType,
Map<String,Object> subkeyProperties,
UUID start,
int count)
findEntities
public static List<Entity> findEntities(me.prettyprint.hector.api.Keyspace ko,
String entityType,
Map<String,Object> subkeyProperties,
UUID start,
int count,
String... propertyNames)
doSearchEntityIndex
public static void doSearchEntityIndex(me.prettyprint.hector.api.Keyspace ko,
String entityType,
List<UUID> outputList,
List<Entity> outputEntities,
String propertyName,
Object propertyValue,
String... propertyNames)
throws Exception
- Do search entity index.
- Parameters:
applicationId
- the application identityType
- the entity typeoutputList
- the output listoutputEntities
- the output entitiespropertyName
- the property namepropertyValue
- the property valuepropertyNames
- the property names
- Throws:
Exception
- the exception
searchEntityIndex
public static List<UUID> searchEntityIndex(me.prettyprint.hector.api.Keyspace ko,
String entityType,
String propertyName,
Object propertyValue,
String... propertyNames)
throws Exception
- Search entity index.
- Parameters:
applicationId
- the application identityType
- the typepropertyName
- the property namepropertyValue
- the property valuepropertyNames
- the property names
- Returns:
- list of entity uuids
- Throws:
Exception
- the exception
searchEntities
public static List<Entity> searchEntities(me.prettyprint.hector.api.Keyspace ko,
String entityType,
String propertyName,
Object propertyValue)
throws Exception
- Search entities.
- Parameters:
applicationId
- the application identityType
- the entity typepropertyName
- the property namepropertyValue
- the property value
- Returns:
- list of entity uuids
- Throws:
Exception
- the exception
Copyright © 2013. All Rights Reserved.