org.qcri.rheem.basic.function.ProjectionDescriptor Maven / Gradle / Ivy
package org.qcri.rheem.basic.function;
import org.qcri.rheem.basic.data.Record;
import org.qcri.rheem.basic.types.RecordType;
import org.qcri.rheem.core.function.FunctionDescriptor;
import org.qcri.rheem.core.function.TransformationDescriptor;
import org.qcri.rheem.core.types.BasicDataUnitType;
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* This descriptor pertains to projections. It takes field names of the input type to describe the projection.
*/
public class ProjectionDescriptor extends TransformationDescriptor {
private List fieldNames;
/**
* Creates a new instance.
*
* @param inputTypeClass input type
* @param outputTypeClass output type
* @param fieldNames names of the fields to be projected
*/
public ProjectionDescriptor(Class inputTypeClass,
Class
© 2015 - 2025 Weber Informatics LLC | Privacy Policy