public class DistributedFunction<T extends SequenceElement> extends java.lang.Object implements org.apache.spark.api.java.function.Function<T,ExportContainer<T>>
Modifier and Type | Field and Description |
---|---|
protected org.apache.spark.broadcast.Broadcast<org.nd4j.parameterserver.distributed.conf.VoidConfiguration> |
configurationBroadcast |
protected org.apache.spark.broadcast.Broadcast<VocabCache<ShallowSequenceElement>> |
shallowVocabBroadcast |
protected VocabCache<ShallowSequenceElement> |
shallowVocabCache |
protected org.apache.spark.broadcast.Broadcast<VectorsConfiguration> |
vectorsConfigurationBroadcast |
Constructor and Description |
---|
DistributedFunction(org.apache.spark.broadcast.Broadcast<org.nd4j.parameterserver.distributed.conf.VoidConfiguration> configurationBroadcast,
org.apache.spark.broadcast.Broadcast<VectorsConfiguration> vectorsConfigurationBroadcast,
org.apache.spark.broadcast.Broadcast<VocabCache<ShallowSequenceElement>> shallowVocabBroadcast) |
Modifier and Type | Method and Description |
---|---|
ExportContainer<T> |
call(T word) |
protected org.apache.spark.broadcast.Broadcast<org.nd4j.parameterserver.distributed.conf.VoidConfiguration> configurationBroadcast
protected org.apache.spark.broadcast.Broadcast<VectorsConfiguration> vectorsConfigurationBroadcast
protected org.apache.spark.broadcast.Broadcast<VocabCache<ShallowSequenceElement>> shallowVocabBroadcast
protected transient VocabCache<ShallowSequenceElement> shallowVocabCache
public DistributedFunction(@NonNull org.apache.spark.broadcast.Broadcast<org.nd4j.parameterserver.distributed.conf.VoidConfiguration> configurationBroadcast, @NonNull org.apache.spark.broadcast.Broadcast<VectorsConfiguration> vectorsConfigurationBroadcast, @NonNull org.apache.spark.broadcast.Broadcast<VocabCache<ShallowSequenceElement>> shallowVocabBroadcast)
public ExportContainer<T> call(T word) throws java.lang.Exception
call
in interface org.apache.spark.api.java.function.Function<T extends SequenceElement,ExportContainer<T extends SequenceElement>>
java.lang.Exception