当前位置: 首页>>代码示例>>Java>>正文


Java CrossOperator.DefaultCross方法代码示例

本文整理汇总了Java中org.apache.flink.api.java.operators.CrossOperator.DefaultCross方法的典型用法代码示例。如果您正苦于以下问题:Java CrossOperator.DefaultCross方法的具体用法?Java CrossOperator.DefaultCross怎么用?Java CrossOperator.DefaultCross使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.flink.api.java.operators.CrossOperator的用法示例。


在下文中一共展示了CrossOperator.DefaultCross方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: cross

import org.apache.flink.api.java.operators.CrossOperator; //导入方法依赖的package包/类
/**
 * Initiates a Cross transformation.
 *
 * <p>A Cross transformation combines the elements of two
 *   {@link DataSet DataSets} into one DataSet. It builds all pair combinations of elements of
 *   both DataSets, i.e., it builds a Cartesian product.
 *
 *
 * <p>The resulting {@link org.apache.flink.api.java.operators.CrossOperator.DefaultCross} wraps each pair of crossed elements into a {@link Tuple2}, with
 * the element of the first input being the first field of the tuple and the element of the
 * second input being the second field of the tuple.
 *
 *
 * <p>Call {@link org.apache.flink.api.java.operators.CrossOperator.DefaultCross#with(org.apache.flink.api.common.functions.CrossFunction)} to define a
 * {@link org.apache.flink.api.common.functions.CrossFunction} which is called for
 * each pair of crossed elements. The CrossFunction returns a exactly one element for each pair of input elements.
 *
 * @param other The other DataSet with which this DataSet is crossed.
 * @return A DefaultCross that returns a Tuple2 for each pair of crossed elements.
 *
 * @see org.apache.flink.api.java.operators.CrossOperator.DefaultCross
 * @see org.apache.flink.api.common.functions.CrossFunction
 * @see DataSet
 * @see Tuple2
 */
public <R> CrossOperator.DefaultCross<T, R> cross(DataSet<R> other) {
	return new CrossOperator.DefaultCross<>(this, other, CrossHint.OPTIMIZER_CHOOSES, Utils.getCallLocationName());
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:29,代码来源:DataSet.java

示例2: crossWithTiny

import org.apache.flink.api.java.operators.CrossOperator; //导入方法依赖的package包/类
/**
 * Initiates a Cross transformation.
 *
 * <p>A Cross transformation combines the elements of two
 *   {@link DataSet DataSets} into one DataSet. It builds all pair combinations of elements of
 *   both DataSets, i.e., it builds a Cartesian product.
 * This method also gives the hint to the optimizer that the second DataSet to cross is much
 *   smaller than the first one.
 *
 *
 * <p>The resulting {@link org.apache.flink.api.java.operators.CrossOperator.DefaultCross} wraps each pair of crossed elements into a {@link Tuple2}, with
 * the element of the first input being the first field of the tuple and the element of the
 * second input being the second field of the tuple.
 *
 *
 * <p>Call {@link org.apache.flink.api.java.operators.CrossOperator.DefaultCross#with(org.apache.flink.api.common.functions.CrossFunction)} to define a
 * {@link org.apache.flink.api.common.functions.CrossFunction} which is called for
 * each pair of crossed elements. The CrossFunction returns a exactly one element for each pair of input elements.
 *
 * @param other The other DataSet with which this DataSet is crossed.
 * @return A DefaultCross that returns a Tuple2 for each pair of crossed elements.
 *
 * @see org.apache.flink.api.java.operators.CrossOperator.DefaultCross
 * @see org.apache.flink.api.common.functions.CrossFunction
 * @see DataSet
 * @see Tuple2
 */
public <R> CrossOperator.DefaultCross<T, R> crossWithTiny(DataSet<R> other) {
	return new CrossOperator.DefaultCross<>(this, other, CrossHint.SECOND_IS_SMALL, Utils.getCallLocationName());
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:31,代码来源:DataSet.java

示例3: crossWithHuge

import org.apache.flink.api.java.operators.CrossOperator; //导入方法依赖的package包/类
/**
 * Initiates a Cross transformation.
 *
 * <p>A Cross transformation combines the elements of two
 *   {@link DataSet DataSets} into one DataSet. It builds all pair combinations of elements of
 *   both DataSets, i.e., it builds a Cartesian product.
 * This method also gives the hint to the optimizer that the second DataSet to cross is much
 *   larger than the first one.
 *
 *
 * <p>The resulting {@link org.apache.flink.api.java.operators.CrossOperator.DefaultCross} wraps each pair of crossed elements into a {@link Tuple2}, with
 * the element of the first input being the first field of the tuple and the element of the
 * second input being the second field of the tuple.
 *
 *
 * <p>Call {@link org.apache.flink.api.java.operators.CrossOperator.DefaultCross#with(org.apache.flink.api.common.functions.CrossFunction)} to define a
 * {@link org.apache.flink.api.common.functions.CrossFunction} which is called for
 * each pair of crossed elements. The CrossFunction returns a exactly one element for each pair of input elements.
 *
 * @param other The other DataSet with which this DataSet is crossed.
 * @return A DefaultCross that returns a Tuple2 for each pair of crossed elements.
 *
 * @see org.apache.flink.api.java.operators.CrossOperator.DefaultCross
 * @see org.apache.flink.api.common.functions.CrossFunction
 * @see DataSet
 * @see Tuple2
 */
public <R> CrossOperator.DefaultCross<T, R> crossWithHuge(DataSet<R> other) {
	return new CrossOperator.DefaultCross<>(this, other, CrossHint.FIRST_IS_SMALL, Utils.getCallLocationName());
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:31,代码来源:DataSet.java

示例4: cross

import org.apache.flink.api.java.operators.CrossOperator; //导入方法依赖的package包/类
/**
 * Initiates a Cross transformation.<br/>
 * A Cross transformation combines the elements of two 
 *   {@link DataSet DataSets} into one DataSet. It builds all pair combinations of elements of 
 *   both DataSets, i.e., it builds a Cartesian product.
 * 
 * <p>
 * The resulting {@link org.apache.flink.api.java.operators.CrossOperator.DefaultCross} wraps each pair of crossed elements into a {@link Tuple2}, with 
 * the element of the first input being the first field of the tuple and the element of the 
 * second input being the second field of the tuple.
 * 
 * <p>
 * Call {@link org.apache.flink.api.java.operators.CrossOperator.DefaultCross#with(org.apache.flink.api.common.functions.CrossFunction)} to define a
 * {@link org.apache.flink.api.common.functions.CrossFunction} which is called for
 * each pair of crossed elements. The CrossFunction returns a exactly one element for each pair of input elements.</br>
 * 
 * @param other The other DataSet with which this DataSet is crossed. 
 * @return A DefaultCross that returns a Tuple2 for each pair of crossed elements.
 * 
 * @see org.apache.flink.api.java.operators.CrossOperator.DefaultCross
 * @see org.apache.flink.api.common.functions.CrossFunction
 * @see DataSet
 * @see Tuple2
 */
public <R> CrossOperator.DefaultCross<T, R> cross(DataSet<R> other) {
	return new CrossOperator.DefaultCross<T, R>(this, other);
}
 
开发者ID:citlab,项目名称:vs.msc.ws14,代码行数:28,代码来源:DataSet.java

示例5: crossWithTiny

import org.apache.flink.api.java.operators.CrossOperator; //导入方法依赖的package包/类
/**
 * Initiates a Cross transformation.<br/>
 * A Cross transformation combines the elements of two 
 *   {@link DataSet DataSets} into one DataSet. It builds all pair combinations of elements of 
 *   both DataSets, i.e., it builds a Cartesian product.
 * This method also gives the hint to the optimizer that the second DataSet to cross is much
 *   smaller than the first one.
 *   
 * <p>
 * The resulting {@link org.apache.flink.api.java.operators.CrossOperator.DefaultCross} wraps each pair of crossed elements into a {@link Tuple2}, with 
 * the element of the first input being the first field of the tuple and the element of the 
 * second input being the second field of the tuple.
 *   
 * <p>
 * Call {@link org.apache.flink.api.java.operators.CrossOperator.DefaultCross#with(org.apache.flink.api.common.functions.CrossFunction)} to define a
 * {@link org.apache.flink.api.common.functions.CrossFunction} which is called for
 * each pair of crossed elements. The CrossFunction returns a exactly one element for each pair of input elements.</br>
 * 
 * @param other The other DataSet with which this DataSet is crossed. 
 * @return A DefaultCross that returns a Tuple2 for each pair of crossed elements.
 * 
 * @see org.apache.flink.api.java.operators.CrossOperator.DefaultCross
 * @see org.apache.flink.api.common.functions.CrossFunction
 * @see DataSet
 * @see Tuple2
 */
public <R> CrossOperator.DefaultCross<T, R> crossWithTiny(DataSet<R> other) {
	return new CrossOperator.DefaultCross<T, R>(this, other);
}
 
开发者ID:citlab,项目名称:vs.msc.ws14,代码行数:30,代码来源:DataSet.java

示例6: crossWithHuge

import org.apache.flink.api.java.operators.CrossOperator; //导入方法依赖的package包/类
/**
 * Initiates a Cross transformation.<br/>
 * A Cross transformation combines the elements of two 
 *   {@link DataSet DataSets} into one DataSet. It builds all pair combinations of elements of 
 *   both DataSets, i.e., it builds a Cartesian product.
 * This method also gives the hint to the optimizer that the second DataSet to cross is much
 *   larger than the first one.
 *   
 * <p>
 * The resulting {@link org.apache.flink.api.java.operators.CrossOperator.DefaultCross} wraps each pair of crossed elements into a {@link Tuple2}, with 
 * the element of the first input being the first field of the tuple and the element of the 
 * second input being the second field of the tuple.
 *   
 * <p>
 * Call {@link org.apache.flink.api.java.operators.CrossOperator.DefaultCross#with(org.apache.flink.api.common.functions.CrossFunction)} to define a
 * {@link org.apache.flink.api.common.functions.CrossFunction} which is called for
 * each pair of crossed elements. The CrossFunction returns a exactly one element for each pair of input elements.</br>
 * 
 * @param other The other DataSet with which this DataSet is crossed. 
 * @return A DefaultCross that returns a Tuple2 for each pair of crossed elements.
 * 
 * @see org.apache.flink.api.java.operators.CrossOperator.DefaultCross
 * @see org.apache.flink.api.common.functions.CrossFunction
 * @see DataSet
 * @see Tuple2
 */
public <R> CrossOperator.DefaultCross<T, R> crossWithHuge(DataSet<R> other) {
	return new CrossOperator.DefaultCross<T, R>(this, other);
}
 
开发者ID:citlab,项目名称:vs.msc.ws14,代码行数:30,代码来源:DataSet.java


注:本文中的org.apache.flink.api.java.operators.CrossOperator.DefaultCross方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。