| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>TypeUtil</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.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.5.1.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="TypeUtil"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete 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.types</a></div> |
| <h2 title="Class TypeUtil" class="title">Class TypeUtil</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.iceberg.types.TypeUtil</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <pre>public class <span class="typeNameLabel">TypeUtil</span> |
| extends java.lang.Object</pre> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <section role="region"> |
| <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">Class</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="TypeUtil.CustomOrderSchemaVisitor.html" title="class in org.apache.iceberg.types">TypeUtil.CustomOrderSchemaVisitor</a><<a href="TypeUtil.CustomOrderSchemaVisitor.html" title="type parameter in TypeUtil.CustomOrderSchemaVisitor">T</a>></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static interface </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types">TypeUtil.NextID</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Interface for passing a function that assigns column IDs.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="TypeUtil.SchemaVisitor.html" title="class in org.apache.iceberg.types">TypeUtil.SchemaVisitor</a><<a href="TypeUtil.SchemaVisitor.html" title="type parameter in TypeUtil.SchemaVisitor">T</a>></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section role="region"> |
| <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="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete 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 <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#assignFreshIds(int,org.apache.iceberg.Schema,org.apache.iceberg.types.TypeUtil.NextID)">assignFreshIds</a></span>​(int schemaId, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types">TypeUtil.NextID</a> nextId)</code></th> |
| <td class="colLast"> |
| <div class="block">Assigns fresh ids from the <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types"><code>nextId function</code></a> for all fields in a schema.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#assignFreshIds(org.apache.iceberg.Schema,org.apache.iceberg.Schema,org.apache.iceberg.types.TypeUtil.NextID)">assignFreshIds</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> baseSchema, |
| <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types">TypeUtil.NextID</a> nextId)</code></th> |
| <td class="colLast"> |
| <div class="block">Assigns ids to match a given schema, and fresh ids from the <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types"><code>nextId function</code></a> for all other fields.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#assignFreshIds(org.apache.iceberg.Schema,org.apache.iceberg.types.TypeUtil.NextID)">assignFreshIds</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types">TypeUtil.NextID</a> nextId)</code></th> |
| <td class="colLast"> |
| <div class="block">Assigns fresh ids from the <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types"><code>nextId function</code></a> for all fields in a schema.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static <a href="Type.html" title="interface in org.apache.iceberg.types">Type</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#assignFreshIds(org.apache.iceberg.types.Type,org.apache.iceberg.types.TypeUtil.NextID)">assignFreshIds</a></span>​(<a href="Type.html" title="interface in org.apache.iceberg.types">Type</a> type, |
| <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types">TypeUtil.NextID</a> nextId)</code></th> |
| <td class="colLast"> |
| <div class="block">Assigns fresh ids from the <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types"><code>nextId function</code></a> for all fields in a type.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#assignIncreasingFreshIds(org.apache.iceberg.Schema)">assignIncreasingFreshIds</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema)</code></th> |
| <td class="colLast"> |
| <div class="block">Assigns strictly increasing fresh ids for all fields in a schema, starting from 1.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#decimalRequiredBytes(int)">decimalRequiredBytes</a></span>​(int precision)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static <a href="Type.html" title="interface in org.apache.iceberg.types">Type</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#find(org.apache.iceberg.Schema,java.util.function.Predicate)">find</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| java.util.function.Predicate<<a href="Type.html" title="interface in org.apache.iceberg.types">Type</a>> predicate)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static java.util.Set<java.lang.Integer></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getProjectedIds(org.apache.iceberg.Schema)">getProjectedIds</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static java.util.Set<java.lang.Integer></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getProjectedIds(org.apache.iceberg.types.Type)">getProjectedIds</a></span>​(<a href="Type.html" title="interface in org.apache.iceberg.types">Type</a> type)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static java.util.Map<java.lang.Integer,​<a href="Types.NestedField.html" title="class in org.apache.iceberg.types">Types.NestedField</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#indexById(org.apache.iceberg.types.Types.StructType)">indexById</a></span>​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static java.util.Map<java.lang.String,​java.lang.Integer></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#indexByLowerCaseName(org.apache.iceberg.types.Types.StructType)">indexByLowerCaseName</a></span>​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static java.util.Map<java.lang.String,​java.lang.Integer></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#indexByName(org.apache.iceberg.types.Types.StructType)">indexByName</a></span>​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>static java.util.Map<java.lang.Integer,​java.lang.String></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#indexNameById(org.apache.iceberg.types.Types.StructType)">indexNameById</a></span>​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>static java.util.Map<java.lang.Integer,​java.lang.Integer></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#indexParents(org.apache.iceberg.types.Types.StructType)">indexParents</a></span>​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>static java.util.Map<java.lang.Integer,​java.lang.String></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#indexQuotedNameById(org.apache.iceberg.types.Types.StructType,java.util.function.Function)">indexQuotedNameById</a></span>​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct, |
| java.util.function.Function<java.lang.String,​java.lang.String> quotingFunc)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isPromotionAllowed(org.apache.iceberg.types.Type,org.apache.iceberg.types.Type.PrimitiveType)">isPromotionAllowed</a></span>​(<a href="Type.html" title="interface in org.apache.iceberg.types">Type</a> from, |
| <a href="Type.PrimitiveType.html" title="class in org.apache.iceberg.types">Type.PrimitiveType</a> to)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#join(org.apache.iceberg.Schema,org.apache.iceberg.Schema)">join</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> left, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> right)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#project(org.apache.iceberg.Schema,java.util.Set)">project</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| java.util.Set<java.lang.Integer> fieldIds)</code></th> |
| <td class="colLast"> |
| <div class="block">Project extracts particular fields from a schema by ID.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>static <a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#project(org.apache.iceberg.types.Types.StructType,java.util.Set)">project</a></span>​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct, |
| java.util.Set<java.lang.Integer> fieldIds)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reassignIds(org.apache.iceberg.Schema,org.apache.iceberg.Schema)">reassignIds</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> idSourceSchema)</code></th> |
| <td class="colLast"> |
| <div class="block">Reassigns ids in a schema from another schema.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reassignOrRefreshIds(org.apache.iceberg.Schema,org.apache.iceberg.Schema)">reassignOrRefreshIds</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> idSourceSchema)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>static java.util.Set<java.lang.Integer></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#refreshIdentifierFields(org.apache.iceberg.types.Types.StructType,org.apache.iceberg.Schema)">refreshIdentifierFields</a></span>​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> freshSchema, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> baseSchema)</code></th> |
| <td class="colLast"> |
| <div class="block">Get the identifier fields in the fresh schema based on the identifier fields in the base schema.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#select(org.apache.iceberg.Schema,java.util.Set)">select</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| java.util.Set<java.lang.Integer> fieldIds)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>static <a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#select(org.apache.iceberg.types.Types.StructType,java.util.Set)">select</a></span>​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct, |
| java.util.Set<java.lang.Integer> fieldIds)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectNot(org.apache.iceberg.Schema,java.util.Set)">selectNot</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| java.util.Set<java.lang.Integer> fieldIds)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>static <a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectNot(org.apache.iceberg.types.Types.StructType,java.util.Set)">selectNot</a></span>​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct, |
| java.util.Set<java.lang.Integer> fieldIds)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#validateSchema(java.lang.String,org.apache.iceberg.Schema,org.apache.iceberg.Schema,boolean,boolean)">validateSchema</a></span>​(java.lang.String context, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> expectedSchema, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> providedSchema, |
| boolean checkNullability, |
| boolean checkOrdering)</code></th> |
| <td class="colLast"> |
| <div class="block">Validates whether the provided schema is compatible with the expected schema.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#validateWriteSchema(org.apache.iceberg.Schema,org.apache.iceberg.Schema,java.lang.Boolean,java.lang.Boolean)">validateWriteSchema</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> tableSchema, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> writeSchema, |
| java.lang.Boolean checkNullability, |
| java.lang.Boolean checkOrdering)</code></th> |
| <td class="colLast"> |
| <div class="block">Check whether we could write the iceberg table with the user-provided write schema.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#visit(org.apache.iceberg.Schema,org.apache.iceberg.types.TypeUtil.CustomOrderSchemaVisitor)">visit</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="TypeUtil.CustomOrderSchemaVisitor.html" title="class in org.apache.iceberg.types">TypeUtil.CustomOrderSchemaVisitor</a><T> visitor)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#visit(org.apache.iceberg.Schema,org.apache.iceberg.types.TypeUtil.SchemaVisitor)">visit</a></span>​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="TypeUtil.SchemaVisitor.html" title="class in org.apache.iceberg.types">TypeUtil.SchemaVisitor</a><T> visitor)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#visit(org.apache.iceberg.types.Type,org.apache.iceberg.types.TypeUtil.CustomOrderSchemaVisitor)">visit</a></span>​(<a href="Type.html" title="interface in org.apache.iceberg.types">Type</a> type, |
| <a href="TypeUtil.CustomOrderSchemaVisitor.html" title="class in org.apache.iceberg.types">TypeUtil.CustomOrderSchemaVisitor</a><T> visitor)</code></th> |
| <td class="colLast"> |
| <div class="block">Used to traverse types with traversals other than pre-order.</div> |
| </td> |
| </tr> |
| <tr id="i31" class="rowColor"> |
| <td class="colFirst"><code>static <T> T</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#visit(org.apache.iceberg.types.Type,org.apache.iceberg.types.TypeUtil.SchemaVisitor)">visit</a></span>​(<a href="Type.html" title="interface in org.apache.iceberg.types">Type</a> type, |
| <a href="TypeUtil.SchemaVisitor.html" title="class in org.apache.iceberg.types">TypeUtil.SchemaVisitor</a><T> visitor)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="project(org.apache.iceberg.Schema,java.util.Set)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>project</h4> |
| <pre class="methodSignature">public static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> project​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| java.util.Set<java.lang.Integer> fieldIds)</pre> |
| <div class="block">Project extracts particular fields from a schema by ID. |
| <p> |
| Unlike <a href="#select(org.apache.iceberg.Schema,java.util.Set)"><code>select(Schema, Set)</code></a>, project will pick out only the fields enumerated. Structs that are |
| explicitly projected are empty unless sub-fields are explicitly projected. Maps and lists cannot be explicitly |
| selected in fieldIds.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>schema</code> - to project fields from</dd> |
| <dd><code>fieldIds</code> - list of explicit fields to extract</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the schema with all fields fields not selected removed</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="project(org.apache.iceberg.types.Types.StructType,java.util.Set)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>project</h4> |
| <pre class="methodSignature">public static <a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> project​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct, |
| java.util.Set<java.lang.Integer> fieldIds)</pre> |
| </li> |
| </ul> |
| <a id="select(org.apache.iceberg.Schema,java.util.Set)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>select</h4> |
| <pre class="methodSignature">public static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> select​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| java.util.Set<java.lang.Integer> fieldIds)</pre> |
| </li> |
| </ul> |
| <a id="select(org.apache.iceberg.types.Types.StructType,java.util.Set)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>select</h4> |
| <pre class="methodSignature">public static <a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> select​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct, |
| java.util.Set<java.lang.Integer> fieldIds)</pre> |
| </li> |
| </ul> |
| <a id="getProjectedIds(org.apache.iceberg.Schema)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getProjectedIds</h4> |
| <pre class="methodSignature">public static java.util.Set<java.lang.Integer> getProjectedIds​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema)</pre> |
| </li> |
| </ul> |
| <a id="getProjectedIds(org.apache.iceberg.types.Type)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getProjectedIds</h4> |
| <pre class="methodSignature">public static java.util.Set<java.lang.Integer> getProjectedIds​(<a href="Type.html" title="interface in org.apache.iceberg.types">Type</a> type)</pre> |
| </li> |
| </ul> |
| <a id="selectNot(org.apache.iceberg.types.Types.StructType,java.util.Set)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>selectNot</h4> |
| <pre class="methodSignature">public static <a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> selectNot​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct, |
| java.util.Set<java.lang.Integer> fieldIds)</pre> |
| </li> |
| </ul> |
| <a id="selectNot(org.apache.iceberg.Schema,java.util.Set)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>selectNot</h4> |
| <pre class="methodSignature">public static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> selectNot​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| java.util.Set<java.lang.Integer> fieldIds)</pre> |
| </li> |
| </ul> |
| <a id="join(org.apache.iceberg.Schema,org.apache.iceberg.Schema)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>join</h4> |
| <pre class="methodSignature">public static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> join​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> left, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> right)</pre> |
| </li> |
| </ul> |
| <a id="indexByName(org.apache.iceberg.types.Types.StructType)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexByName</h4> |
| <pre class="methodSignature">public static java.util.Map<java.lang.String,​java.lang.Integer> indexByName​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct)</pre> |
| </li> |
| </ul> |
| <a id="indexNameById(org.apache.iceberg.types.Types.StructType)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexNameById</h4> |
| <pre class="methodSignature">public static java.util.Map<java.lang.Integer,​java.lang.String> indexNameById​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct)</pre> |
| </li> |
| </ul> |
| <a id="indexQuotedNameById(org.apache.iceberg.types.Types.StructType,java.util.function.Function)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexQuotedNameById</h4> |
| <pre class="methodSignature">public static java.util.Map<java.lang.Integer,​java.lang.String> indexQuotedNameById​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct, |
| java.util.function.Function<java.lang.String,​java.lang.String> quotingFunc)</pre> |
| </li> |
| </ul> |
| <a id="indexByLowerCaseName(org.apache.iceberg.types.Types.StructType)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexByLowerCaseName</h4> |
| <pre class="methodSignature">public static java.util.Map<java.lang.String,​java.lang.Integer> indexByLowerCaseName​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct)</pre> |
| </li> |
| </ul> |
| <a id="indexById(org.apache.iceberg.types.Types.StructType)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexById</h4> |
| <pre class="methodSignature">public static java.util.Map<java.lang.Integer,​<a href="Types.NestedField.html" title="class in org.apache.iceberg.types">Types.NestedField</a>> indexById​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct)</pre> |
| </li> |
| </ul> |
| <a id="indexParents(org.apache.iceberg.types.Types.StructType)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexParents</h4> |
| <pre class="methodSignature">public static java.util.Map<java.lang.Integer,​java.lang.Integer> indexParents​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> struct)</pre> |
| </li> |
| </ul> |
| <a id="assignFreshIds(org.apache.iceberg.types.Type,org.apache.iceberg.types.TypeUtil.NextID)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assignFreshIds</h4> |
| <pre class="methodSignature">public static <a href="Type.html" title="interface in org.apache.iceberg.types">Type</a> assignFreshIds​(<a href="Type.html" title="interface in org.apache.iceberg.types">Type</a> type, |
| <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types">TypeUtil.NextID</a> nextId)</pre> |
| <div class="block">Assigns fresh ids from the <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types"><code>nextId function</code></a> for all fields in a type.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>type</code> - a type</dd> |
| <dd><code>nextId</code> - an id assignment function</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an structurally identical type with new ids assigned by the nextId function</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="assignFreshIds(org.apache.iceberg.Schema,org.apache.iceberg.types.TypeUtil.NextID)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assignFreshIds</h4> |
| <pre class="methodSignature">public static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> assignFreshIds​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types">TypeUtil.NextID</a> nextId)</pre> |
| <div class="block">Assigns fresh ids from the <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types"><code>nextId function</code></a> for all fields in a schema.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>schema</code> - a schema</dd> |
| <dd><code>nextId</code> - an id assignment function</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a structurally identical schema with new ids assigned by the nextId function</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="assignFreshIds(int,org.apache.iceberg.Schema,org.apache.iceberg.types.TypeUtil.NextID)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assignFreshIds</h4> |
| <pre class="methodSignature">public static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> assignFreshIds​(int schemaId, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types">TypeUtil.NextID</a> nextId)</pre> |
| <div class="block">Assigns fresh ids from the <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types"><code>nextId function</code></a> for all fields in a schema.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>schemaId</code> - an ID assigned to this schema</dd> |
| <dd><code>schema</code> - a schema</dd> |
| <dd><code>nextId</code> - an id assignment function</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a structurally identical schema with new ids assigned by the nextId function</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="assignFreshIds(org.apache.iceberg.Schema,org.apache.iceberg.Schema,org.apache.iceberg.types.TypeUtil.NextID)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assignFreshIds</h4> |
| <pre class="methodSignature">public static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> assignFreshIds​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> baseSchema, |
| <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types">TypeUtil.NextID</a> nextId)</pre> |
| <div class="block">Assigns ids to match a given schema, and fresh ids from the <a href="TypeUtil.NextID.html" title="interface in org.apache.iceberg.types"><code>nextId function</code></a> for all other fields.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>schema</code> - a schema</dd> |
| <dd><code>baseSchema</code> - a schema with existing IDs to copy by name</dd> |
| <dd><code>nextId</code> - an id assignment function</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a structurally identical schema with new ids assigned by the nextId function</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="refreshIdentifierFields(org.apache.iceberg.types.Types.StructType,org.apache.iceberg.Schema)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>refreshIdentifierFields</h4> |
| <pre class="methodSignature">public static java.util.Set<java.lang.Integer> refreshIdentifierFields​(<a href="Types.StructType.html" title="class in org.apache.iceberg.types">Types.StructType</a> freshSchema, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> baseSchema)</pre> |
| <div class="block">Get the identifier fields in the fresh schema based on the identifier fields in the base schema.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>freshSchema</code> - fresh schema</dd> |
| <dd><code>baseSchema</code> - base schema</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>identifier fields in the fresh schema</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="assignIncreasingFreshIds(org.apache.iceberg.Schema)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assignIncreasingFreshIds</h4> |
| <pre class="methodSignature">public static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> assignIncreasingFreshIds​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema)</pre> |
| <div class="block">Assigns strictly increasing fresh ids for all fields in a schema, starting from 1.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>schema</code> - a schema</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a structurally identical schema with new ids assigned strictly increasing from 1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="reassignIds(org.apache.iceberg.Schema,org.apache.iceberg.Schema)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reassignIds</h4> |
| <pre class="methodSignature">public static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> reassignIds​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> idSourceSchema)</pre> |
| <div class="block">Reassigns ids in a schema from another schema. |
| <p> |
| Ids are determined by field names. If a field in the schema cannot be found in the source |
| schema, this will throw IllegalArgumentException. |
| <p> |
| This will not alter a schema's structure, nullability, or types.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>schema</code> - the schema to have ids reassigned</dd> |
| <dd><code>idSourceSchema</code> - the schema from which field ids will be used</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an structurally identical schema with field ids matching the source schema</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if a field cannot be found (by name) in the source schema</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="reassignOrRefreshIds(org.apache.iceberg.Schema,org.apache.iceberg.Schema)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reassignOrRefreshIds</h4> |
| <pre class="methodSignature">public static <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> reassignOrRefreshIds​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> idSourceSchema)</pre> |
| </li> |
| </ul> |
| <a id="find(org.apache.iceberg.Schema,java.util.function.Predicate)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>find</h4> |
| <pre class="methodSignature">public static <a href="Type.html" title="interface in org.apache.iceberg.types">Type</a> find​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| java.util.function.Predicate<<a href="Type.html" title="interface in org.apache.iceberg.types">Type</a>> predicate)</pre> |
| </li> |
| </ul> |
| <a id="isPromotionAllowed(org.apache.iceberg.types.Type,org.apache.iceberg.types.Type.PrimitiveType)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isPromotionAllowed</h4> |
| <pre class="methodSignature">public static boolean isPromotionAllowed​(<a href="Type.html" title="interface in org.apache.iceberg.types">Type</a> from, |
| <a href="Type.PrimitiveType.html" title="class in org.apache.iceberg.types">Type.PrimitiveType</a> to)</pre> |
| </li> |
| </ul> |
| <a id="validateWriteSchema(org.apache.iceberg.Schema,org.apache.iceberg.Schema,java.lang.Boolean,java.lang.Boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>validateWriteSchema</h4> |
| <pre class="methodSignature">public static void validateWriteSchema​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> tableSchema, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> writeSchema, |
| java.lang.Boolean checkNullability, |
| java.lang.Boolean checkOrdering)</pre> |
| <div class="block">Check whether we could write the iceberg table with the user-provided write schema.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>tableSchema</code> - the table schema written in iceberg meta data.</dd> |
| <dd><code>writeSchema</code> - the user-provided write schema.</dd> |
| <dd><code>checkNullability</code> - If true, not allow to write optional values to a required field.</dd> |
| <dd><code>checkOrdering</code> - If true, not allow input schema to have different ordering than table schema.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="validateSchema(java.lang.String,org.apache.iceberg.Schema,org.apache.iceberg.Schema,boolean,boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>validateSchema</h4> |
| <pre class="methodSignature">public static void validateSchema​(java.lang.String context, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> expectedSchema, |
| <a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> providedSchema, |
| boolean checkNullability, |
| boolean checkOrdering)</pre> |
| <div class="block">Validates whether the provided schema is compatible with the expected schema.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>context</code> - the schema context (e.g. row ID)</dd> |
| <dd><code>expectedSchema</code> - the expected schema</dd> |
| <dd><code>providedSchema</code> - the provided schema</dd> |
| <dd><code>checkNullability</code> - whether to check field nullability</dd> |
| <dd><code>checkOrdering</code> - whether to check field ordering</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="visit(org.apache.iceberg.Schema,org.apache.iceberg.types.TypeUtil.SchemaVisitor)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>visit</h4> |
| <pre class="methodSignature">public static <T> T visit​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="TypeUtil.SchemaVisitor.html" title="class in org.apache.iceberg.types">TypeUtil.SchemaVisitor</a><T> visitor)</pre> |
| </li> |
| </ul> |
| <a id="visit(org.apache.iceberg.types.Type,org.apache.iceberg.types.TypeUtil.SchemaVisitor)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>visit</h4> |
| <pre class="methodSignature">public static <T> T visit​(<a href="Type.html" title="interface in org.apache.iceberg.types">Type</a> type, |
| <a href="TypeUtil.SchemaVisitor.html" title="class in org.apache.iceberg.types">TypeUtil.SchemaVisitor</a><T> visitor)</pre> |
| </li> |
| </ul> |
| <a id="visit(org.apache.iceberg.Schema,org.apache.iceberg.types.TypeUtil.CustomOrderSchemaVisitor)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>visit</h4> |
| <pre class="methodSignature">public static <T> T visit​(<a href="../Schema.html" title="class in org.apache.iceberg">Schema</a> schema, |
| <a href="TypeUtil.CustomOrderSchemaVisitor.html" title="class in org.apache.iceberg.types">TypeUtil.CustomOrderSchemaVisitor</a><T> visitor)</pre> |
| </li> |
| </ul> |
| <a id="visit(org.apache.iceberg.types.Type,org.apache.iceberg.types.TypeUtil.CustomOrderSchemaVisitor)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>visit</h4> |
| <pre class="methodSignature">public static <T> T visit​(<a href="Type.html" title="interface in org.apache.iceberg.types">Type</a> type, |
| <a href="TypeUtil.CustomOrderSchemaVisitor.html" title="class in org.apache.iceberg.types">TypeUtil.CustomOrderSchemaVisitor</a><T> visitor)</pre> |
| <div class="block">Used to traverse types with traversals other than pre-order. |
| <p> |
| This passes a <code>Supplier</code> to each <a href="TypeUtil.CustomOrderSchemaVisitor.html" title="class in org.apache.iceberg.types"><code>visitor</code></a> method that |
| returns the result of traversing child types. Structs are passed an <code>Iterable</code> that |
| traverses child fields during iteration. |
| <p> |
| An example use is assigning column IDs, which should be done with a post-order traversal.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - the type returned by the visitor</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>type</code> - a type to traverse with a visitor</dd> |
| <dd><code>visitor</code> - a custom order visitor</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the result of traversing the given type with the visitor</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="decimalRequiredBytes(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>decimalRequiredBytes</h4> |
| <pre class="methodSignature">public static int decimalRequiredBytes​(int precision)</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> |