|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object me.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 ResultStatus
resultStatus
Constructor Summary
AbstractResultWrapper(Serializer<K> keySerializer,
Serializer<N> columnNameSerializer,
ResultStatus resultStatus)
Method Summary
Boolean
getBoolean(N columnName)
byte[]
getByteArray(N columnName)
abstract ByteBuffer
getColumnValue(N columnName)
Date
getDate(N columnName)
long
getExecutionTimeMicro()
How long the operation took to execute in MICRO-seconds.
long
getExecutionTimeNano()
CassandraHost
getHostUsed()
The CassandraHost
on which this operation
was successful
Integer
getInteger(N columnName)
Long
getLong(N columnName)
String
getString(N columnName)
UUID
getUUID(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>
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()
ResultStatus
System.nanoTime()
divided by 1000
getExecutionTimeMicro
in interface ResultStatus
getExecutionTimeNano
public long getExecutionTimeNano()
getExecutionTimeNano
in interface ResultStatus
getHostUsed
public CassandraHost getHostUsed()
ResultStatus
CassandraHost
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 © 2011. All Rights Reserved.