Class DIOShortSerde
java.lang.Object
com.espertech.esper.common.internal.serde.serdeset.builtin.DIOShortSerde
- All Implemented Interfaces:
DataInputOutputSerde<Short>
Binding for non-null short values.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionRead an object from the stream.void
write
(Short object, DataOutput stream) void
write
(Short object, DataOutput output, byte[] pageFullKey, EventBeanCollatedWriter writer) Write an object to the stream.
-
Field Details
-
EPTYPE
-
INSTANCE
-
-
Method Details
-
write
public void write(Short 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<Short>
- 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
-
write
- Throws:
IOException
-
read
Description copied from interface:DataInputOutputSerde
Read an object from the stream.- Specified by:
read
in interfaceDataInputOutputSerde<Short>
- 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
-
read
- Throws:
IOException
-