This project has retired. For details please refer to its Attic page.
Utf8Serializer (Apache Gora 0.2.1 API)

org.apache.gora.cassandra.serializers
Class Utf8Serializer

java.lang.Object
  extended by me.prettyprint.cassandra.serializers.AbstractSerializer<org.apache.avro.util.Utf8>
      extended by org.apache.gora.cassandra.serializers.Utf8Serializer
All Implemented Interfaces:
me.prettyprint.hector.api.Serializer<org.apache.avro.util.Utf8>

public final class Utf8Serializer
extends me.prettyprint.cassandra.serializers.AbstractSerializer<org.apache.avro.util.Utf8>

A Utf8Serializer translates the byte[] to and from Utf8 object of Avro.


Constructor Summary
Utf8Serializer()
           
 
Method Summary
 org.apache.avro.util.Utf8 fromByteBuffer(ByteBuffer byteBuffer)
           
static Utf8Serializer get()
           
 me.prettyprint.hector.api.ddl.ComparatorType getComparatorType()
           
 ByteBuffer toByteBuffer(org.apache.avro.util.Utf8 obj)
           
 
Methods inherited from class me.prettyprint.cassandra.serializers.AbstractSerializer
computeInitialHashSize, fromBytes, fromBytesList, fromBytesMap, fromBytesSet, toBytes, toBytesList, toBytesMap, toBytesSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utf8Serializer

public Utf8Serializer()
Method Detail

get

public static Utf8Serializer get()

toByteBuffer

public ByteBuffer toByteBuffer(org.apache.avro.util.Utf8 obj)
Specified by:
toByteBuffer in interface me.prettyprint.hector.api.Serializer<org.apache.avro.util.Utf8>
Specified by:
toByteBuffer in class me.prettyprint.cassandra.serializers.AbstractSerializer<org.apache.avro.util.Utf8>

fromByteBuffer

public org.apache.avro.util.Utf8 fromByteBuffer(ByteBuffer byteBuffer)
Specified by:
fromByteBuffer in interface me.prettyprint.hector.api.Serializer<org.apache.avro.util.Utf8>
Specified by:
fromByteBuffer in class me.prettyprint.cassandra.serializers.AbstractSerializer<org.apache.avro.util.Utf8>

getComparatorType

public me.prettyprint.hector.api.ddl.ComparatorType getComparatorType()
Specified by:
getComparatorType in interface me.prettyprint.hector.api.Serializer<org.apache.avro.util.Utf8>
Overrides:
getComparatorType in class me.prettyprint.cassandra.serializers.AbstractSerializer<org.apache.avro.util.Utf8>


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