T - the type of the values stored in this TypedPValuepublic abstract class TypedPValue<T> extends PValueBase implements PValue
TypedPValue<T> is the abstract base class of things that
store some number of values of type T. Because we know
the type T, this is the layer of the inheritance hierarchy where
we store a coder for objects of type T| Modifier | Constructor and Description |
|---|---|
protected |
TypedPValue() |
| Modifier and Type | Method and Description |
|---|---|
void |
finishSpecifying()
After building, finalizes this PValue to make it ready for
running.
|
Coder<T> |
getCoder()
Returns the Coder used by this TypedPValue to encode and decode
the values stored in it.
|
com.google.common.reflect.TypeToken<T> |
getTypeToken()
Returns a
TypeToken<T> with some reflective information
about T, if possible. |
void |
recordAsOutput(Pipeline pipeline,
PTransform<?,?> transform,
java.lang.String outName)
Records that this
POutputValueBase is an output with the
given name of the given PTransform in the given
Pipeline. |
TypedPValue<T> |
setCoder(Coder<T> coder)
Sets the Coder used by this TypedPValue to encode and decode the
values stored in it.
|
TypedPValue<T> |
setPipelineInternal(Pipeline pipeline)
Sets the owning
Pipeline of this PValueBase. |
TypedPValue<T> |
setTypeTokenInternal(com.google.common.reflect.TypeToken<T> typeToken)
Sets the
TypeToken<T> associated with this class. |
expand, getKindString, getName, getPipeline, isFinishedSpecifyingInternal, recordAsOutput, setName, toStringfinishSpecifyingOutput, getProducingTransformInternalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getProducingTransformInternalexpand, finishSpecifyingOutput, recordAsOutputexpand, getPipelinepublic Coder<T> getCoder()
java.lang.IllegalStateException - if the Coder hasn't been set, and
couldn't be inferredpublic TypedPValue<T> setCoder(Coder<T> coder)
this.java.lang.IllegalStateException - if this TypedPValue has already
been finalized and is no longer settable, e.g., by having
apply() called on itpublic void recordAsOutput(Pipeline pipeline, PTransform<?,?> transform, java.lang.String outName)
PValueBasePOutputValueBase is an output with the
given name of the given PTransform in the given
Pipeline.
To be invoked only by POutput.recordAsOutput(com.google.cloud.dataflow.sdk.Pipeline, com.google.cloud.dataflow.sdk.transforms.PTransform<?, ?>)
implementations. Not to be invoked directly by user code.
recordAsOutput in class PValueBasepublic TypedPValue<T> setPipelineInternal(Pipeline pipeline)
PValueBasePipeline of this PValueBase.
Returns this.
For internal use only.
setPipelineInternal in interface PValuesetPipelineInternal in class PValueBasepublic void finishSpecifying()
finishSpecifying in interface PInputfinishSpecifying in class PValueBasepublic com.google.common.reflect.TypeToken<T> getTypeToken()
TypeToken<T> with some reflective information
about T, if possible. May return null if no information
is available. Subclasses may override this to enable better
Coder inference.public TypedPValue<T> setTypeTokenInternal(com.google.common.reflect.TypeToken<T> typeToken)
TypeToken<T> associated with this class. Better
reflective type information will lead to better Coder
inference.