Class GorSparkRowMapFunction

  • All Implemented Interfaces:
    java.io.Serializable, java.util.function.Function<org.gorpipe.gor.model.Row,​org.gorpipe.gor.model.Row>, org.apache.spark.api.java.function.MapFunction<org.gorpipe.gor.model.Row,​org.gorpipe.gor.model.Row>

    public class GorSparkRowMapFunction
    extends org.gorpipe.gor.function.GorRowMapFunction
    implements org.apache.spark.api.java.function.MapFunction<org.gorpipe.gor.model.Row,​org.gorpipe.gor.model.Row>
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.gorpipe.gor.function.GorRowMapFunction

        calcType
    • Constructor Summary

      Constructors 
      Constructor Description
      GorSparkRowMapFunction​(java.lang.String name, java.lang.String query, java.lang.String[] header, java.lang.String[] types)  
      GorSparkRowMapFunction​(java.lang.String name, java.lang.String query, org.apache.spark.sql.types.StructType schema)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.gorpipe.gor.model.Row call​(org.gorpipe.gor.model.Row row)  
      org.apache.spark.sql.types.StructType getSchema()  
      • Methods inherited from class org.gorpipe.gor.function.GorRowMapFunction

        apply
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • GorSparkRowMapFunction

        public GorSparkRowMapFunction​(java.lang.String name,
                                      java.lang.String query,
                                      org.apache.spark.sql.types.StructType schema)
      • GorSparkRowMapFunction

        public GorSparkRowMapFunction​(java.lang.String name,
                                      java.lang.String query,
                                      java.lang.String[] header,
                                      java.lang.String[] types)
    • Method Detail

      • getSchema

        public org.apache.spark.sql.types.StructType getSchema()
      • call

        public org.gorpipe.gor.model.Row call​(org.gorpipe.gor.model.Row row)
        Specified by:
        call in interface org.apache.spark.api.java.function.MapFunction<org.gorpipe.gor.model.Row,​org.gorpipe.gor.model.Row>