blob: 938484db94e98a387b33d8f380552c5ff2141a26 [file] [log] [blame]
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) -->
<title>Values (kafka 3.6.1 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="declaration: package: org.apache.kafka.connect.data, class: Values">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var evenRowColor = "even-row-color";
var oddRowColor = "odd-row-color";
var tableTab = "table-tab";
var activeTableTab = "active-table-tab";
var pathtoroot = "../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top">
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html#class">Help</a></li>
</ul>
</div>
<div class="sub-nav">
<div>
<ul class="sub-nav-list">
<li>Summary:&nbsp;</li>
<li><a href="#nested-class-summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor-summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor-detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
<input type="text" id="search-input" value="search" disabled="disabled">
<input type="reset" id="reset-button" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">org.apache.kafka.connect.data</a></div>
<h1 title="Class Values" class="title">Class Values</h1>
</div>
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
<div class="inheritance">org.apache.kafka.connect.data.Values</div>
</div>
<section class="class-description" id="class-description">
<hr>
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Values</span>
<span class="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span></div>
<div class="block">Utility for converting from one Connect value to a different form. This is useful when the caller expects a value of a particular type
but is uncertain whether the actual value is one that isn't directly that type but can be converted into that type.
<p>For example, a caller might expect a particular <a href="../header/Header.html" title="interface in org.apache.kafka.connect.header"><code>Header</code></a> to contain a <a href="Schema.Type.html#INT64"><code>Schema.Type.INT64</code></a>
value, when in fact that header contains a string representation of a 32-bit integer. Here, the caller can use the methods in this
class to convert the value to the desired type:
<pre>
Header header = ...
long value = Values.convertToLong(header.schema(), header.value());
</pre>
<p>This class is able to convert any value to a string representation as well as parse those string representations back into most of
the types. The only exception is <a href="Struct.html" title="class in org.apache.kafka.connect.data"><code>Struct</code></a> values that require a schema and thus cannot be parsed from a simple string.</div>
</section>
<section class="summary">
<ul class="summary-list">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<li>
<section class="nested-class-summary" id="nested-class-summary">
<h2>Nested Class Summary</h2>
<div class="caption"><span>Nested Classes</span></div>
<div class="summary-table three-column-summary">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Class</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>protected static class&nbsp;</code></div>
<div class="col-second even-row-color"><code><a href="Values.Parser.html" class="type-name-link" title="class in org.apache.kafka.connect.data">Values.Parser</a></code></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><code>protected static class&nbsp;</code></div>
<div class="col-second odd-row-color"><code><a href="Values.SchemaDetector.html" class="type-name-link" title="class in org.apache.kafka.connect.data">Values.SchemaDetector</a></code></div>
<div class="col-last odd-row-color">&nbsp;</div>
</div>
</section>
</li>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li>
<section class="constructor-summary" id="constructor-summary">
<h2>Constructor Summary</h2>
<div class="caption"><span>Constructors</span></div>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Constructor</div>
<div class="table-header col-last">Description</div>
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E()" class="member-name-link">Values</a>()</code></div>
<div class="col-last even-row-color">&nbsp;</div>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>protected static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#alignListEntriesWithSchema(org.apache.kafka.connect.data.Schema,java.util.List)" class="member-name-link">alignListEntriesWithSchema</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;&nbsp;input)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>protected static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#alignMapKeysAndValuesWithSchema(org.apache.kafka.connect.data.Schema,java.util.Map)" class="member-name-link">alignMapKeysAndValuesWithSchema</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;mapSchema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;&nbsp;input)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>protected static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#alignMapKeysWithSchema(org.apache.kafka.connect.data.Schema,java.util.Map)" class="member-name-link">alignMapKeysWithSchema</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;mapSchema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;&nbsp;input)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>protected static void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#append(java.lang.StringBuilder,java.lang.Object,boolean)" class="member-name-link">append</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/StringBuilder.html" title="class or interface in java.lang" class="external-link">StringBuilder</a>&nbsp;sb,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value,
boolean&nbsp;embedded)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>protected static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#appendIterable(java.lang.StringBuilder,java.util.Iterator)" class="member-name-link">appendIterable</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/StringBuilder.html" title="class or interface in java.lang" class="external-link">StringBuilder</a>&nbsp;sb,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Iterator.html" title="class or interface in java.util" class="external-link">Iterator</a>&lt;?&gt;&nbsp;iter)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>protected static double</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#asDouble(java.lang.Object,org.apache.kafka.connect.data.Schema,java.lang.Throwable)" class="member-name-link">asDouble</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value,
<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html" title="class or interface in java.lang" class="external-link">Throwable</a>&nbsp;error)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value with the desired floating point type.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>protected static long</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#asLong(java.lang.Object,org.apache.kafka.connect.data.Schema,java.lang.Throwable)" class="member-name-link">asLong</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value,
<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;fromSchema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html" title="class or interface in java.lang" class="external-link">Throwable</a>&nbsp;error)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to the desired scalar value type.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>protected static boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#canParseSingleTokenLiteral(org.apache.kafka.connect.data.Values.Parser,boolean,java.lang.String)" class="member-name-link">canParseSingleTokenLiteral</a><wbr>(<a href="Values.Parser.html" title="class in org.apache.kafka.connect.data">Values.Parser</a>&nbsp;parser,
boolean&nbsp;embedded,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;tokenLiteral)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>protected static <a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#commonSchemaFor(org.apache.kafka.connect.data.Schema,org.apache.kafka.connect.data.SchemaAndValue)" class="member-name-link">commonSchemaFor</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;previous,
<a href="SchemaAndValue.html" title="class in org.apache.kafka.connect.data">SchemaAndValue</a>&nbsp;latest)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>protected static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertTo(org.apache.kafka.connect.data.Schema,org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertTo</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;toSchema,
<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;fromSchema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the value to the desired type.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToBoolean(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToBoolean</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to a <a href="Schema.Type.html#BOOLEAN"><code>Schema.Type.BOOLEAN</code></a> value.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Byte.html" title="class or interface in java.lang" class="external-link">Byte</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToByte(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToByte</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to an <a href="Schema.Type.html#INT8"><code>Schema.Type.INT8</code></a> byte value.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Date.html" title="class or interface in java.util" class="external-link">Date</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToDate(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToDate</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to a <a href="Date.html#SCHEMA"><code>date</code></a> value.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/math/BigDecimal.html" title="class or interface in java.math" class="external-link">BigDecimal</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToDecimal(org.apache.kafka.connect.data.Schema,java.lang.Object,int)" class="member-name-link">convertToDecimal</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value,
int&nbsp;scale)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to a <a href="Decimal.html" title="class in org.apache.kafka.connect.data"><code>decimal</code></a> value.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html" title="class or interface in java.lang" class="external-link">Double</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToDouble(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToDouble</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to a <a href="Schema.Type.html#FLOAT64"><code>Schema.Type.FLOAT64</code></a> double value.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Float.html" title="class or interface in java.lang" class="external-link">Float</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToFloat(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToFloat</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to a <a href="Schema.Type.html#FLOAT32"><code>Schema.Type.FLOAT32</code></a> float value.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToInteger(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToInteger</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to an <a href="Schema.Type.html#INT32"><code>Schema.Type.INT32</code></a> int value.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;?&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToList(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToList</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to an <a href="Schema.Type.html#ARRAY"><code>Schema.Type.ARRAY</code></a> value.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Long.html" title="class or interface in java.lang" class="external-link">Long</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToLong(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToLong</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to an <a href="Schema.Type.html#INT64"><code>Schema.Type.INT64</code></a> long value.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;?,<wbr>?&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToMap(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToMap</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to a <a href="Schema.Type.html#MAP"><code>Schema.Type.MAP</code></a> value.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Short.html" title="class or interface in java.lang" class="external-link">Short</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToShort(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToShort</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to an <a href="Schema.Type.html#INT16"><code>Schema.Type.INT16</code></a> short value.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToString(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToString</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to a <a href="Schema.Type.html#STRING"><code>Schema.Type.STRING</code></a> value.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="Struct.html" title="class in org.apache.kafka.connect.data">Struct</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToStruct(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToStruct</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to a <a href="Schema.Type.html#STRUCT"><code>Schema.Type.STRUCT</code></a> value.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Date.html" title="class or interface in java.util" class="external-link">Date</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToTime(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToTime</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to a <a href="Time.html#SCHEMA"><code>time</code></a> value.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Date.html" title="class or interface in java.util" class="external-link">Date</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convertToTimestamp(org.apache.kafka.connect.data.Schema,java.lang.Object)" class="member-name-link">convertToTimestamp</a><wbr>(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert the specified value to a <a href="Timestamp.html#SCHEMA"><code>timestamp</code></a> value.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/text/DateFormat.html" title="class or interface in java.text" class="external-link">DateFormat</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#dateFormatFor(java.util.Date)" class="member-name-link">dateFormatFor</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Date.html" title="class or interface in java.util" class="external-link">Date</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>protected static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#escape(java.lang.String)" class="member-name-link">escape</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#inferSchema(java.lang.Object)" class="member-name-link">inferSchema</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">If possible infer a schema for the given value.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>protected static <a href="SchemaAndValue.html" title="class in org.apache.kafka.connect.data">SchemaAndValue</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#parse(org.apache.kafka.connect.data.Values.Parser,boolean)" class="member-name-link">parse</a><wbr>(<a href="Values.Parser.html" title="class in org.apache.kafka.connect.data">Values.Parser</a>&nbsp;parser,
boolean&nbsp;embedded)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="SchemaAndValue.html" title="class in org.apache.kafka.connect.data">SchemaAndValue</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#parseString(java.lang.String)" class="member-name-link">parseString</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Parse the specified string representation of a value into its schema and value.</div>
</div>
</div>
</div>
</div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3>
<code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li>
<section class="constructor-details" id="constructor-detail">
<h2>Constructor Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="&lt;init&gt;()">
<h3>Values</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name">Values</span>()</div>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="convertToBoolean(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToBoolean</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a></span>&nbsp;<span class="element-name">convertToBoolean</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span>
throws <span class="exceptions"><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></span></div>
<div class="block">Convert the specified value to a <a href="Schema.Type.html#BOOLEAN"><code>Schema.Type.BOOLEAN</code></a> value. The supplied schema is required if the value is a logical
type when the schema contains critical information that might be necessary for converting to a boolean.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a boolean, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value could not be converted to a boolean</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToByte(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToByte</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Byte.html" title="class or interface in java.lang" class="external-link">Byte</a></span>&nbsp;<span class="element-name">convertToByte</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span>
throws <span class="exceptions"><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></span></div>
<div class="block">Convert the specified value to an <a href="Schema.Type.html#INT8"><code>Schema.Type.INT8</code></a> byte value. The supplied schema is required if the value is a logical
type when the schema contains critical information that might be necessary for converting to a byte.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a byte, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value could not be converted to a byte</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToShort(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToShort</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Short.html" title="class or interface in java.lang" class="external-link">Short</a></span>&nbsp;<span class="element-name">convertToShort</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span>
throws <span class="exceptions"><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></span></div>
<div class="block">Convert the specified value to an <a href="Schema.Type.html#INT16"><code>Schema.Type.INT16</code></a> short value. The supplied schema is required if the value is a logical
type when the schema contains critical information that might be necessary for converting to a short.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a short, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value could not be converted to a short</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToInteger(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToInteger</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a></span>&nbsp;<span class="element-name">convertToInteger</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span>
throws <span class="exceptions"><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></span></div>
<div class="block">Convert the specified value to an <a href="Schema.Type.html#INT32"><code>Schema.Type.INT32</code></a> int value. The supplied schema is required if the value is a logical
type when the schema contains critical information that might be necessary for converting to an integer.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as an integer, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value could not be converted to an integer</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToLong(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToLong</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Long.html" title="class or interface in java.lang" class="external-link">Long</a></span>&nbsp;<span class="element-name">convertToLong</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span>
throws <span class="exceptions"><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></span></div>
<div class="block">Convert the specified value to an <a href="Schema.Type.html#INT64"><code>Schema.Type.INT64</code></a> long value. The supplied schema is required if the value is a logical
type when the schema contains critical information that might be necessary for converting to a long.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a long, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value could not be converted to a long</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToFloat(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToFloat</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Float.html" title="class or interface in java.lang" class="external-link">Float</a></span>&nbsp;<span class="element-name">convertToFloat</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span>
throws <span class="exceptions"><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></span></div>
<div class="block">Convert the specified value to a <a href="Schema.Type.html#FLOAT32"><code>Schema.Type.FLOAT32</code></a> float value. The supplied schema is required if the value is a logical
type when the schema contains critical information that might be necessary for converting to a floating point number.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a float, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value could not be converted to a float</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToDouble(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToDouble</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html" title="class or interface in java.lang" class="external-link">Double</a></span>&nbsp;<span class="element-name">convertToDouble</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span>
throws <span class="exceptions"><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></span></div>
<div class="block">Convert the specified value to a <a href="Schema.Type.html#FLOAT64"><code>Schema.Type.FLOAT64</code></a> double value. The supplied schema is required if the value is a logical
type when the schema contains critical information that might be necessary for converting to a floating point number.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a double, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value could not be converted to a double</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToString(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToString</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name">convertToString</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span></div>
<div class="block">Convert the specified value to a <a href="Schema.Type.html#STRING"><code>Schema.Type.STRING</code></a> value.
Not supplying a schema may limit the ability to convert to the desired type.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a string, or null if the supplied value was null</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToList(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToList</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;?&gt;</span>&nbsp;<span class="element-name">convertToList</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span></div>
<div class="block">Convert the specified value to an <a href="Schema.Type.html#ARRAY"><code>Schema.Type.ARRAY</code></a> value. If the value is a string representation of an array, this method
will parse the string and its elements to infer the schemas for those elements. Thus, this method supports
arrays of other primitives and structured types. If the value is already an array (or list), this method simply casts and
returns it.
<p>This method currently does not use the schema, though it may be used in the future.</p></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a list, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value cannot be converted to a list value</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToMap(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToMap</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;?,<wbr>?&gt;</span>&nbsp;<span class="element-name">convertToMap</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span></div>
<div class="block">Convert the specified value to a <a href="Schema.Type.html#MAP"><code>Schema.Type.MAP</code></a> value. If the value is a string representation of a map, this method
will parse the string and its entries to infer the schemas for those entries. Thus, this method supports
maps with primitives and structured keys and values. If the value is already a map, this method simply casts and returns it.
<p>This method currently does not use the schema, though it may be used in the future.</p></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a map, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value cannot be converted to a map value</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToStruct(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToStruct</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="Struct.html" title="class in org.apache.kafka.connect.data">Struct</a></span>&nbsp;<span class="element-name">convertToStruct</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span></div>
<div class="block">Convert the specified value to a <a href="Schema.Type.html#STRUCT"><code>Schema.Type.STRUCT</code></a> value. Structs cannot be converted from other types, so this method returns
a struct only if the supplied value is a struct. If not a struct, this method throws an exception.
<p>This method currently does not use the schema, though it may be used in the future.</p></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a struct, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value is not a struct</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToTime(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToTime</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Date.html" title="class or interface in java.util" class="external-link">Date</a></span>&nbsp;<span class="element-name">convertToTime</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span></div>
<div class="block">Convert the specified value to a <a href="Time.html#SCHEMA"><code>time</code></a> value.
Not supplying a schema may limit the ability to convert to the desired type.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a time, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value cannot be converted to a time value</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToDate(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToDate</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Date.html" title="class or interface in java.util" class="external-link">Date</a></span>&nbsp;<span class="element-name">convertToDate</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span></div>
<div class="block">Convert the specified value to a <a href="Date.html#SCHEMA"><code>date</code></a> value.
Not supplying a schema may limit the ability to convert to the desired type.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a date, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value cannot be converted to a date value</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToTimestamp(org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertToTimestamp</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Date.html" title="class or interface in java.util" class="external-link">Date</a></span>&nbsp;<span class="element-name">convertToTimestamp</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span></div>
<div class="block">Convert the specified value to a <a href="Timestamp.html#SCHEMA"><code>timestamp</code></a> value.
Not supplying a schema may limit the ability to convert to the desired type.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a timestamp, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value cannot be converted to a timestamp value</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertToDecimal(org.apache.kafka.connect.data.Schema,java.lang.Object,int)">
<h3>convertToDecimal</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/math/BigDecimal.html" title="class or interface in java.math" class="external-link">BigDecimal</a></span>&nbsp;<span class="element-name">convertToDecimal</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value,
int&nbsp;scale)</span></div>
<div class="block">Convert the specified value to a <a href="Decimal.html" title="class in org.apache.kafka.connect.data"><code>decimal</code></a> value.
Not supplying a schema may limit the ability to convert to the desired type.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>schema</code> - the schema for the value; may be null</dd>
<dd><code>value</code> - the value to be converted; may be null</dd>
<dt>Returns:</dt>
<dd>the representation as a decimal, or null if the supplied value was null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value cannot be converted to a decimal value</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="inferSchema(java.lang.Object)">
<h3>inferSchema</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a></span>&nbsp;<span class="element-name">inferSchema</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span></div>
<div class="block">If possible infer a schema for the given value.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - the value whose schema is to be inferred; may be null</dd>
<dt>Returns:</dt>
<dd>the inferred schema, or null if the value is null or no schema could be inferred</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="parseString(java.lang.String)">
<h3>parseString</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="SchemaAndValue.html" title="class in org.apache.kafka.connect.data">SchemaAndValue</a></span>&nbsp;<span class="element-name">parseString</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;value)</span></div>
<div class="block">Parse the specified string representation of a value into its schema and value.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - the string form of the value</dd>
<dt>Returns:</dt>
<dd>the schema and value; never null, but whose schema and value may be null</dd>
<dt>See Also:</dt>
<dd>
<ul class="see-list-long">
<li><a href="#convertToString(org.apache.kafka.connect.data.Schema,java.lang.Object)"><code>convertToString(org.apache.kafka.connect.data.Schema, java.lang.Object)</code></a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convertTo(org.apache.kafka.connect.data.Schema,org.apache.kafka.connect.data.Schema,java.lang.Object)">
<h3>convertTo</h3>
<div class="member-signature"><span class="modifiers">protected static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span>&nbsp;<span class="element-name">convertTo</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;toSchema,
<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;fromSchema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value)</span>
throws <span class="exceptions"><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></span></div>
<div class="block">Convert the value to the desired type.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>toSchema</code> - the schema for the desired type; may not be null</dd>
<dd><code>fromSchema</code> - the schema for the supplied value; may be null if not known</dd>
<dt>Returns:</dt>
<dd>the converted value; never null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value could not be converted to the desired type</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="asLong(java.lang.Object,org.apache.kafka.connect.data.Schema,java.lang.Throwable)">
<h3>asLong</h3>
<div class="member-signature"><span class="modifiers">protected static</span>&nbsp;<span class="return-type">long</span>&nbsp;<span class="element-name">asLong</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value,
<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;fromSchema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html" title="class or interface in java.lang" class="external-link">Throwable</a>&nbsp;error)</span></div>
<div class="block">Convert the specified value to the desired scalar value type.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - the value to be converted; may not be null</dd>
<dd><code>fromSchema</code> - the schema for the current value type; may not be null</dd>
<dd><code>error</code> - any previous error that should be included in an exception message; may be null</dd>
<dt>Returns:</dt>
<dd>the long value after conversion; never null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value could not be converted to a long</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="asDouble(java.lang.Object,org.apache.kafka.connect.data.Schema,java.lang.Throwable)">
<h3>asDouble</h3>
<div class="member-signature"><span class="modifiers">protected static</span>&nbsp;<span class="return-type">double</span>&nbsp;<span class="element-name">asDouble</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value,
<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html" title="class or interface in java.lang" class="external-link">Throwable</a>&nbsp;error)</span></div>
<div class="block">Convert the specified value with the desired floating point type.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - the value to be converted; may not be null</dd>
<dd><code>schema</code> - the schema for the current value type; may not be null</dd>
<dd><code>error</code> - any previous error that should be included in an exception message; may be null</dd>
<dt>Returns:</dt>
<dd>the double value after conversion; never null</dd>
<dt>Throws:</dt>
<dd><code><a href="../errors/DataException.html" title="class in org.apache.kafka.connect.errors">DataException</a></code> - if the value could not be converted to a double</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="append(java.lang.StringBuilder,java.lang.Object,boolean)">
<h3>append</h3>
<div class="member-signature"><span class="modifiers">protected static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">append</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/StringBuilder.html" title="class or interface in java.lang" class="external-link">StringBuilder</a>&nbsp;sb,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;value,
boolean&nbsp;embedded)</span></div>
</section>
</li>
<li>
<section class="detail" id="appendIterable(java.lang.StringBuilder,java.util.Iterator)">
<h3>appendIterable</h3>
<div class="member-signature"><span class="modifiers">protected static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">appendIterable</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/StringBuilder.html" title="class or interface in java.lang" class="external-link">StringBuilder</a>&nbsp;sb,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Iterator.html" title="class or interface in java.util" class="external-link">Iterator</a>&lt;?&gt;&nbsp;iter)</span></div>
</section>
</li>
<li>
<section class="detail" id="escape(java.lang.String)">
<h3>escape</h3>
<div class="member-signature"><span class="modifiers">protected static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name">escape</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;value)</span></div>
</section>
</li>
<li>
<section class="detail" id="dateFormatFor(java.util.Date)">
<h3>dateFormatFor</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/text/DateFormat.html" title="class or interface in java.text" class="external-link">DateFormat</a></span>&nbsp;<span class="element-name">dateFormatFor</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Date.html" title="class or interface in java.util" class="external-link">Date</a>&nbsp;value)</span></div>
</section>
</li>
<li>
<section class="detail" id="canParseSingleTokenLiteral(org.apache.kafka.connect.data.Values.Parser,boolean,java.lang.String)">
<h3>canParseSingleTokenLiteral</h3>
<div class="member-signature"><span class="modifiers">protected static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">canParseSingleTokenLiteral</span><wbr><span class="parameters">(<a href="Values.Parser.html" title="class in org.apache.kafka.connect.data">Values.Parser</a>&nbsp;parser,
boolean&nbsp;embedded,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;tokenLiteral)</span></div>
</section>
</li>
<li>
<section class="detail" id="parse(org.apache.kafka.connect.data.Values.Parser,boolean)">
<h3>parse</h3>
<div class="member-signature"><span class="modifiers">protected static</span>&nbsp;<span class="return-type"><a href="SchemaAndValue.html" title="class in org.apache.kafka.connect.data">SchemaAndValue</a></span>&nbsp;<span class="element-name">parse</span><wbr><span class="parameters">(<a href="Values.Parser.html" title="class in org.apache.kafka.connect.data">Values.Parser</a>&nbsp;parser,
boolean&nbsp;embedded)</span>
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/NoSuchElementException.html" title="class or interface in java.util" class="external-link">NoSuchElementException</a></span></div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/NoSuchElementException.html" title="class or interface in java.util" class="external-link">NoSuchElementException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="commonSchemaFor(org.apache.kafka.connect.data.Schema,org.apache.kafka.connect.data.SchemaAndValue)">
<h3>commonSchemaFor</h3>
<div class="member-signature"><span class="modifiers">protected static</span>&nbsp;<span class="return-type"><a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a></span>&nbsp;<span class="element-name">commonSchemaFor</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;previous,
<a href="SchemaAndValue.html" title="class in org.apache.kafka.connect.data">SchemaAndValue</a>&nbsp;latest)</span></div>
</section>
</li>
<li>
<section class="detail" id="alignListEntriesWithSchema(org.apache.kafka.connect.data.Schema,java.util.List)">
<h3>alignListEntriesWithSchema</h3>
<div class="member-signature"><span class="modifiers">protected static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;</span>&nbsp;<span class="element-name">alignListEntriesWithSchema</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;schema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;&nbsp;input)</span></div>
</section>
</li>
<li>
<section class="detail" id="alignMapKeysAndValuesWithSchema(org.apache.kafka.connect.data.Schema,java.util.Map)">
<h3>alignMapKeysAndValuesWithSchema</h3>
<div class="member-signature"><span class="modifiers">protected static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;</span>&nbsp;<span class="element-name">alignMapKeysAndValuesWithSchema</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;mapSchema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;&nbsp;input)</span></div>
</section>
</li>
<li>
<section class="detail" id="alignMapKeysWithSchema(org.apache.kafka.connect.data.Schema,java.util.Map)">
<h3>alignMapKeysWithSchema</h3>
<div class="member-signature"><span class="modifiers">protected static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;</span>&nbsp;<span class="element-name">alignMapKeysWithSchema</span><wbr><span class="parameters">(<a href="Schema.html" title="interface in org.apache.kafka.connect.data">Schema</a>&nbsp;mapSchema,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&gt;&nbsp;input)</span></div>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
</div>
</div>
</body>
</html>