com.netflix.astyanax.shallows
Class EmptyColumn<C>

java.lang.Object
  extended by com.netflix.astyanax.model.AbstractColumnImpl<C>
      extended by com.netflix.astyanax.shallows.EmptyColumn<C>
All Implemented Interfaces:
Column<C>

public class EmptyColumn<C>
extends AbstractColumnImpl<C>


Constructor Summary
EmptyColumn()
           
 
Method Summary
 java.nio.ByteBuffer getRawName()
          Return the raw byet buffer for the column name
<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.
<V> V
getValue(Serializer<V> valSer)
          Return the value
 boolean hasValue()
          Determine whether the column has a value.
 boolean isParentColumn()
          Returns true if the column contains a list of child columns, otherwise the column contains a value.
 
Methods inherited from class com.netflix.astyanax.model.AbstractColumnImpl
getBooleanValue, getByteArrayValue, getByteBufferValue, getByteValue, getCompressedStringValue, getDateValue, getDoubleValue, getFloatValue, getIntegerValue, getLongValue, getName, getShortValue, getStringValue, getUUIDValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyColumn

public EmptyColumn()
Method Detail

getValue

public <V> V getValue(Serializer<V> valSer)
Description copied from interface: Column
Return the value

Type Parameters:
V - value type
Returns:

getSubColumns

public <C2> ColumnList<C2> getSubColumns(Serializer<C2> ser)
Description copied from interface: Column
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

Specified by:
getSubColumns in interface Column<C>
Overrides:
getSubColumns in class AbstractColumnImpl<C>
Type Parameters:
C2 - Type of column names for sub columns
Returns:

isParentColumn

public boolean isParentColumn()
Description copied from interface: Column
Returns true if the column contains a list of child columns, otherwise the column contains a value.

Specified by:
isParentColumn in interface Column<C>
Overrides:
isParentColumn in class AbstractColumnImpl<C>
Returns:

getTimestamp

public long getTimestamp()
Description copied from interface: Column
Returns the column timestamp. Not to be confused with column values that happen to be time values.

Returns:

getRawName

public java.nio.ByteBuffer getRawName()
Description copied from interface: Column
Return the raw byet buffer for the column name

Returns:

getTtl

public int getTtl()
Description copied from interface: Column
Get the TTL for this column.

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

hasValue

public boolean hasValue()
Description copied from interface: Column
Determine whether the column has a value.

Returns:
True if column has a value or false if value is null or an empty byte array.