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
Constructors -
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, setSuppressCloseFailureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SortedMerge
-
-
Method Details
-
iterator
Description copied from interface:CloseableIterableReturns a closeable iterator over elements of typeT.- Specified by:
iteratorin interfaceCloseableIterable<T>- Specified by:
iteratorin interfaceIterable<T>- Returns:
- an
CloseableIterator.
-