| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>CloseableIterable</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.min.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../jquery-ui.overrides.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../jquery/jquery-3.6.0.min.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-ui.min.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="CloseableIterable"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":1,"i1":1,"i2":1,"i3":1,"i4":1,"i5":1,"i6":6,"i7":1,"i8":1,"i9":1,"i10":1}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../../"; |
| var useModuleDirectories = true; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <main role="main"> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.apache.iceberg.io</a></div> |
| <h2 title="Interface CloseableIterable" class="title">Interface CloseableIterable<T></h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Superinterfaces:</dt> |
| <dd><code>java.lang.AutoCloseable</code>, <code>java.io.Closeable</code>, <code>java.lang.Iterable<T></code></dd> |
| </dl> |
| <dl> |
| <dt>All Known Implementing Classes:</dt> |
| <dd><code><a href="../avro/AvroIterable.html" title="class in org.apache.iceberg.avro">AvroIterable</a></code>, <code><a href="CloseableIterable.ConcatCloseableIterable.html" title="class in org.apache.iceberg.io">CloseableIterable.ConcatCloseableIterable</a></code>, <code><a href="../ManifestReader.html" title="class in org.apache.iceberg">ManifestReader</a></code>, <code><a href="../util/ParallelIterable.html" title="class in org.apache.iceberg.util">ParallelIterable</a></code>, <code><a href="../parquet/ParquetIterable.html" title="class in org.apache.iceberg.parquet">ParquetIterable</a></code>, <code><a href="../parquet/ParquetReader.html" title="class in org.apache.iceberg.parquet">ParquetReader</a></code>, <code><a href="../util/SortedMerge.html" title="class in org.apache.iceberg.util">SortedMerge</a></code>, <code><a href="../parquet/VectorizedParquetReader.html" title="class in org.apache.iceberg.parquet">VectorizedParquetReader</a></code>, <code><a href="../arrow/vectorized/VectorizedTableScanIterable.html" title="class in org.apache.iceberg.arrow.vectorized">VectorizedTableScanIterable</a></code></dd> |
| </dl> |
| <hr> |
| <pre>public interface <span class="typeNameLabel">CloseableIterable<T></span> |
| extends java.lang.Iterable<T>, java.io.Closeable</pre> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <section> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Interface</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="CloseableIterable.ConcatCloseableIterable.html" title="class in org.apache.iceberg.io">CloseableIterable.ConcatCloseableIterable</a><<a href="CloseableIterable.ConcatCloseableIterable.html" title="type parameter in CloseableIterable.ConcatCloseableIterable">E</a>></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#combine(java.lang.Iterable,java.io.Closeable)">combine</a></span>​(java.lang.Iterable<E> iterable, |
| java.io.Closeable closeable)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#concat(java.lang.Iterable)">concat</a></span>​(java.lang.Iterable<<a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E>> iterable)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static <T> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><T></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#count(org.apache.iceberg.metrics.Counter,org.apache.iceberg.io.CloseableIterable)">count</a></span>​(<a href="../metrics/Counter.html" title="interface in org.apache.iceberg.metrics">Counter</a> counter, |
| <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><T> iterable)</code></th> |
| <td class="colLast"> |
| <div class="block">Counts the number of elements in the given <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io"><code>CloseableIterable</code></a> by incrementing the <a href="../metrics/Counter.html" title="interface in org.apache.iceberg.metrics"><code>Counter</code></a> instance for each <code>Iterator.next()</code> call.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#empty()">empty</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#filter(org.apache.iceberg.io.CloseableIterable,java.util.function.Predicate)">filter</a></span>​(<a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> iterable, |
| java.util.function.Predicate<E> pred)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#filter(org.apache.iceberg.metrics.Counter,org.apache.iceberg.io.CloseableIterable,java.util.function.Predicate)">filter</a></span>​(<a href="../metrics/Counter.html" title="interface in org.apache.iceberg.metrics">Counter</a> skipCounter, |
| <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> iterable, |
| java.util.function.Predicate<E> pred)</code></th> |
| <td class="colLast"> |
| <div class="block">Filters the given <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io"><code>CloseableIterable</code></a> and counts the number of elements that do not match |
| the predicate by incrementing the <a href="../metrics/Counter.html" title="interface in org.apache.iceberg.metrics"><code>Counter</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="CloseableIterator.html" title="interface in org.apache.iceberg.io">CloseableIterator</a><<a href="CloseableIterable.html" title="type parameter in CloseableIterable">T</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#iterator()">iterator</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a closeable iterator over elements of type <code>T</code>.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static <I,​O><br><a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><O></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#transform(org.apache.iceberg.io.CloseableIterable,java.util.function.Function)">transform</a></span>​(<a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><I> iterable, |
| java.util.function.Function<I,​O> transform)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#whenComplete(org.apache.iceberg.io.CloseableIterable,java.lang.Runnable)">whenComplete</a></span>​(<a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> iterable, |
| java.lang.Runnable onCompletionRunnable)</code></th> |
| <td class="colLast"> |
| <div class="block">Will run the given runnable when <code>Closeable.close()</code> has been called.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#withNoopClose(E)">withNoopClose</a></span>​(E entry)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#withNoopClose(java.lang.Iterable)">withNoopClose</a></span>​(java.lang.Iterable<E> iterable)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.java.io.Closeable"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface java.io.Closeable</h3> |
| <code>close</code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.java.lang.Iterable"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface java.lang.Iterable</h3> |
| <code>forEach, spliterator</code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="iterator()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>iterator</h4> |
| <pre class="methodSignature"><a href="CloseableIterator.html" title="interface in org.apache.iceberg.io">CloseableIterator</a><<a href="CloseableIterable.html" title="type parameter in CloseableIterable">T</a>> iterator()</pre> |
| <div class="block">Returns a closeable iterator over elements of type <code>T</code>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code>iterator</code> in interface <code>java.lang.Iterable<<a href="CloseableIterable.html" title="type parameter in CloseableIterable">T</a>></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an <a href="CloseableIterator.html" title="interface in org.apache.iceberg.io"><code>CloseableIterator</code></a>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="withNoopClose(java.lang.Object)"> |
| <!-- --> |
| </a><a id="withNoopClose(E)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withNoopClose</h4> |
| <pre class="methodSignature">static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> withNoopClose​(E entry)</pre> |
| </li> |
| </ul> |
| <a id="withNoopClose(java.lang.Iterable)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>withNoopClose</h4> |
| <pre class="methodSignature">static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> withNoopClose​(java.lang.Iterable<E> iterable)</pre> |
| </li> |
| </ul> |
| <a id="empty()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>empty</h4> |
| <pre class="methodSignature">static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> empty()</pre> |
| </li> |
| </ul> |
| <a id="combine(java.lang.Iterable,java.io.Closeable)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>combine</h4> |
| <pre class="methodSignature">static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> combine​(java.lang.Iterable<E> iterable, |
| java.io.Closeable closeable)</pre> |
| </li> |
| </ul> |
| <a id="whenComplete(org.apache.iceberg.io.CloseableIterable,java.lang.Runnable)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>whenComplete</h4> |
| <pre class="methodSignature">static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> whenComplete​(<a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> iterable, |
| java.lang.Runnable onCompletionRunnable)</pre> |
| <div class="block">Will run the given runnable when <code>Closeable.close()</code> has been called.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>E</code> - The type of the underlying iterable</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>iterable</code> - The underlying <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io"><code>CloseableIterable</code></a> to iterate over</dd> |
| <dd><code>onCompletionRunnable</code> - The runnable to run after the underlying iterable was closed</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A new <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io"><code>CloseableIterable</code></a> where the runnable will be executed as the final step |
| after <code>Closeable.close()</code> has been called</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="filter(org.apache.iceberg.io.CloseableIterable,java.util.function.Predicate)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>filter</h4> |
| <pre class="methodSignature">static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> filter​(<a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> iterable, |
| java.util.function.Predicate<E> pred)</pre> |
| </li> |
| </ul> |
| <a id="filter(org.apache.iceberg.metrics.Counter,org.apache.iceberg.io.CloseableIterable,java.util.function.Predicate)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>filter</h4> |
| <pre class="methodSignature">static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> filter​(<a href="../metrics/Counter.html" title="interface in org.apache.iceberg.metrics">Counter</a> skipCounter, |
| <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> iterable, |
| java.util.function.Predicate<E> pred)</pre> |
| <div class="block">Filters the given <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io"><code>CloseableIterable</code></a> and counts the number of elements that do not match |
| the predicate by incrementing the <a href="../metrics/Counter.html" title="interface in org.apache.iceberg.metrics"><code>Counter</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>E</code> - The underlying type to be iterated.</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>skipCounter</code> - The <a href="../metrics/Counter.html" title="interface in org.apache.iceberg.metrics"><code>Counter</code></a> instance to increment on each skipped item during |
| filtering.</dd> |
| <dd><code>iterable</code> - The underlying <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io"><code>CloseableIterable</code></a> to filter.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A filtered <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io"><code>CloseableIterable</code></a> where the given skipCounter is incremented |
| whenever the predicate does not match.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="count(org.apache.iceberg.metrics.Counter,org.apache.iceberg.io.CloseableIterable)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>count</h4> |
| <pre class="methodSignature">static <T> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><T> count​(<a href="../metrics/Counter.html" title="interface in org.apache.iceberg.metrics">Counter</a> counter, |
| <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><T> iterable)</pre> |
| <div class="block">Counts the number of elements in the given <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io"><code>CloseableIterable</code></a> by incrementing the <a href="../metrics/Counter.html" title="interface in org.apache.iceberg.metrics"><code>Counter</code></a> instance for each <code>Iterator.next()</code> call.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - The underlying type to be iterated.</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>counter</code> - The <a href="../metrics/Counter.html" title="interface in org.apache.iceberg.metrics"><code>Counter</code></a> instance to increment on each <code>Iterator.next()</code> call.</dd> |
| <dd><code>iterable</code> - The underlying <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io"><code>CloseableIterable</code></a> to count</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io"><code>CloseableIterable</code></a> that increments the given counter on each <code>Iterator.next()</code> call.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="transform(org.apache.iceberg.io.CloseableIterable,java.util.function.Function)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>transform</h4> |
| <pre class="methodSignature">static <I,​O> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><O> transform​(<a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><I> iterable, |
| java.util.function.Function<I,​O> transform)</pre> |
| </li> |
| </ul> |
| <a id="concat(java.lang.Iterable)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>concat</h4> |
| <pre class="methodSignature">static <E> <a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E> concat​(java.lang.Iterable<<a href="CloseableIterable.html" title="interface in org.apache.iceberg.io">CloseableIterable</a><E>> iterable)</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </main> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| </footer> |
| </body> |
| </html> |