blob: 894ee7ae66387d86c3f4b798a4b7f2a110d46f53 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_161-google-v7) on Thu Oct 18 16:14:33 PDT 2018 -->
<title>Create (Apache Beam 2.8.0-SNAPSHOT)</title>
<meta name="date" content="2018-10-18">
<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="Create (Apache Beam 2.8.0-SNAPSHOT)";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static 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/beam/sdk/transforms/Count.html" title="class in org.apache.beam.sdk.transforms"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/beam/sdk/transforms/Create.OfValueProvider.html" title="class in org.apache.beam.sdk.transforms"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/beam/sdk/transforms/Create.html" target="_top">Frames</a></li>
<li><a href="Create.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><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="subNavList">
<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>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.beam.sdk.transforms</div>
<h2 title="Class Create" class="title">Class Create&lt;T&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.beam.sdk.transforms.Create&lt;T&gt;</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - the type of the elements of the resulting <code>PCollection</code></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">Create&lt;T&gt;</span>
extends java.lang.Object</pre>
<div class="block"><code>Create&lt;T&gt;</code> takes a collection of elements of type <code>T</code> known when the pipeline is
constructed and returns a <code>PCollection&lt;T&gt;</code> containing the elements.
<p>Example of use:
<pre><code>
Pipeline p = ...;
PCollection&lt;Integer&gt; pc = p.apply(Create.of(3, 4, 5).withCoder(BigEndianIntegerCoder.of()));
Map&lt;String, Integer&gt; map = ...;
PCollection&lt;KV&lt;String, Integer&gt;&gt; pt =
p.apply(Create.of(map)
.withCoder(KvCoder.of(StringUtf8Coder.of(),
BigEndianIntegerCoder.of())));
</code></pre>
<p><code>Create</code> can automatically determine the <code>Coder</code> to use if all elements have the
same run-time class, and a default coder is registered for that class. See <a href="../../../../../org/apache/beam/sdk/coders/CoderRegistry.html" title="class in org.apache.beam.sdk.coders"><code>CoderRegistry</code></a>
for details on how defaults are determined.
<p>If a coder can not be inferred, <a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html#withCoder-org.apache.beam.sdk.coders.Coder-"><code>Create.Values.withCoder(org.apache.beam.sdk.coders.Coder&lt;T&gt;)</code></a> must be called explicitly to
set the encoding of the resulting <code>PCollection</code>.
<p>A good use for <code>Create</code> is when a <code>PCollection</code> needs to be created without
dependencies on files or other external entities. This is especially useful during testing.
<p>Caveat: <code>Create</code> only supports small in-memory datasets.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.OfValueProvider.html" title="class in org.apache.beam.sdk.transforms">Create.OfValueProvider</a>&lt;<a href="../../../../../org/apache/beam/sdk/transforms/Create.OfValueProvider.html" title="type parameter in Create.OfValueProvider">T</a>&gt;</span></code>
<div class="block">Implementation of <a href="../../../../../org/apache/beam/sdk/transforms/Create.html#ofProvider-org.apache.beam.sdk.options.ValueProvider-org.apache.beam.sdk.coders.Coder-"><code>ofProvider(org.apache.beam.sdk.options.ValueProvider&lt;T&gt;, org.apache.beam.sdk.coders.Coder&lt;T&gt;)</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html" title="class in org.apache.beam.sdk.transforms">Create.TimestampedValues</a>&lt;<a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html" title="type parameter in Create.TimestampedValues">T</a>&gt;</span></code>
<div class="block">A <code>PTransform</code> that creates a <code>PCollection</code> whose elements have associated
timestamps.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html" title="class in org.apache.beam.sdk.transforms">Create.Values</a>&lt;<a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html" title="type parameter in Create.Values">T</a>&gt;</span></code>
<div class="block">A <code>PTransform</code> that creates a <code>PCollection</code> from a set of in-memory objects.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.html#Create--">Create</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html" title="class in org.apache.beam.sdk.transforms">Create.Values</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.html#empty-org.apache.beam.sdk.coders.Coder-">empty</a></span>(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a>&lt;T&gt;&nbsp;coder)</code>
<div class="block">Returns a new <code>Create.Values</code> transform that produces an empty <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html" title="class in org.apache.beam.sdk.transforms">Create.Values</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.html#empty-org.apache.beam.sdk.values.TypeDescriptor-">empty</a></span>(<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a>&lt;T&gt;&nbsp;type)</code>
<div class="block">Returns a new <code>Create.Values</code> transform that produces an empty <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html" title="class in org.apache.beam.sdk.transforms">Create.Values</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.html#of-java.lang.Iterable-">of</a></span>(java.lang.Iterable&lt;T&gt;&nbsp;elems)</code>
<div class="block">Returns a new <code>Create.Values</code> transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> containing
elements of the provided <code>Iterable</code>.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static &lt;K,V&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html" title="class in org.apache.beam.sdk.transforms">Create.Values</a>&lt;<a href="../../../../../org/apache/beam/sdk/values/KV.html" title="class in org.apache.beam.sdk.values">KV</a>&lt;K,V&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.html#of-java.util.Map-">of</a></span>(java.util.Map&lt;K,V&gt;&nbsp;elems)</code>
<div class="block">Returns a new <code>Create.Values</code> transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> of <a href="../../../../../org/apache/beam/sdk/values/KV.html" title="class in org.apache.beam.sdk.values"><code>KV</code></a>s corresponding to the keys and values of the specified <code>Map</code>.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html" title="class in org.apache.beam.sdk.transforms">Create.Values</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.html#of-T-T...-">of</a></span>(T&nbsp;elem,
T...&nbsp;elems)</code>
<div class="block">Returns a new <code>Create.Values</code> transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> containing
the specified elements.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.OfValueProvider.html" title="class in org.apache.beam.sdk.transforms">Create.OfValueProvider</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.html#ofProvider-org.apache.beam.sdk.options.ValueProvider-org.apache.beam.sdk.coders.Coder-">ofProvider</a></span>(<a href="../../../../../org/apache/beam/sdk/options/ValueProvider.html" title="interface in org.apache.beam.sdk.options">ValueProvider</a>&lt;T&gt;&nbsp;provider,
<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a>&lt;T&gt;&nbsp;coder)</code>
<div class="block">Returns an <a href="../../../../../org/apache/beam/sdk/transforms/Create.OfValueProvider.html" title="class in org.apache.beam.sdk.transforms"><code>Create.OfValueProvider</code></a> transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> of a single
element provided by the given <a href="../../../../../org/apache/beam/sdk/options/ValueProvider.html" title="interface in org.apache.beam.sdk.options"><code>ValueProvider</code></a>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html" title="class in org.apache.beam.sdk.transforms">Create.TimestampedValues</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.html#timestamped-java.lang.Iterable-java.lang.Iterable-">timestamped</a></span>(java.lang.Iterable&lt;T&gt;&nbsp;values,
java.lang.Iterable&lt;java.lang.Long&gt;&nbsp;timestamps)</code>
<div class="block">Returns a new root transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> containing the specified
elements with the specified timestamps.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html" title="class in org.apache.beam.sdk.transforms">Create.TimestampedValues</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.html#timestamped-java.lang.Iterable-">timestamped</a></span>(java.lang.Iterable&lt;<a href="../../../../../org/apache/beam/sdk/values/TimestampedValue.html" title="class in org.apache.beam.sdk.values">TimestampedValue</a>&lt;T&gt;&gt;&nbsp;elems)</code>
<div class="block">Returns a new <a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Create.TimestampedValues</code></a> transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>
containing the elements of the provided <code>Iterable</code> with the specified timestamps.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html" title="class in org.apache.beam.sdk.transforms">Create.TimestampedValues</a>&lt;T&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/transforms/Create.html#timestamped-org.apache.beam.sdk.values.TimestampedValue-org.apache.beam.sdk.values.TimestampedValue...-">timestamped</a></span>(<a href="../../../../../org/apache/beam/sdk/values/TimestampedValue.html" title="class in org.apache.beam.sdk.values">TimestampedValue</a>&lt;T&gt;&nbsp;elem,
<a href="../../../../../org/apache/beam/sdk/values/TimestampedValue.html" title="class in org.apache.beam.sdk.values">TimestampedValue</a>&lt;T&gt;...&nbsp;elems)</code>
<div class="block">Returns a new <a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Create.TimestampedValues</code></a> transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>
containing the specified elements with the specified timestamps.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Create--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Create</h4>
<pre>public&nbsp;Create()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="of-java.lang.Iterable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>of</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html" title="class in org.apache.beam.sdk.transforms">Create.Values</a>&lt;T&gt;&nbsp;of(java.lang.Iterable&lt;T&gt;&nbsp;elems)</pre>
<div class="block">Returns a new <code>Create.Values</code> transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> containing
elements of the provided <code>Iterable</code>.
<p>The argument should not be modified after this is called.
<p>The elements of the output <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> will have a timestamp of negative infinity,
see <a href="../../../../../org/apache/beam/sdk/transforms/Create.html#timestamped-java.lang.Iterable-"><code>timestamped(java.lang.Iterable&lt;org.apache.beam.sdk.values.TimestampedValue&lt;T&gt;&gt;)</code></a> for a way of creating a <code>PCollection</code> with timestamped
elements.
<p>By default, <code>Create.Values</code> can automatically determine the <code>Coder</code> to use if
all elements have the same non-parameterized run-time class, and a default coder is registered
for that class. See <a href="../../../../../org/apache/beam/sdk/coders/CoderRegistry.html" title="class in org.apache.beam.sdk.coders"><code>CoderRegistry</code></a> for details on how defaults are determined.
Otherwise, use <a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html#withCoder-org.apache.beam.sdk.coders.Coder-"><code>Create.Values.withCoder(org.apache.beam.sdk.coders.Coder&lt;T&gt;)</code></a> to set the coder explicitly.</div>
</li>
</ul>
<a name="of-java.lang.Object-java.lang.Object:A-">
<!-- -->
</a><a name="of-T-T...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>of</h4>
<pre>@SafeVarargs
public static&nbsp;&lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html" title="class in org.apache.beam.sdk.transforms">Create.Values</a>&lt;T&gt;&nbsp;of(@Nullable
T&nbsp;elem,
@Nullable
T...&nbsp;elems)</pre>
<div class="block">Returns a new <code>Create.Values</code> transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> containing
the specified elements.
<p>The elements will have a timestamp of negative infinity, see <a href="../../../../../org/apache/beam/sdk/transforms/Create.html#timestamped-java.lang.Iterable-"><code>timestamped(java.lang.Iterable&lt;org.apache.beam.sdk.values.TimestampedValue&lt;T&gt;&gt;)</code></a> for
a way of creating a <code>PCollection</code> with timestamped elements.
<p>The arguments should not be modified after this is called.
<p>By default, <code>Create.Values</code> can automatically determine the <code>Coder</code> to use if
all elements have the same non-parameterized run-time class, and a default coder is registered
for that class. See <a href="../../../../../org/apache/beam/sdk/coders/CoderRegistry.html" title="class in org.apache.beam.sdk.coders"><code>CoderRegistry</code></a> for details on how defaults are determined.
Otherwise, use <a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html#withCoder-org.apache.beam.sdk.coders.Coder-"><code>Create.Values.withCoder(org.apache.beam.sdk.coders.Coder&lt;T&gt;)</code></a> to set the coder explicitly.</div>
</li>
</ul>
<a name="empty-org.apache.beam.sdk.coders.Coder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>empty</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html" title="class in org.apache.beam.sdk.transforms">Create.Values</a>&lt;T&gt;&nbsp;empty(<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a>&lt;T&gt;&nbsp;coder)</pre>
<div class="block">Returns a new <code>Create.Values</code> transform that produces an empty <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>.
<p>The elements will have a timestamp of negative infinity, see <a href="../../../../../org/apache/beam/sdk/transforms/Create.html#timestamped-java.lang.Iterable-"><code>timestamped(java.lang.Iterable&lt;org.apache.beam.sdk.values.TimestampedValue&lt;T&gt;&gt;)</code></a> for
a way of creating a <code>PCollection</code> with timestamped elements.
<p>Since there are no elements, the <code>Coder</code> cannot be automatically determined. Instead,
the <code>Coder</code> is provided via the <code>coder</code> argument.</div>
</li>
</ul>
<a name="empty-org.apache.beam.sdk.values.TypeDescriptor-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>empty</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html" title="class in org.apache.beam.sdk.transforms">Create.Values</a>&lt;T&gt;&nbsp;empty(<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a>&lt;T&gt;&nbsp;type)</pre>
<div class="block">Returns a new <code>Create.Values</code> transform that produces an empty <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>.
<p>The elements will have a timestamp of negative infinity, see <a href="../../../../../org/apache/beam/sdk/transforms/Create.html#timestamped-java.lang.Iterable-"><code>timestamped(java.lang.Iterable&lt;org.apache.beam.sdk.values.TimestampedValue&lt;T&gt;&gt;)</code></a> for
a way of creating a <code>PCollection</code> with timestamped elements.
<p>Since there are no elements, the <code>Coder</code> cannot be automatically determined. Instead,
the <code>Coder</code> is determined from given <code>TypeDescriptor&lt;T&gt;</code>. Note that a default coder
must be registered for the class described in the <code>TypeDescriptor&lt;T&gt;</code>.</div>
</li>
</ul>
<a name="of-java.util.Map-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>of</h4>
<pre>public static&nbsp;&lt;K,V&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html" title="class in org.apache.beam.sdk.transforms">Create.Values</a>&lt;<a href="../../../../../org/apache/beam/sdk/values/KV.html" title="class in org.apache.beam.sdk.values">KV</a>&lt;K,V&gt;&gt;&nbsp;of(java.util.Map&lt;K,V&gt;&nbsp;elems)</pre>
<div class="block">Returns a new <code>Create.Values</code> transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> of <a href="../../../../../org/apache/beam/sdk/values/KV.html" title="class in org.apache.beam.sdk.values"><code>KV</code></a>s corresponding to the keys and values of the specified <code>Map</code>.
<p>The elements will have a timestamp of negative infinity, see <a href="../../../../../org/apache/beam/sdk/transforms/Create.html#timestamped-java.lang.Iterable-"><code>timestamped(java.lang.Iterable&lt;org.apache.beam.sdk.values.TimestampedValue&lt;T&gt;&gt;)</code></a> for
a way of creating a <code>PCollection</code> with timestamped elements.
<p>By default, <code>Create.Values</code> can automatically determine the <code>Coder</code> to use if
all elements have the same non-parameterized run-time class, and a default coder is registered
for that class. See <a href="../../../../../org/apache/beam/sdk/coders/CoderRegistry.html" title="class in org.apache.beam.sdk.coders"><code>CoderRegistry</code></a> for details on how defaults are determined.
Otherwise, use <a href="../../../../../org/apache/beam/sdk/transforms/Create.Values.html#withCoder-org.apache.beam.sdk.coders.Coder-"><code>Create.Values.withCoder(org.apache.beam.sdk.coders.Coder&lt;T&gt;)</code></a> to set the coder explicitly.</div>
</li>
</ul>
<a name="ofProvider-org.apache.beam.sdk.options.ValueProvider-org.apache.beam.sdk.coders.Coder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ofProvider</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.OfValueProvider.html" title="class in org.apache.beam.sdk.transforms">Create.OfValueProvider</a>&lt;T&gt;&nbsp;ofProvider(<a href="../../../../../org/apache/beam/sdk/options/ValueProvider.html" title="interface in org.apache.beam.sdk.options">ValueProvider</a>&lt;T&gt;&nbsp;provider,
<a href="../../../../../org/apache/beam/sdk/coders/Coder.html" title="class in org.apache.beam.sdk.coders">Coder</a>&lt;T&gt;&nbsp;coder)</pre>
<div class="block">Returns an <a href="../../../../../org/apache/beam/sdk/transforms/Create.OfValueProvider.html" title="class in org.apache.beam.sdk.transforms"><code>Create.OfValueProvider</code></a> transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> of a single
element provided by the given <a href="../../../../../org/apache/beam/sdk/options/ValueProvider.html" title="interface in org.apache.beam.sdk.options"><code>ValueProvider</code></a>.</div>
</li>
</ul>
<a name="timestamped-java.lang.Iterable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>timestamped</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html" title="class in org.apache.beam.sdk.transforms">Create.TimestampedValues</a>&lt;T&gt;&nbsp;timestamped(java.lang.Iterable&lt;<a href="../../../../../org/apache/beam/sdk/values/TimestampedValue.html" title="class in org.apache.beam.sdk.values">TimestampedValue</a>&lt;T&gt;&gt;&nbsp;elems)</pre>
<div class="block">Returns a new <a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Create.TimestampedValues</code></a> transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>
containing the elements of the provided <code>Iterable</code> with the specified timestamps.
<p>The argument should not be modified after this is called.
<p>By default, <code>Create.TimestampedValues</code> can automatically determine the <code>Coder</code>
to use if all elements have the same non-parameterized run-time class, and a default coder is
registered for that class. See <a href="../../../../../org/apache/beam/sdk/coders/CoderRegistry.html" title="class in org.apache.beam.sdk.coders"><code>CoderRegistry</code></a> for details on how defaults are
determined. Otherwise, use <a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html#withCoder-org.apache.beam.sdk.coders.Coder-"><code>Create.TimestampedValues.withCoder(org.apache.beam.sdk.coders.Coder&lt;T&gt;)</code></a> to set the coder
explicitly.</div>
</li>
</ul>
<a name="timestamped-org.apache.beam.sdk.values.TimestampedValue-org.apache.beam.sdk.values.TimestampedValue...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>timestamped</h4>
<pre>@SafeVarargs
public static&nbsp;&lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html" title="class in org.apache.beam.sdk.transforms">Create.TimestampedValues</a>&lt;T&gt;&nbsp;timestamped(<a href="../../../../../org/apache/beam/sdk/values/TimestampedValue.html" title="class in org.apache.beam.sdk.values">TimestampedValue</a>&lt;T&gt;&nbsp;elem,
<a href="../../../../../org/apache/beam/sdk/values/TimestampedValue.html" title="class in org.apache.beam.sdk.values">TimestampedValue</a>&lt;T&gt;...&nbsp;elems)</pre>
<div class="block">Returns a new <a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html" title="class in org.apache.beam.sdk.transforms"><code>Create.TimestampedValues</code></a> transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a>
containing the specified elements with the specified timestamps.
<p>The arguments should not be modified after this is called.</div>
</li>
</ul>
<a name="timestamped-java.lang.Iterable-java.lang.Iterable-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>timestamped</h4>
<pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html" title="class in org.apache.beam.sdk.transforms">Create.TimestampedValues</a>&lt;T&gt;&nbsp;timestamped(java.lang.Iterable&lt;T&gt;&nbsp;values,
java.lang.Iterable&lt;java.lang.Long&gt;&nbsp;timestamps)</pre>
<div class="block">Returns a new root transform that produces a <a href="../../../../../org/apache/beam/sdk/values/PCollection.html" title="class in org.apache.beam.sdk.values"><code>PCollection</code></a> containing the specified
elements with the specified timestamps.
<p>The arguments should not be modified after this is called.
<p>By default, <code>Create.TimestampedValues</code> can automatically determine the <code>Coder</code>
to use if all elements have the same non-parameterized run-time class, and a default coder is
registered for that class. See <a href="../../../../../org/apache/beam/sdk/coders/CoderRegistry.html" title="class in org.apache.beam.sdk.coders"><code>CoderRegistry</code></a> for details on how defaults are
determined. Otherwise, use <a href="../../../../../org/apache/beam/sdk/transforms/Create.TimestampedValues.html#withCoder-org.apache.beam.sdk.coders.Coder-"><code>Create.TimestampedValues.withCoder(org.apache.beam.sdk.coders.Coder&lt;T&gt;)</code></a> to set the coder
explicitly.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if there are a different number of values and timestamps</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/beam/sdk/transforms/Count.html" title="class in org.apache.beam.sdk.transforms"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/beam/sdk/transforms/Create.OfValueProvider.html" title="class in org.apache.beam.sdk.transforms"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/beam/sdk/transforms/Create.html" target="_top">Frames</a></li>
<li><a href="Create.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><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="subNavList">
<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>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>