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