me.prettyprint.cassandra.service
Class KeyIterator<K>
java.lang.Object
me.prettyprint.cassandra.service.KeyIterator<K>
- Type Parameters:
K - the type of the row key
- All Implemented Interfaces:
- Iterable<K>
- Direct Known Subclasses:
- StringKeyIterator
public class KeyIterator<K>
- extends Object
- implements Iterable<K>
This class returns each key in the specified Column Family as an Iterator. You
can use this class in a for loop without the overhead of first storing each
key in a large array. See StringKeyIterator for a convenience class if the key
is a String.
- Author:
- Tim Koop
- See Also:
StringKeyIterator
|
Constructor Summary |
KeyIterator(Keyspace keyspace,
String columnFamily,
Serializer<K> serializer)
|
KeyIterator(Keyspace keyspace,
String columnFamily,
Serializer<K> serializer,
int maxRowCount)
|
KeyIterator(Keyspace keyspace,
String columnFamily,
Serializer<K> serializer,
K start,
K end)
|
KeyIterator(Keyspace keyspace,
String columnFamily,
Serializer<K> serializer,
K start,
K end,
int maxRowCount)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyIterator
public KeyIterator(Keyspace keyspace,
String columnFamily,
Serializer<K> serializer)
KeyIterator
public KeyIterator(Keyspace keyspace,
String columnFamily,
Serializer<K> serializer,
int maxRowCount)
KeyIterator
public KeyIterator(Keyspace keyspace,
String columnFamily,
Serializer<K> serializer,
K start,
K end)
KeyIterator
public KeyIterator(Keyspace keyspace,
String columnFamily,
Serializer<K> serializer,
K start,
K end,
int maxRowCount)
iterator
public Iterator<K> iterator()
- Specified by:
iterator in interface Iterable<K>
Copyright © 2012. All Rights Reserved.