Package org.apache.beam.sdk.schemas
Interface ProjectionConsumer
public interface ProjectionConsumer
A
ProjectionConsumer
is a Schema
-aware operation (such as a DoFn
or PTransform
) that
has a FieldAccessDescriptor
describing which fields the
operation accesses.-
Method Summary
Modifier and TypeMethodDescriptionReturns a map from inputTupleTag
id to aFieldAccessDescriptor
describing which Schema fieldsthis
must access from the corresponding inputPCollection
to complete successfully.
-
Method Details
-
consumesProjection
Map<String,FieldAccessDescriptor> consumesProjection()Returns a map from inputTupleTag
id to aFieldAccessDescriptor
describing which Schema fieldsthis
must access from the corresponding inputPCollection
to complete successfully. Fields not listed in theFieldAccessDescriptor
are assumed to be safe to drop from the input. InputPCollection
s not found in the keyset are implied to have valueFieldAccessDescriptor.withAllFields()
.
-