Class GorSparkExternalFunction

java.lang.Object
gorsat.process.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

    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)  

    Methods inherited from class java.lang.Object

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

    • GorSparkExternalFunction

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

    • setFetchHeader

      public void setFetchHeader​(boolean fetchHeader)
    • 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