本文整理匯總了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;
}