Class SparkTime
- java.lang.Object
-
- org.apache.cassandra.spark.data.converter.types.SparkTime
-
- All Implemented Interfaces:
java.util.Comparator<java.lang.Object>,SparkType
public class SparkTime extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default intcompareTo(java.lang.Object first, java.lang.Object second)default org.apache.spark.sql.types.DataTypedataType(org.apache.cassandra.bridge.BigNumberConfig bigNumberConfig)default java.lang.ObjectnativeSparkSqlRowValue(org.apache.spark.sql.catalyst.expressions.GenericInternalRow row, int position)default java.lang.ObjectnativeSparkSqlRowValue(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
-
Methods inherited from interface org.apache.cassandra.spark.data.converter.types.SparkType
compare, dataType, equals, equalsTo, sparkSqlRowValue, sparkSqlRowValue, toSparkSqlType, toTestRowType
-
-
-
-
Field Detail
-
INSTANCE
public static final SparkTime INSTANCE
-
-
Method Detail
-
dataType
public default org.apache.spark.sql.types.DataType dataType(org.apache.cassandra.bridge.BigNumberConfig bigNumberConfig)
-
nativeSparkSqlRowValue
public default java.lang.Object nativeSparkSqlRowValue(org.apache.spark.sql.catalyst.expressions.GenericInternalRow row, int position)- Specified by:
nativeSparkSqlRowValuein interfaceSparkType- 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 default java.lang.Object nativeSparkSqlRowValue(org.apache.spark.sql.Row row, int position)- Specified by:
nativeSparkSqlRowValuein interfaceSparkType- 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.
-
-