GigaSpaces XAP 9.7.2 API

org.openspaces.persistency.cassandra.meta
Class TypedColumnMetadata

java.lang.Object
  extended by org.openspaces.persistency.cassandra.meta.AbstractColumnMetadata
      extended by org.openspaces.persistency.cassandra.meta.TypedColumnMetadata
All Implemented Interfaces:
Externalizable, Serializable, ColumnMetadata, ExternalizableTypeNode, TypeNode

public class TypedColumnMetadata
extends AbstractColumnMetadata
implements ExternalizableTypeNode

A TypeNode implementations for representing a typed column. I.e. its type is part of the matching static column family metadata.

Since:
9.1.1
Author:
Dan Kilman
See Also:
Serialized Form

Field Summary
static byte SERIAL_VER
           
 
Constructor Summary
TypedColumnMetadata()
           
TypedColumnMetadata(String parentFullName, String name, Class<?> type, TypeNodeContext context,  fixedPropertyValueSerializer)
           
 
Method Summary
 String getFullName()
           
 String getName()
           
<T>
getSerializer()
           
 Class<?> getType()
           
 void readExternal(ObjectInput in)
           
 void setSerializer( serializer)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.openspaces.persistency.cassandra.meta.AbstractColumnMetadata
readFromColumnFamilyRow, writeToColumnFamilyRow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openspaces.persistency.cassandra.meta.mapping.node.TypeNode
readFromColumnFamilyRow, writeToColumnFamilyRow
 

Field Detail

SERIAL_VER

public static final byte SERIAL_VER
See Also:
Constant Field Values
Constructor Detail

TypedColumnMetadata

public TypedColumnMetadata()

TypedColumnMetadata

public TypedColumnMetadata(String parentFullName,
                           String name,
                           Class<?> type,
                           TypeNodeContext context,
                            fixedPropertyValueSerializer)
Method Detail

getName

public String getName()
Specified by:
getName in interface TypeNode
Returns:
The type node simple property name (without the path).

getFullName

public String getFullName()
Specified by:
getFullName in interface ColumnMetadata
Specified by:
getFullName in interface TypeNode
Returns:
The type node full name including that path to this this type nodes matching property.

getType

public Class<?> getType()
Specified by:
getType in interface TypeNode
Returns:
The type of this type nodes matching property.

getSerializer

public <T>  getSerializer()
Specified by:
getSerializer in interface ColumnMetadata
Returns:
The serializer to convert the column value from/to ByteBuffer representation.

setSerializer

public void setSerializer( serializer)

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

toString

public String toString()
Overrides:
toString in class Object

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.