com.usergrid.count.common
Class Count<K,C>

java.lang.Object
  extended by com.usergrid.count.common.Count<K,C>

public class Count<K,C>
extends Object

Loosely models a 'count' of things to

Author:
zznate

Constructor Summary
Count(String tableName, K keyName, C columnName, long value)
           
 
Method Summary
 Count apply(Count count)
           
 C getColumnName()
           
 ByteBuffer getColumnNameBytes()
           
 me.prettyprint.hector.api.Serializer<C> getColumnNameSerializer()
           
 String getCounterName()
          the counter name should uniquely identify the entity being counted.
 K getKeyName()
           
 ByteBuffer getKeyNameBytes()
           
 me.prettyprint.hector.api.Serializer<K> getKeySerializer()
           
 String getTableName()
           
 long getValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Count

public Count(String tableName,
             K keyName,
             C columnName,
             long value)
Method Detail

apply

public Count apply(Count count)

getCounterName

public String getCounterName()
the counter name should uniquely identify the entity being counted.

Returns:

getValue

public long getValue()

getColumnName

public C getColumnName()

getKeyName

public K getKeyName()

getKeyNameBytes

public ByteBuffer getKeyNameBytes()

getColumnNameBytes

public ByteBuffer getColumnNameBytes()

getKeySerializer

public me.prettyprint.hector.api.Serializer<K> getKeySerializer()

getColumnNameSerializer

public me.prettyprint.hector.api.Serializer<C> getColumnNameSerializer()

getTableName

public String getTableName()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.