Class ProjectionDescriptor<Input,​Output>

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Detail

      • ProjectionDescriptor

        public ProjectionDescriptor​(java.lang.Class<Input> inputTypeClass,
                                    java.lang.Class<Output> outputTypeClass,
                                    java.lang.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,
                                    java.lang.String... fieldNames)
        Creates a new instance.
        Parameters:
        inputType - input type
        outputType - output type
        fieldNames - names of the fields to be projected
    • Method Detail

      • createForRecords

        public static ProjectionDescriptor<Record,​Record> createForRecords​(RecordType inputType,
                                                                                 java.lang.String... fieldNames)
        Creates a new instance that specifically projects Records.
        Parameters:
        inputType - input RecordType
        fieldNames - names of fields to be projected
        Returns:
        the new instance
      • getFieldNames

        public java.util.List<java.lang.String> getFieldNames()