org.usergrid.persistence.cassandra
Class GeoIndexManager

java.lang.Object
  extended by org.usergrid.persistence.cassandra.GeoIndexManager

public class GeoIndexManager
extends Object


Nested Class Summary
static class GeoIndexManager.EntityLocationRef
           
 
Constructor Summary
GeoIndexManager()
           
 
Method Summary
static me.prettyprint.hector.api.mutation.Mutator<ByteBuffer> addLocationEntryInsertionToMutator(me.prettyprint.hector.api.mutation.Mutator<ByteBuffer> m, Object key, GeoIndexManager.EntityLocationRef entry)
           
static void batchDeleteLocationInConnectionsIndex(me.prettyprint.hector.api.mutation.Mutator<ByteBuffer> m, IndexBucketLocator locator, UUID appId, UUID[] index_keys, String propertyName, GeoIndexManager.EntityLocationRef location)
           
static void batchRemoveLocationFromCollectionIndex(me.prettyprint.hector.api.mutation.Mutator<ByteBuffer> m, IndexBucketLocator locator, UUID appId, Object key, GeoIndexManager.EntityLocationRef location)
           
static void batchStoreLocationInCollectionIndex(me.prettyprint.hector.api.mutation.Mutator<ByteBuffer> m, IndexBucketLocator locator, UUID appId, Object key, UUID entityId, GeoIndexManager.EntityLocationRef location)
           
static void batchStoreLocationInConnectionsIndex(me.prettyprint.hector.api.mutation.Mutator<ByteBuffer> m, IndexBucketLocator locator, UUID appId, UUID[] index_keys, String propertyName, GeoIndexManager.EntityLocationRef location)
           
static List<GeoIndexManager.EntityLocationRef> getLocationIndexEntries(List<me.prettyprint.hector.api.beans.HColumn<ByteBuffer,ByteBuffer>> columns)
           
 GeoIndexManager init(EntityManagerImpl em)
           
static List<GeoIndexManager.EntityLocationRef> mergeLocationEntries(List<GeoIndexManager.EntityLocationRef> list, List<GeoIndexManager.EntityLocationRef>... lists)
           
 Results proximitySearchCollection(EntityRef headEntity, String collectionName, String propertyName, com.beoui.geocell.model.Point center, double maxDistance, UUID startResult, int count, boolean reversed, Results.Level level)
           
 Results proximitySearchConnections(UUID connectionIndexId, String propertyName, com.beoui.geocell.model.Point center, double maxDistance, UUID startResult, int count, boolean reversed, Results.Level level)
           
 List<GeoIndexManager.EntityLocationRef> query(Object key, List<String> curGeocellsUnique, UUID startResult, int count, boolean reversed)
           
 void removeLocationFromCollectionIndex(EntityRef owner, String collectionName, String propertyName, GeoIndexManager.EntityLocationRef location)
           
 void storeLocationInCollectionIndex(EntityRef owner, String collectionName, UUID entityId, String propertyName, GeoIndexManager.EntityLocationRef location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoIndexManager

public GeoIndexManager()
Method Detail

init

public GeoIndexManager init(EntityManagerImpl em)

getLocationIndexEntries

public static List<GeoIndexManager.EntityLocationRef> getLocationIndexEntries(List<me.prettyprint.hector.api.beans.HColumn<ByteBuffer,ByteBuffer>> columns)

mergeLocationEntries

public static List<GeoIndexManager.EntityLocationRef> mergeLocationEntries(List<GeoIndexManager.EntityLocationRef> list,
                                                                           List<GeoIndexManager.EntityLocationRef>... lists)

query

public List<GeoIndexManager.EntityLocationRef> query(Object key,
                                                     List<String> curGeocellsUnique,
                                                     UUID startResult,
                                                     int count,
                                                     boolean reversed)

proximitySearchCollection

public Results proximitySearchCollection(EntityRef headEntity,
                                         String collectionName,
                                         String propertyName,
                                         com.beoui.geocell.model.Point center,
                                         double maxDistance,
                                         UUID startResult,
                                         int count,
                                         boolean reversed,
                                         Results.Level level)
                                  throws Exception
Throws:
Exception

proximitySearchConnections

public Results proximitySearchConnections(UUID connectionIndexId,
                                          String propertyName,
                                          com.beoui.geocell.model.Point center,
                                          double maxDistance,
                                          UUID startResult,
                                          int count,
                                          boolean reversed,
                                          Results.Level level)
                                   throws Exception
Throws:
Exception

addLocationEntryInsertionToMutator

public static me.prettyprint.hector.api.mutation.Mutator<ByteBuffer> addLocationEntryInsertionToMutator(me.prettyprint.hector.api.mutation.Mutator<ByteBuffer> m,
                                                                                                        Object key,
                                                                                                        GeoIndexManager.EntityLocationRef entry)

batchStoreLocationInConnectionsIndex

public static void batchStoreLocationInConnectionsIndex(me.prettyprint.hector.api.mutation.Mutator<ByteBuffer> m,
                                                        IndexBucketLocator locator,
                                                        UUID appId,
                                                        UUID[] index_keys,
                                                        String propertyName,
                                                        GeoIndexManager.EntityLocationRef location)

batchDeleteLocationInConnectionsIndex

public static void batchDeleteLocationInConnectionsIndex(me.prettyprint.hector.api.mutation.Mutator<ByteBuffer> m,
                                                         IndexBucketLocator locator,
                                                         UUID appId,
                                                         UUID[] index_keys,
                                                         String propertyName,
                                                         GeoIndexManager.EntityLocationRef location)

batchStoreLocationInCollectionIndex

public static void batchStoreLocationInCollectionIndex(me.prettyprint.hector.api.mutation.Mutator<ByteBuffer> m,
                                                       IndexBucketLocator locator,
                                                       UUID appId,
                                                       Object key,
                                                       UUID entityId,
                                                       GeoIndexManager.EntityLocationRef location)

storeLocationInCollectionIndex

public void storeLocationInCollectionIndex(EntityRef owner,
                                           String collectionName,
                                           UUID entityId,
                                           String propertyName,
                                           GeoIndexManager.EntityLocationRef location)

batchRemoveLocationFromCollectionIndex

public static void batchRemoveLocationFromCollectionIndex(me.prettyprint.hector.api.mutation.Mutator<ByteBuffer> m,
                                                          IndexBucketLocator locator,
                                                          UUID appId,
                                                          Object key,
                                                          GeoIndexManager.EntityLocationRef location)

removeLocationFromCollectionIndex

public void removeLocationFromCollectionIndex(EntityRef owner,
                                              String collectionName,
                                              String propertyName,
                                              GeoIndexManager.EntityLocationRef location)


Copyright © 2013. All Rights Reserved.