Class GorSparkExternalFunction

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

    public class GorSparkExternalFunction
    extends java.lang.Object
    implements org.apache.spark.api.java.function.MapPartitionsFunction<org.gorpipe.gor.model.Row,​org.gorpipe.gor.model.Row>
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      GorSparkExternalFunction​(java.lang.String header, java.lang.String cmd, java.lang.String goroot)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<org.gorpipe.gor.model.Row> call​(java.util.Iterator<org.gorpipe.gor.model.Row> input)  
      void setFetchHeader​(boolean fetchHeader)  
      void setSchema​(org.apache.spark.sql.types.StructType schema)  
      • Methods inherited from class java.lang.Object

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

      • GorSparkExternalFunction

        public GorSparkExternalFunction​(java.lang.String header,
                                        java.lang.String cmd,
                                        java.lang.String goroot)
    • Method Detail

      • setFetchHeader

        public void setFetchHeader​(boolean fetchHeader)
      • setSchema

        public void setSchema​(org.apache.spark.sql.types.StructType schema)
      • call

        public java.util.Iterator<org.gorpipe.gor.model.Row> call​(java.util.Iterator<org.gorpipe.gor.model.Row> input)
                                                           throws java.lang.Exception
        Specified by:
        call in interface org.apache.spark.api.java.function.MapPartitionsFunction<org.gorpipe.gor.model.Row,​org.gorpipe.gor.model.Row>
        Throws:
        java.lang.Exception