me.prettyprint.cassandra.service.template
Interface ColumnFamilyResult<K,N>

Type Parameters:
K -
N -
All Superinterfaces:
Iterator<ColumnFamilyResult<K,N>>, ResultStatus
All Known Subinterfaces:
MappedColumnFamilyResult<K,N,V>, MappedSuperCfResult<K,SN,N,V>, SuperCfResult<K,SN,N>
All Known Implementing Classes:
AbstractResultWrapper, ColumnFamilyResultWrapper, MappedColumnFamilyResultWrapper, MappedSuperCfResultWrapper, SuperCfResultWrapper

public interface ColumnFamilyResult<K,N>
extends Iterator<ColumnFamilyResult<K,N>>, ResultStatus

A common interface for access to the resuls of a query of either a standard or super column family. There are different implementations of this which hide the differences requires of standar/super column families. As this interface inherits from ResultStatus, results will also provide execution details.

Author:
david, zznate

Method Summary
 Boolean getBoolean(N columnName)
           
 byte[] getByteArray(N columnName)
           
 HColumn<N,ByteBuffer> getColumn(N columnName)
           
 Collection<N> getColumnNames()
           
 Date getDate(N columnName)
           
 Integer getInteger(N columnName)
           
 K getKey()
           
 Long getLong(N columnName)
           
 String getString(N columnName)
           
 UUID getUUID(N columnName)
           
 boolean hasResults()
           
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 
Methods inherited from interface me.prettyprint.hector.api.ResultStatus
getExecutionTimeMicro, getExecutionTimeNano, getHostUsed
 

Method Detail

getKey

K getKey()

getUUID

UUID getUUID(N columnName)

getString

String getString(N columnName)

getLong

Long getLong(N columnName)

getInteger

Integer getInteger(N columnName)

getBoolean

Boolean getBoolean(N columnName)

getByteArray

byte[] getByteArray(N columnName)

getDate

Date getDate(N columnName)

getColumnNames

Collection<N> getColumnNames()

getColumn

HColumn<N,ByteBuffer> getColumn(N columnName)

hasResults

boolean hasResults()


Copyright © 2011. All Rights Reserved.