Package org.apache.beam.sdk.coders
Class Coder.Context
java.lang.Object
org.apache.beam.sdk.coders.Coder.Context
Deprecated.
The context in which encoding or decoding is being done.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal 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 -
Method Summary
-
Field Details
-
OUTER
Deprecated.The outer context: the value being encoded or decoded takes up the remainder of the record/stream contents. -
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 isWholeStreamDeprecated.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
Coder.Context
. Just implement only those abstract methods which do not accept aCoder.Context
and leave the default implementations for methods accepting aCoder.Context
.