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

Nested Class Summary
static class KeyIterator.Builder<K>
           
 
Constructor Summary
protected KeyIterator(KeyIterator.Builder<K> builder)
           
  KeyIterator(Keyspace keyspace, String columnFamily, Serializer<K> serializer)
          Deprecated. 
  KeyIterator(Keyspace keyspace, String columnFamily, Serializer<K> serializer, int maxRowCount)
          Deprecated. 
  KeyIterator(Keyspace keyspace, String columnFamily, Serializer<K> serializer, K start, K end)
          Deprecated. 
  KeyIterator(Keyspace keyspace, String columnFamily, Serializer<K> serializer, K start, K end, int maxRowCount)
          Deprecated. 
 
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

@Deprecated
public KeyIterator(Keyspace keyspace,
                              String columnFamily,
                              Serializer<K> serializer)
Deprecated. 


KeyIterator

@Deprecated
public KeyIterator(Keyspace keyspace,
                              String columnFamily,
                              Serializer<K> serializer,
                              int maxRowCount)
Deprecated. 


KeyIterator

@Deprecated
public KeyIterator(Keyspace keyspace,
                              String columnFamily,
                              Serializer<K> serializer,
                              K start,
                              K end)
Deprecated. 


KeyIterator

@Deprecated
public KeyIterator(Keyspace keyspace,
                              String columnFamily,
                              Serializer<K> serializer,
                              K start,
                              K end,
                              int maxRowCount)
Deprecated. 


KeyIterator

protected KeyIterator(KeyIterator.Builder<K> builder)
Method Detail

iterator

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


Copyright © 2013. All Rights Reserved.