List of usage examples for org.apache.spark.api.java.function VoidFunction interface-usage
From source file com.cloudera.oryx.app.batch.mllib.als.EnqueueFeatureVecsAndKnownItemsFn.java
final class EnqueueFeatureVecsAndKnownItemsFn implements VoidFunction<Iterator<Tuple2<String, Tuple2<float[], Collection<String>>>>> { private final String whichMatrix; private final String updateBroker; private final String topic;
From source file com.cloudera.oryx.app.batch.mllib.als.EnqueueFeatureVecsFn.java
final class EnqueueFeatureVecsFn implements VoidFunction<Iterator<Tuple2<String, float[]>>> { private final String whichMatrix; private final String updateBroker; private final String topic;
From source file com.cloudera.oryx.app.mllib.als.EnqueueFeatureVecsAndKnownItemsFn.java
final class EnqueueFeatureVecsAndKnownItemsFn implements VoidFunction<Tuple2<String, Tuple2<double[], Collection<String>>>> { private final String whichMatrix; private final TopicProducer<String, String> modelUpdateTopic;
From source file com.cloudera.oryx.app.mllib.als.EnqueueFeatureVecsFn.java
final class EnqueueFeatureVecsFn implements VoidFunction<Tuple2<String, double[]>> { private final String whichMatrix; private final TopicProducer<String, String> modelUpdateTopic; EnqueueFeatureVecsFn(String whichMatrix, TopicProducer<String, String> modelUpdateTopic) {
From source file com.cloudera.oryx.lambda.DeleteOldDataFn.java
/** * Function that deletes old data, if applicable, at each batch interval. * * @param <T> unused */ public final class DeleteOldDataFn<T> implements VoidFunction<T> {
From source file com.cloudera.oryx.lambda.speed.SpeedLayerUpdate.java
/**
* Main Spark Streaming function for the speed layer that collects and publishes update to
* a Kafka topic.
*
* @param <K> type of key read from input topic
* @param <M> type of message read from input topic
From source file com.cloudera.oryx.lambda.UpdateOffsetsFn.java
/**
* Function that reads offset range from latest RDD in a streaming job, and updates
* Zookeeper/Kafka with the latest offset consumed.
*
* @param <T> unused
*/
From source file com.cloudera.oryx.ml.mllib.als.EnqueueFeatureVecsAndKnownItemsFn.java
final class EnqueueFeatureVecsAndKnownItemsFn implements VoidFunction<Tuple2<Integer, Tuple2<double[], Collection<Integer>>>> { private static final ObjectMapper MAPPER = new ObjectMapper(); private final String whichMatrix;
From source file com.cloudera.oryx.ml.mllib.als.EnqueueFeatureVecsFn.java
final class EnqueueFeatureVecsFn implements VoidFunction<Tuple2<Integer, double[]>> { private static final ObjectMapper MAPPER = new ObjectMapper(); private final String whichMatrix; private final TopicProducer<String, String> modelUpdateTopic;
From source file com.elsevier.spark.examples.xpath.XPathInitWorker.java
/**
* This class will be executed by a 'worker' in the Spark cluster. The focus of this class
* is to initialize the namespace mappings (if necessary).
*
* @author mcbeathd
*