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

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

public class EmptyColumn<C>
extends Object
implements Column<C>


Constructor Summary
EmptyColumn()
           
 
Method Summary
 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.
 UUID getUUIDValue()
          Get the value as a UUID
<V> V
getValue(Serializer<V> valSer)
          Return the value
 boolean isParentColumn()
          Returns true if the column contains a list of child columns, otherwise the column contains a value.
 
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

getName

public C getName()
Description copied from interface: Column
Column or super column name

Specified by:
getName in interface Column<C>
Returns:

getValue

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

Specified by:
getValue in interface Column<C>
Type Parameters:
V - value type
Returns:

getStringValue

public String getStringValue()
Description copied from interface: Column
Return value as a string

Specified by:
getStringValue in interface Column<C>
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>
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>
Returns:

getIntegerValue

public int getIntegerValue()
Description copied from interface: Column
Return value as an integer

Specified by:
getIntegerValue in interface Column<C>
Returns:

getLongValue

public long getLongValue()
Description copied from interface: Column
Return value as a long. Use this to get the value of a counter column

Specified by:
getLongValue in interface Column<C>
Returns:

getByteArrayValue

public byte[] getByteArrayValue()
Description copied from interface: Column
Get the raw byte[] value

Specified by:
getByteArrayValue in interface Column<C>
Returns:

getBooleanValue

public boolean getBooleanValue()
Description copied from interface: Column
Get value as a boolean

Specified by:
getBooleanValue in interface Column<C>
Returns:

getByteBufferValue

public ByteBuffer getByteBufferValue()
Description copied from interface: Column
Get the raw ByteBuffer value

Specified by:
getByteBufferValue in interface Column<C>
Returns:

getDateValue

public Date getDateValue()
Description copied from interface: Column
Get the value as a date object

Specified by:
getDateValue in interface Column<C>
Returns:

getUUIDValue

public UUID getUUIDValue()
Description copied from interface: Column
Get the value as a UUID

Specified by:
getUUIDValue in interface Column<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.

Specified by:
getTimestamp in interface Column<C>
Returns:

getDoubleValue

public double getDoubleValue()
Description copied from interface: Column
Return value as a double

Specified by:
getDoubleValue in interface Column<C>
Returns:

getRawName

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

Specified by:
getRawName in interface Column<C>
Returns:


Copyright © 2012. All Rights Reserved.