| <!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 (1.8.0_232) on Mon Mar 02 19:34:19 EST 2020 --> |
| <title>TestInputTopic (kafka 2.4.1 API)</title> |
| <meta name="date" content="2020-03-02"> |
| <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="TestInputTopic (kafka 2.4.1 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="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/kafka/streams/StreamsMetrics.html" title="interface in org.apache.kafka.streams"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/kafka/streams/TestOutputTopic.html" title="class in org.apache.kafka.streams"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/kafka/streams/TestInputTopic.html" target="_top">Frames</a></li> |
| <li><a href="TestInputTopic.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </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.kafka.streams</div> |
| <h2 title="Class TestInputTopic" class="title">Class TestInputTopic<K,V></h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.kafka.streams.TestInputTopic<K,V></li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>K</code> - the type of the record key</dd> |
| <dd><code>V</code> - the type of the record value</dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">TestInputTopic<K,V></span> |
| extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block"><code>TestInputTopic</code> is used to pipe records to topic in <a href="../../../../org/apache/kafka/streams/TopologyTestDriver.html" title="class in org.apache.kafka.streams"><code>TopologyTestDriver</code></a>. |
| To use <code>TestInputTopic</code> create a new instance via |
| <a href="../../../../org/apache/kafka/streams/TopologyTestDriver.html#createInputTopic-java.lang.String-org.apache.kafka.common.serialization.Serializer-org.apache.kafka.common.serialization.Serializer-"><code>TopologyTestDriver.createInputTopic(String, Serializer, Serializer)</code></a>. |
| In actual test code, you can pipe new record values, keys and values or list of <a href="../../../../org/apache/kafka/streams/KeyValue.html" title="class in org.apache.kafka.streams"><code>KeyValue</code></a> pairs. |
| If you have multiple source topics, you need to create a <code>TestInputTopic</code> for each. |
| |
| <h2>Processing messages</h2> |
| <pre class="line-numbers"><code> |
| private TestInputTopic<Long, String> inputTopic; |
| ... |
| inputTopic = testDriver.createInputTopic(INPUT_TOPIC, longSerializer, stringSerializer); |
| ... |
| inputTopic.pipeInput("Hello"); |
| </code></pre></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/kafka/streams/TopologyTestDriver.html" title="class in org.apache.kafka.streams"><code>TopologyTestDriver</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== 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="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/kafka/streams/TestInputTopic.html#advanceTime-java.time.Duration-">advanceTime</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html?is-external=true" title="class or interface in java.time">Duration</a> advance)</code> |
| <div class="block">Advances the internally tracked event time of this input topic.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/kafka/streams/TestInputTopic.html#pipeInput-K-V-">pipeInput</a></span>(<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a> key, |
| <a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a> value)</code> |
| <div class="block">Send an input record with the given key and value on the topic and then commit the records.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/kafka/streams/TestInputTopic.html#pipeInput-K-V-java.time.Instant-">pipeInput</a></span>(<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a> key, |
| <a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a> value, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html?is-external=true" title="class or interface in java.time">Instant</a> timestamp)</code> |
| <div class="block">Send an input record with the given key, value and timestamp on the topic and then commit the records.</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/kafka/streams/TestInputTopic.html#pipeInput-K-V-long-">pipeInput</a></span>(<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a> key, |
| <a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a> value, |
| long timestampMs)</code> |
| <div class="block">Send an input record with the given key, value and timestamp on the topic and then commit the records.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/kafka/streams/TestInputTopic.html#pipeInput-org.apache.kafka.streams.test.TestRecord-">pipeInput</a></span>(<a href="../../../../org/apache/kafka/streams/test/TestRecord.html" title="class in org.apache.kafka.streams.test">TestRecord</a><<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a>,<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a>> record)</code> |
| <div class="block">Send an input record with the given record on the topic and then commit the records.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/kafka/streams/TestInputTopic.html#pipeInput-V-">pipeInput</a></span>(<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a> value)</code> |
| <div class="block">Send an input record with the given value on the topic and then commit the records.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/kafka/streams/TestInputTopic.html#pipeInput-V-java.time.Instant-">pipeInput</a></span>(<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a> value, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html?is-external=true" title="class or interface in java.time">Instant</a> timestamp)</code> |
| <div class="block">Send an input record with the given value and timestamp on the topic and then commit the records.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/kafka/streams/TestInputTopic.html#pipeKeyValueList-java.util.List-">pipeKeyValueList</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/kafka/streams/KeyValue.html" title="class in org.apache.kafka.streams">KeyValue</a><<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a>,<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a>>> keyValues)</code> |
| <div class="block">Send input records with the given KeyValue list on the topic then commit each record individually.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/kafka/streams/TestInputTopic.html#pipeKeyValueList-java.util.List-java.time.Instant-java.time.Duration-">pipeKeyValueList</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/kafka/streams/KeyValue.html" title="class in org.apache.kafka.streams">KeyValue</a><<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a>,<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a>>> keyValues, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html?is-external=true" title="class or interface in java.time">Instant</a> startTimestamp, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html?is-external=true" title="class or interface in java.time">Duration</a> advance)</code> |
| <div class="block">Send input records with the given <a href="../../../../org/apache/kafka/streams/KeyValue.html" title="class in org.apache.kafka.streams"><code>KeyValue</code></a> list on the topic then commit each record individually.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/kafka/streams/TestInputTopic.html#pipeRecordList-java.util.List-">pipeRecordList</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><? extends <a href="../../../../org/apache/kafka/streams/test/TestRecord.html" title="class in org.apache.kafka.streams.test">TestRecord</a><<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a>,<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a>>> records)</code> |
| <div class="block">Send input records with the given KeyValue list on the topic then commit each record individually.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/kafka/streams/TestInputTopic.html#pipeValueList-java.util.List-">pipeValueList</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a>> values)</code> |
| <div class="block">Send input records with the given value list on the topic then commit each record individually.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/kafka/streams/TestInputTopic.html#pipeValueList-java.util.List-java.time.Instant-java.time.Duration-">pipeValueList</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a>> values, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html?is-external=true" title="class or interface in java.time">Instant</a> startTimestamp, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html?is-external=true" title="class or interface in java.time">Duration</a> advance)</code> |
| <div class="block">Send input records with the given value list on the topic then commit each record individually.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <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/kafka/streams/TestInputTopic.html#toString--">toString</a></span>()</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="advanceTime-java.time.Duration-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>advanceTime</h4> |
| <pre>public void advanceTime(<a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html?is-external=true" title="class or interface in java.time">Duration</a> advance)</pre> |
| <div class="block">Advances the internally tracked event time of this input topic. |
| Each time a record without explicitly defined timestamp is piped, |
| the current topic event time is used as record timestamp. |
| <p> |
| Note: advancing the event time on the input topic, does not advance the tracked stream time in |
| <a href="../../../../org/apache/kafka/streams/TopologyTestDriver.html" title="class in org.apache.kafka.streams"><code>TopologyTestDriver</code></a> as long as no new input records are piped. |
| Furthermore, it does not advance the wall-clock time of <a href="../../../../org/apache/kafka/streams/TopologyTestDriver.html" title="class in org.apache.kafka.streams"><code>TopologyTestDriver</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>advance</code> - the duration of time to advance</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="pipeInput-org.apache.kafka.streams.test.TestRecord-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pipeInput</h4> |
| <pre>public void pipeInput(<a href="../../../../org/apache/kafka/streams/test/TestRecord.html" title="class in org.apache.kafka.streams.test">TestRecord</a><<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a>,<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a>> record)</pre> |
| <div class="block">Send an input record with the given record on the topic and then commit the records. |
| May auto advance topic time.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>record</code> - the record to sent</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="pipeInput-java.lang.Object-"> |
| <!-- --> |
| </a><a name="pipeInput-V-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pipeInput</h4> |
| <pre>public void pipeInput(<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a> value)</pre> |
| <div class="block">Send an input record with the given value on the topic and then commit the records. |
| May auto advance topic time.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the record value</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="pipeInput-java.lang.Object-java.lang.Object-"> |
| <!-- --> |
| </a><a name="pipeInput-K-V-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pipeInput</h4> |
| <pre>public void pipeInput(<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a> key, |
| <a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a> value)</pre> |
| <div class="block">Send an input record with the given key and value on the topic and then commit the records. |
| May auto advance topic time</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the record key</dd> |
| <dd><code>value</code> - the record value</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="pipeInput-java.lang.Object-java.time.Instant-"> |
| <!-- --> |
| </a><a name="pipeInput-V-java.time.Instant-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pipeInput</h4> |
| <pre>public void pipeInput(<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a> value, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html?is-external=true" title="class or interface in java.time">Instant</a> timestamp)</pre> |
| <div class="block">Send an input record with the given value and timestamp on the topic and then commit the records. |
| Does not auto advance internally tracked time.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the record value</dd> |
| <dd><code>timestamp</code> - the record timestamp</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="pipeInput-java.lang.Object-java.lang.Object-long-"> |
| <!-- --> |
| </a><a name="pipeInput-K-V-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pipeInput</h4> |
| <pre>public void pipeInput(<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a> key, |
| <a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a> value, |
| long timestampMs)</pre> |
| <div class="block">Send an input record with the given key, value and timestamp on the topic and then commit the records. |
| Does not auto advance internally tracked time.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the record key</dd> |
| <dd><code>value</code> - the record value</dd> |
| <dd><code>timestampMs</code> - the record timestamp</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="pipeInput-java.lang.Object-java.lang.Object-java.time.Instant-"> |
| <!-- --> |
| </a><a name="pipeInput-K-V-java.time.Instant-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pipeInput</h4> |
| <pre>public void pipeInput(<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a> key, |
| <a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a> value, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html?is-external=true" title="class or interface in java.time">Instant</a> timestamp)</pre> |
| <div class="block">Send an input record with the given key, value and timestamp on the topic and then commit the records. |
| Does not auto advance internally tracked time.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the record key</dd> |
| <dd><code>value</code> - the record value</dd> |
| <dd><code>timestamp</code> - the record timestamp</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="pipeRecordList-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pipeRecordList</h4> |
| <pre>public void pipeRecordList(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><? extends <a href="../../../../org/apache/kafka/streams/test/TestRecord.html" title="class in org.apache.kafka.streams.test">TestRecord</a><<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a>,<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a>>> records)</pre> |
| <div class="block">Send input records with the given KeyValue list on the topic then commit each record individually. |
| The timestamp will be generated based on the constructor provided start time and time will auto advance.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>records</code> - the list of TestRecord records</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="pipeKeyValueList-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pipeKeyValueList</h4> |
| <pre>public void pipeKeyValueList(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/kafka/streams/KeyValue.html" title="class in org.apache.kafka.streams">KeyValue</a><<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a>,<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a>>> keyValues)</pre> |
| <div class="block">Send input records with the given KeyValue list on the topic then commit each record individually. |
| The timestamp will be generated based on the constructor provided start time and time will auto advance based on |
| <a href="../../../../org/apache/kafka/streams/TestInputTopic.html#TestInputTopic-org.apache.kafka.streams.TopologyTestDriver-java.lang.String-org.apache.kafka.common.serialization.Serializer-org.apache.kafka.common.serialization.Serializer-java.time.Instant-java.time.Duration-"><code>autoAdvance</code></a> setting.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>keyValues</code> - the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a> of <a href="../../../../org/apache/kafka/streams/KeyValue.html" title="class in org.apache.kafka.streams"><code>KeyValue</code></a> records</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="pipeValueList-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pipeValueList</h4> |
| <pre>public void pipeValueList(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a>> values)</pre> |
| <div class="block">Send input records with the given value list on the topic then commit each record individually. |
| The timestamp will be generated based on the constructor provided start time and time will auto advance based on |
| <a href="../../../../org/apache/kafka/streams/TestInputTopic.html#TestInputTopic-org.apache.kafka.streams.TopologyTestDriver-java.lang.String-org.apache.kafka.common.serialization.Serializer-org.apache.kafka.common.serialization.Serializer-java.time.Instant-java.time.Duration-"><code>autoAdvance</code></a> setting.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>values</code> - the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a> of <a href="../../../../org/apache/kafka/streams/KeyValue.html" title="class in org.apache.kafka.streams"><code>KeyValue</code></a> records</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="pipeKeyValueList-java.util.List-java.time.Instant-java.time.Duration-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pipeKeyValueList</h4> |
| <pre>public void pipeKeyValueList(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/kafka/streams/KeyValue.html" title="class in org.apache.kafka.streams">KeyValue</a><<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">K</a>,<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a>>> keyValues, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html?is-external=true" title="class or interface in java.time">Instant</a> startTimestamp, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html?is-external=true" title="class or interface in java.time">Duration</a> advance)</pre> |
| <div class="block">Send input records with the given <a href="../../../../org/apache/kafka/streams/KeyValue.html" title="class in org.apache.kafka.streams"><code>KeyValue</code></a> list on the topic then commit each record individually. |
| Does not auto advance internally tracked time.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>keyValues</code> - the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a> of <a href="../../../../org/apache/kafka/streams/KeyValue.html" title="class in org.apache.kafka.streams"><code>KeyValue</code></a> records</dd> |
| <dd><code>startTimestamp</code> - the timestamp for the first generated record</dd> |
| <dd><code>advance</code> - the time difference between two consecutive generated records</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="pipeValueList-java.util.List-java.time.Instant-java.time.Duration-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pipeValueList</h4> |
| <pre>public void pipeValueList(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/kafka/streams/TestInputTopic.html" title="type parameter in TestInputTopic">V</a>> values, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html?is-external=true" title="class or interface in java.time">Instant</a> startTimestamp, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html?is-external=true" title="class or interface in java.time">Duration</a> advance)</pre> |
| <div class="block">Send input records with the given value list on the topic then commit each record individually. |
| The timestamp will be generated based on the constructor provided start time and time will auto advance based on |
| <a href="../../../../org/apache/kafka/streams/TestInputTopic.html#TestInputTopic-org.apache.kafka.streams.TopologyTestDriver-java.lang.String-org.apache.kafka.common.serialization.Serializer-org.apache.kafka.common.serialization.Serializer-java.time.Instant-java.time.Duration-"><code>autoAdvance</code></a> setting.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>values</code> - the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code></a> of values</dd> |
| <dd><code>startTimestamp</code> - the timestamp for the first generated record</dd> |
| <dd><code>advance</code> - the time difference between two consecutive generated records</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="toString--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <code><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></code></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="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/kafka/streams/StreamsMetrics.html" title="interface in org.apache.kafka.streams"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/kafka/streams/TestOutputTopic.html" title="class in org.apache.kafka.streams"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/kafka/streams/TestInputTopic.html" target="_top">Frames</a></li> |
| <li><a href="TestInputTopic.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |