Package gorsat.process
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
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)voidsetFetchHeader(boolean fetchHeader)voidsetSchema(org.apache.spark.sql.types.StructType schema)
-
-
-
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:
callin interfaceorg.apache.spark.api.java.function.MapPartitionsFunction<org.gorpipe.gor.model.Row,org.gorpipe.gor.model.Row>- Throws:
java.lang.Exception
-
-