com.datasalt.pangool.serialization
Class ThriftSerialization.TDeserializerAdapter

java.lang.Object
  extended by com.datasalt.pangool.serialization.ThriftSerialization.TDeserializerAdapter
All Implemented Interfaces:
org.apache.hadoop.io.serializer.Deserializer<org.apache.thrift.TBase>
Enclosing class:
ThriftSerialization

public static class ThriftSerialization.TDeserializerAdapter
extends Object
implements org.apache.hadoop.io.serializer.Deserializer<org.apache.thrift.TBase>


Constructor Summary
ThriftSerialization.TDeserializerAdapter(Class<? extends org.apache.thrift.TBase> tClass)
           
 
Method Summary
 void close()
           
 org.apache.thrift.TBase deserialize(org.apache.thrift.TBase t)
           
 void open(InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftSerialization.TDeserializerAdapter

public ThriftSerialization.TDeserializerAdapter(Class<? extends org.apache.thrift.TBase> tClass)
Method Detail

open

public void open(InputStream in)
Specified by:
open in interface org.apache.hadoop.io.serializer.Deserializer<org.apache.thrift.TBase>

deserialize

public org.apache.thrift.TBase deserialize(org.apache.thrift.TBase t)
                                    throws IOException
Specified by:
deserialize in interface org.apache.hadoop.io.serializer.Deserializer<org.apache.thrift.TBase>
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface org.apache.hadoop.io.serializer.Deserializer<org.apache.thrift.TBase>
Throws:
IOException


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