Class DIOSerializableObjectSerde
java.lang.Object
com.espertech.esper.common.internal.serde.serdeset.builtin.DIOSerializableObjectSerde
- All Implemented Interfaces:
DataInputOutputSerde
Serde that serializes and de-serializes using
ObjectInputStream
and ObjectOutputStream
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final EPTypeClass
static final DIOSerializableObjectSerde
Instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
byteArrToObject
(byte[] bytes) Deserialize byte arry to object.static Object
deserializeFrom
(DataInput input) Deserialize objectstatic byte[]
objectToByteArr
(Object underlying) Serialize object to byte array.Read an object from the stream.static void
serializeTo
(Object value, DataOutput output) Serialize objectvoid
write
(Object object, DataOutput output, byte[] pageFullKey, EventBeanCollatedWriter writer) Write an object to the stream.
-
Field Details
-
EPTYPE
-
INSTANCE
Instance.
-
-
Method Details
-
write
public void write(Object object, DataOutput output, byte[] pageFullKey, EventBeanCollatedWriter writer) throws IOException Description copied from interface:DataInputOutputSerde
Write an object to the stream.- Specified by:
write
in interfaceDataInputOutputSerde
- Parameters:
object
- to write or null if this is a nullable valueoutput
- to write topageFullKey
- the page key of the page containing the object, can be null if not relevant or not providedwriter
- the writer for events, can be null if not relevant or not provided- Throws:
IOException
- for io exceptions
-
read
Description copied from interface:DataInputOutputSerde
Read an object from the stream.- Specified by:
read
in interfaceDataInputOutputSerde
- Parameters:
input
- input to readresourceKey
- the identifying key of the reader, can be null if not relevant or not provided- Returns:
- object read or null if this is a nullable value
- Throws:
IOException
- for io exceptions
-
objectToByteArr
Serialize object to byte array.- Parameters:
underlying
- to serialize- Returns:
- byte array
-
byteArrToObject
Deserialize byte arry to object.- Parameters:
bytes
- to read- Returns:
- object
-
serializeTo
Serialize object- Parameters:
value
- value to serializeoutput
- output stream- Throws:
IOException
- when a problem occurs
-
deserializeFrom
Deserialize object- Parameters:
input
- input stream- Returns:
- value
- Throws:
IOException
- when a problem occurs
-