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

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

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

Wrapper for a simple list of columns where each column has a scalar value.


Constructor Summary
ThriftColumnListImpl(java.util.List<org.apache.cassandra.thrift.Column> 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()
           
 C getNameByIndex(int idx)
           
<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

ThriftColumnListImpl

public ThriftColumnListImpl(java.util.List<org.apache.cassandra.thrift.Column> 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)

getNameByIndex

public C getNameByIndex(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()