Class GorPipeFunction

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

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

    • GorPipeFunction

      public GorPipeFunction(String cmd, String header)
  • Method Details

    • call

      public Iterator<org.gorpipe.gor.model.Row> call(Iterator<org.gorpipe.gor.model.Row> iterator) 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