org.openspaces.persistency.cassandra.meta.mapping
Class DefaultSpaceDocumentColumnFamilyMapper
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSpaceDocumentColumnFamilyMapper
public DefaultSpaceDocumentColumnFamilyMapper(PropertyValueSerializer fixedPropertyValueSerializer,
PropertyValueSerializer dynamicPropertyValueSerializer,
FlattenedPropertiesFilter flattenePropertiesFilter,
ColumnFamilyNameConverter columnFamilyNameConverter)
DefaultSpaceDocumentColumnFamilyMapper
public DefaultSpaceDocumentColumnFamilyMapper(PropertyValueSerializer fixedPropertyValueSerializer,
PropertyValueSerializer dynamicPropertyValueSerializer)
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.
Copyright © GigaSpaces.