org.usergrid.persistence.cassandra
Class IndexBucketScanner
java.lang.Object
org.usergrid.persistence.cassandra.IndexBucketScanner
public class IndexBucketScanner
- extends Object
A simple class to make working with index buckets easier. Scans all buckets
and merges the results into a single column list to allow easy backwards
compatibility with existing code
- Author:
- tnine
Constructor Summary |
IndexBucketScanner(CassandraService cass,
IndexBucketLocator locator,
ApplicationCF columnFamily,
UUID applicationId,
IndexBucketLocator.IndexType indexType,
Object keyPrefix,
Object start,
Object finish,
boolean reversed,
int count,
String... indexPath)
|
Method Summary |
List<me.prettyprint.hector.api.beans.HColumn<ByteBuffer,ByteBuffer>> |
load()
Search the collection index using all the buckets for the given
collection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexBucketScanner
public IndexBucketScanner(CassandraService cass,
IndexBucketLocator locator,
ApplicationCF columnFamily,
UUID applicationId,
IndexBucketLocator.IndexType indexType,
Object keyPrefix,
Object start,
Object finish,
boolean reversed,
int count,
String... indexPath)
load
public List<me.prettyprint.hector.api.beans.HColumn<ByteBuffer,ByteBuffer>> load()
throws Exception
- Search the collection index using all the buckets for the given
collection
- Parameters:
indexKey
- slice
- count
- collectionName
-
- Returns:
-
- Throws:
Exception
Copyright © 2013. All Rights Reserved.