<!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 (version 1.7.0_51) on Wed Sep 16 10:26:32 PDT 2015 -->
<title>Column</title>
<meta name="date" content="2015-09-16">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Column";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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="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/spark/sql/AnalysisException.html" title="class in org.apache.spark.sql"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/apache/spark/sql/ColumnName.html" title="class in org.apache.spark.sql"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/spark/sql/Column.html" target="_top">Frames</a></li>
<li><a href="Column.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All 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: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </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.spark.sql</div>
<h2 title="Class Column" class="title">Class Column</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.spark.sql.Column</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../org/apache/spark/Logging.html" title="interface in org.apache.spark">Logging</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../org/apache/spark/sql/ColumnName.html" title="class in org.apache.spark.sql">ColumnName</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">Column</span>
extends java.lang.Object
implements <a href="../../../../org/apache/spark/Logging.html" title="interface in org.apache.spark">Logging</a></pre>
<div class="block">:: Experimental ::
A column in a <a href="../../../../org/apache/spark/sql/DataFrame.html" title="class in org.apache.spark.sql"><code>DataFrame</code></a>.
<p></div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#Column(org.apache.spark.sql.catalyst.expressions.Expression)">Column</a></strong>(org.apache.spark.sql.catalyst.expressions.Expression expr)</code> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#Column(java.lang.String)">Column</a></strong>(java.lang.String name)</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#alias(java.lang.String)">alias</a></strong>(java.lang.String alias)</code>
<div class="block">Gives the column an alias.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#and(org.apache.spark.sql.Column)">and</a></strong>(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> other)</code>
<div class="block">Boolean AND.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#apply(java.lang.Object)">apply</a></strong>(java.lang.Object extraction)</code>
<div class="block">Extracts a value or values from a complex type.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#as(scala.collection.Seq)">as</a></strong>(scala.collection.Seq<java.lang.String> aliases)</code>
<div class="block">(Scala-specific) Assigns the given aliases to the results of a table generating function.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#as(java.lang.String)">as</a></strong>(java.lang.String alias)</code>
<div class="block">Gives the column an alias.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#as(java.lang.String[])">as</a></strong>(java.lang.String[] aliases)</code>
<div class="block">Assigns the given aliases to the results of a table generating function.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#as(java.lang.String, org.apache.spark.sql.types.Metadata)">as</a></strong>(java.lang.String alias,
<a href="../../../../org/apache/spark/sql/types/Metadata.html" title="class in org.apache.spark.sql.types">Metadata</a> metadata)</code>
<div class="block">Gives the column an alias with metadata.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#as(scala.Symbol)">as</a></strong>(scala.Symbol alias)</code>
<div class="block">Gives the column an alias.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#asc()">asc</a></strong>()</code>
<div class="block">Returns an ordering used in sorting.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#between(java.lang.Object, java.lang.Object)">between</a></strong>(java.lang.Object lowerBound,
java.lang.Object upperBound)</code>
<div class="block">True if the current column is between the lower bound and upper bound, inclusive.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#bitwiseAND(java.lang.Object)">bitwiseAND</a></strong>(java.lang.Object other)</code>
<div class="block">Compute bitwise AND of this expression with another expression.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#bitwiseOR(java.lang.Object)">bitwiseOR</a></strong>(java.lang.Object other)</code>
<div class="block">Compute bitwise OR of this expression with another expression.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#bitwiseXOR(java.lang.Object)">bitwiseXOR</a></strong>(java.lang.Object other)</code>
<div class="block">Compute bitwise XOR of this expression with another expression.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#cast(org.apache.spark.sql.types.DataType)">cast</a></strong>(<a href="../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">DataType</a> to)</code>
<div class="block">Casts the column to a different data type.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#cast(java.lang.String)">cast</a></strong>(java.lang.String to)</code>
<div class="block">Casts the column to a different data type, using the canonical string representation
of the type.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#contains(java.lang.Object)">contains</a></strong>(java.lang.Object other)</code>
<div class="block">Contains the other element.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#desc()">desc</a></strong>()</code>
<div class="block">Returns an ordering used in sorting.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#divide(java.lang.Object)">divide</a></strong>(java.lang.Object other)</code>
<div class="block">Division this expression by another expression.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#endsWith(org.apache.spark.sql.Column)">endsWith</a></strong>(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> other)</code>
<div class="block">String ends with.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#endsWith(java.lang.String)">endsWith</a></strong>(java.lang.String literal)</code>
<div class="block">String ends with another string literal.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#eqNullSafe(java.lang.Object)">eqNullSafe</a></strong>(java.lang.Object other)</code>
<div class="block">Equality test that is safe for null values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#equals(java.lang.Object)">equals</a></strong>(java.lang.Object that)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#equalTo(java.lang.Object)">equalTo</a></strong>(java.lang.Object other)</code>
<div class="block">Equality test.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#explain(boolean)">explain</a></strong>(boolean extended)</code>
<div class="block">Prints the expression to the console for debugging purpose.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected org.apache.spark.sql.catalyst.expressions.Expression</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#expr()">expr</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#geq(java.lang.Object)">geq</a></strong>(java.lang.Object other)</code>
<div class="block">Greater than or equal to an expression.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#getField(java.lang.String)">getField</a></strong>(java.lang.String fieldName)</code>
<div class="block">An expression that gets a field by name in a <code>StructType</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#getItem(java.lang.Object)">getItem</a></strong>(java.lang.Object key)</code>
<div class="block">An expression that gets an item at position <code>ordinal</code> out of an array,
or gets a value by key <code>key</code> in a <code>MapType</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#gt(java.lang.Object)">gt</a></strong>(java.lang.Object other)</code>
<div class="block">Greater than.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#hashCode()">hashCode</a></strong>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#in(java.lang.Object...)">in</a></strong>(java.lang.Object... list)</code>
<div class="block">A boolean expression that is evaluated to true if the value of this expression is contained
by the evaluated values of the arguments.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#in(scala.collection.Seq)">in</a></strong>(scala.collection.Seq<java.lang.Object> list)</code>
<div class="block">A boolean expression that is evaluated to true if the value of this expression is contained
by the evaluated values of the arguments.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#isin(java.lang.Object...)">isin</a></strong>(java.lang.Object... list)</code>
<div class="block">A boolean expression that is evaluated to true if the value of this expression is contained
by the evaluated values of the arguments.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#isin(scala.collection.Seq)">isin</a></strong>(scala.collection.Seq<java.lang.Object> list)</code>
<div class="block">A boolean expression that is evaluated to true if the value of this expression is contained
by the evaluated values of the arguments.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#isNaN()">isNaN</a></strong>()</code>
<div class="block">True if the current expression is NaN.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#isNotNull()">isNotNull</a></strong>()</code>
<div class="block">True if the current expression is NOT null.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#isNull()">isNull</a></strong>()</code>
<div class="block">True if the current expression is null.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#leq(java.lang.Object)">leq</a></strong>(java.lang.Object other)</code>
<div class="block">Less than or equal to.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#like(java.lang.String)">like</a></strong>(java.lang.String literal)</code>
<div class="block">SQL like expression.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#lt(java.lang.Object)">lt</a></strong>(java.lang.Object other)</code>
<div class="block">Less than.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#minus(java.lang.Object)">minus</a></strong>(java.lang.Object other)</code>
<div class="block">Subtraction.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#mod(java.lang.Object)">mod</a></strong>(java.lang.Object other)</code>
<div class="block">Modulo (a.k.a.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#multiply(java.lang.Object)">multiply</a></strong>(java.lang.Object other)</code>
<div class="block">Multiplication of this expression and another expression.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#notEqual(java.lang.Object)">notEqual</a></strong>(java.lang.Object other)</code>
<div class="block">Inequality test.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#or(org.apache.spark.sql.Column)">or</a></strong>(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> other)</code>
<div class="block">Boolean OR.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#otherwise(java.lang.Object)">otherwise</a></strong>(java.lang.Object value)</code>
<div class="block">Evaluates a list of conditions and returns one of multiple possible result expressions.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#over(org.apache.spark.sql.expressions.WindowSpec)">over</a></strong>(<a href="../../../../org/apache/spark/sql/expressions/WindowSpec.html" title="class in org.apache.spark.sql.expressions">WindowSpec</a> window)</code>
<div class="block">Define a windowing column.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#plus(java.lang.Object)">plus</a></strong>(java.lang.Object other)</code>
<div class="block">Sum of this expression and another expression.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#rlike(java.lang.String)">rlike</a></strong>(java.lang.String literal)</code>
<div class="block">SQL RLIKE expression (LIKE with Regex).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#startsWith(org.apache.spark.sql.Column)">startsWith</a></strong>(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> other)</code>
<div class="block">String starts with.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#startsWith(java.lang.String)">startsWith</a></strong>(java.lang.String literal)</code>
<div class="block">String starts with another string literal.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#substr(org.apache.spark.sql.Column, org.apache.spark.sql.Column)">substr</a></strong>(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> startPos,
<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> len)</code>
<div class="block">An expression that returns a substring.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#substr(int, int)">substr</a></strong>(int startPos,
int len)</code>
<div class="block">An expression that returns a substring.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#toString()">toString</a></strong>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static scala.Option<org.apache.spark.sql.catalyst.expressions.Expression></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#unapply(org.apache.spark.sql.Column)">unapply</a></strong>(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> col)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/spark/sql/Column.html#when(org.apache.spark.sql.Column, java.lang.Object)">when</a></strong>(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> condition,
java.lang.Object value)</code>
<div class="block">Evaluates a list of conditions and returns one of multiple possible result expressions.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.spark.Logging">
<!-- -->
</a>
<h3>Methods inherited from interface org.apache.spark.<a href="../../../../org/apache/spark/Logging.html" title="interface in org.apache.spark">Logging</a></h3>
<code><a href="../../../../org/apache/spark/Logging.html#initializeIfNecessary()">initializeIfNecessary</a>, <a href="../../../../org/apache/spark/Logging.html#initializeLogging()">initializeLogging</a>, <a href="../../../../org/apache/spark/Logging.html#isTraceEnabled()">isTraceEnabled</a>, <a href="../../../../org/apache/spark/Logging.html#log_()">log_</a>, <a href="../../../../org/apache/spark/Logging.html#log()">log</a>, <a href="../../../../org/apache/spark/Logging.html#logDebug(scala.Function0)">logDebug</a>, <a href="../../../../org/apache/spark/Logging.html#logDebug(scala.Function0, java.lang.Throwable)">logDebug</a>, <a href="../../../../org/apache/spark/Logging.html#logError(scala.Function0)">logError</a>, <a href="../../../../org/apache/spark/Logging.html#logError(scala.Function0, java.lang.Throwable)">logError</a>, <a href="../../../../org/apache/spark/Logging.html#logInfo(scala.Function0)">logInfo</a>, <a href="../../../../org/apache/spark/Logging.html#logInfo(scala.Function0, java.lang.Throwable)">logInfo</a>, <a href="../../../../org/apache/spark/Logging.html#logName()">logName</a>, <a href="../../../../org/apache/spark/Logging.html#logTrace(scala.Function0)">logTrace</a>, <a href="../../../../org/apache/spark/Logging.html#logTrace(scala.Function0, java.lang.Throwable)">logTrace</a>, <a href="../../../../org/apache/spark/Logging.html#logWarning(scala.Function0)">logWarning</a>, <a href="../../../../org/apache/spark/Logging.html#logWarning(scala.Function0, java.lang.Throwable)">logWarning</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Column(org.apache.spark.sql.catalyst.expressions.Expression)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Column</h4>
<pre>public Column(org.apache.spark.sql.catalyst.expressions.Expression expr)</pre>
</li>
</ul>
<a name="Column(java.lang.String)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Column</h4>
<pre>public Column(java.lang.String name)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="unapply(org.apache.spark.sql.Column)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unapply</h4>
<pre>public static scala.Option<org.apache.spark.sql.catalyst.expressions.Expression> unapply(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> col)</pre>
</li>
</ul>
<a name="in(java.lang.Object...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>in</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> in(java.lang.Object... list)</pre>
<div class="block">A boolean expression that is evaluated to true if the value of this expression is contained
by the evaluated values of the arguments.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>list</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="isin(java.lang.Object...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isin</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> isin(java.lang.Object... list)</pre>
<div class="block">A boolean expression that is evaluated to true if the value of this expression is contained
by the evaluated values of the arguments.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>list</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.5.0</dd></dl>
</li>
</ul>
<a name="expr()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>expr</h4>
<pre>protected org.apache.spark.sql.catalyst.expressions.Expression expr()</pre>
</li>
</ul>
<a name="toString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public java.lang.String toString()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="equals(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public boolean equals(java.lang.Object that)</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>equals</code> in class <code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="hashCode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public int hashCode()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>hashCode</code> in class <code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="apply(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>apply</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> apply(java.lang.Object extraction)</pre>
<div class="block">Extracts a value or values from a complex type.
The following types of extraction are supported:
- Given an Array, an integer ordinal can be used to retrieve a single value.
- Given a Map, a key of the correct type can be used to retrieve an individual value.
- Given a Struct, a string fieldName can be used to extract that field.
- Given an Array of Structs, a string fieldName can be used to extract filed
of every struct in that array, and return an Array of fields
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>extraction</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4.0</dd></dl>
</li>
</ul>
<a name="equalTo(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equalTo</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> equalTo(java.lang.Object other)</pre>
<div class="block">Equality test.
<pre><code>
// Scala:
df.filter( df("colA") === df("colB") )
// Java
import static org.apache.spark.sql.functions.*;
df.filter( col("colA").equalTo(col("colB")) );
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="notEqual(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>notEqual</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> notEqual(java.lang.Object other)</pre>
<div class="block">Inequality test.
<pre><code>
// Scala:
df.select( df("colA") !== df("colB") )
df.select( !(df("colA") === df("colB")) )
// Java:
import static org.apache.spark.sql.functions.*;
df.filter( col("colA").notEqual(col("colB")) );
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="gt(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gt</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> gt(java.lang.Object other)</pre>
<div class="block">Greater than.
<pre><code>
// Scala: The following selects people older than 21.
people.select( people("age") > lit(21) )
// Java:
import static org.apache.spark.sql.functions.*;
people.select( people("age").gt(21) );
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="lt(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lt</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> lt(java.lang.Object other)</pre>
<div class="block">Less than.
<pre><code>
// Scala: The following selects people younger than 21.
people.select( people("age") < 21 )
// Java:
people.select( people("age").lt(21) );
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="leq(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>leq</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> leq(java.lang.Object other)</pre>
<div class="block">Less than or equal to.
<pre><code>
// Scala: The following selects people age 21 or younger than 21.
people.select( people("age") <= 21 )
// Java:
people.select( people("age").leq(21) );
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="geq(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>geq</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> geq(java.lang.Object other)</pre>
<div class="block">Greater than or equal to an expression.
<pre><code>
// Scala: The following selects people age 21 or older than 21.
people.select( people("age") >= 21 )
// Java:
people.select( people("age").geq(21) )
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="eqNullSafe(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eqNullSafe</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> eqNullSafe(java.lang.Object other)</pre>
<div class="block">Equality test that is safe for null values.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="when(org.apache.spark.sql.Column, java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>when</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> when(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> condition,
java.lang.Object value)</pre>
<div class="block">Evaluates a list of conditions and returns one of multiple possible result expressions.
If otherwise is not defined at the end, null is returned for unmatched conditions.
<p>
<pre><code>
// Example: encoding gender string column into integer.
// Scala:
people.select(when(people("gender") === "male", 0)
.when(people("gender") === "female", 1)
.otherwise(2))
// Java:
people.select(when(col("gender").equalTo("male"), 0)
.when(col("gender").equalTo("female"), 1)
.otherwise(2))
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>condition</code> - (undocumented)</dd><dd><code>value</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4.0</dd></dl>
</li>
</ul>
<a name="otherwise(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>otherwise</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> otherwise(java.lang.Object value)</pre>
<div class="block">Evaluates a list of conditions and returns one of multiple possible result expressions.
If otherwise is not defined at the end, null is returned for unmatched conditions.
<p>
<pre><code>
// Example: encoding gender string column into integer.
// Scala:
people.select(when(people("gender") === "male", 0)
.when(people("gender") === "female", 1)
.otherwise(2))
// Java:
people.select(when(col("gender").equalTo("male"), 0)
.when(col("gender").equalTo("female"), 1)
.otherwise(2))
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4.0</dd></dl>
</li>
</ul>
<a name="between(java.lang.Object, java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>between</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> between(java.lang.Object lowerBound,
java.lang.Object upperBound)</pre>
<div class="block">True if the current column is between the lower bound and upper bound, inclusive.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>lowerBound</code> - (undocumented)</dd><dd><code>upperBound</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4.0</dd></dl>
</li>
</ul>
<a name="isNaN()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNaN</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> isNaN()</pre>
<div class="block">True if the current expression is NaN.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.5.0</dd></dl>
</li>
</ul>
<a name="isNull()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNull</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> isNull()</pre>
<div class="block">True if the current expression is null.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="isNotNull()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNotNull</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> isNotNull()</pre>
<div class="block">True if the current expression is NOT null.
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="or(org.apache.spark.sql.Column)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>or</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> or(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> other)</pre>
<div class="block">Boolean OR.
<pre><code>
// Scala: The following selects people that are in school or employed.
people.filter( people("inSchool") || people("isEmployed") )
// Java:
people.filter( people("inSchool").or(people("isEmployed")) );
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="and(org.apache.spark.sql.Column)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>and</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> and(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> other)</pre>
<div class="block">Boolean AND.
<pre><code>
// Scala: The following selects people that are in school and employed at the same time.
people.select( people("inSchool") && people("isEmployed") )
// Java:
people.select( people("inSchool").and(people("isEmployed")) );
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="plus(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>plus</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> plus(java.lang.Object other)</pre>
<div class="block">Sum of this expression and another expression.
<pre><code>
// Scala: The following selects the sum of a person's height and weight.
people.select( people("height") + people("weight") )
// Java:
people.select( people("height").plus(people("weight")) );
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="minus(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minus</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> minus(java.lang.Object other)</pre>
<div class="block">Subtraction. Subtract the other expression from this expression.
<pre><code>
// Scala: The following selects the difference between people's height and their weight.
people.select( people("height") - people("weight") )
// Java:
people.select( people("height").minus(people("weight")) );
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="multiply(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>multiply</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> multiply(java.lang.Object other)</pre>
<div class="block">Multiplication of this expression and another expression.
<pre><code>
// Scala: The following multiplies a person's height by their weight.
people.select( people("height") * people("weight") )
// Java:
people.select( people("height").multiply(people("weight")) );
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="divide(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>divide</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> divide(java.lang.Object other)</pre>
<div class="block">Division this expression by another expression.
<pre><code>
// Scala: The following divides a person's height by their weight.
people.select( people("height") / people("weight") )
// Java:
people.select( people("height").divide(people("weight")) );
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="mod(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mod</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> mod(java.lang.Object other)</pre>
<div class="block">Modulo (a.k.a. remainder) expression.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="in(scala.collection.Seq)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>in</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> in(scala.collection.Seq<java.lang.Object> list)</pre>
<div class="block">A boolean expression that is evaluated to true if the value of this expression is contained
by the evaluated values of the arguments.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>list</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="isin(scala.collection.Seq)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isin</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> isin(scala.collection.Seq<java.lang.Object> list)</pre>
<div class="block">A boolean expression that is evaluated to true if the value of this expression is contained
by the evaluated values of the arguments.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>list</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.5.0</dd></dl>
</li>
</ul>
<a name="like(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>like</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> like(java.lang.String literal)</pre>
<div class="block">SQL like expression.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>literal</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="rlike(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rlike</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> rlike(java.lang.String literal)</pre>
<div class="block">SQL RLIKE expression (LIKE with Regex).
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>literal</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="getItem(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getItem</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> getItem(java.lang.Object key)</pre>
<div class="block">An expression that gets an item at position <code>ordinal</code> out of an array,
or gets a value by key <code>key</code> in a <code>MapType</code>.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="getField(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getField</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> getField(java.lang.String fieldName)</pre>
<div class="block">An expression that gets a field by name in a <code>StructType</code>.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldName</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="substr(org.apache.spark.sql.Column, org.apache.spark.sql.Column)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>substr</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> substr(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> startPos,
<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> len)</pre>
<div class="block">An expression that returns a substring.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>startPos</code> - expression for the starting position.</dd><dd><code>len</code> - expression for the length of the substring.
<p></dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="substr(int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>substr</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> substr(int startPos,
int len)</pre>
<div class="block">An expression that returns a substring.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>startPos</code> - starting position.</dd><dd><code>len</code> - length of the substring.
<p></dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="contains(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contains</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> contains(java.lang.Object other)</pre>
<div class="block">Contains the other element.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="startsWith(org.apache.spark.sql.Column)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startsWith</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> startsWith(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> other)</pre>
<div class="block">String starts with.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="startsWith(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startsWith</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> startsWith(java.lang.String literal)</pre>
<div class="block">String starts with another string literal.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>literal</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="endsWith(org.apache.spark.sql.Column)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>endsWith</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> endsWith(<a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> other)</pre>
<div class="block">String ends with.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="endsWith(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>endsWith</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> endsWith(java.lang.String literal)</pre>
<div class="block">String ends with another string literal.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>literal</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="alias(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>alias</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> alias(java.lang.String alias)</pre>
<div class="block">Gives the column an alias. Same as <code>as</code>.
<pre><code>
// Renames colA to colB in select output.
df.select($"colA".alias("colB"))
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>alias</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4.0</dd></dl>
</li>
</ul>
<a name="as(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>as</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> as(java.lang.String alias)</pre>
<div class="block">Gives the column an alias.
<pre><code>
// Renames colA to colB in select output.
df.select($"colA".as("colB"))
</code></pre>
<p>
If the current column has metadata associated with it, this metadata will be propagated
to the new column. If this not desired, use <code>as</code> with explicitly empty metadata.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>alias</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="as(scala.collection.Seq)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>as</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> as(scala.collection.Seq<java.lang.String> aliases)</pre>
<div class="block">(Scala-specific) Assigns the given aliases to the results of a table generating function.
<pre><code>
// Renames colA to colB in select output.
df.select(explode($"myMap").as("key" :: "value" :: Nil))
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aliases</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4.0</dd></dl>
</li>
</ul>
<a name="as(java.lang.String[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>as</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> as(java.lang.String[] aliases)</pre>
<div class="block">Assigns the given aliases to the results of a table generating function.
<pre><code>
// Renames colA to colB in select output.
df.select(explode($"myMap").as("key" :: "value" :: Nil))
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aliases</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4.0</dd></dl>
</li>
</ul>
<a name="as(scala.Symbol)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>as</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> as(scala.Symbol alias)</pre>
<div class="block">Gives the column an alias.
<pre><code>
// Renames colA to colB in select output.
df.select($"colA".as('colB))
</code></pre>
<p>
If the current column has metadata associated with it, this metadata will be propagated
to the new column. If this not desired, use <code>as</code> with explicitly empty metadata.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>alias</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="as(java.lang.String, org.apache.spark.sql.types.Metadata)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>as</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> as(java.lang.String alias,
<a href="../../../../org/apache/spark/sql/types/Metadata.html" title="class in org.apache.spark.sql.types">Metadata</a> metadata)</pre>
<div class="block">Gives the column an alias with metadata.
<pre><code>
val metadata: Metadata = ...
df.select($"colA".as("colB", metadata))
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>alias</code> - (undocumented)</dd><dd><code>metadata</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="cast(org.apache.spark.sql.types.DataType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cast</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> cast(<a href="../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">DataType</a> to)</pre>
<div class="block">Casts the column to a different data type.
<pre><code>
// Casts colA to IntegerType.
import org.apache.spark.sql.types.IntegerType
df.select(df("colA").cast(IntegerType))
// equivalent to
df.select(df("colA").cast("int"))
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>to</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="cast(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cast</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> cast(java.lang.String to)</pre>
<div class="block">Casts the column to a different data type, using the canonical string representation
of the type. The supported types are: <code>string</code>, <code>boolean</code>, <code>byte</code>, <code>short</code>, <code>int</code>, <code>long</code>,
<code>float</code>, <code>double</code>, <code>decimal</code>, <code>date</code>, <code>timestamp</code>.
<pre><code>
// Casts colA to integer.
df.select(df("colA").cast("int"))
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>to</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="desc()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>desc</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> desc()</pre>
<div class="block">Returns an ordering used in sorting.
<pre><code>
// Scala: sort a DataFrame by age column in descending order.
df.sort(df("age").desc)
// Java
df.sort(df.col("age").desc());
</code></pre>
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="asc()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asc</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> asc()</pre>
<div class="block">Returns an ordering used in sorting.
<pre><code>
// Scala: sort a DataFrame by age column in ascending order.
df.sort(df("age").asc)
// Java
df.sort(df.col("age").asc());
</code></pre>
<p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="explain(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>explain</h4>
<pre>public void explain(boolean extended)</pre>
<div class="block">Prints the expression to the console for debugging purpose.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>extended</code> - (undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.3.0</dd></dl>
</li>
</ul>
<a name="bitwiseOR(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bitwiseOR</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> bitwiseOR(java.lang.Object other)</pre>
<div class="block">Compute bitwise OR of this expression with another expression.
<pre><code>
df.select($"colA".bitwiseOR($"colB"))
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4.0</dd></dl>
</li>
</ul>
<a name="bitwiseAND(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bitwiseAND</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> bitwiseAND(java.lang.Object other)</pre>
<div class="block">Compute bitwise AND of this expression with another expression.
<pre><code>
df.select($"colA".bitwiseAND($"colB"))
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4.0</dd></dl>
</li>
</ul>
<a name="bitwiseXOR(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bitwiseXOR</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> bitwiseXOR(java.lang.Object other)</pre>
<div class="block">Compute bitwise XOR of this expression with another expression.
<pre><code>
df.select($"colA".bitwiseXOR($"colB"))
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>other</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4.0</dd></dl>
</li>
</ul>
<a name="over(org.apache.spark.sql.expressions.WindowSpec)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>over</h4>
<pre>public <a href="../../../../org/apache/spark/sql/Column.html" title="class in org.apache.spark.sql">Column</a> over(<a href="../../../../org/apache/spark/sql/expressions/WindowSpec.html" title="class in org.apache.spark.sql.expressions">WindowSpec</a> window)</pre>
<div class="block">Define a windowing column.
<p>
<pre><code>
val w = Window.partitionBy("name").orderBy("id")
df.select(
sum("price").over(w.rangeBetween(Long.MinValue, 2)),
avg("price").over(w.rowsBetween(0, 4))
)
</code></pre>
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>window</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd><dt><span class="strong">Since:</span></dt>
<dd>1.4.0</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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="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/spark/sql/AnalysisException.html" title="class in org.apache.spark.sql"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/apache/spark/sql/ColumnName.html" title="class in org.apache.spark.sql"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/spark/sql/Column.html" target="_top">Frames</a></li>
<li><a href="Column.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.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>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<script defer="defer" type="text/javascript" src="../../../../lib/jquery.js"></script><script defer="defer" type="text/javascript" src="../../../../lib/api-javadocs.js"></script></body>
</html>