me.prettyprint.cassandra.model
Class AbstractColumnQuery<K,N,V>

java.lang.Object
  extended by me.prettyprint.cassandra.model.AbstractBasicQuery<K,N,T>
      extended by me.prettyprint.cassandra.model.AbstractQuery<K,N,V,HColumn<N,V>>
          extended by me.prettyprint.cassandra.model.AbstractColumnQuery<K,N,V>
Type Parameters:
N -
V -
All Implemented Interfaces:
ColumnQuery<K,N,V>, Query<HColumn<N,V>>
Direct Known Subclasses:
ThriftColumnQuery

public abstract class AbstractColumnQuery<K,N,V>
extends AbstractQuery<K,N,V,HColumn<N,V>>
implements ColumnQuery<K,N,V>

Defines the commonalities b/w the Avro and the Thrift ColumnQuery implementations.

Author:
Ran Tavory

Field Summary
protected  K key
           
protected  N name
           
 
Fields inherited from class me.prettyprint.cassandra.model.AbstractQuery
valueSerializer
 
Fields inherited from class me.prettyprint.cassandra.model.AbstractBasicQuery
columnFamilyName, columnNameSerializer, keySerializer, keyspace
 
Constructor Summary
protected AbstractColumnQuery(Keyspace k, Serializer<K> keySerializer, Serializer<N> nameSerializer, Serializer<V> valueSerializer)
           
 
Method Summary
 ColumnQuery<K,N,V> setColumnFamily(String cf)
           
 ColumnQuery<K,N,V> setKey(K key)
          Set the row key for this query.
 ColumnQuery<K,N,V> setName(N name)
          Set the column name for this query.
 String toString()
           
 
Methods inherited from class me.prettyprint.cassandra.model.AbstractQuery
getValueSerializer, setValueSerializer
 
Methods inherited from class me.prettyprint.cassandra.model.AbstractBasicQuery
getColumnNameSerializer, getKeySerializer, setColumnNameSerializer, setKeySerializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface me.prettyprint.hector.api.query.Query
execute
 

Field Detail

key

protected K key

name

protected N name
Constructor Detail

AbstractColumnQuery

protected AbstractColumnQuery(Keyspace k,
                              Serializer<K> keySerializer,
                              Serializer<N> nameSerializer,
                              Serializer<V> valueSerializer)
Method Detail

setKey

public ColumnQuery<K,N,V> setKey(K key)
Description copied from interface: ColumnQuery
Set the row key for this query.

Specified by:
setKey in interface ColumnQuery<K,N,V>

setName

public ColumnQuery<K,N,V> setName(N name)
Description copied from interface: ColumnQuery
Set the column name for this query.

Specified by:
setName in interface ColumnQuery<K,N,V>

setColumnFamily

public ColumnQuery<K,N,V> setColumnFamily(String cf)
Specified by:
setColumnFamily in interface ColumnQuery<K,N,V>
Overrides:
setColumnFamily in class AbstractBasicQuery<K,N,HColumn<N,V>>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.