Class SparkTinyInt

  • All Implemented Interfaces:
    java.util.Comparator<java.lang.Object>, SparkType

    public class SparkTinyInt
    extends java.lang.Object
    implements SparkType
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object first, java.lang.Object second)  
      org.apache.spark.sql.types.DataType dataType​(org.apache.cassandra.bridge.BigNumberConfig bigNumberConfig)  
      java.lang.Object nativeSparkSqlRowValue​(org.apache.spark.sql.catalyst.expressions.GenericInternalRow row, int position)  
      java.lang.Object nativeSparkSqlRowValue​(org.apache.spark.sql.Row row, int position)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Method Detail

      • dataType

        public org.apache.spark.sql.types.DataType dataType​(org.apache.cassandra.bridge.BigNumberConfig bigNumberConfig)
        Specified by:
        dataType in interface SparkType
        Parameters:
        bigNumberConfig - specifies the scale and precision to be used for VarInt and Decimal types.
        Returns:
        the SparkSQL `org.apache.spark.sql.types.DataType` for this SparkType.
      • nativeSparkSqlRowValue

        public java.lang.Object nativeSparkSqlRowValue​(org.apache.spark.sql.catalyst.expressions.GenericInternalRow row,
                                                       int position)
        Specified by:
        nativeSparkSqlRowValue in interface SparkType
        Parameters:
        row - a SparkSQL `org.apache.spark.sql.catalyst.expressions.GenericInternalRow`
        position - position in row
        Returns:
        the SparkSQL value at `position` in the `row` converted back into test type - used only in the test system.
      • nativeSparkSqlRowValue

        public java.lang.Object nativeSparkSqlRowValue​(org.apache.spark.sql.Row row,
                                                       int position)
        Specified by:
        nativeSparkSqlRowValue in interface SparkType
        Parameters:
        row - a SparkSQL `org.apache.spark.sql.Row`
        position - position in row
        Returns:
        the SparkSQL value at `position` in the `row` converted back into test type - used only in the test system.
      • compareTo

        public int compareTo​(java.lang.Object first,
                             java.lang.Object second)
        Specified by:
        compareTo in interface SparkType