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

java.lang.Object
  extended by com.netflix.astyanax.model.AbstractColumnList<C>
      extended by com.netflix.astyanax.shallows.EmptyColumnList<C>
All Implemented Interfaces:
ColumnList<C>, java.lang.Iterable<Column<C>>

public class EmptyColumnList<C>
extends AbstractColumnList<C>


Constructor Summary
EmptyColumnList()
           
 
Method Summary
 Column<C> getColumnByIndex(int idx)
          Queries column by index
 Column<C> getColumnByName(C columnName)
          Queries column by name
 java.util.Collection<C> getColumnNames()
          Return the column names
<C2> Column<C2>
getSuperColumn(C columnName, Serializer<C2> colSer)
          Return the super column with the specified name
<C2> Column<C2>
getSuperColumn(int idx, Serializer<C2> colSer)
          Get super column by index
 boolean isEmpty()
          Indicates if the list of columns is empty
 boolean isSuperColumn()
          Returns true if the columns are super columns with subcolumns.
 java.util.Iterator<Column<C>> iterator()
           
 int size()
          returns the number of columns in the row
 
Methods inherited from class com.netflix.astyanax.model.AbstractColumnList
getBooleanValue, getByteArrayValue, getByteBufferValue, getCompressedStringValue, getDateValue, getDoubleValue, getIntegerValue, getLongValue, getStringValue, getUUIDValue, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyColumnList

public EmptyColumnList()
Method Detail

iterator

public java.util.Iterator<Column<C>> iterator()

getColumnByName

public Column<C> getColumnByName(C columnName)
Description copied from interface: ColumnList
Queries column by name

Returns:
an instance of a column or null if not found

getColumnByIndex

public Column<C> getColumnByIndex(int idx)
Description copied from interface: ColumnList
Queries column by index

Returns:

getSuperColumn

public <C2> Column<C2> getSuperColumn(C columnName,
                                      Serializer<C2> colSer)
Description copied from interface: ColumnList
Return the super column with the specified name

Returns:

getSuperColumn

public <C2> Column<C2> getSuperColumn(int idx,
                                      Serializer<C2> colSer)
Description copied from interface: ColumnList
Get super column by index

Returns:

isEmpty

public boolean isEmpty()
Description copied from interface: ColumnList
Indicates if the list of columns is empty

Returns:

size

public int size()
Description copied from interface: ColumnList
returns the number of columns in the row

Returns:

isSuperColumn

public boolean isSuperColumn()
Description copied from interface: ColumnList
Returns true if the columns are super columns with subcolumns. If true then use getSuperColumn to call children. Otherwise call getColumnByIndex and getColumnByName to get the standard columns in the list.

Returns:

getColumnNames

public java.util.Collection<C> getColumnNames()
Description copied from interface: ColumnList
Return the column names