@Deprecated public class GzipBridgeSerializationDelegate extends Object implements SerializationDelegate
Always writes gzip out, but tests incoming to see if it’s gzipped. If it is, deserializes with gzip. If not, uses DefaultSerializationDelegate to deserialize. Any logic needing to be enabled via prepare(java.util.Map) is passed through to both delegates.
| Constructor and Description |
|---|
GzipBridgeSerializationDelegate()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(byte[] bytes,
Class<T> clazz)
Deprecated.
|
void |
prepare(Map stormConf)
Deprecated.
Lifecycle step that will be called after instantiating with nullary constructor.
|
byte[] |
serialize(Object object)
Deprecated.
|
public GzipBridgeSerializationDelegate()
public void prepare(Map stormConf)
SerializationDelegateLifecycle step that will be called after instantiating with nullary constructor.
prepare in interface SerializationDelegatepublic byte[] serialize(Object object)
serialize in interface SerializationDelegatepublic <T> T deserialize(byte[] bytes,
Class<T> clazz)
deserialize in interface SerializationDelegateCopyright © 2019 The Apache Software Foundation. All Rights Reserved.