blob: 98ff8cd480a8fd1caef2feae5b44dccf44c19a60 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Types (Drill : 1.20.3 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Types (Drill : 1.20.3 API)";
}
}
catch(err) {
}
//-->
var methods = {"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,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":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";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Types.html">Use</a></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">
<li><a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/drill/common/types/Types.html" target="_top">Frames</a></li>
<li><a href="Types.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></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>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.drill.common.types</div>
<h2 title="Class Types" class="title">Class Types</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.drill.common.types.Types</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">Types</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#LATE_BIND_TYPE">LATE_BIND_TYPE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#MAX_VARCHAR_LENGTH">MAX_VARCHAR_LENGTH</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#NULL">NULL</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#OPTIONAL_BIT">OPTIONAL_BIT</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#OPTIONAL_INT">OPTIONAL_INT</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#REQUIRED_BIT">REQUIRED_BIT</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#UNDEFINED">UNDEFINED</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#Types--">Types</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#areDecimalTypes-org.apache.drill.common.types.TypeProtos.MinorType...-">areDecimalTypes</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>...&nbsp;types)</code>
<div class="block">Returns true if all specified types are decimal data types.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.Builder.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType.Builder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#calculateTypePrecisionAndScale-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.MajorType.Builder-">calculateTypePrecisionAndScale</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;leftType,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;rightType,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.Builder.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType.Builder</a>&nbsp;typeBuilder)</code>
<div class="block">Sets max precision from both types if these types are string scalar types.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#getBaseSqlTypeName-org.apache.drill.common.types.TypeProtos.MajorType-">getBaseSqlTypeName</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#getExtendedSqlTypeName-org.apache.drill.common.types.TypeProtos.MajorType-">getExtendedSqlTypeName</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>
<div class="block">Extend decimal type with precision and scale.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#getJdbcDisplaySize-org.apache.drill.common.types.TypeProtos.MajorType-">getJdbcDisplaySize</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#getJdbcTypeCode-java.lang.String-">getJdbcTypeCode</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;sqlTypeName)</code>
<div class="block">Gets JDBC type code for given SQL data type name.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#getMajorTypeFromName-java.lang.String-">getMajorTypeFromName</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;typeName)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#getMajorTypeFromName-java.lang.String-org.apache.drill.common.types.TypeProtos.DataMode-">getMajorTypeFromName</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;typeName,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html" title="enum in org.apache.drill.common.types">TypeProtos.DataMode</a>&nbsp;mode)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#getMinorTypeFromName-java.lang.String-">getMinorTypeFromName</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;typeName)</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#getNameOfMinorType-org.apache.drill.common.types.TypeProtos.MinorType-">getNameOfMinorType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#getPrecision-org.apache.drill.common.types.TypeProtos.MajorType-">getPrecision</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;majorType)</code>
<div class="block">Get the <code>precision</code> of given type.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#getScale-org.apache.drill.common.types.TypeProtos.MajorType-">getScale</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;majorType)</code>
<div class="block">Get the <code>scale</code> of given type.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#getSqlModeName-org.apache.drill.common.types.TypeProtos.MajorType-">getSqlModeName</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#getSqlTypeName-org.apache.drill.common.types.TypeProtos.MajorType-">getSqlTypeName</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>
<div class="block">Gets SQL data type name for given Drill RPC-/protobuf-level data type.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isComplex-org.apache.drill.common.types.TypeProtos.MajorType-">isComplex</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isDateTimeType-org.apache.drill.common.types.TypeProtos.MajorType-">isDateTimeType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isDateTimeType-org.apache.drill.common.types.TypeProtos.MinorType-">isDateTimeType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isDecimalType-org.apache.drill.common.types.TypeProtos.MajorType-">isDecimalType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>
<div class="block">Returns true if specified type is decimal data type.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isDecimalType-org.apache.drill.common.types.TypeProtos.MinorType-">isDecimalType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;minorType)</code>
<div class="block">Returns true if specified type is decimal data type.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isEquivalent-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.MajorType-">isEquivalent</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type1,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type2)</code>
<div class="block">Requires full type equality, including fields such as precision and scale.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isFixedWidthType-org.apache.drill.common.types.TypeProtos.MajorType-">isFixedWidthType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isFixedWidthType-org.apache.drill.common.types.TypeProtos.MinorType-">isFixedWidthType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isIntervalType-org.apache.drill.common.types.TypeProtos.MajorType-">isIntervalType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isIntervalType-org.apache.drill.common.types.TypeProtos.MinorType-">isIntervalType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isJdbcSignedType-org.apache.drill.common.types.TypeProtos.MajorType-">isJdbcSignedType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>
<div class="block">Reports whether given RPC-level type is a signed type (per semantics of
<a href="https://docs.oracle.com/javase/8/docs/api/java/sql/ResultSetMetaData.html?is-external=true#isSigned-int-" title="class or interface in java.sql"><code>ResultSetMetaData.isSigned(int)</code></a>).</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isNullable-org.apache.drill.common.types.TypeProtos.MajorType-">isNullable</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isNumericType-org.apache.drill.common.types.TypeProtos.MajorType-">isNumericType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isNumericType-org.apache.drill.common.types.TypeProtos.MinorType-">isNumericType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isRepeated-org.apache.drill.common.types.TypeProtos.MajorType-">isRepeated</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isSameType-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.MajorType-">isSameType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type1,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type2)</code>
<div class="block">Check if two "core" types are the same, ignoring subtypes and
children.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isSameTypeAndMode-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.MajorType-">isSameTypeAndMode</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;first,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;second)</code>
<div class="block">Check if two "core" types have the same minor type and data mode,
ignoring subtypes and children.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isScalarStringType-org.apache.drill.common.types.TypeProtos.MajorType-">isScalarStringType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>
<div class="block">Checks if given major type is string scalar type.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isSortable-org.apache.drill.common.types.TypeProtos.MinorType-">isSortable</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>
<div class="block">Checks if the given type column can be used in ORDER BY clause.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isUnion-org.apache.drill.common.types.TypeProtos.MajorType-">isUnion</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;toType)</code>&nbsp;</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isUntypedNull-org.apache.drill.common.types.TypeProtos.MajorType-">isUntypedNull</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#isVarWidthType-org.apache.drill.common.types.TypeProtos.MinorType-">isVarWidthType</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#maxPrecision-org.apache.drill.common.types.TypeProtos.MinorType-">maxPrecision</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#optional-org.apache.drill.common.types.TypeProtos.MinorType-">optional</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#overrideMode-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.DataMode-">overrideMode</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;originalMajorType,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html" title="enum in org.apache.drill.common.types">TypeProtos.DataMode</a>&nbsp;overrideMode)</code>&nbsp;</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#repeated-org.apache.drill.common.types.TypeProtos.MinorType-">repeated</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#required-org.apache.drill.common.types.TypeProtos.MinorType-">required</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#softEquals-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.MajorType-boolean-">softEquals</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;a,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;b,
boolean&nbsp;allowNullSwap)</code>&nbsp;</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#toString-org.apache.drill.common.types.TypeProtos.MajorType-">toString</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#typeKey-org.apache.drill.common.types.TypeProtos.MinorType-">typeKey</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>
<div class="block">The union vector is a map of types.</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#usesHolderForGet-org.apache.drill.common.types.TypeProtos.MajorType-">usesHolderForGet</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#withMode-org.apache.drill.common.types.TypeProtos.MinorType-org.apache.drill.common.types.TypeProtos.DataMode-">withMode</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html" title="enum in org.apache.drill.common.types">TypeProtos.DataMode</a>&nbsp;mode)</code>&nbsp;</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#withPrecision-org.apache.drill.common.types.TypeProtos.MinorType-org.apache.drill.common.types.TypeProtos.DataMode-int-">withPrecision</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html" title="enum in org.apache.drill.common.types">TypeProtos.DataMode</a>&nbsp;mode,
int&nbsp;precision)</code>
<div class="block">Builds major type using given minor type, data mode and precision.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/drill/common/types/Types.html#withPrecisionAndScale-org.apache.drill.common.types.TypeProtos.MinorType-org.apache.drill.common.types.TypeProtos.DataMode-int-int-">withPrecisionAndScale</a></span>(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html" title="enum in org.apache.drill.common.types">TypeProtos.DataMode</a>&nbsp;mode,
int&nbsp;precision,
int&nbsp;scale)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="MAX_VARCHAR_LENGTH">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MAX_VARCHAR_LENGTH</h4>
<pre>public static final&nbsp;int MAX_VARCHAR_LENGTH</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.drill.common.types.Types.MAX_VARCHAR_LENGTH">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="UNDEFINED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>UNDEFINED</h4>
<pre>public static final&nbsp;int UNDEFINED</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.drill.common.types.Types.UNDEFINED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="NULL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NULL</h4>
<pre>public static final&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a> NULL</pre>
</li>
</ul>
<a name="LATE_BIND_TYPE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LATE_BIND_TYPE</h4>
<pre>public static final&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a> LATE_BIND_TYPE</pre>
</li>
</ul>
<a name="REQUIRED_BIT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>REQUIRED_BIT</h4>
<pre>public static final&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a> REQUIRED_BIT</pre>
</li>
</ul>
<a name="OPTIONAL_BIT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>OPTIONAL_BIT</h4>
<pre>public static final&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a> OPTIONAL_BIT</pre>
</li>
</ul>
<a name="OPTIONAL_INT">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>OPTIONAL_INT</h4>
<pre>public static final&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a> OPTIONAL_INT</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Types--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Types</h4>
<pre>public&nbsp;Types()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="isUnion-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUnion</h4>
<pre>public static&nbsp;boolean&nbsp;isUnion(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;toType)</pre>
</li>
</ul>
<a name="isComplex-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isComplex</h4>
<pre>public static&nbsp;boolean&nbsp;isComplex(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="isRepeated-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isRepeated</h4>
<pre>public static&nbsp;boolean&nbsp;isRepeated(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="isNumericType-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNumericType</h4>
<pre>public static&nbsp;boolean&nbsp;isNumericType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="isNumericType-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNumericType</h4>
<pre>public static&nbsp;boolean&nbsp;isNumericType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="isDateTimeType-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDateTimeType</h4>
<pre>public static&nbsp;boolean&nbsp;isDateTimeType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="isDateTimeType-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDateTimeType</h4>
<pre>public static&nbsp;boolean&nbsp;isDateTimeType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="isIntervalType-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isIntervalType</h4>
<pre>public static&nbsp;boolean&nbsp;isIntervalType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="isIntervalType-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isIntervalType</h4>
<pre>public static&nbsp;boolean&nbsp;isIntervalType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="areDecimalTypes-org.apache.drill.common.types.TypeProtos.MinorType...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>areDecimalTypes</h4>
<pre>public static&nbsp;boolean&nbsp;areDecimalTypes(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>...&nbsp;types)</pre>
<div class="block">Returns true if all specified types are decimal data types.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>types</code> - types to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if all specified types are decimal data type.</dd>
</dl>
</li>
</ul>
<a name="isDecimalType-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDecimalType</h4>
<pre>public static&nbsp;boolean&nbsp;isDecimalType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
<div class="block">Returns true if specified type is decimal data type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - type to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if specified type is decimal data type.</dd>
</dl>
</li>
</ul>
<a name="isDecimalType-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDecimalType</h4>
<pre>public static&nbsp;boolean&nbsp;isDecimalType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;minorType)</pre>
<div class="block">Returns true if specified type is decimal data type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>minorType</code> - type to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if specified type is decimal data type.</dd>
</dl>
</li>
</ul>
<a name="getSqlTypeName-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSqlTypeName</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getSqlTypeName(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
<div class="block">Gets SQL data type name for given Drill RPC-/protobuf-level data type.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>canonical keyword sequence for SQL data type (leading keywords in
corresponding <code>&lt;data type&gt;</code>; what
<code>INFORMATION_SCHEMA.COLUMNS.TYPE_NAME</code> would list)</dd>
</dl>
</li>
</ul>
<a name="getBaseSqlTypeName-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBaseSqlTypeName</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getBaseSqlTypeName(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="getExtendedSqlTypeName-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getExtendedSqlTypeName</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getExtendedSqlTypeName(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
<div class="block">Extend decimal type with precision and scale.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - major type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>type name augmented with precision and scale,
if type is a decimal</dd>
</dl>
</li>
</ul>
<a name="getSqlModeName-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSqlModeName</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getSqlModeName(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="getJdbcTypeCode-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getJdbcTypeCode</h4>
<pre>public static&nbsp;int&nbsp;getJdbcTypeCode(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;sqlTypeName)</pre>
<div class="block">Gets JDBC type code for given SQL data type name.</div>
</li>
</ul>
<a name="isJdbcSignedType-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isJdbcSignedType</h4>
<pre>public static&nbsp;boolean&nbsp;isJdbcSignedType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
<div class="block">Reports whether given RPC-level type is a signed type (per semantics of
<a href="https://docs.oracle.com/javase/8/docs/api/java/sql/ResultSetMetaData.html?is-external=true#isSigned-int-" title="class or interface in java.sql"><code>ResultSetMetaData.isSigned(int)</code></a>).</div>
</li>
</ul>
<a name="getJdbcDisplaySize-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getJdbcDisplaySize</h4>
<pre>public static&nbsp;int&nbsp;getJdbcDisplaySize(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="usesHolderForGet-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>usesHolderForGet</h4>
<pre>public static&nbsp;boolean&nbsp;usesHolderForGet(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="isFixedWidthType-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isFixedWidthType</h4>
<pre>public static&nbsp;boolean&nbsp;isFixedWidthType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="isFixedWidthType-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isFixedWidthType</h4>
<pre>public static&nbsp;boolean&nbsp;isFixedWidthType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="isVarWidthType-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isVarWidthType</h4>
<pre>public static&nbsp;boolean&nbsp;isVarWidthType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="isScalarStringType-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isScalarStringType</h4>
<pre>public static&nbsp;boolean&nbsp;isScalarStringType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
<div class="block">Checks if given major type is string scalar type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - major type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if given major type is scalar string, false otherwise</dd>
</dl>
</li>
</ul>
<a name="softEquals-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.MajorType-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>softEquals</h4>
<pre>public static&nbsp;boolean&nbsp;softEquals(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;a,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;b,
boolean&nbsp;allowNullSwap)</pre>
</li>
</ul>
<a name="isUntypedNull-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUntypedNull</h4>
<pre>public static&nbsp;boolean&nbsp;isUntypedNull(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="withMode-org.apache.drill.common.types.TypeProtos.MinorType-org.apache.drill.common.types.TypeProtos.DataMode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withMode</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;withMode(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html" title="enum in org.apache.drill.common.types">TypeProtos.DataMode</a>&nbsp;mode)</pre>
</li>
</ul>
<a name="withPrecision-org.apache.drill.common.types.TypeProtos.MinorType-org.apache.drill.common.types.TypeProtos.DataMode-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withPrecision</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;withPrecision(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html" title="enum in org.apache.drill.common.types">TypeProtos.DataMode</a>&nbsp;mode,
int&nbsp;precision)</pre>
<div class="block">Builds major type using given minor type, data mode and precision.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - minor type</dd>
<dd><code>mode</code> - data mode</dd>
<dd><code>precision</code> - precision value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>major type</dd>
</dl>
</li>
</ul>
<a name="withPrecisionAndScale-org.apache.drill.common.types.TypeProtos.MinorType-org.apache.drill.common.types.TypeProtos.DataMode-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withPrecisionAndScale</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;withPrecisionAndScale(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html" title="enum in org.apache.drill.common.types">TypeProtos.DataMode</a>&nbsp;mode,
int&nbsp;precision,
int&nbsp;scale)</pre>
</li>
</ul>
<a name="required-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>required</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;required(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="repeated-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>repeated</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;repeated(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="optional-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>optional</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;optional(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="overrideMode-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.DataMode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>overrideMode</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;overrideMode(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;originalMajorType,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html" title="enum in org.apache.drill.common.types">TypeProtos.DataMode</a>&nbsp;overrideMode)</pre>
</li>
</ul>
<a name="getMajorTypeFromName-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMajorTypeFromName</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;getMajorTypeFromName(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;typeName)</pre>
</li>
</ul>
<a name="getMinorTypeFromName-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMinorTypeFromName</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;getMinorTypeFromName(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;typeName)</pre>
</li>
</ul>
<a name="getMajorTypeFromName-java.lang.String-org.apache.drill.common.types.TypeProtos.DataMode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMajorTypeFromName</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;getMajorTypeFromName(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;typeName,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html" title="enum in org.apache.drill.common.types">TypeProtos.DataMode</a>&nbsp;mode)</pre>
</li>
</ul>
<a name="getNameOfMinorType-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNameOfMinorType</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getNameOfMinorType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="toString-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="getPrecision-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrecision</h4>
<pre>public static&nbsp;int&nbsp;getPrecision(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;majorType)</pre>
<div class="block">Get the <code>precision</code> of given type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>majorType</code> - major type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>precision value</dd>
</dl>
</li>
</ul>
<a name="getScale-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScale</h4>
<pre>public static&nbsp;int&nbsp;getScale(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;majorType)</pre>
<div class="block">Get the <code>scale</code> of given type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>majorType</code> - major type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>scale value</dd>
</dl>
</li>
</ul>
<a name="isSortable-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSortable</h4>
<pre>public static&nbsp;boolean&nbsp;isSortable(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
<div class="block">Checks if the given type column can be used in ORDER BY clause.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - minor type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if type can be used in ORDER BY clause</dd>
</dl>
</li>
</ul>
<a name="calculateTypePrecisionAndScale-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.MajorType.Builder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calculateTypePrecisionAndScale</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.Builder.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType.Builder</a>&nbsp;calculateTypePrecisionAndScale(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;leftType,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;rightType,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.Builder.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType.Builder</a>&nbsp;typeBuilder)</pre>
<div class="block">Sets max precision from both types if these types are string scalar types.
Sets max precision and scale from both types if these types are decimal types.
Both types should be of the same minor type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>leftType</code> - type from left side</dd>
<dd><code>rightType</code> - type from right side</dd>
<dd><code>typeBuilder</code> - type builder</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>type builder</dd>
</dl>
</li>
</ul>
<a name="isSameType-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSameType</h4>
<pre>public static&nbsp;boolean&nbsp;isSameType(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type1,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type2)</pre>
<div class="block">Check if two "core" types are the same, ignoring subtypes and
children. Primarily for non-complex types.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type1</code> - first type</dd>
<dd><code>type2</code> - second type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the two types have the same minor type, mode,
precision and scale</dd>
</dl>
</li>
</ul>
<a name="isSameTypeAndMode-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSameTypeAndMode</h4>
<pre>public static&nbsp;boolean&nbsp;isSameTypeAndMode(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;first,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;second)</pre>
<div class="block">Check if two "core" types have the same minor type and data mode,
ignoring subtypes and children. Primarily for non-complex types.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>first</code> - first type to check</dd>
<dd><code>second</code> - second type to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the two types have the same minor type and mode,
<code>false</code> otherwise</dd>
</dl>
</li>
</ul>
<a name="isEquivalent-org.apache.drill.common.types.TypeProtos.MajorType-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEquivalent</h4>
<pre>public static&nbsp;boolean&nbsp;isEquivalent(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type1,
<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type2)</pre>
<div class="block">Requires full type equality, including fields such as precision and scale.
But, unset fields are equivalent to 0. Can't use the protobuf-provided
isEquals() which treats set and unset fields as different.</div>
</li>
</ul>
<a name="typeKey-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>typeKey</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;typeKey(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
<div class="block">The union vector is a map of types. The following method provides
the standard name to use in the type map. It replaces the many
ad-hoc appearances of this code in each reference to the map.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - Drill data type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>string key to use for this type in a union vector type
map</dd>
</dl>
</li>
</ul>
<a name="maxPrecision-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>maxPrecision</h4>
<pre>public static&nbsp;int&nbsp;maxPrecision(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="isNullable-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>isNullable</h4>
<pre>public static&nbsp;boolean&nbsp;isNullable(<a href="../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Types.html">Use</a></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">
<li><a href="../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/drill/common/types/Types.html" target="_top">Frames</a></li>
<li><a href="Types.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 1970 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>