Package gorsat.process
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterator<org.gorpipe.gor.model.Row>voidsetFetchHeader(boolean fetchHeader) voidsetSchema(org.apache.spark.sql.types.StructType schema)
-
Constructor Details
-
GorSparkExternalFunction
-
-
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:
callin interfaceorg.apache.spark.api.java.function.MapPartitionsFunction<org.gorpipe.gor.model.Row,org.gorpipe.gor.model.Row> - Throws:
Exception
-