public class

OrderedColumnMap

extends Object
implements ColumnMap<C>
java.lang.Object
   ↳ com.netflix.astyanax.model.OrderedColumnMap<C>

Summary

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

Public Constructors

public OrderedColumnMap ()

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

Public Methods

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

Add a single column to the collection

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

Add a set of columns to the collection

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

Return the underlying map

public Column<C> get (C columnName)

Queries column by name

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

public Boolean getBoolean (C columnName, Boolean defaultValue)

Get value as a boolean

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

Get the raw byte[] value

public ByteBuffer getByteBuffer (C columnName, ByteBuffer defaultValue)

Get the raw ByteBuffer value

public Date getDate (C columnName, Date defaultValue)

Get the value as a date object

public Double getDouble (C columnName, Double defaultValue)

Return value as a double

public Integer getInteger (C columnName, Integer defaultValue)

Return value as an integer

public Long getLong (C columnName, Long defaultValue)

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

public String getString (C columnName, String defaultValue)

Return value as a string

public UUID getUUID (C columnName, UUID defaultValue)

Get the value as a UUID

public boolean isEmpty ()

Indicates if the list of columns is empty

public Iterator<Column<C>> iterator ()

public int size ()

returns the number of columns in the row