Package io.trino.operator.scalar
Class BitwiseFunctions
- java.lang.Object
-
- io.trino.operator.scalar.BitwiseFunctions
-
public final class BitwiseFunctions extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longbitCount(long num, long bits)static longbitwiseAnd(long left, long right)static longbitwiseLeftShiftBigint(long value, long shift)static longbitwiseLeftShiftInteger(long value, long shift)static longbitwiseLeftShiftSmallint(long value, long shift)static longbitwiseLeftShiftTinyint(long value, long shift)static longbitwiseNot(long num)static longbitwiseOr(long left, long right)static longbitwiseRightShiftArithmeticBigint(long value, long shift)static longbitwiseRightShiftArithmeticInteger(long value, long shift)static longbitwiseRightShiftArithmeticSmallint(long value, long shift)static longbitwiseRightShiftArithmeticTinyint(long value, long shift)static longbitwiseRightShiftBigint(long value, long shift)static longbitwiseRightShiftInteger(long value, long shift)static longbitwiseRightShiftSmallint(long value, long shift)static longbitwiseRightShiftTinyint(long value, long shift)static longbitwiseXor(long left, long right)
-
-
-
Method Detail
-
bitCount
public static long bitCount(long num, long bits)
-
bitwiseNot
public static long bitwiseNot(long num)
-
bitwiseAnd
public static long bitwiseAnd(long left, long right)
-
bitwiseOr
public static long bitwiseOr(long left, long right)
-
bitwiseXor
public static long bitwiseXor(long left, long right)
-
bitwiseLeftShiftTinyint
public static long bitwiseLeftShiftTinyint(long value, long shift)
-
bitwiseLeftShiftSmallint
public static long bitwiseLeftShiftSmallint(long value, long shift)
-
bitwiseLeftShiftInteger
public static long bitwiseLeftShiftInteger(long value, long shift)
-
bitwiseLeftShiftBigint
public static long bitwiseLeftShiftBigint(long value, long shift)
-
bitwiseRightShiftTinyint
public static long bitwiseRightShiftTinyint(long value, long shift)
-
bitwiseRightShiftSmallint
public static long bitwiseRightShiftSmallint(long value, long shift)
-
bitwiseRightShiftInteger
public static long bitwiseRightShiftInteger(long value, long shift)
-
bitwiseRightShiftBigint
public static long bitwiseRightShiftBigint(long value, long shift)
-
bitwiseRightShiftArithmeticTinyint
public static long bitwiseRightShiftArithmeticTinyint(long value, long shift)
-
bitwiseRightShiftArithmeticSmallint
public static long bitwiseRightShiftArithmeticSmallint(long value, long shift)
-
bitwiseRightShiftArithmeticInteger
public static long bitwiseRightShiftArithmeticInteger(long value, long shift)
-
bitwiseRightShiftArithmeticBigint
public static long bitwiseRightShiftArithmeticBigint(long value, long shift)
-
-