blob: e3b4ef5f803ad2af326968b4b030bd143159a97e [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>DecimalVector (Apache Arrow Java Root POM 17.0.0-SNAPSHOT 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="DecimalVector (Apache Arrow Java Root POM 17.0.0-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance 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/DecimalVector.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/arrow/vector/Decimal256Vector.html" title="class in org.apache.arrow.vector"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/arrow/vector/DecimalVectorBenchmarks.html" title="class in org.apache.arrow.vector"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/arrow/vector/DecimalVector.html" target="_top">Frames</a></li>
<li><a href="DecimalVector.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.arrow.vector</div>
<h2 title="Class DecimalVector" class="title">Class DecimalVector</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><a href="../../../../org/apache/arrow/vector/BaseValueVector.html" title="class in org.apache.arrow.vector">org.apache.arrow.vector.BaseValueVector</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html" title="class in org.apache.arrow.vector">org.apache.arrow.vector.BaseFixedWidthVector</a></li>
<li>
<ul class="inheritance">
<li>org.apache.arrow.vector.DecimalVector</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../../org/apache/arrow/vector/ValueVector.html" title="interface in org.apache.arrow.vector">ValueVector</a>&gt;, <a href="../../../../org/apache/arrow/vector/ElementAddressableVector.html" title="interface in org.apache.arrow.vector">ElementAddressableVector</a>, <a href="../../../../org/apache/arrow/vector/FieldVector.html" title="interface in org.apache.arrow.vector">FieldVector</a>, <a href="../../../../org/apache/arrow/vector/FixedWidthVector.html" title="interface in org.apache.arrow.vector">FixedWidthVector</a>, <a href="../../../../org/apache/arrow/vector/ValueVector.html" title="interface in org.apache.arrow.vector">ValueVector</a>, <a href="../../../../org/apache/arrow/vector/VectorDefinitionSetter.html" title="interface in org.apache.arrow.vector">VectorDefinitionSetter</a></dd>
</dl>
<hr>
<br>
<pre>public final class <span class="typeNameLabel">DecimalVector</span>
extends <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html" title="class in org.apache.arrow.vector">BaseFixedWidthVector</a></pre>
<div class="block">DecimalVector implements a fixed width vector (16 bytes) of
decimal values which could be null. A validity buffer (bit vector) is
maintained to track which elements in the vector are null.</div>
</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 int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#MAX_PRECISION">MAX_PRECISION</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#TYPE_WIDTH">TYPE_WIDTH</a></span></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.arrow.vector.BaseFixedWidthVector">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.arrow.vector.<a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html" title="class in org.apache.arrow.vector">BaseFixedWidthVector</a></h3>
<code><a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#actualValueCapacity">actualValueCapacity</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#field">field</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#lastValueCapacity">lastValueCapacity</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#validityBuffer">validityBuffer</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#valueBuffer">valueBuffer</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#valueCount">valueCount</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.arrow.vector.BaseValueVector">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.arrow.vector.<a href="../../../../org/apache/arrow/vector/BaseValueVector.html" title="class in org.apache.arrow.vector">BaseValueVector</a></h3>
<code><a href="../../../../org/apache/arrow/vector/BaseValueVector.html#allocator">allocator</a>, <a href="../../../../org/apache/arrow/vector/BaseValueVector.html#fieldReader">fieldReader</a>, <a href="../../../../org/apache/arrow/vector/BaseValueVector.html#INITIAL_VALUE_ALLOCATION">INITIAL_VALUE_ALLOCATION</a>, <a href="../../../../org/apache/arrow/vector/BaseValueVector.html#MAX_ALLOCATION_SIZE">MAX_ALLOCATION_SIZE</a>, <a href="../../../../org/apache/arrow/vector/BaseValueVector.html#MAX_ALLOCATION_SIZE_PROPERTY">MAX_ALLOCATION_SIZE_PROPERTY</a></code></li>
</ul>
</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/arrow/vector/DecimalVector.html#DecimalVector-org.apache.arrow.vector.types.pojo.Field-org.apache.arrow.memory.BufferAllocator-">DecimalVector</a></span>(<a href="../../../../org/apache/arrow/vector/types/pojo/Field.html" title="class in org.apache.arrow.vector.types.pojo">Field</a>&nbsp;field,
<a href="../../../../org/apache/arrow/memory/BufferAllocator.html" title="interface in org.apache.arrow.memory">BufferAllocator</a>&nbsp;allocator)</code>
<div class="block">Instantiate a DecimalVector.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#DecimalVector-java.lang.String-org.apache.arrow.memory.BufferAllocator-int-int-">DecimalVector</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;name,
<a href="../../../../org/apache/arrow/memory/BufferAllocator.html" title="interface in org.apache.arrow.memory">BufferAllocator</a>&nbsp;allocator,
int&nbsp;precision,
int&nbsp;scale)</code>
<div class="block">Instantiate a DecimalVector.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#DecimalVector-java.lang.String-org.apache.arrow.vector.types.pojo.FieldType-org.apache.arrow.memory.BufferAllocator-">DecimalVector</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;name,
<a href="../../../../org/apache/arrow/vector/types/pojo/FieldType.html" title="class in org.apache.arrow.vector.types.pojo">FieldType</a>&nbsp;fieldType,
<a href="../../../../org/apache/arrow/memory/BufferAllocator.html" title="interface in org.apache.arrow.memory">BufferAllocator</a>&nbsp;allocator)</code>
<div class="block">Instantiate a DecimalVector.</div>
</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="t2" class="tableTab"><span><a href="javascript:show(2);">Instance 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><a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#get-int-">get</a></span>(int&nbsp;index)</code>
<div class="block">Get the element at the given index from the vector.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#get-int-org.apache.arrow.vector.holders.NullableDecimalHolder-">get</a></span>(int&nbsp;index,
<a href="../../../../org/apache/arrow/vector/holders/NullableDecimalHolder.html" title="class in org.apache.arrow.vector.holders">NullableDecimalHolder</a>&nbsp;holder)</code>
<div class="block">Get the element at the given index from the vector and
sets the state in holder.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/arrow/vector/types/Types.MinorType.html" title="enum in org.apache.arrow.vector.types">Types.MinorType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#getMinorType--">getMinorType</a></span>()</code>
<div class="block">Get minor type for this vector.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#getObject-int-">getObject</a></span>(int&nbsp;index)</code>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#get-int-"><code>get(int)</code></a>.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#getObjectNotNull-int-">getObjectNotNull</a></span>(int&nbsp;index)</code>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#getObject-int-"><code>getObject(int)</code></a> but does not check for null.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#getPrecision--">getPrecision</a></span>()</code>
<div class="block">Return precision for the decimal value.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/apache/arrow/vector/complex/reader/FieldReader.html" title="interface in org.apache.arrow.vector.complex.reader">FieldReader</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#getReaderImpl--">getReaderImpl</a></span>()</code>
<div class="block">Each vector has a different reader that implements the FieldReader interface.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#getScale--">getScale</a></span>()</code>
<div class="block">Return scale for the decimal value.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/arrow/vector/util/TransferPair.html" title="interface in org.apache.arrow.vector.util">TransferPair</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#getTransferPair-org.apache.arrow.vector.types.pojo.Field-org.apache.arrow.memory.BufferAllocator-">getTransferPair</a></span>(<a href="../../../../org/apache/arrow/vector/types/pojo/Field.html" title="class in org.apache.arrow.vector.types.pojo">Field</a>&nbsp;field,
<a href="../../../../org/apache/arrow/memory/BufferAllocator.html" title="interface in org.apache.arrow.memory">BufferAllocator</a>&nbsp;allocator)</code>
<div class="block">Construct a TransferPair comprising this and a target vector of
the same type.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/arrow/vector/util/TransferPair.html" title="interface in org.apache.arrow.vector.util">TransferPair</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#getTransferPair-java.lang.String-org.apache.arrow.memory.BufferAllocator-">getTransferPair</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;ref,
<a href="../../../../org/apache/arrow/memory/BufferAllocator.html" title="interface in org.apache.arrow.memory">BufferAllocator</a>&nbsp;allocator)</code>
<div class="block">Construct a TransferPair comprising this and a target vector of
the same type.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/arrow/vector/util/TransferPair.html" title="interface in org.apache.arrow.vector.util">TransferPair</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#makeTransferPair-org.apache.arrow.vector.ValueVector-">makeTransferPair</a></span>(<a href="../../../../org/apache/arrow/vector/ValueVector.html" title="interface in org.apache.arrow.vector">ValueVector</a>&nbsp;to)</code>
<div class="block">Construct a TransferPair with a desired target vector of the same type.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-org.apache.arrow.memory.ArrowBuf-">set</a></span>(int&nbsp;index,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer)</code>
<div class="block">Set the element at the given index to the given value.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-java.math.BigDecimal-">set</a></span>(int&nbsp;index,
<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;value)</code>
<div class="block">Set the element at the given index to the given value.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-org.apache.arrow.vector.holders.DecimalHolder-">set</a></span>(int&nbsp;index,
<a href="../../../../org/apache/arrow/vector/holders/DecimalHolder.html" title="class in org.apache.arrow.vector.holders">DecimalHolder</a>&nbsp;holder)</code>
<div class="block">Set the element at the given index to the value set in data holder.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-int-long-org.apache.arrow.memory.ArrowBuf-">set</a></span>(int&nbsp;index,
int&nbsp;isSet,
long&nbsp;start,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer)</code>
<div class="block">Store the given value at a particular position in the vector.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-long-">set</a></span>(int&nbsp;index,
long&nbsp;value)</code>
<div class="block">Set the element at the given index to the given value.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-long-org.apache.arrow.memory.ArrowBuf-">set</a></span>(int&nbsp;index,
long&nbsp;start,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer)</code>
<div class="block">Set the element at the given index to the given value.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-org.apache.arrow.vector.holders.NullableDecimalHolder-">set</a></span>(int&nbsp;index,
<a href="../../../../org/apache/arrow/vector/holders/NullableDecimalHolder.html" title="class in org.apache.arrow.vector.holders">NullableDecimalHolder</a>&nbsp;holder)</code>
<div class="block">Set the element at the given index to the value set in data holder.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#setBigEndian-int-byte:A-">setBigEndian</a></span>(int&nbsp;index,
byte[]&nbsp;value)</code>
<div class="block">Set the decimal element at given index to the provided array of bytes.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#setBigEndianSafe-int-byte:A-">setBigEndianSafe</a></span>(int&nbsp;index,
byte[]&nbsp;value)</code>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#setBigEndian-int-byte:A-"><code>setBigEndian(int, byte[])</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#setBigEndianSafe-int-long-org.apache.arrow.memory.ArrowBuf-int-">setBigEndianSafe</a></span>(int&nbsp;index,
long&nbsp;start,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer,
int&nbsp;length)</code>
<div class="block">Sets the element at given index using the buffer whose size maybe <= 16 bytes.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#setSafe-int-org.apache.arrow.memory.ArrowBuf-">setSafe</a></span>(int&nbsp;index,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer)</code>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-org.apache.arrow.memory.ArrowBuf-"><code>set(int, ArrowBuf)</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#setSafe-int-java.math.BigDecimal-">setSafe</a></span>(int&nbsp;index,
<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;value)</code>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-java.math.BigDecimal-"><code>set(int, BigDecimal)</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#setSafe-int-org.apache.arrow.vector.holders.DecimalHolder-">setSafe</a></span>(int&nbsp;index,
<a href="../../../../org/apache/arrow/vector/holders/DecimalHolder.html" title="class in org.apache.arrow.vector.holders">DecimalHolder</a>&nbsp;holder)</code>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-org.apache.arrow.vector.holders.DecimalHolder-"><code>set(int, DecimalHolder)</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#setSafe-int-int-long-org.apache.arrow.memory.ArrowBuf-">setSafe</a></span>(int&nbsp;index,
int&nbsp;isSet,
long&nbsp;start,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer)</code>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-int-long-org.apache.arrow.memory.ArrowBuf-"><code>set(int, int, long, ArrowBuf)</code></a> except that it handles
the case when the position of new value is beyond the current value
capacity of the vector.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#setSafe-int-long-">setSafe</a></span>(int&nbsp;index,
long&nbsp;value)</code>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-long-"><code>set(int, long)</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#setSafe-int-long-org.apache.arrow.memory.ArrowBuf-">setSafe</a></span>(int&nbsp;index,
long&nbsp;start,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer)</code>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-long-org.apache.arrow.memory.ArrowBuf-"><code>set(int, long, ArrowBuf)</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#setSafe-int-long-org.apache.arrow.memory.ArrowBuf-int-">setSafe</a></span>(int&nbsp;index,
long&nbsp;start,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer,
int&nbsp;length)</code>
<div class="block">Sets the element at given index using the buffer whose size maybe <= 16 bytes.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#setSafe-int-org.apache.arrow.vector.holders.NullableDecimalHolder-">setSafe</a></span>(int&nbsp;index,
<a href="../../../../org/apache/arrow/vector/holders/NullableDecimalHolder.html" title="class in org.apache.arrow.vector.holders">NullableDecimalHolder</a>&nbsp;holder)</code>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-org.apache.arrow.vector.holders.NullableDecimalHolder-"><code>set(int, NullableDecimalHolder)</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/arrow/vector/DecimalVector.html#validateScalars--">validateScalars</a></span>()</code>
<div class="block">Validate the scalar values held by this vector.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.arrow.vector.BaseFixedWidthVector">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.arrow.vector.<a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html" title="class in org.apache.arrow.vector">BaseFixedWidthVector</a></h3>
<code><a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#accept-org.apache.arrow.vector.compare.VectorVisitor-IN-">accept</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#allocateNew--">allocateNew</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#allocateNew-int-">allocateNew</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#allocateNewSafe--">allocateNewSafe</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#clear--">clear</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#close--">close</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#copyFrom-int-int-org.apache.arrow.vector.ValueVector-">copyFrom</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#copyFromSafe-int-int-org.apache.arrow.vector.ValueVector-">copyFromSafe</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#decrementAllocationMonitor--">decrementAllocationMonitor</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getBuffers-boolean-">getBuffers</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getBufferSize--">getBufferSize</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getBufferSizeFor-int-">getBufferSizeFor</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getChildrenFromFields--">getChildrenFromFields</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getDataBuffer--">getDataBuffer</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getDataBufferAddress--">getDataBufferAddress</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getDataPointer-int-">getDataPointer</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getDataPointer-int-org.apache.arrow.memory.util.ArrowBufPointer-">getDataPointer</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getField--">getField</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getFieldBuffers--">getFieldBuffers</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getFieldInnerVectors--">getFieldInnerVectors</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getName--">getName</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getNullCount--">getNullCount</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getOffsetBuffer--">getOffsetBuffer</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getOffsetBufferAddress--">getOffsetBufferAddress</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getTransferPair-org.apache.arrow.memory.BufferAllocator-">getTransferPair</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getTransferPair-org.apache.arrow.vector.types.pojo.Field-org.apache.arrow.memory.BufferAllocator-org.apache.arrow.vector.util.CallBack-">getTransferPair</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getTransferPair-java.lang.String-org.apache.arrow.memory.BufferAllocator-org.apache.arrow.vector.util.CallBack-">getTransferPair</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getTypeWidth--">getTypeWidth</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValidityBuffer--">getValidityBuffer</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValidityBufferAddress--">getValidityBufferAddress</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValidityBufferValueCapacity--">getValidityBufferValueCapacity</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueBufferValueCapacity--">getValueBufferValueCapacity</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--">getValueCapacity</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCount--">getValueCount</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#handleSafe-int-">handleSafe</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#hashCode-int-">hashCode</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#hashCode-int-org.apache.arrow.memory.util.hash.ArrowBufHasher-">hashCode</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#incrementAllocationMonitor--">incrementAllocationMonitor</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#initializeChildrenFromFields-java.util.List-">initializeChildrenFromFields</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#isNull-int-">isNull</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#isSafe-int-">isSafe</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#isSet-int-">isSet</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#loadFieldBuffers-org.apache.arrow.vector.ipc.message.ArrowFieldNode-java.util.List-">loadFieldBuffers</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#reAlloc--">reAlloc</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#refreshValueCapacity--">refreshValueCapacity</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#reset--">reset</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#set-int-byte:A-int-int-">set</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#set-int-java.nio.ByteBuffer-int-int-">set</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#setIndexDefined-int-">setIndexDefined</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#setInitialCapacity-int-">setInitialCapacity</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#setNull-int-">setNull</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#setSafe-int-byte:A-int-int-">setSafe</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#setSafe-int-java.nio.ByteBuffer-int-int-">setSafe</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#setValueCount-int-">setValueCount</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#splitAndTransferTo-int-int-org.apache.arrow.vector.BaseFixedWidthVector-">splitAndTransferTo</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#transferTo-org.apache.arrow.vector.BaseFixedWidthVector-">transferTo</a>, <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#zeroVector--">zeroVector</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.arrow.vector.BaseValueVector">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.arrow.vector.<a href="../../../../org/apache/arrow/vector/BaseValueVector.html" title="class in org.apache.arrow.vector">BaseValueVector</a></h3>
<code><a href="../../../../org/apache/arrow/vector/BaseValueVector.html#checkBufRefs-org.apache.arrow.vector.ValueVector-">checkBufRefs</a>, <a href="../../../../org/apache/arrow/vector/BaseValueVector.html#getAllocator--">getAllocator</a>, <a href="../../../../org/apache/arrow/vector/BaseValueVector.html#getReader--">getReader</a>, <a href="../../../../org/apache/arrow/vector/BaseValueVector.html#getValidityBufferSizeFromCount-int-">getValidityBufferSizeFromCount</a>, <a href="../../../../org/apache/arrow/vector/BaseValueVector.html#iterator--">iterator</a>, <a href="../../../../org/apache/arrow/vector/BaseValueVector.html#releaseBuffer-org.apache.arrow.memory.ArrowBuf-">releaseBuffer</a>, <a href="../../../../org/apache/arrow/vector/BaseValueVector.html#toString--">toString</a>, <a href="../../../../org/apache/arrow/vector/BaseValueVector.html#transferBuffer-org.apache.arrow.memory.ArrowBuf-org.apache.arrow.memory.BufferAllocator-">transferBuffer</a></code></li>
</ul>
<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#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>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.arrow.vector.ValueVector">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.arrow.vector.<a href="../../../../org/apache/arrow/vector/ValueVector.html" title="interface in org.apache.arrow.vector">ValueVector</a></h3>
<code><a href="../../../../org/apache/arrow/vector/ValueVector.html#getAllocator--">getAllocator</a>, <a href="../../../../org/apache/arrow/vector/ValueVector.html#getReader--">getReader</a>, <a href="../../../../org/apache/arrow/vector/ValueVector.html#validate--">validate</a>, <a href="../../../../org/apache/arrow/vector/ValueVector.html#validateFull--">validateFull</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Iterable">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#forEach-java.util.function.Consumer-" title="class or interface in java.lang">forEach</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#iterator--" title="class or interface in java.lang">iterator</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#spliterator--" title="class or interface in java.lang">spliterator</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.arrow.vector.FieldVector">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.arrow.vector.<a href="../../../../org/apache/arrow/vector/FieldVector.html" title="interface in org.apache.arrow.vector">FieldVector</a></h3>
<code><a href="../../../../org/apache/arrow/vector/FieldVector.html#exportBuffer-org.apache.arrow.memory.ArrowBuf-java.util.List-org.apache.arrow.memory.ArrowBuf-long-boolean-">exportBuffer</a>, <a href="../../../../org/apache/arrow/vector/FieldVector.html#exportCDataBuffers-java.util.List-org.apache.arrow.memory.ArrowBuf-long-">exportCDataBuffers</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_PRECISION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MAX_PRECISION</h4>
<pre>public static final&nbsp;int MAX_PRECISION</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.arrow.vector.DecimalVector.MAX_PRECISION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="TYPE_WIDTH">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>TYPE_WIDTH</h4>
<pre>public static final&nbsp;byte TYPE_WIDTH</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.arrow.vector.DecimalVector.TYPE_WIDTH">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="DecimalVector-java.lang.String-org.apache.arrow.memory.BufferAllocator-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DecimalVector</h4>
<pre>public&nbsp;DecimalVector(<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;name,
<a href="../../../../org/apache/arrow/memory/BufferAllocator.html" title="interface in org.apache.arrow.memory">BufferAllocator</a>&nbsp;allocator,
int&nbsp;precision,
int&nbsp;scale)</pre>
<div class="block">Instantiate a DecimalVector. This doesn't allocate any memory for
the data in vector.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - name of the vector</dd>
<dd><code>allocator</code> - allocator for memory management.</dd>
</dl>
</li>
</ul>
<a name="DecimalVector-java.lang.String-org.apache.arrow.vector.types.pojo.FieldType-org.apache.arrow.memory.BufferAllocator-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DecimalVector</h4>
<pre>public&nbsp;DecimalVector(<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;name,
<a href="../../../../org/apache/arrow/vector/types/pojo/FieldType.html" title="class in org.apache.arrow.vector.types.pojo">FieldType</a>&nbsp;fieldType,
<a href="../../../../org/apache/arrow/memory/BufferAllocator.html" title="interface in org.apache.arrow.memory">BufferAllocator</a>&nbsp;allocator)</pre>
<div class="block">Instantiate a DecimalVector. This doesn't allocate any memory for
the data in vector.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - name of the vector</dd>
<dd><code>fieldType</code> - type of Field materialized by this vector</dd>
<dd><code>allocator</code> - allocator for memory management.</dd>
</dl>
</li>
</ul>
<a name="DecimalVector-org.apache.arrow.vector.types.pojo.Field-org.apache.arrow.memory.BufferAllocator-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DecimalVector</h4>
<pre>public&nbsp;DecimalVector(<a href="../../../../org/apache/arrow/vector/types/pojo/Field.html" title="class in org.apache.arrow.vector.types.pojo">Field</a>&nbsp;field,
<a href="../../../../org/apache/arrow/memory/BufferAllocator.html" title="interface in org.apache.arrow.memory">BufferAllocator</a>&nbsp;allocator)</pre>
<div class="block">Instantiate a DecimalVector. This doesn't allocate any memory for
the data in vector.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>field</code> - field materialized by this vector</dd>
<dd><code>allocator</code> - allocator for memory management.</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getReaderImpl--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getReaderImpl</h4>
<pre>protected&nbsp;<a href="../../../../org/apache/arrow/vector/complex/reader/FieldReader.html" title="interface in org.apache.arrow.vector.complex.reader">FieldReader</a>&nbsp;getReaderImpl()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../org/apache/arrow/vector/BaseValueVector.html#getReaderImpl--">BaseValueVector</a></code></span></div>
<div class="block">Each vector has a different reader that implements the FieldReader interface. Overridden methods must make
sure to return the correct concrete reader implementation.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/arrow/vector/BaseValueVector.html#getReaderImpl--">getReaderImpl</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/arrow/vector/BaseValueVector.html" title="class in org.apache.arrow.vector">BaseValueVector</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a lambda that initializes a reader when called.</dd>
</dl>
</li>
</ul>
<a name="getMinorType--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMinorType</h4>
<pre>public&nbsp;<a href="../../../../org/apache/arrow/vector/types/Types.MinorType.html" title="enum in org.apache.arrow.vector.types">Types.MinorType</a>&nbsp;getMinorType()</pre>
<div class="block">Get minor type for this vector. The vector holds values belonging
to a particular type.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../org/apache/arrow/vector/types/Types.MinorType.html" title="enum in org.apache.arrow.vector.types"><code>Types.MinorType</code></a></dd>
</dl>
</li>
</ul>
<a name="get-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;get(int&nbsp;index)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></pre>
<div class="block">Get the element at the given index from the vector.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>element at given index</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code></dd>
</dl>
</li>
</ul>
<a name="get-int-org.apache.arrow.vector.holders.NullableDecimalHolder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;void&nbsp;get(int&nbsp;index,
<a href="../../../../org/apache/arrow/vector/holders/NullableDecimalHolder.html" title="class in org.apache.arrow.vector.holders">NullableDecimalHolder</a>&nbsp;holder)</pre>
<div class="block">Get the element at the given index from the vector and
sets the state in holder. If element at given index
is null, holder.isSet will be zero.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
</dl>
</li>
</ul>
<a name="getObject-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getObject</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;getObject(int&nbsp;index)</pre>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#get-int-"><code>get(int)</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>element at given index</dd>
</dl>
</li>
</ul>
<a name="getObjectNotNull-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getObjectNotNull</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;getObjectNotNull(int&nbsp;index)</pre>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#getObject-int-"><code>getObject(int)</code></a> but does not check for null.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>element at given index</dd>
</dl>
</li>
</ul>
<a name="getPrecision--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrecision</h4>
<pre>public&nbsp;int&nbsp;getPrecision()</pre>
<div class="block">Return precision for the decimal value.</div>
</li>
</ul>
<a name="getScale--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScale</h4>
<pre>public&nbsp;int&nbsp;getScale()</pre>
<div class="block">Return scale for the decimal value.</div>
</li>
</ul>
<a name="set-int-org.apache.arrow.memory.ArrowBuf-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;void&nbsp;set(int&nbsp;index,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer)</pre>
<div class="block">Set the element at the given index to the given value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>buffer</code> - ArrowBuf containing decimal value.</dd>
</dl>
</li>
</ul>
<a name="setBigEndian-int-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBigEndian</h4>
<pre>public&nbsp;void&nbsp;setBigEndian(int&nbsp;index,
byte[]&nbsp;value)</pre>
<div class="block">Set the decimal element at given index to the provided array of bytes.
Decimal is now implemented as Native Endian. This API allows the user
to pass a decimal value in the form of byte array in BE byte order.
<p>Consumers of Arrow code can use this API instead of first swapping
the source bytes (doing a write and read) and then finally writing to
ArrowBuf of decimal vector.
<p>This method takes care of adding the necessary padding if the length
of byte array is less than 16 (length of decimal type).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>value</code> - array of bytes containing decimal in big endian byte order.</dd>
</dl>
</li>
</ul>
<a name="set-int-long-org.apache.arrow.memory.ArrowBuf-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;void&nbsp;set(int&nbsp;index,
long&nbsp;start,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer)</pre>
<div class="block">Set the element at the given index to the given value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>start</code> - start index of data in the buffer</dd>
<dd><code>buffer</code> - ArrowBuf containing decimal value.</dd>
</dl>
</li>
</ul>
<a name="setSafe-int-long-org.apache.arrow.memory.ArrowBuf-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSafe</h4>
<pre>public&nbsp;void&nbsp;setSafe(int&nbsp;index,
long&nbsp;start,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer,
int&nbsp;length)</pre>
<div class="block">Sets the element at given index using the buffer whose size maybe <= 16 bytes.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - index to write the decimal to</dd>
<dd><code>start</code> - start of value in the buffer</dd>
<dd><code>buffer</code> - contains the decimal in native endian bytes</dd>
<dd><code>length</code> - length of the value in the buffer</dd>
</dl>
</li>
</ul>
<a name="setBigEndianSafe-int-long-org.apache.arrow.memory.ArrowBuf-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBigEndianSafe</h4>
<pre>public&nbsp;void&nbsp;setBigEndianSafe(int&nbsp;index,
long&nbsp;start,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer,
int&nbsp;length)</pre>
<div class="block">Sets the element at given index using the buffer whose size maybe <= 16 bytes.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - index to write the decimal to</dd>
<dd><code>start</code> - start of value in the buffer</dd>
<dd><code>buffer</code> - contains the decimal in big endian bytes</dd>
<dd><code>length</code> - length of the value in the buffer</dd>
</dl>
</li>
</ul>
<a name="set-int-java.math.BigDecimal-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;void&nbsp;set(int&nbsp;index,
<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;value)</pre>
<div class="block">Set the element at the given index to the given value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>value</code> - BigDecimal containing decimal value.</dd>
</dl>
</li>
</ul>
<a name="set-int-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;void&nbsp;set(int&nbsp;index,
long&nbsp;value)</pre>
<div class="block">Set the element at the given index to the given value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>value</code> - long value.</dd>
</dl>
</li>
</ul>
<a name="set-int-org.apache.arrow.vector.holders.NullableDecimalHolder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;void&nbsp;set(int&nbsp;index,
<a href="../../../../org/apache/arrow/vector/holders/NullableDecimalHolder.html" title="class in org.apache.arrow.vector.holders">NullableDecimalHolder</a>&nbsp;holder)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre>
<div class="block">Set the element at the given index to the value set in data holder.
If the value in holder is not indicated as set, element in the
at the given index will be null.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>holder</code> - nullable data holder for value of element</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="set-int-org.apache.arrow.vector.holders.DecimalHolder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;void&nbsp;set(int&nbsp;index,
<a href="../../../../org/apache/arrow/vector/holders/DecimalHolder.html" title="class in org.apache.arrow.vector.holders">DecimalHolder</a>&nbsp;holder)</pre>
<div class="block">Set the element at the given index to the value set in data holder.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>holder</code> - data holder for value of element</dd>
</dl>
</li>
</ul>
<a name="setSafe-int-org.apache.arrow.memory.ArrowBuf-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSafe</h4>
<pre>public&nbsp;void&nbsp;setSafe(int&nbsp;index,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer)</pre>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-org.apache.arrow.memory.ArrowBuf-"><code>set(int, ArrowBuf)</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>buffer</code> - ArrowBuf containing decimal value.</dd>
</dl>
</li>
</ul>
<a name="setBigEndianSafe-int-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBigEndianSafe</h4>
<pre>public&nbsp;void&nbsp;setBigEndianSafe(int&nbsp;index,
byte[]&nbsp;value)</pre>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#setBigEndian-int-byte:A-"><code>setBigEndian(int, byte[])</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
</li>
</ul>
<a name="setSafe-int-long-org.apache.arrow.memory.ArrowBuf-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSafe</h4>
<pre>public&nbsp;void&nbsp;setSafe(int&nbsp;index,
long&nbsp;start,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer)</pre>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-long-org.apache.arrow.memory.ArrowBuf-"><code>set(int, long, ArrowBuf)</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>start</code> - start index of data in the buffer</dd>
<dd><code>buffer</code> - ArrowBuf containing decimal value.</dd>
</dl>
</li>
</ul>
<a name="setSafe-int-java.math.BigDecimal-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSafe</h4>
<pre>public&nbsp;void&nbsp;setSafe(int&nbsp;index,
<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;value)</pre>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-java.math.BigDecimal-"><code>set(int, BigDecimal)</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>value</code> - BigDecimal containing decimal value.</dd>
</dl>
</li>
</ul>
<a name="setSafe-int-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSafe</h4>
<pre>public&nbsp;void&nbsp;setSafe(int&nbsp;index,
long&nbsp;value)</pre>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-long-"><code>set(int, long)</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>value</code> - long value.</dd>
</dl>
</li>
</ul>
<a name="setSafe-int-org.apache.arrow.vector.holders.NullableDecimalHolder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSafe</h4>
<pre>public&nbsp;void&nbsp;setSafe(int&nbsp;index,
<a href="../../../../org/apache/arrow/vector/holders/NullableDecimalHolder.html" title="class in org.apache.arrow.vector.holders">NullableDecimalHolder</a>&nbsp;holder)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-org.apache.arrow.vector.holders.NullableDecimalHolder-"><code>set(int, NullableDecimalHolder)</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>holder</code> - nullable data holder for value of element</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="setSafe-int-org.apache.arrow.vector.holders.DecimalHolder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSafe</h4>
<pre>public&nbsp;void&nbsp;setSafe(int&nbsp;index,
<a href="../../../../org/apache/arrow/vector/holders/DecimalHolder.html" title="class in org.apache.arrow.vector.holders">DecimalHolder</a>&nbsp;holder)</pre>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-org.apache.arrow.vector.holders.DecimalHolder-"><code>set(int, DecimalHolder)</code></a> except that it handles the
case when index is greater than or equal to existing
value capacity <a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getValueCapacity--"><code>BaseFixedWidthVector.getValueCapacity()</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of element</dd>
<dd><code>holder</code> - data holder for value of element</dd>
</dl>
</li>
</ul>
<a name="set-int-int-long-org.apache.arrow.memory.ArrowBuf-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre>public&nbsp;void&nbsp;set(int&nbsp;index,
int&nbsp;isSet,
long&nbsp;start,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer)</pre>
<div class="block">Store the given value at a particular position in the vector. isSet indicates
whether the value is NULL or not.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of the new value</dd>
<dd><code>isSet</code> - 0 for NULL value, 1 otherwise</dd>
<dd><code>start</code> - start position of the value in the buffer</dd>
<dd><code>buffer</code> - buffer containing the value to be stored in the vector</dd>
</dl>
</li>
</ul>
<a name="setSafe-int-int-long-org.apache.arrow.memory.ArrowBuf-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSafe</h4>
<pre>public&nbsp;void&nbsp;setSafe(int&nbsp;index,
int&nbsp;isSet,
long&nbsp;start,
<a href="../../../../org/apache/arrow/memory/ArrowBuf.html" title="class in org.apache.arrow.memory">ArrowBuf</a>&nbsp;buffer)</pre>
<div class="block">Same as <a href="../../../../org/apache/arrow/vector/DecimalVector.html#set-int-int-long-org.apache.arrow.memory.ArrowBuf-"><code>set(int, int, long, ArrowBuf)</code></a> except that it handles
the case when the position of new value is beyond the current value
capacity of the vector.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position of the new value</dd>
<dd><code>isSet</code> - 0 for NULL value, 1 otherwise</dd>
<dd><code>start</code> - start position of the value in the buffer</dd>
<dd><code>buffer</code> - buffer containing the value to be stored in the vector</dd>
</dl>
</li>
</ul>
<a name="validateScalars--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateScalars</h4>
<pre>public&nbsp;void&nbsp;validateScalars()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#validateScalars--">BaseFixedWidthVector</a></code></span></div>
<div class="block">Validate the scalar values held by this vector.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#validateScalars--">validateScalars</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html" title="class in org.apache.arrow.vector">BaseFixedWidthVector</a></code></dd>
</dl>
</li>
</ul>
<a name="getTransferPair-java.lang.String-org.apache.arrow.memory.BufferAllocator-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTransferPair</h4>
<pre>public&nbsp;<a href="../../../../org/apache/arrow/vector/util/TransferPair.html" title="interface in org.apache.arrow.vector.util">TransferPair</a>&nbsp;getTransferPair(<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;ref,
<a href="../../../../org/apache/arrow/memory/BufferAllocator.html" title="interface in org.apache.arrow.memory">BufferAllocator</a>&nbsp;allocator)</pre>
<div class="block">Construct a TransferPair comprising this and a target vector of
the same type.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/arrow/vector/ValueVector.html#getTransferPair-java.lang.String-org.apache.arrow.memory.BufferAllocator-">getTransferPair</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/arrow/vector/ValueVector.html" title="interface in org.apache.arrow.vector">ValueVector</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getTransferPair-java.lang.String-org.apache.arrow.memory.BufferAllocator-">getTransferPair</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html" title="class in org.apache.arrow.vector">BaseFixedWidthVector</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ref</code> - name of the target vector</dd>
<dd><code>allocator</code> - allocator for the target vector</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../org/apache/arrow/vector/util/TransferPair.html" title="interface in org.apache.arrow.vector.util"><code>TransferPair</code></a></dd>
</dl>
</li>
</ul>
<a name="getTransferPair-org.apache.arrow.vector.types.pojo.Field-org.apache.arrow.memory.BufferAllocator-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTransferPair</h4>
<pre>public&nbsp;<a href="../../../../org/apache/arrow/vector/util/TransferPair.html" title="interface in org.apache.arrow.vector.util">TransferPair</a>&nbsp;getTransferPair(<a href="../../../../org/apache/arrow/vector/types/pojo/Field.html" title="class in org.apache.arrow.vector.types.pojo">Field</a>&nbsp;field,
<a href="../../../../org/apache/arrow/memory/BufferAllocator.html" title="interface in org.apache.arrow.memory">BufferAllocator</a>&nbsp;allocator)</pre>
<div class="block">Construct a TransferPair comprising this and a target vector of
the same type.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/arrow/vector/ValueVector.html#getTransferPair-org.apache.arrow.vector.types.pojo.Field-org.apache.arrow.memory.BufferAllocator-">getTransferPair</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/arrow/vector/ValueVector.html" title="interface in org.apache.arrow.vector">ValueVector</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html#getTransferPair-org.apache.arrow.vector.types.pojo.Field-org.apache.arrow.memory.BufferAllocator-">getTransferPair</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/arrow/vector/BaseFixedWidthVector.html" title="class in org.apache.arrow.vector">BaseFixedWidthVector</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>field</code> - Field object used by the target vector</dd>
<dd><code>allocator</code> - allocator for the target vector</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../org/apache/arrow/vector/util/TransferPair.html" title="interface in org.apache.arrow.vector.util"><code>TransferPair</code></a></dd>
</dl>
</li>
</ul>
<a name="makeTransferPair-org.apache.arrow.vector.ValueVector-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>makeTransferPair</h4>
<pre>public&nbsp;<a href="../../../../org/apache/arrow/vector/util/TransferPair.html" title="interface in org.apache.arrow.vector.util">TransferPair</a>&nbsp;makeTransferPair(<a href="../../../../org/apache/arrow/vector/ValueVector.html" title="interface in org.apache.arrow.vector">ValueVector</a>&nbsp;to)</pre>
<div class="block">Construct a TransferPair with a desired target vector of the same type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>to</code> - target vector</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../org/apache/arrow/vector/util/TransferPair.html" title="interface in org.apache.arrow.vector.util"><code>TransferPair</code></a></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>
<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/DecimalVector.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/arrow/vector/Decimal256Vector.html" title="class in org.apache.arrow.vector"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/arrow/vector/DecimalVectorBenchmarks.html" title="class in org.apache.arrow.vector"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/arrow/vector/DecimalVector.html" target="_top">Frames</a></li>
<li><a href="DecimalVector.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; 2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>