I1 - The type of the first input DataSet of the Cross transformation.I2 - The type of the second input DataSet of the Cross transformation.public static final class CrossOperator.DefaultCross<I1,I2> extends CrossOperator<I1,I2,Tuple2<I1,I2>>
CrossOperator.CrossProjection<I1,I2>, CrossOperator.DefaultCross<I1,I2>, CrossOperator.DefaultCrossFunction<T1,T2>, CrossOperator.ProjectCrossFunction<T1,T2,R extends Tuple>| Constructor and Description |
|---|
CrossOperator.DefaultCross(DataSet<I1> input1,
DataSet<I2> input2) |
| Modifier and Type | Method and Description |
|---|---|
CrossOperator.CrossProjection<I1,I2> |
projectFirst(int... firstFieldIndexes)
|
CrossOperator.CrossProjection<I1,I2> |
projectSecond(int... secondFieldIndexes)
|
<R> CrossOperator<I1,I2,R> |
with(CrossFunction<I1,I2,R> function)
Finalizes a Cross transformation by applying a
CrossFunction to each pair of crossed elements.Each CrossFunction call returns exactly one element. |
generateProjectionProperties, translateToDataFlowextractSemanticAnnotationsFromUdf, getBroadcastSets, getParameters, getSematicProperties, setSemanticProperties, withBroadcastSet, withConstantSetFirst, withConstantSetSecond, withParametersgetInput1, getInput1Type, getInput2, getInput2TypegetName, getParallelism, getResultType, name, setParallelismaggregate, checkSameExecutionContext, coGroup, cross, crossWithHuge, crossWithTiny, distinct, distinct, distinct, filter, flatMap, getExecutionEnvironment, getType, groupBy, groupBy, iterate, iterateDelta, join, joinWithHuge, joinWithTiny, map, max, min, output, print, printToErr, project, reduce, reduceGroup, runOperation, sum, union, write, write, writeAsCsv, writeAsCsv, writeAsCsv, writeAsText, writeAsTextpublic <R> CrossOperator<I1,I2,R> with(CrossFunction<I1,I2,R> function)
CrossFunction to each pair of crossed elements.function - The CrossFunction that is called for each pair of crossed elements.CrossFunction,
DataSetpublic CrossOperator.CrossProjection<I1,I2> projectFirst(int... firstFieldIndexes)
Tuple DataSet, fields can be selected by their index.
If the first cross input is not a Tuple DataSet, no parameters should be passed.CrossOperator.CrossProjection.projectFirst(int...) and
CrossOperator.CrossProjection.projectSecond(int...).firstFieldIndexes - If the first input is a Tuple DataSet, the indexes of the selected fields.
For a non-Tuple DataSet, do not provide parameters.
The order of fields in the output tuple is defined by to the order of field indexes.CrossOperator.ProjectCross to complete the
Cross transformation by calling CrossProjection#types().Tuple,
DataSet,
CrossOperator.CrossProjection,
CrossOperator.ProjectCrosspublic CrossOperator.CrossProjection<I1,I2> projectSecond(int... secondFieldIndexes)
Tuple DataSet, fields can be selected by their index.
If the second cross input is not a Tuple DataSet, no parameters should be passed.CrossOperator.CrossProjection.projectFirst(int...) and
CrossOperator.CrossProjection.projectSecond(int...).secondFieldIndexes - If the second input is a Tuple DataSet, the indexes of the selected fields.
For a non-Tuple DataSet, do not provide parameters.
The order of fields in the output tuple is defined by to the order of field indexes.CrossOperator.ProjectCross to complete the
Cross transformation by calling CrossProjection#types().Tuple,
DataSet,
CrossOperator.CrossProjection,
CrossOperator.ProjectCrossCopyright © 2014 The Apache Software Foundation. All rights reserved.