cascading.flow.hadoop.util
Interface ObjectSerializer
- All Known Implementing Classes:
- JavaObjectSerializer
public interface ObjectSerializer
Class ObjectSerializer is an experimental interface for allowing custom java.lang.Object subclass serialization
other than via the java.io.Serializable interface.
To use, set the OBJECT_SERIALIZER_PROPERTY
value on the flow configuration.
OBJECT_SERIALIZER_PROPERTY
static final String OBJECT_SERIALIZER_PROPERTY
- See Also:
- Constant Field Values
serialize
<T> byte[] serialize(T object,
boolean compress)
throws IOException
- Throws:
IOException
deserialize
<T> T deserialize(byte[] bytes,
Class<T> type,
boolean decompress)
throws IOException
- Throws:
IOException
accepts
<T> boolean accepts(Class<T> type)
Copyright © 2007-2013 Concurrent, Inc. All Rights Reserved.