public final class FloatSerializer extends SerializerSingleton<Float>
Float
(and float
, via auto-boxing).Modifier and Type | Field and Description |
---|---|
static FloatSerializer |
INSTANCE
Sharable instance of the IntSerializer.
|
Constructor and Description |
---|
FloatSerializer() |
Modifier and Type | Method and Description |
---|---|
Float |
copy(Float from)
Creates a deep copy of the given element in a new element.
|
Float |
deserialize(DataInputView source)
De-serializes a record from the given source input view.
|
Float |
deserializeFromString(String s)
De-serializes a record from string.
|
void |
serialize(Float record,
DataOutputView target)
Serializes the given record to the given target output view.
|
String |
serializeToString(Float record)
Serializes the given record to string.
|
duplicate, equals, hashCode
public static final FloatSerializer INSTANCE
public Float copy(Float from)
Serializer
from
- The element reuse be copied.public void serialize(Float record, DataOutputView target) throws IOException
Serializer
record
- The record to serialize.target
- The output view to write the serialized data to.IOException
- Thrown, if the serialization encountered an I/O related error. Typically
raised by the output view, which may have an underlying I/O channel to which it
delegates.public Float deserialize(DataInputView source) throws IOException
Serializer
source
- The input view from which to read the data.IOException
- Thrown, if the de-serialization encountered an I/O related error.
Typically raised by the input view, which may have an underlying I/O channel from which
it reads.public String serializeToString(Float record)
Serializer
record
- The record to serialize.public Float deserializeFromString(String s)
Serializer
s
- The string to de-serialize.Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.