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> org.apache.beam.sdk.util.WindowedValue<T> |
fromByteArray(byte[] serialized,
org.apache.beam.sdk.util.WindowedValue.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> org.apache.beam.sdk.util.WindowedValue<T> fromByteArray(byte[] serialized, org.apache.beam.sdk.util.WindowedValue.WindowedValueCoder<T> coder)
T
- Type of object to be returned.serialized
- bytearray to be deserialized.coder
- Coder to deserialize with.