Package org.apache.spark.sql.types
Class DoubleExactNumeric
Object
org.apache.spark.sql.types.DoubleExactNumeric
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
abs
(double x) static int
compare
(double x, double y) static double
div
(double x, double y) abstract static boolean
static boolean
equiv
(T x, T y) static double
fromInt
(int x) static boolean
gt
(T x, T y) static boolean
gteq
(T x, T y) static boolean
isReverseOf
(scala.math.Ordering<?> other) static boolean
lt
(T x, T y) static boolean
lteq
(T x, T y) static <U extends T>
Umax
(U x, U y) static <U extends T>
Umin
(U x, U y) static double
minus
(double x, double y) static scala.math.Fractional<T>.scala.math.Fractional.FractionalOps
mkNumericOps
(T lhs) static scala.math.Ordering<T>.scala.math.Ordering.OrderingOps
mkOrderingOps
(T lhs) static double
negate
(double x) static <U> scala.math.Ordering<U>
on
(scala.Function1<U, T> f) static T
one()
static scala.math.Ordering<T>
orElse
(scala.math.Ordering<T> other) static <S> scala.math.Ordering<T>
orElseBy
(scala.Function1<T, S> f, scala.math.Ordering<S> ord) static scala.Option<Object>
parseString
(String str) static double
plus
(double x, double y) static scala.math.Ordering<T>
reverse()
static Comparator<T>
reversed()
static double
sign
(double x) static int
signum
(T x) static Comparator<T>
thenComparing
(Comparator<? super T> x$1) static <U extends Comparable<? super U>>
Comparator<T>thenComparing
(Function<? super T, ? extends U> x$1) static <U> Comparator<T>
thenComparing
(Function<? super T, ? extends U> x$1, Comparator<? super U> x$2) static Comparator<T>
thenComparingDouble
(ToDoubleFunction<? super T> x$1) static Comparator<T>
thenComparingInt
(ToIntFunction<? super T> x$1) static Comparator<T>
thenComparingLong
(ToLongFunction<? super T> x$1) static double
times
(double x, double y) static double
toDouble
(double x) static float
toFloat
(double x) static int
toInt
(double x) static long
toLong
(double x) static scala.Some<Object>
tryCompare
(T x, T y) static T
zero()
-
Constructor Details
-
DoubleExactNumeric
public DoubleExactNumeric()
-
-
Method Details
-
toInt
public static int toInt(double x) -
toLong
public static long toLong(double x) -
compare
public static int compare(double x, double y) -
equals
-
reversed
-
thenComparing
-
thenComparing
public static <U> Comparator<T> thenComparing(Function<? super T, ? extends U> x$1, Comparator<? super U> x$2) -
thenComparing
public static <U extends Comparable<? super U>> Comparator<T> thenComparing(Function<? super T, ? extends U> x$1) -
thenComparingInt
-
thenComparingLong
-
thenComparingDouble
-
tryCompare
-
lteq
public static boolean lteq(T x, T y) -
gteq
public static boolean gteq(T x, T y) -
lt
public static boolean lt(T x, T y) -
gt
public static boolean gt(T x, T y) -
equiv
public static boolean equiv(T x, T y) -
max
public static <U extends T> U max(U x, U y) -
min
public static <U extends T> U min(U x, U y) -
reverse
public static scala.math.Ordering<T> reverse() -
isReverseOf
public static boolean isReverseOf(scala.math.Ordering<?> other) -
on
public static <U> scala.math.Ordering<U> on(scala.Function1<U, T> f) -
orElse
public static scala.math.Ordering<T> orElse(scala.math.Ordering<T> other) -
orElseBy
public static <S> scala.math.Ordering<T> orElseBy(scala.Function1<T, S> f, scala.math.Ordering<S> ord) -
mkOrderingOps
public static scala.math.Ordering<T>.scala.math.Ordering.OrderingOps mkOrderingOps(T lhs) -
zero
public static T zero() -
one
public static T one() -
signum
public static int signum(T x) -
mkNumericOps
public static scala.math.Fractional<T>.scala.math.Fractional.FractionalOps mkNumericOps(T lhs) -
plus
public static double plus(double x, double y) -
minus
public static double minus(double x, double y) -
times
public static double times(double x, double y) -
negate
public static double negate(double x) -
fromInt
public static double fromInt(int x) -
parseString
-
toFloat
public static float toFloat(double x) -
toDouble
public static double toDouble(double x) -
div
public static double div(double x, double y) -
abs
public static double abs(double x) -
sign
public static double sign(double x)
-