org.openspaces.persistency.cassandra.meta.mapping.node
Class SpaceDocumentTopLevelTypeNode
java.lang.Object
org.openspaces.persistency.cassandra.meta.mapping.node.AbstractCompoundTypeNode
org.openspaces.persistency.cassandra.meta.mapping.node.SpaceDocumentTypeNode
org.openspaces.persistency.cassandra.meta.mapping.node.SpaceDocumentTopLevelTypeNode
- All Implemented Interfaces:
- Externalizable, Serializable, CompoundTypeNode, ExternalizableTypeNode, TopLevelTypeNode, TypeNode
public class SpaceDocumentTopLevelTypeNode
- extends SpaceDocumentTypeNode
- implements TopLevelTypeNode
A SpaceDocument
based implementation of TopLevelTypeNode
.
- Since:
- 9.1.1
- Author:
- Dan Kilman
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIAL_VER
public static final byte SERIAL_VER
- See Also:
- Constant Field Values
SpaceDocumentTopLevelTypeNode
public SpaceDocumentTopLevelTypeNode()
SpaceDocumentTopLevelTypeNode
public SpaceDocumentTopLevelTypeNode(String typeName,
String keyName,
Class<?> keyType,
Map<String,TypeNode> initialChildren,
TypeNodeContext context)
getKeyName
public String getKeyName()
- Specified by:
getKeyName
in interface TopLevelTypeNode
- Returns:
- The key name to be used in Cassandra for this type
(in space terminology: the type id property name).
getKeyType
public Class<?> getKeyType()
- Specified by:
getKeyType
in interface TopLevelTypeNode
- Returns:
- The key type.
generateFullName
protected String generateFullName(String parentFullName,
String name)
- Overrides:
generateFullName
in class SpaceDocumentTypeNode
shouldSkipEntryWrite
protected boolean shouldSkipEntryWrite(String key,
Object value)
- Overrides:
shouldSkipEntryWrite
in class SpaceDocumentTypeNode
writePropertyToColumnFamilyRow
protected void writePropertyToColumnFamilyRow(ColumnFamilyRow row,
String propertyName,
Object propertyValue,
TypeNodeContext context)
- Overrides:
writePropertyToColumnFamilyRow
in class AbstractCompoundTypeNode
readFromColumnFamilyRow
public SpaceDocument readFromColumnFamilyRow(ColumnFamilyRow row,
TypeNodeContext context)
- Description copied from interface:
TypeNode
- Recursively read the value matching this type node property from the
ColumnFamilyRow
.
- Specified by:
readFromColumnFamilyRow
in interface TypeNode
- Overrides:
readFromColumnFamilyRow
in class SpaceDocumentTypeNode
- Parameters:
row
- The row to read from.context
- The current TypeNodeContext
.
- Returns:
- The value read from the
ColumnFamilyRow
.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Copyright © GigaSpaces.