ByteArrayCoder (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1

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


Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Dataflow