public class

ThriftCounterSuperColumnImpl

extends Object
implements Column<C>
java.lang.Object
   ↳ com.netflix.astyanax.thrift.model.ThriftCounterSuperColumnImpl<C>

Summary

Public Constructors
ThriftCounterSuperColumnImpl(C name, CounterSuperColumn column)
Public Methods
boolean getBooleanValue()
Get value as a boolean
byte[] getByteArrayValue()
Get the raw byte[] value
ByteBuffer getByteBufferValue()
Get the raw ByteBuffer value
Date getDateValue()
Get the value as a date object
double getDoubleValue()
Return value as a double
int getIntegerValue()
Return value as an integer
long getLongValue()
Return value as a long.
C getName()
Column or super column name
ByteBuffer getRawName()
Return the raw byet buffer for the column name
String getStringValue()
Return value as a string
<C2> ColumnList<C2> getSubColumns(Serializer<C2> ser)
Get columns in the case of a super column.
long getTimestamp()
Returns the column timestamp.
int getTtl()
Get the TTL for this column.
UUID getUUIDValue()
Get the value as a UUID
<V> V getValue(Serializer<V> valSer)
Return the value@return
boolean hasValue()
boolean isParentColumn()
Returns true if the column contains a list of child columns, otherwise the column contains a value.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.netflix.astyanax.model.Column

Public Constructors

public ThriftCounterSuperColumnImpl (C name, CounterSuperColumn column)

Public Methods

public boolean getBooleanValue ()

Get value as a boolean

public byte[] getByteArrayValue ()

Get the raw byte[] value

public ByteBuffer getByteBufferValue ()

Get the raw ByteBuffer value

public Date getDateValue ()

Get the value as a date object

public double getDoubleValue ()

Return value as a double

public int getIntegerValue ()

Return value as an integer

public long getLongValue ()

Return value as a long. Use this to get the value of a counter column

public C getName ()

Column or super column name

public ByteBuffer getRawName ()

Return the raw byet buffer for the column name

public String getStringValue ()

Return value as a string

public ColumnList<C2> getSubColumns (Serializer<C2> ser)

Get columns in the case of a super column. Will throw an exception if this is a regular column Valid only if isCompositeColumn returns true

public long getTimestamp ()

Returns the column timestamp. Not to be confused with column values that happen to be time values.

public int getTtl ()

Get the TTL for this column.

Returns
  • TTL in seconds or 0 if no ttl was set

public UUID getUUIDValue ()

Get the value as a UUID

public V getValue (Serializer<V> valSer)

Return the value@return

public boolean hasValue ()

public boolean isParentColumn ()

Returns true if the column contains a list of child columns, otherwise the column contains a value.