org.openspaces.persistency.cassandra.meta
Class TypedColumnMetadata
java.lang.Object
org.openspaces.persistency.cassandra.meta.AbstractColumnMetadata
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
SERIAL_VER
public static final byte SERIAL_VER
- See Also:
- Constant Field Values
TypedColumnMetadata
public TypedColumnMetadata()
TypedColumnMetadata
public TypedColumnMetadata(String parentFullName,
String name,
Class<?> type,
TypeNodeContext context,
fixedPropertyValueSerializer)
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
Copyright © GigaSpaces.