ByteArrayCoder (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1

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

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Dataflow
Need help? Visit our support page.