NullableCoder (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1

Class NullableCoder<T>

  • Type Parameters:
    T - the type of the values being transcoded
    All Implemented Interfaces:
    Coder<T>, Serializable

    public class NullableCoder<T>
    extends StandardCoder<T>
    A NullableCoder encodes nullable values of type T using a nested Coder<T> that does not tolerate null values. NullableCoder uses exactly 1 byte per entry to indicate whether the value is null, then adds the encoding of the inner coder for non-null values.
    See Also:
    Serialized Form