本文整理汇总了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;
}