Class Coder.Context

java.lang.Object
org.apache.beam.sdk.coders.Coder.Context
Enclosing class:
Coder<T>

@Deprecated public static class Coder.Context extends Object
Deprecated.
To implement a coder, do not use any Coder.Context. Just implement only those abstract methods which do not accept a Coder.Context and leave the default implementations for methods accepting a Coder.Context.
The context in which encoding or decoding is being done.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
    Deprecated.
    Whether the encoded or decoded value fills the remainder of the output or input (resp.) record/stream contents.
    static final Coder.Context
    Deprecated.
    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.
    static final Coder.Context
    Deprecated.
    The outer context: the value being encoded or decoded takes up the remainder of the record/stream contents.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Context(boolean isWholeStream)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
     
    int
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • OUTER

      public static final Coder.Context OUTER
      Deprecated.
      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
      Deprecated.
      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
      Deprecated.
      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 Details

    • Context

      public Context(boolean isWholeStream)
      Deprecated.
  • Method Details