Class AddFields.Inner<T>
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PCollection<T>,PCollection<Row>>
org.apache.beam.sdk.schemas.transforms.AddFields.Inner<T>
- All Implemented Interfaces:
Serializable,HasDisplayData
- Enclosing class:
AddFields
Inner PTransform for AddFields.
- See Also:
-
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints -
Method Summary
Modifier and TypeMethodDescriptionexpand(PCollection<T> input) Override this method to specify how thisPTransformshould be expanded on the givenInputT.field(String fieldName, Schema.FieldType fieldType) Add a new field of the specified type.field(String fieldName, Schema.FieldType fieldType, Object defaultValue) Add a new field of the specified type.Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Method Details
-
field
Add a new field of the specified type. The new field will be nullable and will be filled in with null values. -
field
Add a new field of the specified type. The new field will be filled in with the specified value. -
expand
Description copied from class:PTransformOverride this method to specify how thisPTransformshould be expanded on the givenInputT.NOTE: This method should not be called directly. Instead apply the
PTransformshould be applied to theInputTusing theapplymethod.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
- Specified by:
expandin classPTransform<PCollection<T>,PCollection<Row>>
-