GigaSpaces XAP 9.7.2 API

org.openspaces.persistency.cassandra.meta.data
Class ColumnFamilyRow

java.lang.Object
  extended by org.openspaces.persistency.cassandra.meta.data.ColumnFamilyRow

public class ColumnFamilyRow
extends Object

A data holder for holding the row columns and the matching column family metadata.

Since:
9.1.1
Author:
Dan Kilman

Nested Class Summary
static class ColumnFamilyRow.ColumnFamilyRowType
           
 
Constructor Summary
ColumnFamilyRow(ColumnFamilyMetadata columnFamilyMetadata, Object keyValue, ColumnFamilyRow.ColumnFamilyRowType rowType)
           
 
Method Summary
 void addColumnData(ColumnData columnData)
           
 ColumnData getColumn(String name)
           
 ColumnFamilyMetadata getColumnFamilyMetadata()
           
 Map<String,ColumnData> getColumns()
           
 List<ColumnData> getDynamicColumns()
           
 Object getKeyValue()
           
 ColumnFamilyRow.ColumnFamilyRowType getRowType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnFamilyRow

public ColumnFamilyRow(ColumnFamilyMetadata columnFamilyMetadata,
                       Object keyValue,
                       ColumnFamilyRow.ColumnFamilyRowType rowType)
Method Detail

addColumnData

public void addColumnData(ColumnData columnData)
Parameters:
columnData - Add the column data to this row instance.

getColumn

public ColumnData getColumn(String name)
Parameters:
name - The column name.
Returns:
the ColumnData matching this name, null if not found.

getDynamicColumns

public List<ColumnData> getDynamicColumns()
Returns:
The dynamic columns that are part of this row. when getRowType() == Read, the columns are sorted by column name.

getColumns

public Map<String,ColumnData> getColumns()
Returns:
The columns that are part of this row.

getColumnFamilyMetadata

public ColumnFamilyMetadata getColumnFamilyMetadata()
Returns:
The matching column family metadata for this row.

getKeyValue

public Object getKeyValue()
Returns:
The key value of this row.

toString

public String toString()
Overrides:
toString in class Object

getRowType

public ColumnFamilyRow.ColumnFamilyRowType getRowType()
Returns:
The row type.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.