|Modifier and Type||Method and Description|
Performs a deep copy of this object into a new instance.
Copies the next serialized instance from
Performs a deep copy of this object into the
Gets the length of the data type when it is serialized, in bytes.
-1, if variable length.
void copyTo(T target)
target- Object to copy into.
This method is useful for generic user-defined functions to clone a
when storing multiple objects. With object reuse a deep copy must be created and type erasure
prevents calling new.
void copy(DataInputView source, DataOutputView target) throws IOException
This method is equivalent to calling
IOReadableWritable.write(DataOutputView) but does not require
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.