com.netflix.astyanax.thrift.model
Class ThriftColumnOrSuperColumnListImpl<C>

java.lang.Object
  extended by com.netflix.astyanax.model.AbstractColumnList<C>
      extended by com.netflix.astyanax.thrift.model.ThriftColumnOrSuperColumnListImpl<C>
Type Parameters:
C -
All Implemented Interfaces:
com.netflix.astyanax.model.ColumnList<C>, java.lang.Iterable<com.netflix.astyanax.model.Column<C>>

public class ThriftColumnOrSuperColumnListImpl<C>
extends com.netflix.astyanax.model.AbstractColumnList<C>

List of columns that can be either a list of super columns or standard columns.


Constructor Summary
ThriftColumnOrSuperColumnListImpl(java.util.List<org.apache.cassandra.thrift.ColumnOrSuperColumn> columns, com.netflix.astyanax.Serializer<C> colSer)
           
 
Method Summary
 com.netflix.astyanax.model.Column<C> getColumnByIndex(int idx)
           
 com.netflix.astyanax.model.Column<C> getColumnByName(C columnName)
           
 java.util.Collection<C> getColumnNames()
           
<C2> com.netflix.astyanax.model.Column<C2>
getSuperColumn(C columnName, com.netflix.astyanax.Serializer<C2> colSer)
           
<C2> com.netflix.astyanax.model.Column<C2>
getSuperColumn(int idx, com.netflix.astyanax.Serializer<C2> colSer)
           
 boolean isEmpty()
           
 boolean isSuperColumn()
           
 java.util.Iterator<com.netflix.astyanax.model.Column<C>> iterator()
           
 int size()
           
 
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

ThriftColumnOrSuperColumnListImpl

public ThriftColumnOrSuperColumnListImpl(java.util.List<org.apache.cassandra.thrift.ColumnOrSuperColumn> columns,
                                         com.netflix.astyanax.Serializer<C> colSer)
Method Detail

iterator

public java.util.Iterator<com.netflix.astyanax.model.Column<C>> iterator()

getColumnByName

public com.netflix.astyanax.model.Column<C> getColumnByName(C columnName)

getColumnByIndex

public com.netflix.astyanax.model.Column<C> getColumnByIndex(int idx)

getSuperColumn

public <C2> com.netflix.astyanax.model.Column<C2> getSuperColumn(C columnName,
                                                                 com.netflix.astyanax.Serializer<C2> colSer)

getSuperColumn

public <C2> com.netflix.astyanax.model.Column<C2> getSuperColumn(int idx,
                                                                 com.netflix.astyanax.Serializer<C2> colSer)

isEmpty

public boolean isEmpty()

size

public int size()

isSuperColumn

public boolean isSuperColumn()

getColumnNames

public java.util.Collection<C> getColumnNames()