public static class CoGbkResult.CoGbkResultCoder extends StandardCoder<CoGbkResult>
Coder for CoGbkResults.Coder.Context, Coder.NonDeterministicException| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.util.CloudObject |
asCloudObject()
Returns the
CloudObject that represents this Coder. |
CoGbkResult |
decode(InputStream inStream,
Coder.Context context)
Decodes a value of type
T from the given input stream in
the given context. |
void |
encode(CoGbkResult value,
OutputStream outStream,
Coder.Context context)
Encodes the given value of type
T onto the given output stream
in the given context. |
boolean |
equals(Object object) |
List<? extends Coder<?>> |
getCoderArguments()
If this is a
Coder for a parameterized type, returns the
list of Coders being used for each of the parameters, or
returns null if this cannot be done or this is not a
parameterized type. |
List<? extends Coder<?>> |
getComponents()
|
int |
hashCode() |
static CoGbkResult.CoGbkResultCoder |
of(CoGbkResultSchema schema,
UnionCoder unionCoder)
Returns a
CoGbkResult.CoGbkResultCoder for the given schema and UnionCoder. |
static CoGbkResult.CoGbkResultCoder |
of(List<Coder<?>> components,
CoGbkResultSchema schema) |
void |
verifyDeterministic()
Throw
Coder.NonDeterministicException if the coding is not deterministic. |
consistentWithEquals, getAllowedEncodings, getEncodedElementByteSize, getEncodingId, isRegisterByteSizeObserverCheap, registerByteSizeObserver, structuralValue, toString, verifyDeterministic, verifyDeterministicpublic static CoGbkResult.CoGbkResultCoder of(CoGbkResultSchema schema, UnionCoder unionCoder)
CoGbkResult.CoGbkResultCoder for the given schema and UnionCoder.public static CoGbkResult.CoGbkResultCoder of(List<Coder<?>> components, CoGbkResultSchema schema)
public List<? extends Coder<?>> getCoderArguments()
CoderCoder for a parameterized type, returns the
list of Coders being used for each of the parameters, or
returns null if this cannot be done or this is not a
parameterized type.public List<? extends Coder<?>> getComponents()
StandardCodergetComponents in class StandardCoder<CoGbkResult>public org.apache.beam.sdk.util.CloudObject asCloudObject()
CoderCloudObject that represents this Coder.asCloudObject in interface Coder<CoGbkResult>asCloudObject in class StandardCoder<CoGbkResult>public void encode(CoGbkResult value, OutputStream outStream, Coder.Context context) throws CoderException, IOException
CoderT onto the given output stream
in the given context.CoderException - if the value could not be encoded for some reasonIOException - if writing to the OutputStream fails
for some reasonpublic CoGbkResult decode(InputStream inStream, Coder.Context context) throws CoderException, IOException
CoderT from the given input stream in
the given context. Returns the decoded value.CoderException - if the value could not be decoded for some reasonIOException - if reading from the InputStream fails
for some reasonpublic boolean equals(Object object)
StandardCoderequals in class StandardCoder<CoGbkResult>true if the two StandardCoder instances have the
same class and equal components.public int hashCode()
hashCode in class StandardCoder<CoGbkResult>public void verifyDeterministic()
throws Coder.NonDeterministicException
CoderCoder.NonDeterministicException if the coding is not deterministic.
In order for a Coder to be considered deterministic,
the following must be true:
Object.equals()
or Comparable.compareTo(), if supported) have the same
encoding.
Coder always produces a canonical encoding, which is the
same for an instance of an object even if produced on different
computers at different times.
Coder.NonDeterministicException - if this coder is not deterministic.