public interface

Column

com.netflix.astyanax.model.Column<C>
Known Indirect Subclasses

Class Overview

Common interface for extracting column values after a query.

Summary

Public Methods
abstract boolean getBooleanValue()
Get value as a boolean
abstract byte[] getByteArrayValue()
Get the raw byte[] value
abstract ByteBuffer getByteBufferValue()
Get the raw ByteBuffer value
abstract Date getDateValue()
Get the value as a date object
abstract double getDoubleValue()
Return value as a double
abstract int getIntegerValue()
Return value as an integer
abstract long getLongValue()
Return value as a long.
abstract C getName()
Column or super column name
abstract ByteBuffer getRawName()
Return the raw byet buffer for the column name
abstract String getStringValue()
Return value as a string
abstract <C2> ColumnList<C2> getSubColumns(Serializer<C2> ser)
This method is deprecated. Super columns should be replaced with composite columns
abstract long getTimestamp()
Returns the column timestamp.
abstract int getTtl()
Get the TTL for this column.
abstract UUID getUUIDValue()
Get the value as a UUID
abstract <V> V getValue(Serializer<V> valSer)
Return the value@return
abstract boolean hasValue()
abstract boolean isParentColumn()
This method is deprecated. Super columns should be replaced with composite columns

Public Methods

public abstract boolean getBooleanValue ()

Get value as a boolean

public abstract byte[] getByteArrayValue ()

Get the raw byte[] value

public abstract ByteBuffer getByteBufferValue ()

Get the raw ByteBuffer value

public abstract Date getDateValue ()

Get the value as a date object

public abstract double getDoubleValue ()

Return value as a double

public abstract int getIntegerValue ()

Return value as an integer

public abstract long getLongValue ()

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

public abstract C getName ()

Column or super column name

public abstract ByteBuffer getRawName ()

Return the raw byet buffer for the column name

public abstract String getStringValue ()

Return value as a string

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

This method is deprecated.
Super columns should be replaced with composite columns

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 abstract long getTimestamp ()

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

public abstract int getTtl ()

Get the TTL for this column.

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

public abstract UUID getUUIDValue ()

Get the value as a UUID

public abstract V getValue (Serializer<V> valSer)

Return the value@return

public abstract boolean hasValue ()

public abstract boolean isParentColumn ()

This method is deprecated.
Super columns should be replaced with composite columns

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