backtype.storm.serialization
Class GzipSerializationDelegate

java.lang.Object
  extended by backtype.storm.serialization.GzipSerializationDelegate
All Implemented Interfaces:
SerializationDelegate

public class GzipSerializationDelegate
extends Object
implements SerializationDelegate

Note, this assumes it's deserializing a gzip byte stream, and will err if it encounters any other serialization.


Constructor Summary
GzipSerializationDelegate()
           
 
Method Summary
 Object deserialize(byte[] bytes)
           
 void prepare(Map stormConf)
          Lifecycle step that will be called after instantiating with nullary constructor.
 byte[] serialize(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GzipSerializationDelegate

public GzipSerializationDelegate()
Method Detail

prepare

public void prepare(Map stormConf)
Description copied from interface: SerializationDelegate
Lifecycle step that will be called after instantiating with nullary constructor.

Specified by:
prepare in interface SerializationDelegate

serialize

public byte[] serialize(Object object)
Specified by:
serialize in interface SerializationDelegate

deserialize

public Object deserialize(byte[] bytes)
Specified by:
deserialize in interface SerializationDelegate


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.