com.datasalt.pangool.serialization
Class ProtoStuffSerialization

java.lang.Object
  extended by com.datasalt.pangool.serialization.ProtoStuffSerialization
All Implemented Interfaces:
org.apache.hadoop.io.serializer.Serialization<com.dyuproject.protostuff.Schema>

public class ProtoStuffSerialization
extends Object
implements org.apache.hadoop.io.serializer.Serialization<com.dyuproject.protostuff.Schema>


Nested Class Summary
static class ProtoStuffSerialization.ProtoStuffDeserializer<T extends com.dyuproject.protostuff.Schema>
           
static class ProtoStuffSerialization.ProtoStuffSerializer<T extends com.dyuproject.protostuff.Schema>
           
 
Constructor Summary
ProtoStuffSerialization()
           
 
Method Summary
 boolean accept(Class<?> c)
           
static void enableProtoStuffSerialization(org.apache.hadoop.conf.Configuration conf)
          Enables ProtoStuff Serialization support in Hadoop.
 org.apache.hadoop.io.serializer.Deserializer<com.dyuproject.protostuff.Schema> getDeserializer(Class<com.dyuproject.protostuff.Schema> c)
           
 org.apache.hadoop.io.serializer.Serializer<com.dyuproject.protostuff.Schema> getSerializer(Class<com.dyuproject.protostuff.Schema> c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtoStuffSerialization

public ProtoStuffSerialization()
Method Detail

accept

public boolean accept(Class<?> c)
Specified by:
accept in interface org.apache.hadoop.io.serializer.Serialization<com.dyuproject.protostuff.Schema>

getSerializer

public org.apache.hadoop.io.serializer.Serializer<com.dyuproject.protostuff.Schema> getSerializer(Class<com.dyuproject.protostuff.Schema> c)
Specified by:
getSerializer in interface org.apache.hadoop.io.serializer.Serialization<com.dyuproject.protostuff.Schema>

getDeserializer

public org.apache.hadoop.io.serializer.Deserializer<com.dyuproject.protostuff.Schema> getDeserializer(Class<com.dyuproject.protostuff.Schema> c)
Specified by:
getDeserializer in interface org.apache.hadoop.io.serializer.Serialization<com.dyuproject.protostuff.Schema>

enableProtoStuffSerialization

public static void enableProtoStuffSerialization(org.apache.hadoop.conf.Configuration conf)
Enables ProtoStuff Serialization support in Hadoop.



Copyright © –2014 Datasalt Systems S.L.. All rights reserved.