| <!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>Text (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="Text (Apache Arrow Java Root POM 17.0.0-SNAPSHOT API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":9,"i2":10,"i3":10,"i4":10,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":9,"i21":9,"i22":9,"i23":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static 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/Text.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/util/SchemaUtility.html" title="class in org.apache.arrow.vector.util"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/arrow/vector/util/Text.TextSerializer.html" title="class in org.apache.arrow.vector.util"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/arrow/vector/util/Text.html" target="_top">Frames</a></li> |
| <li><a href="Text.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><a href="#nested.class.summary">Nested</a> | </li> |
| <li><a href="#field.summary">Field</a> | </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><a href="#field.detail">Field</a> | </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.arrow.vector.util</div> |
| <h2 title="Class Text" class="title">Class Text</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/util/ReusableByteArray.html" title="class in org.apache.arrow.vector.util">org.apache.arrow.vector.util.ReusableByteArray</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.arrow.vector.util.Text</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="../../../../../org/apache/arrow/memory/ReusableBuffer.html" title="interface in org.apache.arrow.memory">ReusableBuffer</a><byte[]></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">Text</span> |
| extends <a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html" title="class in org.apache.arrow.vector.util">ReusableByteArray</a></pre> |
| <div class="block">A simplified byte wrapper similar to Hadoop's Text class without all the dependencies. |
| Lifted from Hadoop 2.7.1</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Class and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.TextSerializer.html" title="class in org.apache.arrow.vector.util">Text.TextSerializer</a></span></code> |
| <div class="block">JSON serializer for <a href="../../../../../org/apache/arrow/vector/util/Text.html" title="class in org.apache.arrow.vector.util"><code>Text</code></a>.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- =========== 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"> </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/util/Text.html#DEFAULT_MAX_LEN">DEFAULT_MAX_LEN</a></span></code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.apache.arrow.vector.util.ReusableByteArray"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.apache.arrow.vector.util.<a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html" title="class in org.apache.arrow.vector.util">ReusableByteArray</a></h3> |
| <code><a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#bytes">bytes</a>, <a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#EMPTY_BYTES">EMPTY_BYTES</a>, <a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#length">length</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"> </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/util/Text.html#Text--">Text</a></span>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#Text-byte:A-">Text</a></span>(byte[] utf8)</code> |
| <div class="block">Construct from a byte array.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#Text-java.lang.String-">Text</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> string)</code> |
| <div class="block">Construct from a string.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#Text-org.apache.arrow.vector.util.Text-">Text</a></span>(<a href="../../../../../org/apache/arrow/vector/util/Text.html" title="class in org.apache.arrow.vector.util">Text</a> utf8)</code> |
| <div class="block">Construct from another text.</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"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#append-byte:A-int-int-">append</a></span>(byte[] utf8, |
| int start, |
| int len)</code> |
| <div class="block">Append a range of bytes to the end of the given text.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#bytesToCodePoint-java.nio.ByteBuffer-">bytesToCodePoint</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> bytes)</code> |
| <div class="block">Returns the next code point at the current position in the buffer.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#charAt-int-">charAt</a></span>(int position)</code> |
| <div class="block">Returns the Unicode Scalar Value (32-bit integer value) for the character at |
| <code>position</code>.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#clear--">clear</a></span>()</code> |
| <div class="block">Clear the string to empty.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#copyBytes--">copyBytes</a></span>()</code> |
| <div class="block">Get a copy of the bytes that is exactly the length of the data.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#decode-byte:A-">decode</a></span>(byte[] utf8)</code> |
| <div class="block">Converts the provided byte array to a String using the UTF-8 encoding.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#decode-byte:A-int-int-">decode</a></span>(byte[] utf8, |
| int start, |
| int length)</code> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#decode-byte:A-int-int-boolean-">decode</a></span>(byte[] utf8, |
| int start, |
| int length, |
| boolean replace)</code> |
| <div class="block">Converts the provided byte array to a String using the UTF-8 encoding.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#encode-java.lang.String-">encode</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> string)</code> |
| <div class="block">Converts the provided String to bytes using the UTF-8 encoding.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#encode-java.lang.String-boolean-">encode</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> string, |
| boolean replace)</code> |
| <div class="block">Converts the provided String to bytes using the UTF-8 encoding.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#equals-java.lang.Object-">equals</a></span>(<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> o)</code> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#find-java.lang.String-">find</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> what)</code> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#find-java.lang.String-int-">find</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> what, |
| int start)</code> |
| <div class="block">Finds any occurrence of <code>what</code> in the backing buffer, starting as position |
| <code>start</code>.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#getBytes--">getBytes</a></span>()</code> |
| <div class="block">Returns the raw bytes; however, only data up to <a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#getLength--"><code>ReusableByteArray.getLength()</code></a> is valid.</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/util/Text.html#readWithKnownLength-java.io.DataInput-int-">readWithKnownLength</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</a> in, |
| int len)</code> |
| <div class="block">Read a Text object whose length is already known.</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/util/Text.html#set-byte:A-">set</a></span>(byte[] utf8)</code> |
| <div class="block">Set to an utf8 byte array.</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/util/Text.html#set-byte:A-int-int-">set</a></span>(byte[] utf8, |
| int start, |
| int len)</code> |
| <div class="block">Set the Text to range of bytes.</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/util/Text.html#set-java.lang.String-">set</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> string)</code> |
| <div class="block">Set to contain the contents of a string.</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/util/Text.html#set-org.apache.arrow.vector.util.Text-">set</a></span>(<a href="../../../../../org/apache/arrow/vector/util/Text.html" title="class in org.apache.arrow.vector.util">Text</a> other)</code> |
| <div class="block">copy a text.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#toString--">toString</a></span>()</code> </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#utf8Length-java.lang.String-">utf8Length</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> string)</code> |
| <div class="block">For the given string, returns the number of UTF-8 bytes required to encode the string.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#validateUTF8-byte:A-">validateUTF8</a></span>(byte[] utf8)</code> |
| <div class="block">Check if a byte array contains valid utf-8.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#validateUTF8-byte:A-int-int-">validateUTF8</a></span>(byte[] utf8, |
| int start, |
| int len)</code> |
| <div class="block">Check to see if a byte array is valid utf-8.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/arrow/vector/util/Text.html#validateUTF8NoThrow-byte:A-">validateUTF8NoThrow</a></span>(byte[] utf8)</code> |
| <div class="block">Check if a byte array contains valid utf-8.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.arrow.vector.util.ReusableByteArray"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.arrow.vector.util.<a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html" title="class in org.apache.arrow.vector.util">ReusableByteArray</a></h3> |
| <code><a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#getBuffer--">getBuffer</a>, <a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#getLength--">getLength</a>, <a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#hashCode--">hashCode</a>, <a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#set-org.apache.arrow.memory.ArrowBuf-long-long-">set</a>, <a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#set-byte:A-long-long-">set</a>, <a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#setCapacity-int-boolean-">setCapacity</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 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#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#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> |
| </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="DEFAULT_MAX_LEN"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>DEFAULT_MAX_LEN</h4> |
| <pre>public static final int DEFAULT_MAX_LEN</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.arrow.vector.util.Text.DEFAULT_MAX_LEN">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="Text--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>Text</h4> |
| <pre>public Text()</pre> |
| </li> |
| </ul> |
| <a name="Text-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>Text</h4> |
| <pre>public Text(<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> string)</pre> |
| <div class="block">Construct from a string.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>string</code> - initialize from that string</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="Text-org.apache.arrow.vector.util.Text-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>Text</h4> |
| <pre>public Text(<a href="../../../../../org/apache/arrow/vector/util/Text.html" title="class in org.apache.arrow.vector.util">Text</a> utf8)</pre> |
| <div class="block">Construct from another text.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>utf8</code> - initialize from that Text</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="Text-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>Text</h4> |
| <pre>public Text(byte[] utf8)</pre> |
| <div class="block">Construct from a byte array.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>utf8</code> - initialize from that byte array</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="copyBytes--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copyBytes</h4> |
| <pre>public byte[] copyBytes()</pre> |
| <div class="block">Get a copy of the bytes that is exactly the length of the data. See <a href="../../../../../org/apache/arrow/vector/util/Text.html#getBytes--"><code>getBytes()</code></a> for |
| faster access to the underlying array.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a copy of the underlying array</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getBytes--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBytes</h4> |
| <pre>public byte[] getBytes()</pre> |
| <div class="block">Returns the raw bytes; however, only data up to <a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#getLength--"><code>ReusableByteArray.getLength()</code></a> is valid. Please use |
| <a href="../../../../../org/apache/arrow/vector/util/Text.html#copyBytes--"><code>copyBytes()</code></a> if you need the returned array to be precisely the length of the data.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the underlying array</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="charAt-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>charAt</h4> |
| <pre>public int charAt(int position)</pre> |
| <div class="block">Returns the Unicode Scalar Value (32-bit integer value) for the character at |
| <code>position</code>. Note that this method avoids using the converter or doing String |
| instantiation.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>position</code> - the index of the char we want to retrieve</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the Unicode scalar value at position or -1 if the position is invalid or points to a |
| trailing byte</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="find-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>find</h4> |
| <pre>public int find(<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> what)</pre> |
| </li> |
| </ul> |
| <a name="find-java.lang.String-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>find</h4> |
| <pre>public int find(<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> what, |
| int start)</pre> |
| <div class="block">Finds any occurrence of <code>what</code> in the backing buffer, starting as position |
| <code>start</code>. The starting position is measured in bytes and the return value is in terms |
| of byte position in the buffer. The backing buffer is not converted to a string for this |
| operation.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>what</code> - the string to search for</dd> |
| <dd><code>start</code> - where to start from</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>byte position of the first occurrence of the search string in the UTF-8 buffer or -1 |
| if not found</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="set-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre>public void set(<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> string)</pre> |
| <div class="block">Set to contain the contents of a string.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>string</code> - the string to initialize from</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="set-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre>public void set(byte[] utf8)</pre> |
| <div class="block">Set to an utf8 byte array.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>utf8</code> - the byte array to initialize from</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="set-org.apache.arrow.vector.util.Text-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre>public void set(<a href="../../../../../org/apache/arrow/vector/util/Text.html" title="class in org.apache.arrow.vector.util">Text</a> other)</pre> |
| <div class="block">copy a text.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>other</code> - the text to initialize from</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="set-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre>public void set(byte[] utf8, |
| int start, |
| int len)</pre> |
| <div class="block">Set the Text to range of bytes.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>utf8</code> - the data to copy from</dd> |
| <dd><code>start</code> - the first position of the new string</dd> |
| <dd><code>len</code> - the number of bytes of the new string</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="append-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>append</h4> |
| <pre>public void append(byte[] utf8, |
| int start, |
| int len)</pre> |
| <div class="block">Append a range of bytes to the end of the given text.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>utf8</code> - the data to copy from</dd> |
| <dd><code>start</code> - the first position to append from utf8</dd> |
| <dd><code>len</code> - the number of bytes to append</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="clear--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>clear</h4> |
| <pre>public void clear()</pre> |
| <div class="block">Clear the string to empty. |
| |
| <em>Note</em>: For performance reasons, this call does not clear the underlying byte array that |
| is retrievable via <a href="../../../../../org/apache/arrow/vector/util/Text.html#getBytes--"><code>getBytes()</code></a>. In order to free the byte-array memory, call |
| <a href="../../../../../org/apache/arrow/vector/util/Text.html#set-byte:A-"><code>set(byte[])</code></a> with an empty byte array (For example, <code>new byte[0]</code>).</div> |
| </li> |
| </ul> |
| <a name="toString--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre>public <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> toString()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#toString--">toString</a></code> in class <code><a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html" title="class in org.apache.arrow.vector.util">ReusableByteArray</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="readWithKnownLength-java.io.DataInput-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>readWithKnownLength</h4> |
| <pre>public void readWithKnownLength(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</a> in, |
| int len) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block">Read a Text object whose length is already known. This allows creating Text from a stream which |
| uses a different serialization format.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>in</code> - the input to initialize from</dd> |
| <dd><code>len</code> - how many bytes to read from in</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if something bad happens</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="equals-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>equals</h4> |
| <pre>public boolean equals(<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> o)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html#equals-java.lang.Object-">equals</a></code> in class <code><a href="../../../../../org/apache/arrow/vector/util/ReusableByteArray.html" title="class in org.apache.arrow.vector.util">ReusableByteArray</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="decode-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>decode</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> decode(byte[] utf8) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/CharacterCodingException.html?is-external=true" title="class or interface in java.nio.charset">CharacterCodingException</a></pre> |
| <div class="block">Converts the provided byte array to a String using the UTF-8 encoding. If the input is |
| malformed, replace by a default value.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>utf8</code> - bytes to decode</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the decoded string</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/CharacterCodingException.html?is-external=true" title="class or interface in java.nio.charset">CharacterCodingException</a></code> - if this is not valid UTF-8</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="decode-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>decode</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> decode(byte[] utf8, |
| int start, |
| int length) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/CharacterCodingException.html?is-external=true" title="class or interface in java.nio.charset">CharacterCodingException</a></pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/CharacterCodingException.html?is-external=true" title="class or interface in java.nio.charset">CharacterCodingException</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="decode-byte:A-int-int-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>decode</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> decode(byte[] utf8, |
| int start, |
| int length, |
| boolean replace) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/CharacterCodingException.html?is-external=true" title="class or interface in java.nio.charset">CharacterCodingException</a></pre> |
| <div class="block">Converts the provided byte array to a String using the UTF-8 encoding. If <code>replace</code> |
| is true, then malformed input is replaced with the substitution character, which is U+FFFD. |
| Otherwise the method throws a MalformedInputException.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>utf8</code> - the bytes to decode</dd> |
| <dd><code>start</code> - where to start from</dd> |
| <dd><code>length</code> - length of the bytes to decode</dd> |
| <dd><code>replace</code> - whether to replace malformed characters with U+FFFD</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the decoded string</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/CharacterCodingException.html?is-external=true" title="class or interface in java.nio.charset">CharacterCodingException</a></code> - if the input could not be decoded</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="encode-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>encode</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> encode(<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> string) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/CharacterCodingException.html?is-external=true" title="class or interface in java.nio.charset">CharacterCodingException</a></pre> |
| <div class="block">Converts the provided String to bytes using the UTF-8 encoding. If the input is malformed, |
| invalid chars are replaced by a default value.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>string</code> - the string to encode</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>ByteBuffer: bytes stores at ByteBuffer.array() and length is ByteBuffer.limit()</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/CharacterCodingException.html?is-external=true" title="class or interface in java.nio.charset">CharacterCodingException</a></code> - if the string could not be encoded</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="encode-java.lang.String-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>encode</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> encode(<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> string, |
| boolean replace) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/CharacterCodingException.html?is-external=true" title="class or interface in java.nio.charset">CharacterCodingException</a></pre> |
| <div class="block">Converts the provided String to bytes using the UTF-8 encoding. If <code>replace</code> is |
| true, then malformed input is replaced with the substitution character, which is U+FFFD. |
| Otherwise the method throws a MalformedInputException.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>string</code> - the string to encode</dd> |
| <dd><code>replace</code> - whether to replace malformed characters with U+FFFD</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>ByteBuffer: bytes stores at ByteBuffer.array() and length is ByteBuffer.limit()</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/CharacterCodingException.html?is-external=true" title="class or interface in java.nio.charset">CharacterCodingException</a></code> - if the string could not be encoded</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="validateUTF8NoThrow-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>validateUTF8NoThrow</h4> |
| <pre>public static boolean validateUTF8NoThrow(byte[] utf8)</pre> |
| <div class="block">Check if a byte array contains valid utf-8.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>utf8</code> - byte array</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if the input is valid UTF-8. False otherwise.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="validateUTF8-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>validateUTF8</h4> |
| <pre>public static void validateUTF8(byte[] utf8) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/MalformedInputException.html?is-external=true" title="class or interface in java.nio.charset">MalformedInputException</a></pre> |
| <div class="block">Check if a byte array contains valid utf-8.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>utf8</code> - byte array</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/MalformedInputException.html?is-external=true" title="class or interface in java.nio.charset">MalformedInputException</a></code> - if the byte array contains invalid utf-8</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="validateUTF8-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>validateUTF8</h4> |
| <pre>public static void validateUTF8(byte[] utf8, |
| int start, |
| int len) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/MalformedInputException.html?is-external=true" title="class or interface in java.nio.charset">MalformedInputException</a></pre> |
| <div class="block">Check to see if a byte array is valid utf-8.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>utf8</code> - the array of bytes</dd> |
| <dd><code>start</code> - the offset of the first byte in the array</dd> |
| <dd><code>len</code> - the length of the byte sequence</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/MalformedInputException.html?is-external=true" title="class or interface in java.nio.charset">MalformedInputException</a></code> - if the byte array contains invalid bytes</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="bytesToCodePoint-java.nio.ByteBuffer-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>bytesToCodePoint</h4> |
| <pre>public static int bytesToCodePoint(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> bytes)</pre> |
| <div class="block">Returns the next code point at the current position in the buffer. The buffer's position will |
| be incremented. Any mark set on this buffer will be changed by this method!</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>bytes</code> - the incoming bytes</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the corresponding unicode codepoint</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="utf8Length-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>utf8Length</h4> |
| <pre>public static int utf8Length(<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> string)</pre> |
| <div class="block">For the given string, returns the number of UTF-8 bytes required to encode the string.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>string</code> - text to encode</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>number of UTF-8 bytes required to encode</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/Text.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/util/SchemaUtility.html" title="class in org.apache.arrow.vector.util"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/arrow/vector/util/Text.TextSerializer.html" title="class in org.apache.arrow.vector.util"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/arrow/vector/util/Text.html" target="_top">Frames</a></li> |
| <li><a href="Text.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><a href="#nested.class.summary">Nested</a> | </li> |
| <li><a href="#field.summary">Field</a> | </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><a href="#field.detail">Field</a> | </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 ======= --> |
| <p class="legalCopy"><small>Copyright © 2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |