|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.prettyprint.cassandra.service.template.AbstractResultWrapper<K,N>
K - the type of the keyN - the standard column name type or the super column's child column
typepublic abstract class AbstractResultWrapper<K,N>
Provides access to the current row of data during queries. There is a lot of
overlap in needs for both standard and super queries. This class consolidates
what they have in common. All data is read into ByteBuffers and translated to
a primitive type when requested.
This class is a non-static inner class which inherits the Java generic
parameters of it's containing ColumnFamilyTemplate instance. This allows it to
inherit the
Field Summary
protected Serializer<N>columnNameSerializer
protected Serializer<K>keySerializer
protected ResultStatusresultStatus
Constructor Summary
AbstractResultWrapper(Serializer<K> keySerializer,
Serializer<N> columnNameSerializer,
ResultStatus resultStatus)
Method Summary
BooleangetBoolean(N columnName)
byte[]getByteArray(N columnName)
abstract ByteBuffergetColumnValue(N columnName)
DategetDate(N columnName)
DoublegetDouble(N columnName)
longgetExecutionTimeMicro()
How long the operation took to execute in MICRO-seconds.
longgetExecutionTimeNano()
CassandraHostgetHostUsed()
The CassandraHost on which this operation
was successful
IntegergetInteger(N columnName)
LonggetLong(N columnName)
StringgetString(N columnName)
UUIDgetUUID(N columnName)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.prettyprint.cassandra.service.template.ColumnFamilyResult
getColumn, getColumnNames, getKey, hasResults
Methods inherited from interface java.util.Iterator
hasNext, next, remove
Field Detail
keySerializer
protected Serializer<K> keySerializer
columnNameSerializer
protected Serializer<N> columnNameSerializer
resultStatus
protected ResultStatus resultStatus
Constructor Detail
AbstractResultWrapper
public AbstractResultWrapper(Serializer<K> keySerializer,
Serializer<N> columnNameSerializer,
ResultStatus resultStatus)
Method Detail
getColumnValue
public abstract ByteBuffer getColumnValue(N columnName)
getUUID
public UUID getUUID(N columnName)
getUUID in interface ColumnFamilyResult<K,N>
getString
public String getString(N columnName)
getString in interface ColumnFamilyResult<K,N>
getLong
public Long getLong(N columnName)
getLong in interface ColumnFamilyResult<K,N>
getInteger
public Integer getInteger(N columnName)
getInteger in interface ColumnFamilyResult<K,N>
getDouble
public Double getDouble(N columnName)
getDouble in interface ColumnFamilyResult<K,N>
getBoolean
public Boolean getBoolean(N columnName)
getBoolean in interface ColumnFamilyResult<K,N>
getByteArray
public byte[] getByteArray(N columnName)
getByteArray in interface ColumnFamilyResult<K,N>
getDate
public Date getDate(N columnName)
getDate in interface ColumnFamilyResult<K,N>
getExecutionTimeMicro
public long getExecutionTimeMicro()
ResultStatusSystem.nanoTime()
divided by 1000
getExecutionTimeMicro in interface ResultStatus
getExecutionTimeNano
public long getExecutionTimeNano()
getExecutionTimeNano in interface ResultStatus
getHostUsed
public CassandraHost getHostUsed()
ResultStatusCassandraHost on which this operation
was successful
getHostUsed in interface ResultStatus
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2012. All Rights Reserved.