List of usage examples for org.apache.spark.api.java.function VoidFunction2 interface-usage
From source file com.cloudera.oryx.lambda.batch.BatchUpdateFunction.java
/**
* Framework for executing the batch layer update, and storing data to persistent storage,
* in the context of a streaming framework.
*
* @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.batch.SaveToHDFSFunction.java
/** * Function that saves RDDs to HDFS -- only if they're non empty, to prevent creation * of many small empty files if data is infrequent but the model interval is short. */ final class SaveToHDFSFunction<K, M> implements VoidFunction2<JavaPairRDD<K, M>, Time> {
From source file org.apache.eagle.alert.engine.spark.function.GetOffsetRangeFunction.java
public class GetOffsetRangeFunction implements VoidFunction2<OffsetRange[], KafkaClusterInfo> { private static final Logger LOG = LoggerFactory.getLogger(GetOffsetRangeFunction.class); private AtomicReference<Map<KafkaClusterInfo, OffsetRange[]>> offsetRangesClusterMapRef; public GetOffsetRangeFunction(AtomicReference<Map<KafkaClusterInfo, OffsetRange[]>> offsetRangesClusterMapRef) {