當前位置: 首頁>>代碼示例>>Java>>正文


Java ResettableMutableObjectIterator類代碼示例

本文整理匯總了Java中org.apache.flink.runtime.util.ResettableMutableObjectIterator的典型用法代碼示例。如果您正苦於以下問題:Java ResettableMutableObjectIterator類的具體用法?Java ResettableMutableObjectIterator怎麽用?Java ResettableMutableObjectIterator使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ResettableMutableObjectIterator類屬於org.apache.flink.runtime.util包,在下文中一共展示了ResettableMutableObjectIterator類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: computeOuterJoin

import org.apache.flink.runtime.util.ResettableMutableObjectIterator; //導入依賴的package包/類
@SuppressWarnings("unchecked, rawtypes")
private List<Tuple4<String, String, String, Object>> computeOuterJoin(ResettableMutableObjectIterator<Tuple2<String, String>> input1,
																	  ResettableMutableObjectIterator<Tuple2<String, Integer>> input2,
																	  OuterJoinType outerJoinType) throws Exception {
	input1.reset();
	input2.reset();
	AbstractMergeOuterJoinIterator iterator =
			createOuterJoinIterator(
					outerJoinType, input1, input2, serializer1, comparator1, serializer2, comparator2,
					pairComp, this.memoryManager, this.ioManager, PAGES_FOR_BNLJN, this.parentTask
			);

	List<Tuple4<String, String, String, Object>> actual = new ArrayList<>();
	ListCollector<Tuple4<String, String, String, Object>> collector = new ListCollector<>(actual);
	while (iterator.callWithNextKey(new SimpleTupleJoinFunction(), collector)) ;
	iterator.close();

	return actual;
}
 
開發者ID:axbaretto,項目名稱:flink,代碼行數:20,代碼來源:AbstractSortMergeOuterJoinIteratorITCase.java


注:本文中的org.apache.flink.runtime.util.ResettableMutableObjectIterator類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。