GigaSpaces XAP 9.7.2 API

org.openspaces.persistency.cassandra.meta.mapping
Class DefaultSpaceDocumentColumnFamilyMapper

java.lang.Object
  extended by org.openspaces.persistency.cassandra.meta.mapping.DefaultSpaceDocumentColumnFamilyMapper
All Implemented Interfaces:
SpaceDocumentColumnFamilyMapper

public class DefaultSpaceDocumentColumnFamilyMapper
extends Object
implements SpaceDocumentColumnFamilyMapper

The default SpaceDocumentColumnFamilyMapper implementation.

Since:
9.1.1
Author:
Dan Kilman

Constructor Summary
DefaultSpaceDocumentColumnFamilyMapper(PropertyValueSerializer fixedPropertyValueSerializer, PropertyValueSerializer dynamicPropertyValueSerializer)
           
DefaultSpaceDocumentColumnFamilyMapper(PropertyValueSerializer fixedPropertyValueSerializer, PropertyValueSerializer dynamicPropertyValueSerializer, FlattenedPropertiesFilter flattenePropertiesFilter, ColumnFamilyNameConverter columnFamilyNameConverter)
           
 
Method Summary
 TypeNodeIntrospector getTypeNodeIntrospector()
           
 ColumnFamilyMetadata toColumnFamilyMetadata(SpaceTypeDescriptor typeDescriptor)
           
 ColumnFamilyRow toColumnFamilyRow(ColumnFamilyMetadata metadata, SpaceDocument document, ColumnFamilyRow.ColumnFamilyRowType type, boolean useDynamicPropertySerializerForDynamicColumns)
           
 SpaceDocument toDocument(ColumnFamilyRow columnFamilyRow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSpaceDocumentColumnFamilyMapper

public DefaultSpaceDocumentColumnFamilyMapper(PropertyValueSerializer fixedPropertyValueSerializer,
                                              PropertyValueSerializer dynamicPropertyValueSerializer,
                                              FlattenedPropertiesFilter flattenePropertiesFilter,
                                              ColumnFamilyNameConverter columnFamilyNameConverter)

DefaultSpaceDocumentColumnFamilyMapper

public DefaultSpaceDocumentColumnFamilyMapper(PropertyValueSerializer fixedPropertyValueSerializer,
                                              PropertyValueSerializer dynamicPropertyValueSerializer)
Method Detail

toColumnFamilyMetadata

public ColumnFamilyMetadata toColumnFamilyMetadata(SpaceTypeDescriptor typeDescriptor)
Specified by:
toColumnFamilyMetadata in interface SpaceDocumentColumnFamilyMapper
Parameters:
typeDescriptor - The type descriptor to convert.
Returns:
A ColumnFamilyMetadata matching the provided typeDescriptor

toDocument

public SpaceDocument toDocument(ColumnFamilyRow columnFamilyRow)
Specified by:
toDocument in interface SpaceDocumentColumnFamilyMapper
Parameters:
columnFamilyRow - The column family row to convert.
Returns:
A SpaceDocument matching the column family row data columns.

toColumnFamilyRow

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

getTypeNodeIntrospector

public TypeNodeIntrospector getTypeNodeIntrospector()
Specified by:
getTypeNodeIntrospector in interface SpaceDocumentColumnFamilyMapper
Returns:
the introspector used during type introspection/batch opertaions/queries.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.