backtype.storm.serialization
Class GzipSerializationDelegate
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GzipSerializationDelegate
public GzipSerializationDelegate()
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.