public static class CoGbkResult.CoGbkResultCoder extends StandardCoder<CoGbkResult>
Coder.Context, Coder.NonDeterministicException| Modifier and Type | Method and Description |
|---|---|
com.google.cloud.dataflow.sdk.util.CloudObject |
asCloudObject()
Returns the
CloudObject that represents this Coder. |
CoGbkResult |
decode(java.io.InputStream inStream,
Coder.Context context)
Decodes a value of type
T from the given input stream in
the given context. |
void |
encode(CoGbkResult value,
java.io.OutputStream outStream,
Coder.Context context)
Encodes the given value of type
T onto the given output stream
in the given context. |
boolean |
equals(java.lang.Object other) |
java.util.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. |
java.util.List<? extends Coder<?>> |
getComponents()
Returns the list of
Coders that are components of this
Coder. |
boolean |
isDeterministic()
Deprecated.
|
static CoGbkResult.CoGbkResultCoder |
of(CoGbkResultSchema schema,
com.google.cloud.dataflow.sdk.transforms.join.UnionCoder unionCoder)
Returns a CoGbkResultCoder for the given schema and unionCoder.
|
static CoGbkResult.CoGbkResultCoder |
of(java.util.List<Coder<?>> components,
CoGbkResultSchema schema) |
void |
verifyDeterministic()
Throw
Coder.NonDeterministicException if the coding is not deterministic. |
getEncodedElementByteSize, hashCode, isRegisterByteSizeObserverCheap, registerByteSizeObserver, toString, verifyDeterministic, verifyDeterministicpublic static CoGbkResult.CoGbkResultCoder of(CoGbkResultSchema schema, com.google.cloud.dataflow.sdk.transforms.join.UnionCoder unionCoder)
public static CoGbkResult.CoGbkResultCoder of(java.util.List<Coder<?>> components, CoGbkResultSchema schema)
public java.util.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 java.util.List<? extends Coder<?>> getComponents()
StandardCoderCoders that are components of this
Coder. Returns an empty list if this is an AtomicCoder (or
other Coder with no components).getComponents in class StandardCoder<CoGbkResult>public com.google.cloud.dataflow.sdk.util.CloudObject asCloudObject()
CoderCloudObject that represents this Coder.asCloudObject in interface Coder<CoGbkResult>asCloudObject in class StandardCoder<CoGbkResult>public void encode(CoGbkResult value, java.io.OutputStream outStream, Coder.Context context) throws CoderException, java.io.IOException
CoderT onto the given output stream
in the given context.CoderException - if the value could not be encoded for some reasonjava.io.IOException - if writing to the OutputStream fails
for some reasonpublic CoGbkResult decode(java.io.InputStream inStream, Coder.Context context) throws CoderException, java.io.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 reasonjava.io.IOException - if reading from the InputStream fails
for some reasonpublic boolean equals(java.lang.Object other)
equals in class StandardCoder<CoGbkResult>@Deprecated public boolean isDeterministic()
Coder 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.
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.
verifyDeterministic in interface Coder<CoGbkResult>verifyDeterministic in class StandardCoder<CoGbkResult>Coder.NonDeterministicException - if this coder is not deterministic.