T
- The type of the value held.@Internal public class SerializedValue<T> extends Object implements Serializable
ClassNotFoundException
.
To work around that issue, the SerializedValue serialized data immediately into a byte array.
When send through RPC or another service that uses serialization, only the byte array is
transferred. The object is deserialized later (upon access) and requires the accessor to
provide the corresponding class loader.Constructor and Description |
---|
SerializedValue(T value) |
Modifier and Type | Method and Description |
---|---|
T |
deserializeValue(ClassLoader loader) |
boolean |
equals(Object obj) |
int |
getSizeOfSerializedState()
Gets the size of the serialized state.
|
int |
hashCode() |
String |
toString() |
public SerializedValue(T value) throws IOException
IOException
public T deserializeValue(ClassLoader loader) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public int getSizeOfSerializedState()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.