me.prettyprint.cassandra.model
Class CqlRows<K,N,V>
java.lang.Object
me.prettyprint.cassandra.model.RowsImpl<K,N,V>
me.prettyprint.cassandra.model.OrderedRowsImpl<K,N,V>
me.prettyprint.cassandra.model.CqlRows<K,N,V>
- All Implemented Interfaces:
- Iterable<Row<K,N,V>>, OrderedRows<K,N,V>, Rows<K,N,V>
public final class CqlRows<K,N,V>
- extends OrderedRowsImpl<K,N,V>
Row wrapper specific to the multi-type results capable from a CqlQuery.
This is a bit more convoluted than I would like, put most of this API
is still moving around, so we will stick with the overloading for now.
- Author:
- zznate
Fields inherited from class me.prettyprint.cassandra.model.RowsImpl |
rows |
Method Summary |
int |
getAsCount()
Will throw an IllegalArgumentException if called on a query that was not
CqlResultType.INT |
CqlRows
public CqlRows(LinkedHashMap<K,List<org.apache.cassandra.thrift.Column>> thriftRet,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer)
- Constructed for
CqlResultType.ROWS
- Parameters:
thriftRet
- nameSerializer
- valueSerializer
- resultType
-
CqlRows
public CqlRows()
- Constructed as empty for
CqlResultType.VOID
getAsCount
public int getAsCount()
- Will throw an IllegalArgumentException if called on a query that was not
CqlResultType.INT
- Returns:
Copyright © 2011. All Rights Reserved.