Java Code Examples for org.apache.flink.types.Row#project()
The following examples show how to use
org.apache.flink.types.Row#project() .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: flink File: AbstractRowPythonScalarFunctionOperator.java License: Apache License 2.0 | 5 votes |
@Override public void bufferInput(CRow input) { CRow forwardedFieldsRow = new CRow(Row.project(input.row(), forwardedFields), input.change()); if (getExecutionConfig().isObjectReuseEnabled()) { forwardedFieldsRow = forwardedInputSerializer.copy(forwardedFieldsRow); } forwardedInputQueue.add(forwardedFieldsRow); }
Example 2
Source Project: flink File: AbstractPythonScalarFunctionFlatMap.java License: Apache License 2.0 | 5 votes |
@Override public void bufferInput(Row input) { Row forwardedFieldsRow = Row.project(input, forwardedFields); if (getRuntimeContext().getExecutionConfig().isObjectReuseEnabled()) { forwardedFieldsRow = forwardedInputSerializer.copy(forwardedFieldsRow); } forwardedInputQueue.add(forwardedFieldsRow); }
Example 3
Source Project: flink File: RowPartitionComputer.java License: Apache License 2.0 | 4 votes |
@Override public Row projectColumnsToWrite(Row in) { return partitionIndexes.length == 0 ? in : Row.project(in, nonPartitionIndexes); }
Example 4
Source Project: flink File: PythonTableFunctionOperator.java License: Apache License 2.0 | 4 votes |
@Override public Row getFunctionInput(CRow element) { return Row.project(element.row(), userDefinedFunctionInputOffsets); }
Example 5
Source Project: flink File: AbstractRowPythonScalarFunctionOperator.java License: Apache License 2.0 | 4 votes |
@Override public Row getFunctionInput(CRow element) { return Row.project(element.row(), userDefinedFunctionInputOffsets); }
Example 6
Source Project: flink File: AbstractPythonStatelessFunctionFlatMap.java License: Apache License 2.0 | 4 votes |
private Row getFunctionInput(Row element) { return Row.project(element, userDefinedFunctionInputOffsets); }