當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。