GigaSpaces XAP 10.0.1 API

org.openspaces.persistency.cassandra.meta.mapping
Interface SpaceDocumentColumnFamilyMapper

All Known Implementing Classes:
DefaultSpaceDocumentColumnFamilyMapper

public interface SpaceDocumentColumnFamilyMapper

An interface for mapping types to column families and for mapping space documents to column family rows.

Since:
9.1.1
Author:
Dan Kilman

Method Summary
 TypeNodeIntrospector getTypeNodeIntrospector()
           
 ColumnFamilyMetadata toColumnFamilyMetadata(SpaceTypeDescriptor typeDescriptor)
           
 ColumnFamilyRow toColumnFamilyRow(ColumnFamilyMetadata metadata, SpaceDocument document, ColumnFamilyRow.ColumnFamilyRowType rowType, boolean useDynamicPropertySerializerForDynamicColumns)
           
 SpaceDocument toDocument(ColumnFamilyRow columnFamilyRow)
           
 

Method Detail

toColumnFamilyMetadata

ColumnFamilyMetadata toColumnFamilyMetadata(SpaceTypeDescriptor typeDescriptor)
Parameters:
typeDescriptor - The type descriptor to convert.
Returns:
A ColumnFamilyMetadata matching the provided typeDescriptor

toDocument

SpaceDocument toDocument(ColumnFamilyRow columnFamilyRow)
Parameters:
columnFamilyRow - The column family row to convert.
Returns:
A SpaceDocument matching the column family row data columns.

toColumnFamilyRow

ColumnFamilyRow toColumnFamilyRow(ColumnFamilyMetadata metadata,
                                  SpaceDocument document,
                                  ColumnFamilyRow.ColumnFamilyRowType rowType,
                                  boolean useDynamicPropertySerializerForDynamicColumns)
Parameters:
metadata - The metadata corresponding the the converted document's type name.
document - The document typ convert.
rowType - The row type.
useDynamicPropertySerializerForDynamicColumns -
Returns:
A ColumnFamilyRow matching the provided docment.

getTypeNodeIntrospector

TypeNodeIntrospector getTypeNodeIntrospector()
Returns:
the introspector used during type introspection/batch opertaions/queries.

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.