You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
</span><spanclass="comment">// calendarToLongInjection: AnyRef with Injection[Calendar, Long] = repl.MdocSession$MdocApp0$$anon$1@69e48300</span></code></pre>
170
+
</span><spanclass="comment">// calendarToLongInjection: AnyRef with Injection[Calendar, Long] = repl.MdocSession$MdocApp0$$anon$1@79981a97</span></code></pre>
171
171
<p>We can be less verbose using the <code>Injection.apply</code> function:</p>
172
172
<preclass="keep-together pdf epub"><codeclass="nohighlight"><spanclass="keyword">import</span><span></span><spanclass="identifier">frameless</span><span>.</span><spanclass="identifier">_</span><span>
<p>Now we can create our <code>TypedDataset</code>:</p>
185
185
<preclass="keep-together pdf epub"><codeclass="nohighlight"><spanclass="keyword">val</span><span></span><spanclass="identifier">personDS</span><span> = </span><spanclass="type-name">TypedDataset</span><span>.</span><spanclass="identifier">create</span><span>(</span><spanclass="identifier">people</span><span>)
<p>And now we can create our <code>TypedDataset</code>:</p>
217
217
<preclass="keep-together pdf epub"><codeclass="nohighlight"><spanclass="keyword">val</span><span></span><spanclass="identifier">personDS</span><span> = </span><spanclass="type-name">TypedDataset</span><span>.</span><spanclass="identifier">create</span><span>(</span><spanclass="identifier">people</span><span>)
<p>Now we can execute this new job by specifying a <ahref="https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.SparkContext@setJobGroup(groupId:String,description:String,interruptOnCancel:Boolean):Unit">group-id</a> and a description.
172
172
This allows the programmer to see this information on the Spark UI and help track, say,
0 commit comments