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 inputTupleTagid to aFieldAccessDescriptordescribing which Schema fieldsthismust access from the corresponding inputPCollectionto complete successfully.
-
Method Details
-
consumesProjection
Map<String,FieldAccessDescriptor> consumesProjection()Returns a map from inputTupleTagid to aFieldAccessDescriptordescribing which Schema fieldsthismust access from the corresponding inputPCollectionto complete successfully. Fields not listed in theFieldAccessDescriptorare assumed to be safe to drop from the input. InputPCollections not found in the keyset are implied to have valueFieldAccessDescriptor.withAllFields().
-