Coder.Context (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 Coder.Context

  • Enclosing interface:
    Coder<T>


    public static class Coder.Context
    extends Object
    The context in which encoding or decoding is being done.
    • Field Detail

      • OUTER

        public static final Coder.Context OUTER
        The outer context: the value being encoded or decoded takes up the remainder of the record/stream contents.
      • NESTED

        public static final Coder.Context NESTED
        The nested context: the value being encoded or decoded is (potentially) a part of a larger record/stream contents, and may have other parts encoded or decoded after it.
      • isWholeStream

        public final boolean isWholeStream
        Whether the encoded or decoded value fills the remainder of the output or input (resp.) record/stream contents. If so, then the size of the decoded value can be determined from the remaining size of the record/stream contents, and so explicit lengths aren't required.
    • Constructor Detail

      • Context

        public Context(boolean isWholeStream)


Send feedback about...

Cloud Dataflow