Class GorSparkExternalFunction

java.lang.Object
gorsat.process.GorSparkExternalFunction
All Implemented Interfaces:
Serializable, org.apache.spark.api.java.function.MapPartitionsFunction<org.gorpipe.gor.model.Row,org.gorpipe.gor.model.Row>

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

    • GorSparkExternalFunction

      public GorSparkExternalFunction(String header, String cmd, String goroot)
  • Method Details

    • setFetchHeader

      public void setFetchHeader(boolean fetchHeader)
    • setSchema

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

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