me.prettyprint.cassandra.model.thrift
Class ThriftCounterColumnQuery<K,N>
java.lang.Object
me.prettyprint.cassandra.model.AbstractBasicQuery<K,N,HCounterColumn<N>>
me.prettyprint.cassandra.model.thrift.ThriftCounterColumnQuery<K,N>
- Type Parameters:
N
- column name typeV
- value type
- All Implemented Interfaces:
- CounterQuery<K,N>, Query<HCounterColumn<N>>
public class ThriftCounterColumnQuery<K,N>
- extends AbstractBasicQuery<K,N,HCounterColumn<N>>
- implements CounterQuery<K,N>
Thrift implementation of the ColumnQuery type.
- Author:
- Ran Tavory
Field Summary |
protected K |
key
|
protected N |
name
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
key
protected K key
name
protected N name
ThriftCounterColumnQuery
public ThriftCounterColumnQuery(Keyspace keyspace,
Serializer<K> keySerializer,
Serializer<N> nameSerializer)
ThriftCounterColumnQuery
public ThriftCounterColumnQuery(Keyspace keyspace)
setKey
public CounterQuery<K,N> setKey(K key)
- Description copied from interface:
CounterQuery
- Set the row key for this query.
- Specified by:
setKey
in interface CounterQuery<K,N>
setName
public CounterQuery<K,N> setName(N name)
- Description copied from interface:
CounterQuery
- Set the column name for this query.
- Specified by:
setName
in interface CounterQuery<K,N>
setColumnFamily
public CounterQuery<K,N> setColumnFamily(String cf)
- Specified by:
setColumnFamily
in interface CounterQuery<K,N>
- Overrides:
setColumnFamily
in class AbstractBasicQuery<K,N,HCounterColumn<N>>
execute
public QueryResult<HCounterColumn<N>> execute()
- Specified by:
execute
in interface Query<HCounterColumn<N>>
Copyright © 2011. All Rights Reserved.