Interface ProjectableTableSource<T>
-
- Type Parameters:
T- The return type of theTableSource.
@Deprecated @Internal public interface ProjectableTableSource<T>
Deprecated.This interface will not be supported in the new source design aroundDynamicTableSource. UseSupportsProjectionPushDowninstead. See FLIP-95 for more information.Adds support for projection push-down to aTableSource.A
TableSourceextending this interface is able to project the fields of the returnedDataStreamif it is aStreamTableSource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description TableSource<T>projectFields(int[] fields)Deprecated.Creates a copy of theTableSourcethat projects its output to the given field indexes.
-
-
-
Method Detail
-
projectFields
TableSource<T> projectFields(int[] fields)
Deprecated.Creates a copy of theTableSourcethat projects its output to the given field indexes. The field indexes relate to the physical produced data type (TableSource.getProducedDataType()) and not to the table schema (TableSource.getTableSchema()of theTableSource.The table schema (
TableSource.getTableSchema()of theTableSourcecopy must not be modified by this method, but only the produced data type (TableSource.getProducedDataType()) and the producedDataStream(StreamTableSource#getDataStream).If the
TableSourceimplements theDefinedFieldMappinginterface, it might be necessary to adjust the mapping as well.IMPORTANT: This method must return a true copy and must not modify the original table source object.
- Parameters:
fields- The indexes of the fields to return.- Returns:
- A copy of the
TableSourcethat projects its output.
-
-