Class TruncateFunction.TruncateString

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.spark.sql.connector.catalog.functions.BoundFunction, org.apache.spark.sql.connector.catalog.functions.Function, org.apache.spark.sql.connector.catalog.functions.ScalarFunction<org.apache.spark.unsafe.types.UTF8String>
    Enclosing class:
    TruncateFunction

    public static class TruncateFunction.TruncateString
    extends TruncateFunction.TruncateBase<org.apache.spark.unsafe.types.UTF8String>
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface org.apache.spark.sql.connector.catalog.functions.ScalarFunction

        MAGIC_METHOD_NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      TruncateString()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String canonicalName()  
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      org.apache.spark.sql.types.DataType[] inputTypes()  
      static org.apache.spark.unsafe.types.UTF8String invoke​(int width, org.apache.spark.unsafe.types.UTF8String value)  
      org.apache.spark.unsafe.types.UTF8String produceResult​(org.apache.spark.sql.catalyst.InternalRow input)  
      org.apache.spark.sql.types.DataType resultType()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.spark.sql.connector.catalog.functions.BoundFunction

        isDeterministic, isResultNullable
    • Constructor Detail

      • TruncateString

        public TruncateString()
    • Method Detail

      • invoke

        public static org.apache.spark.unsafe.types.UTF8String invoke​(int width,
                                                                      org.apache.spark.unsafe.types.UTF8String value)
      • inputTypes

        public org.apache.spark.sql.types.DataType[] inputTypes()
      • resultType

        public org.apache.spark.sql.types.DataType resultType()
      • canonicalName

        public java.lang.String canonicalName()
      • produceResult

        public org.apache.spark.unsafe.types.UTF8String produceResult​(org.apache.spark.sql.catalyst.InternalRow input)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object