public class DIONullableIntegerSerde extends Object implements DataInputOutputSerde<Integer>
Modifier and Type | Field and Description |
---|---|
static EPTypeClass |
EPTYPE |
static DIONullableIntegerSerde |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Integer |
read(DataInput input) |
Integer |
read(DataInput input,
byte[] resourceKey)
Read an object from the stream.
|
void |
write(Integer object,
DataOutput stream) |
void |
write(Integer object,
DataOutput output,
byte[] pageFullKey,
EventBeanCollatedWriter writer)
Write an object to the stream.
|
public static final EPTypeClass EPTYPE
public static final DIONullableIntegerSerde INSTANCE
public void write(Integer object, DataOutput output, byte[] pageFullKey, EventBeanCollatedWriter writer) throws IOException
DataInputOutputSerde
write
in interface DataInputOutputSerde<Integer>
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 providedIOException
- for io exceptionspublic void write(Integer object, DataOutput stream) throws IOException
IOException
public Integer read(DataInput input) throws IOException
IOException
public Integer read(DataInput input, byte[] resourceKey) throws IOException
DataInputOutputSerde
read
in interface DataInputOutputSerde<Integer>
input
- input to readresourceKey
- the identifying key of the reader, can be null if not relevant or not providedIOException
- for io exceptionsCopyright © 2005–2021. All rights reserved.