Package org.gorpipe.gor.function
Class GorRowInferFunction
java.lang.Object
org.gorpipe.gor.function.GorRowInferFunction
- All Implemented Interfaces:
java.io.Serializable,java.util.function.BiFunction<org.gorpipe.gor.model.Row,org.gorpipe.gor.model.Row,org.gorpipe.gor.model.Row>,java.util.function.BinaryOperator<org.gorpipe.gor.model.Row>
public class GorRowInferFunction
extends java.lang.Object
implements java.util.function.BinaryOperator<org.gorpipe.gor.model.Row>, java.io.Serializable
For map-reduce type inferance, such as in SparkSQL which needs a schema
The gor type syntax, I for Int, D for Double and S for String
Two rows with types I and S are reduced to type S etc.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description GorRowInferFunction() -
Method Summary
-
Constructor Details
-
GorRowInferFunction
public GorRowInferFunction()
-
-
Method Details
-
infer
public org.gorpipe.gor.model.Row infer(org.gorpipe.gor.model.Row row, org.gorpipe.gor.model.Row t1) -
apply
public org.gorpipe.gor.model.Row apply(org.gorpipe.gor.model.Row row, org.gorpipe.gor.model.Row row2)- Specified by:
applyin interfacejava.util.function.BiFunction<org.gorpipe.gor.model.Row,org.gorpipe.gor.model.Row,org.gorpipe.gor.model.Row>
-