me.prettyprint.cassandra.service.template
Class ColumnFamilyResultWrapper<K,N>
java.lang.Object
me.prettyprint.cassandra.service.template.AbstractResultWrapper<K,N>
me.prettyprint.cassandra.service.template.ColumnFamilyResultWrapper<K,N>
- All Implemented Interfaces:
- Iterator<ColumnFamilyResult<K,N>>, ColumnFamilyResult<K,N>, ResultStatus
- Direct Known Subclasses:
- MappedColumnFamilyResultWrapper
public class ColumnFamilyResultWrapper<K,N>
- extends AbstractResultWrapper<K,N>
Wraps the results with as an Iterator. The underlying Iterator has already been advanced
to the first row upon construction.
- Author:
- zznate
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnFamilyResultWrapper
public ColumnFamilyResultWrapper(Serializer<K> keySerializer,
Serializer<N> columnNameSerializer,
ExecutionResult<Map<ByteBuffer,List<org.apache.cassandra.thrift.ColumnOrSuperColumn>>> executionResult)
getColumnNames
public Collection<N> getColumnNames()
- All the column names we know about in the current iterator position
- Returns:
getColumnValue
public ByteBuffer getColumnValue(N columnName)
- Specified by:
getColumnValue
in class AbstractResultWrapper<K,N>
getColumn
public HColumn<N,ByteBuffer> getColumn(N columnName)
getKey
public K getKey()
next
public ColumnFamilyResult<K,N> next()
hasNext
public boolean hasNext()
remove
public void remove()
hasResults
public boolean hasResults()
Copyright © 2011. All Rights Reserved.