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 SummaryNested classes/interfaces inherited from interface org.apache.iceberg.io.CloseableIterableCloseableIterable.ConcatCloseableIterable<E>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioniterator()Returns a closeable iterator over elements of typeT.static <C extends Comparable<C>>
 CloseableIterable<C> static <C extends Comparable<C>>
 CloseableIterable<C> Methods inherited from class org.apache.iceberg.io.CloseableGroupaddCloseable, addCloseable, close, setSuppressCloseFailureMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
SortedMerge
 
- 
- 
Method Details- 
ofpublic static <C extends Comparable<C>> CloseableIterable<C> of(Iterable<C> left, Iterable<C> right) 
- 
of
- 
iteratorDescription copied from interface:CloseableIterableReturns a closeable iterator over elements of typeT.- Specified by:
- iteratorin interface- CloseableIterable<T>
- Specified by:
- iteratorin interface- Iterable<T>
- Returns:
- an CloseableIterator.
 
 
-