Package org.gorpipe.spark
Class GorSparkRowMapFunction
java.lang.Object
org.gorpipe.gor.function.GorRowMapFunction
org.gorpipe.spark.GorSparkRowMapFunction
- All Implemented Interfaces:
Serializable,Function<org.gorpipe.gor.model.Row,,org.gorpipe.gor.model.Row> org.apache.spark.api.java.function.MapFunction<org.gorpipe.gor.model.Row,org.gorpipe.gor.model.Row>
public class GorSparkRowMapFunction
extends org.gorpipe.gor.function.GorRowMapFunction
implements org.apache.spark.api.java.function.MapFunction<org.gorpipe.gor.model.Row,org.gorpipe.gor.model.Row>
- See Also:
-
Field Summary
Fields inherited from class org.gorpipe.gor.function.GorRowMapFunction
calcType -
Constructor Summary
ConstructorsConstructorDescriptionGorSparkRowMapFunction(String name, String query, String[] header, String[] types) GorSparkRowMapFunction(String name, String query, org.apache.spark.sql.types.StructType schema) -
Method Summary
Modifier and TypeMethodDescriptionorg.gorpipe.gor.model.Rowcall(org.gorpipe.gor.model.Row row) static voidfillSchema(org.apache.spark.sql.types.StructField[] fields, String[] header, String[] types) org.apache.spark.sql.types.StructTypeMethods inherited from class org.gorpipe.gor.function.GorRowMapFunction
apply
-
Constructor Details
-
GorSparkRowMapFunction
-
GorSparkRowMapFunction
-
-
Method Details
-
getSchema
public org.apache.spark.sql.types.StructType getSchema() -
fillSchema
-
call
public org.gorpipe.gor.model.Row call(org.gorpipe.gor.model.Row row) - Specified by:
callin interfaceorg.apache.spark.api.java.function.MapFunction<org.gorpipe.gor.model.Row,org.gorpipe.gor.model.Row>
-