me.prettyprint.cassandra.model.thrift
Class ThriftRangeSuperSlicesQuery<K,SN,N,V>
java.lang.Object
me.prettyprint.cassandra.model.AbstractBasicQuery<K,N,T>
me.prettyprint.cassandra.model.AbstractQuery<K,N,V,T>
me.prettyprint.cassandra.model.AbstractSliceQuery<K,SN,V,OrderedSuperRows<K,SN,N,V>>
me.prettyprint.cassandra.model.thrift.ThriftRangeSuperSlicesQuery<K,SN,N,V>
- Type Parameters:
N
- V
-
- All Implemented Interfaces:
- Query<OrderedSuperRows<K,SN,N,V>>, RangeSuperSlicesQuery<K,SN,N,V>
public final class ThriftRangeSuperSlicesQuery<K,SN,N,V>
- extends AbstractSliceQuery<K,SN,V,OrderedSuperRows<K,SN,N,V>>
- implements RangeSuperSlicesQuery<K,SN,N,V>
A query for the thrift call get_range_slices of supercolumns
- Author:
- Ran Tavory
Method Summary |
QueryResult<OrderedSuperRows<K,SN,N,V>> |
execute()
|
RangeSuperSlicesQuery<K,SN,N,V> |
setColumnFamily(String cf)
|
RangeSuperSlicesQuery<K,SN,N,V> |
setColumnNames(SN... columnNames)
Sets the column names to be retrieved by this query |
RangeSuperSlicesQuery<K,SN,N,V> |
setKeys(K start,
K end)
|
RangeSuperSlicesQuery<K,SN,N,V> |
setRange(SN start,
SN finish,
boolean reversed,
int count)
Set a predicate of start/finish to retrieve a list of columns in this range. |
RangeSuperSlicesQuery<K,SN,N,V> |
setRowCount(int rowCount)
|
String |
toString()
|
ThriftRangeSuperSlicesQuery
public ThriftRangeSuperSlicesQuery(Keyspace keyspace,
Serializer<K> keySerializer,
Serializer<SN> sNameSerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer)
setKeys
public RangeSuperSlicesQuery<K,SN,N,V> setKeys(K start,
K end)
- Specified by:
setKeys
in interface RangeSuperSlicesQuery<K,SN,N,V>
setRowCount
public RangeSuperSlicesQuery<K,SN,N,V> setRowCount(int rowCount)
- Specified by:
setRowCount
in interface RangeSuperSlicesQuery<K,SN,N,V>
execute
public QueryResult<OrderedSuperRows<K,SN,N,V>> execute()
- Specified by:
execute
in interface Query<OrderedSuperRows<K,SN,N,V>>
toString
public String toString()
- Overrides:
toString
in class Object
setColumnNames
public RangeSuperSlicesQuery<K,SN,N,V> setColumnNames(SN... columnNames)
- Description copied from class:
AbstractSliceQuery
- Sets the column names to be retrieved by this query
- Specified by:
setColumnNames
in interface RangeSuperSlicesQuery<K,SN,N,V>
- Overrides:
setColumnNames
in class AbstractSliceQuery<K,SN,V,OrderedSuperRows<K,SN,N,V>>
setRange
public RangeSuperSlicesQuery<K,SN,N,V> setRange(SN start,
SN finish,
boolean reversed,
int count)
- Description copied from class:
AbstractSliceQuery
- Set a predicate of start/finish to retrieve a list of columns in this range.
- Specified by:
setRange
in interface RangeSuperSlicesQuery<K,SN,N,V>
- Overrides:
setRange
in class AbstractSliceQuery<K,SN,V,OrderedSuperRows<K,SN,N,V>>
- Parameters:
start
- Start keyfinish
- End key
setColumnFamily
public RangeSuperSlicesQuery<K,SN,N,V> setColumnFamily(String cf)
- Specified by:
setColumnFamily
in interface RangeSuperSlicesQuery<K,SN,N,V>
- Overrides:
setColumnFamily
in class AbstractBasicQuery<K,SN,OrderedSuperRows<K,SN,N,V>>
Copyright © 2011. All Rights Reserved.