public class ResultMergeSortIterator<R> extends Object implements org.apache.tinkerpop.gremlin.structure.util.CloseableIterator<R>
| Constructor and Description |
|---|
ResultMergeSortIterator(Iterator<R> first,
Iterator<R> second,
Comparator<R> comparator,
boolean filterDuplicates) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
static <R> Iterable<R> |
mergeSort(Iterable<R> first,
Iterable<R> second,
Comparator<R> comparator,
boolean filterDuplicates) |
R |
next() |
R |
nextInternal() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasCloseable, closeIteratorforEachRemainingpublic R nextInternal()
public static <R> Iterable<R> mergeSort(Iterable<R> first, Iterable<R> second, Comparator<R> comparator, boolean filterDuplicates)
public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.tinkerpop.gremlin.structure.util.CloseableIterator<R>Copyright © 2012–2023. All rights reserved.