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

    Modifier and Type Method Description
    org.gorpipe.gor.model.Row apply​(org.gorpipe.gor.model.Row row, org.gorpipe.gor.model.Row row2)  
    org.gorpipe.gor.model.Row infer​(org.gorpipe.gor.model.Row row, org.gorpipe.gor.model.Row t1)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Constructor Details

  • 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:
      apply in interface java.util.function.BiFunction<org.gorpipe.gor.model.Row,​org.gorpipe.gor.model.Row,​org.gorpipe.gor.model.Row>