|
Java example source code file (ReduceSentenceCount.java)
The ReduceSentenceCount.java Java example source codepackage org.deeplearning4j.spark.text.functions; import org.apache.spark.api.java.function.Function2; import java.util.concurrent.atomic.AtomicLong; /** * @author jeffreytang */ public class ReduceSentenceCount implements Function2<AtomicLong, AtomicLong, AtomicLong> { public AtomicLong call(AtomicLong a, AtomicLong b) { return new AtomicLong(a.get() + b.get()); } } Other Java examples (source code examples)Here is a short list of links related to this Java ReduceSentenceCount.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.