@Experimental public interface ProjectionConsumer
ProjectionConsumer
is a Schema
-aware operation (such as a DoFn
or PTransform
) that
has a FieldAccessDescriptor
describing which fields the
operation accesses.Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,FieldAccessDescriptor> |
consumesProjection()
Returns a map from input
TupleTag id to a FieldAccessDescriptor describing which Schema fields this
must access from the corresponding input PCollection to
complete successfully. |
java.util.Map<java.lang.String,FieldAccessDescriptor> consumesProjection()
TupleTag
id to a FieldAccessDescriptor
describing which Schema fields this
must access from the corresponding input PCollection
to
complete successfully. Fields not listed in the FieldAccessDescriptor
are assumed to be safe to drop from the
input. Input PCollection
s not found in the keyset are
implied to have value FieldAccessDescriptor.withAllFields()
.