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
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,
AbstractSerializer<K> serializer)
iterator
public Iterator<K> iterator()
- Specified by:
iterator
in interface Iterable<K>
Copyright © 2011. All Rights Reserved.