org.usergrid.persistence.cassandra
Class CassandraIndexedQueries

java.lang.Object
  extended by 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
           
 
Constructor Summary
CassandraIndexedQueries()
           
 
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
 

Field Detail

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
Constructor Detail

CassandraIndexedQueries

public CassandraIndexedQueries()
Method Detail

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 id
entityType - the entity type
outputList - the output list
outputEntities - the output entities
propertyName - the property name
propertyValue - the property value
propertyNames - 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 id
entityType - the type
propertyName - the property name
propertyValue - the property value
propertyNames - 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 id
entityType - the entity type
propertyName - the property name
propertyValue - the property value
Returns:
list of entity uuids
Throws:
Exception - the exception


Copyright © 2013. All Rights Reserved.