me.prettyprint.hector.api.beans
Interface HColumn<N,V>

Type Parameters:
N - The type of the column name
V - The type of the column value
All Known Implementing Classes:
HColumnImpl

public interface HColumn<N,V>

Hector Column definition.

Author:
Ran Tavory (rantav@gmail.com), zznate

Method Summary
 HColumn<N,V> apply(V value, long clock, int ttl)
           
 HColumn<N,V> clear()
           
 long getClock()
           
 N getName()
           
 ByteBuffer getNameBytes()
          (Advanced) Returns the underlying ByteBuffer for the name via ByteBuffer.duplicate().
 Serializer<N> getNameSerializer()
           
 int getTtl()
           
 V getValue()
           
 ByteBuffer getValueBytes()
          (Advanced) Returns the underlying ByteBuffer for the value via ByteBuffer.duplicate().
 Serializer<V> getValueSerializer()
           
 HColumn<N,V> setClock(long clock)
           
 HColumn<N,V> setName(N name)
           
 HColumn<N,V> setTtl(int ttl)
           
 HColumn<N,V> setValue(V value)
           
 

Method Detail

setName

HColumn<N,V> setName(N name)

setValue

HColumn<N,V> setValue(V value)

getName

N getName()

getValue

V getValue()

getValueBytes

ByteBuffer getValueBytes()
(Advanced) Returns the underlying ByteBuffer for the value via ByteBuffer.duplicate().


getNameBytes

ByteBuffer getNameBytes()
(Advanced) Returns the underlying ByteBuffer for the name via ByteBuffer.duplicate().


getClock

long getClock()

setClock

HColumn<N,V> setClock(long clock)

getTtl

int getTtl()

setTtl

HColumn<N,V> setTtl(int ttl)

clear

HColumn<N,V> clear()

apply

HColumn<N,V> apply(V value,
                   long clock,
                   int ttl)

getNameSerializer

Serializer<N> getNameSerializer()

getValueSerializer

Serializer<V> getValueSerializer()


Copyright © 2011. All Rights Reserved.