public final class TranslationUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
fromByteArray(byte[] serialized,
Coder<T> coder)
Utility method for deserializing a byte array using the specified coder.
|
static <T> WindowedValue<T> |
fromByteArray(byte[] serialized,
WindowedValues.WindowedValueCoder<T> coder)
Utility method for deserializing a byte array using the specified coder.
|
public static <T> T fromByteArray(byte[] serialized, Coder<T> coder)
T
- Type of object to be returned.serialized
- bytearray to be deserialized.coder
- Coder to deserialize with.public static <T> WindowedValue<T> fromByteArray(byte[] serialized, WindowedValues.WindowedValueCoder<T> coder)
T
- Type of object to be returned.serialized
- bytearray to be deserialized.coder
- Coder to deserialize with.