public class DataframeTransform extends PTransform<PCollection<Row>,PCollection<Row>>
DataframeTransform
. @Experimentalname, resourceHints
Modifier and Type | Method and Description |
---|---|
PCollection<Row> |
expand(PCollection<Row> input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
static DataframeTransform |
of(java.lang.String func)
Instantiates a multi-language wrapper for a Python DataframeTransform with a given lambda
function.
|
DataframeTransform |
withExpansionService(java.lang.String expansionService)
Sets an expansion service endpoint for DataframeTransform.
|
DataframeTransform |
withIndexes()
Sets include_indexes option for DataframeTransform.
|
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, toString, validate, validate
public static DataframeTransform of(java.lang.String func)
func
- A Python lambda function that accepts Pandas dataframe object.DataframeTransform
for the given lambda function.public DataframeTransform withIndexes()
DataframeTransform
with include_indexes option enabled.public DataframeTransform withExpansionService(java.lang.String expansionService)
expansionService
- A URL for a Python expansion service.DataframeTransform
for the given expansion service endpoint.public PCollection<Row> expand(PCollection<Row> input)
PTransform
PTransform
should be expanded on the given
InputT
.
NOTE: This method should not be called directly. Instead apply the PTransform
should
be applied to the InputT
using the apply
method.
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).
expand
in class PTransform<PCollection<Row>,PCollection<Row>>