Class BinaryOperatorAdapter<Type>

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.spark.api.java.function.Function2<Type,​Type,​Type>

    public class BinaryOperatorAdapter<Type>
    extends java.lang.Object
    implements org.apache.spark.api.java.function.Function2<Type,​Type,​Type>
    Wraps a BinaryOperator as a Function2.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      BinaryOperatorAdapter​(java.util.function.BinaryOperator<Type> binaryOperator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Type call​(Type dataQuantum0, Type dataQuantum1)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BinaryOperatorAdapter

        public BinaryOperatorAdapter​(java.util.function.BinaryOperator<Type> binaryOperator)
    • Method Detail

      • call

        public Type call​(Type dataQuantum0,
                         Type dataQuantum1)
                  throws java.lang.Exception
        Specified by:
        call in interface org.apache.spark.api.java.function.Function2<Type,​Type,​Type>
        Throws:
        java.lang.Exception