Class SparkCounter

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

    public class SparkCounter
    extends java.lang.Object
    • Method Detail

      • dataType

        public default 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 default 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.