GigaSpaces XAP 9.7.2 API

org.openspaces.persistency.cassandra.meta.types
Class CustomTypeInferringSerializer<T>

java.lang.Object
  extended by 
      extended by org.openspaces.persistency.cassandra.meta.types.CustomTypeInferringSerializer<T>

public class CustomTypeInferringSerializer<T>
extends

Variation on hector's type inferring serializer to also include support for big decimal type, float type and double type, to avoid possible NullPointerException and to use the map based SerializerProvider instead of hectors SerializerTypeInferer.

Since:
9.1.1
Author:
Dan Kilman

Constructor Summary
CustomTypeInferringSerializer()
           
 
Method Summary
 T fromByteBuffer(ByteBuffer byteBuffer)
           
static
<T> CustomTypeInferringSerializer<T>
get()
           
 ByteBuffer toByteBuffer(T obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomTypeInferringSerializer

public CustomTypeInferringSerializer()
Method Detail

get

public static <T> CustomTypeInferringSerializer<T> get()

toByteBuffer

public ByteBuffer toByteBuffer(T obj)

fromByteBuffer

public T fromByteBuffer(ByteBuffer byteBuffer)

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.