GigaSpaces XAP 9.5 API

org.openspaces.persistency.cassandra.meta.mapping.node
Interface TypeNode

All Known Subinterfaces:
CompoundTypeNode, ExternalizableTypeNode, TopLevelTypeNode
All Known Implementing Classes:
AbstractColumnMetadata, AbstractCompoundTypeNode, DynamicColumnMetadata, MapTypeNode, PojoTypeNode, SpaceDocumentTopLevelTypeNode, SpaceDocumentTypeNode, TypedColumnMetadata

public interface TypeNode

An interface to describe a property's metadata that is part of a type hierarcy.

Since:
9.1.1
Author:
Dan Kilman

Method Summary
 String getFullName()
           
 String getName()
           
 Class<?> getType()
           
 Object readFromColumnFamilyRow(ColumnFamilyRow row, TypeNodeContext context)
          Recursively read the value matching this type node property from the ColumnFamilyRow.
 void writeToColumnFamilyRow(Object value, ColumnFamilyRow row, TypeNodeContext context)
          Recursively write the value matching this type node and all its children to a ColumnFamilyRow instance.
 

Method Detail

getFullName

String getFullName()
Returns:
The type node full name including that path to this this type nodes matching property.

getName

String getName()
Returns:
The type node simple property name (without the path).

getType

Class<?> getType()
Returns:
The type of this type nodes matching property.

writeToColumnFamilyRow

void writeToColumnFamilyRow(Object value,
                            ColumnFamilyRow row,
                            TypeNodeContext context)
Recursively write the value matching this type node and all its children to a ColumnFamilyRow instance.

Parameters:
value - The value matching this type node.
row - The row to write the value into.
context - the current TypeNodeContext.

readFromColumnFamilyRow

Object readFromColumnFamilyRow(ColumnFamilyRow row,
                               TypeNodeContext context)
Recursively read the value matching this type node property from the ColumnFamilyRow.

Parameters:
row - The row to read from.
context - The current TypeNodeContext.
Returns:
The value read from the ColumnFamilyRow.

GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.