com.netflix.astyanax.thrift.model
Class ThriftColumnOrSuperColumnListImpl<C>
java.lang.Object
com.netflix.astyanax.model.AbstractColumnList<C>
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.
| 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 |
ThriftColumnOrSuperColumnListImpl
public ThriftColumnOrSuperColumnListImpl(java.util.List<org.apache.cassandra.thrift.ColumnOrSuperColumn> columns,
com.netflix.astyanax.Serializer<C> colSer)
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()