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

Cette page vous a-t-elle été utile ? Évaluez-la :

Envoyer des commentaires concernant…

Besoin d'aide ? Consultez notre page d'assistance.