public interface

ColumnMap

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

Summary

Public Methods
abstract OrderedColumnMap<C> add(Column<C> column)
Add a single column to the collection
abstract OrderedColumnMap<C> addAll(Collection<Column<C>> columns)
Add a set of columns to the collection
abstract Map<C, Column<C>> asMap()
Return the underlying map
abstract Column<C> get(C columnName)
Queries column by name
abstract Boolean getBoolean(C columnName, Boolean defaultValue)
Get value as a boolean
abstract byte[] getByteArray(C columnName, byte[] defaultValue)
Get the raw byte[] value
abstract ByteBuffer getByteBuffer(C columnName, ByteBuffer defaultValue)
Get the raw ByteBuffer value
abstract Date getDate(C columnName, Date defaultValue)
Get the value as a date object
abstract Double getDouble(C columnName, Double defaultValue)
Return value as a double
abstract Integer getInteger(C columnName, Integer defaultValue)
Return value as an integer
abstract Long getLong(C columnName, Long defaultValue)
Return value as a long.
abstract String getString(C columnName, String defaultValue)
Return value as a string
abstract UUID getUUID(C columnName, UUID defaultValue)
Get the value as a UUID
abstract boolean isEmpty()
Indicates if the list of columns is empty
abstract int size()
returns the number of columns in the row
[Expand]
Inherited Methods
From interface java.lang.Iterable

Public Methods

public abstract OrderedColumnMap<C> add (Column<C> column)

Add a single column to the collection

public abstract OrderedColumnMap<C> addAll (Collection<Column<C>> columns)

Add a set of columns to the collection

public abstract Map<C, Column<C>> asMap ()

Return the underlying map

public abstract Column<C> get (C columnName)

Queries column by name

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

public abstract Boolean getBoolean (C columnName, Boolean defaultValue)

Get value as a boolean

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

Get the raw byte[] value

public abstract ByteBuffer getByteBuffer (C columnName, ByteBuffer defaultValue)

Get the raw ByteBuffer value

public abstract Date getDate (C columnName, Date defaultValue)

Get the value as a date object

public abstract Double getDouble (C columnName, Double defaultValue)

Return value as a double

public abstract Integer getInteger (C columnName, Integer defaultValue)

Return value as an integer

public abstract Long getLong (C columnName, Long defaultValue)

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

public abstract String getString (C columnName, String defaultValue)

Return value as a string

public abstract UUID getUUID (C columnName, UUID defaultValue)

Get the value as a UUID

public abstract boolean isEmpty ()

Indicates if the list of columns is empty

public abstract int size ()

returns the number of columns in the row