public interface

ColumnList

implements Iterable<T>
com.netflix.astyanax.model.ColumnList<C>
Known Indirect Subclasses

Class Overview

Interface to a list of columns.

Summary

Public Methods
abstract Boolean getBooleanValue(C columnName, Boolean defaultValue)
Get value as a boolean
abstract byte[] getByteArrayValue(C columnName, byte[] defaultValue)
Get the raw byte[] value
abstract ByteBuffer getByteBufferValue(C columnName, ByteBuffer defaultValue)
Get the raw ByteBuffer value
abstract Column<C> getColumnByIndex(int idx)
Queries column by index@return
abstract Column<C> getColumnByName(C columnName)
Queries column by name
abstract Collection<C> getColumnNames()
Return the column names
abstract Date getDateValue(C columnName, Date defaultValue)
Get the value as a date object
abstract Double getDoubleValue(C columnName, Double defaultValue)
Return value as a double
abstract Integer getIntegerValue(C columnName, Integer defaultValue)
Return value as an integer
abstract Long getLongValue(C columnName, Long defaultValue)
Return value as a long.
abstract String getStringValue(C columnName, String defaultValue)
Return value as a string
abstract <C2> Column<C2> getSuperColumn(int idx, Serializer<C2> colSer)
This method is deprecated. Super columns should be replaced with composite columns
abstract <C2> Column<C2> getSuperColumn(C columnName, Serializer<C2> colSer)
This method is deprecated. Super columns should be replaced with composite columns
abstract UUID getUUIDValue(C columnName, UUID defaultValue)
Get the value as a UUID
abstract <T> T getValue(C columnName, Serializer<T> serializer, T defaultValue)
Get a value with optional default using a specified serializer
abstract boolean isEmpty()
Indicates if the list of columns is empty
abstract boolean isSuperColumn()
This method is deprecated. Super columns should be replaced with composite columns
abstract int size()
returns the number of columns in the row
[Expand]
Inherited Methods
From interface java.lang.Iterable

Public Methods

public abstract Boolean getBooleanValue (C columnName, Boolean defaultValue)

Get value as a boolean

public abstract byte[] getByteArrayValue (C columnName, byte[] defaultValue)

Get the raw byte[] value

public abstract ByteBuffer getByteBufferValue (C columnName, ByteBuffer defaultValue)

Get the raw ByteBuffer value

public abstract Column<C> getColumnByIndex (int idx)

Queries column by index@return

public abstract Column<C> getColumnByName (C columnName)

Queries column by name

Returns
  • an instance of a column or null if not found
Throws
Exception

public abstract Collection<C> getColumnNames ()

Return the column names

public abstract Date getDateValue (C columnName, Date defaultValue)

Get the value as a date object

public abstract Double getDoubleValue (C columnName, Double defaultValue)

Return value as a double

public abstract Integer getIntegerValue (C columnName, Integer defaultValue)

Return value as an integer

public abstract Long getLongValue (C columnName, Long defaultValue)

Return value as a long. Use this to get the value of a counter column

public abstract String getStringValue (C columnName, String defaultValue)

Return value as a string

public abstract Column<C2> getSuperColumn (int idx, Serializer<C2> colSer)

This method is deprecated.
Super columns should be replaced with composite columns

Get super column by index@return

Throws
NetflixCassandraException

public abstract Column<C2> getSuperColumn (C columnName, Serializer<C2> colSer)

This method is deprecated.
Super columns should be replaced with composite columns

Return the super column with the specified name@return

Throws
NetflixCassandraException

public abstract UUID getUUIDValue (C columnName, UUID defaultValue)

Get the value as a UUID

public abstract T getValue (C columnName, Serializer<T> serializer, T defaultValue)

Get a value with optional default using a specified serializer

public abstract boolean isEmpty ()

Indicates if the list of columns is empty

public abstract boolean isSuperColumn ()

This method is 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.@return

public abstract int size ()

returns the number of columns in the row