Class ProjectionDescriptor<Input,Output>

java.lang.Object
org.apache.wayang.core.function.FunctionDescriptor
org.apache.wayang.core.function.TransformationDescriptor<Input,Output>
org.apache.wayang.basic.function.ProjectionDescriptor<Input,Output>
All Implemented Interfaces:
Serializable

public class ProjectionDescriptor<Input,Output> extends TransformationDescriptor<Input,Output>
This descriptor pertains to projections. It takes field names of the input type to describe the projection.
See Also:
  • Constructor Details

    • ProjectionDescriptor

      public ProjectionDescriptor(Class<Input> inputTypeClass, Class<Output> outputTypeClass, String... fieldNames)
      Creates a new instance.
      Parameters:
      inputTypeClass - input type
      outputTypeClass - output type
      fieldNames - names of the fields to be projected
    • ProjectionDescriptor

      public ProjectionDescriptor(BasicDataUnitType<Input> inputType, BasicDataUnitType<Output> outputType, String... fieldNames)
      Creates a new instance.
      Parameters:
      inputType - input type
      outputType - output type
      fieldNames - names of the fields to be projected
  • Method Details