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:
- java.io.Closeable,- java.lang.AutoCloseable,- java.lang.Iterable<T>,- CloseableIterable<T>
 
 public class SortedMerge<T> extends CloseableGroup implements 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.CloseableIterableCloseableIterable.ConcatCloseableIterable<E>
 
- 
 - 
Constructor SummaryConstructors Constructor Description SortedMerge(java.util.Comparator<T> comparator, java.util.List<CloseableIterable<T>> iterables)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseableIterator<T>iterator()Returns a closeable iterator over elements of typeT.- 
Methods inherited from class org.apache.iceberg.io.CloseableGroupaddCloseable, addCloseable, close, setSuppressCloseFailure
 
- 
 
- 
- 
- 
Constructor Detail- 
SortedMergepublic SortedMerge(java.util.Comparator<T> comparator, java.util.List<CloseableIterable<T>> iterables) 
 
- 
 - 
Method Detail- 
iteratorpublic CloseableIterator<T> iterator() Description copied from interface:CloseableIterableReturns a closeable iterator over elements of typeT.- Specified by:
- iteratorin interface- CloseableIterable<T>
- Specified by:
- iteratorin interface- java.lang.Iterable<T>
- Returns:
- an CloseableIterator.
 
 
- 
 
-