public class UnitSerializer extends TypeSerializerSingleton<scala.runtime.BoxedUnit>
Constructor and Description |
---|
UnitSerializer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canEqual(Object obj)
Returns true if the given object can be equaled with this object.
|
void |
copy(scala.runtime.BoxedUnit from) |
void |
copy(scala.runtime.BoxedUnit from,
scala.runtime.BoxedUnit reuse) |
void |
copy(DataInputView source,
DataOutputView target)
Copies exactly one record from the source input view to the target output view.
|
void |
createInstance() |
void |
deserialize(scala.runtime.BoxedUnit reuse,
DataInputView source) |
void |
deserialize(DataInputView source) |
int |
getLength()
Gets the length of the data type, if it is a fix length data type.
|
int |
hashCode() |
boolean |
isImmutableType()
Gets whether the type is an immutable type.
|
void |
serialize(scala.runtime.BoxedUnit record,
DataOutputView target)
Serializes the given record to the given target output view.
|
duplicate, ensureCompatibility, equals, isCompatibleSerializationFormatIdentifier, snapshotConfiguration
public boolean isImmutableType()
TypeSerializer
isImmutableType
in class TypeSerializer<scala.runtime.BoxedUnit>
public void createInstance()
public void copy(scala.runtime.BoxedUnit from)
public void copy(scala.runtime.BoxedUnit from, scala.runtime.BoxedUnit reuse)
public int getLength()
TypeSerializer
getLength
in class TypeSerializer<scala.runtime.BoxedUnit>
-1
for variable length data types.public void serialize(scala.runtime.BoxedUnit record, DataOutputView target)
TypeSerializer
serialize
in class TypeSerializer<scala.runtime.BoxedUnit>
record
- The record to serialize.target
- The output view to write the serialized data to.public void deserialize(DataInputView source)
public void deserialize(scala.runtime.BoxedUnit reuse, DataInputView source)
public void copy(DataInputView source, DataOutputView target)
TypeSerializer
target.write(source, 8);
.copy
in class TypeSerializer<scala.runtime.BoxedUnit>
source
- The input view from which to read the record.target
- The target output view to which to write the record.public int hashCode()
hashCode
in class TypeSerializerSingleton<scala.runtime.BoxedUnit>
public boolean canEqual(Object obj)
TypeSerializer
canEqual
in class TypeSerializer<scala.runtime.BoxedUnit>
obj
- Object which wants to take part in the equality relationCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.