me.prettyprint.cassandra.service
Class KeyIterator<K>

java.lang.Object
  extended by 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, AbstractSerializer<K> serializer)
           
 
Method Summary
 Iterator<K> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyIterator

public KeyIterator(Keyspace keyspace,
                   String columnFamily,
                   AbstractSerializer<K> serializer)
Method Detail

iterator

public Iterator<K> iterator()
Specified by:
iterator in interface Iterable<K>


Copyright © 2011. All Rights Reserved.