com.netflix.astyanax.model
Interface ColumnList<C>

Type Parameters:
C - Data type for column names
All Superinterfaces:
Iterable<Column<C>>
All Known Implementing Classes:
EmptyColumnList, ThriftColumnListImpl, ThriftColumnOrSuperColumnListImpl, ThriftCounterColumnListImpl

public interface ColumnList<C>
extends Iterable<Column<C>>

Interface to a list of columns.

Author:
elandau

Method Summary
 Column<C> getColumnByIndex(int idx)
          Queries column by index
 Column<C> getColumnByName(C columnName)
          Queries column by name
<C2> Column<C2>
getSuperColumn(C columnName, Serializer<C2> colSer)
          Deprecated. Super columns should be replaced with composite columns
<C2> Column<C2>
getSuperColumn(int idx, Serializer<C2> colSer)
          Deprecated. Super columns should be replaced with composite columns
 boolean isEmpty()
          Indicates if the list of columns is empty
 boolean isSuperColumn()
          Deprecated. Super columns should be replaced with composite columns
 int size()
          returns the number of columns in the row
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getColumnByName

Column<C> getColumnByName(C columnName)
Queries column by name

Parameters:
columnName -
Returns:
an instance of a column or null if not found
Throws:
Exception

getColumnByIndex

Column<C> getColumnByIndex(int idx)
Queries column by index

Parameters:
idx -
Returns:
Throws:
NetflixCassandraException

getSuperColumn

<C2> Column<C2> getSuperColumn(C columnName,
                               Serializer<C2> colSer)
Deprecated. Super columns should be replaced with composite columns

Return the super column with the specified name

Type Parameters:
C2 -
Parameters:
columnName -
colSer -
Returns:
Throws:
NetflixCassandraException

getSuperColumn

<C2> Column<C2> getSuperColumn(int idx,
                               Serializer<C2> colSer)
Deprecated. Super columns should be replaced with composite columns

Get super column by index

Parameters:
idx -
Returns:
Throws:
NetflixCassandraException

isEmpty

boolean isEmpty()
Indicates if the list of columns is empty

Returns:

size

int size()
returns the number of columns in the row

Returns:

isSuperColumn

boolean isSuperColumn()
Deprecated. Super columns should be replaced with composite columns

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:


Copyright © 2012. All Rights Reserved.