org.apache.gora.cassandra.serializers
Class GoraSerializerTypeInferer

java.lang.Object
  extended by org.apache.gora.cassandra.serializers.GoraSerializerTypeInferer

public class GoraSerializerTypeInferer
extends Object

Utility class that infers the concrete Serializer needed to turn a value into its binary representation


Field Summary
static org.slf4j.Logger LOG
           
 
Constructor Summary
GoraSerializerTypeInferer()
           
 
Method Summary
static
<T> me.prettyprint.hector.api.Serializer<T>
getSerializer(Class<?> valueClass)
           
static
<T> me.prettyprint.hector.api.Serializer<T>
getSerializer(Object value)
           
static
<T> me.prettyprint.hector.api.Serializer<T>
getSerializer(org.apache.avro.Schema.Type type)
           
static
<T> me.prettyprint.hector.api.Serializer<T>
getSerializer(org.apache.avro.Schema.Type type, Class<T> clazz)
           
static
<T> me.prettyprint.hector.api.Serializer<T>
getSerializer(org.apache.avro.Schema.Type type, org.apache.avro.Schema.Type elementType)
           
static
<T> me.prettyprint.hector.api.Serializer<T>
getSerializer(org.apache.avro.Schema schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.slf4j.Logger LOG
Constructor Detail

GoraSerializerTypeInferer

public GoraSerializerTypeInferer()
Method Detail

getSerializer

public static <T> me.prettyprint.hector.api.Serializer<T> getSerializer(Object value)

getSerializer

public static <T> me.prettyprint.hector.api.Serializer<T> getSerializer(Class<?> valueClass)

getSerializer

public static <T> me.prettyprint.hector.api.Serializer<T> getSerializer(org.apache.avro.Schema schema)

getSerializer

public static <T> me.prettyprint.hector.api.Serializer<T> getSerializer(org.apache.avro.Schema.Type type)

getSerializer

public static <T> me.prettyprint.hector.api.Serializer<T> getSerializer(org.apache.avro.Schema.Type type,
                                                                        org.apache.avro.Schema.Type elementType)

getSerializer

public static <T> me.prettyprint.hector.api.Serializer<T> getSerializer(org.apache.avro.Schema.Type type,
                                                                        Class<T> clazz)


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.