- java.lang.Object
-
- co.cask.cdap.etl.api.batch.BatchConfigurable<co.cask.cdap.etl.api.batch.SparkPluginContext>
-
- co.cask.cdap.etl.api.batch.SparkSink<co.cask.cdap.api.data.format.StructuredRecord>
-
- co.cask.hydrator.plugin.spark.SkipGramTrainer
-
- All Implemented Interfaces:
- co.cask.cdap.etl.api.PipelineConfigurable, Serializable
public class SkipGramTrainer
extends co.cask.cdap.etl.api.batch.SparkSink<co.cask.cdap.api.data.format.StructuredRecord>
Spark Sink plugin that trains a model using SkipGram (Spark's Word2Vec).
Saves this model to a FileSet.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class co.cask.cdap.etl.api.batch.SparkSink
PLUGIN_TYPE
-
Method Summary
Methods
| Modifier and Type |
Method and Description |
void |
configurePipeline(co.cask.cdap.etl.api.PipelineConfigurer pipelineConfigurer) |
void |
prepareRun(co.cask.cdap.etl.api.batch.SparkPluginContext sparkPluginContext) |
void |
run(co.cask.cdap.etl.api.batch.SparkExecutionPluginContext context,
org.apache.spark.api.java.JavaRDD<co.cask.cdap.api.data.format.StructuredRecord> input) |
-
Methods inherited from class co.cask.cdap.etl.api.batch.BatchConfigurable
onRunFinish
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SkipGramTrainer
public SkipGramTrainer()
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.