Package org.apache.iceberg.util
Class SortedMerge<T>
java.lang.Object
org.apache.iceberg.io.CloseableGroup
org.apache.iceberg.util.SortedMerge<T>
- Type Parameters:
T
- the type of objects produced by this Iterable
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<T>
,CloseableIterable<T>
An Iterable that merges the items from other Iterables in order.
This assumes that the Iterables passed in produce items in sorted order.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.io.CloseableIterable
CloseableIterable.ConcatCloseableIterable<E>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioniterator()
Returns a closeable iterator over elements of typeT
.Methods inherited from class org.apache.iceberg.io.CloseableGroup
addCloseable, addCloseable, close, setSuppressCloseFailure
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SortedMerge
-
-
Method Details
-
iterator
Description copied from interface:CloseableIterable
Returns a closeable iterator over elements of typeT
.- Specified by:
iterator
in interfaceCloseableIterable<T>
- Specified by:
iterator
in interfaceIterable<T>
- Returns:
- an
CloseableIterator
.
-