ByteArrayCoder (Google Cloud Dataflow SDK 1.9.0 API)

com.google.cloud.dataflow.sdk.coders

Class ByteArrayCoder

  • All Implemented Interfaces:
    Coder<byte[]>, Serializable


    public class ByteArrayCoder
    extends AtomicCoder<byte[]>
    A Coder for byte[].

    The encoding format is as follows:

    • If in a non-nested context (the byte[] is the only value in the stream), the bytes are read/written directly.
    • If in a nested context, the bytes are prefixed with the length of the array, encoded via a VarIntCoder.
    See Also:
    Serialized Form


Send feedback about...

Cloud Dataflow