Package io.prestosql.operator.scalar
Class BitwiseFunctions
- java.lang.Object
-
- io.prestosql.operator.scalar.BitwiseFunctions
-
public final class BitwiseFunctions extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
bitCount(long num, long bits)
static long
bitwiseAnd(long left, long right)
static long
bitwiseLeftShiftBigint(long value, long shift)
static long
bitwiseLeftShiftInteger(long value, long shift)
static long
bitwiseLeftShiftSmallint(long value, long shift)
static long
bitwiseLeftShiftTinyint(long value, long shift)
static long
bitwiseNot(long num)
static long
bitwiseOr(long left, long right)
static long
bitwiseRightShiftArithmeticBigint(long value, long shift)
static long
bitwiseRightShiftArithmeticInteger(long value, long shift)
static long
bitwiseRightShiftArithmeticSmallint(long value, long shift)
static long
bitwiseRightShiftArithmeticTinyint(long value, long shift)
static long
bitwiseRightShiftBigint(long value, long shift)
static long
bitwiseRightShiftInteger(long value, long shift)
static long
bitwiseRightShiftSmallint(long value, long shift)
static long
bitwiseRightShiftTinyint(long value, long shift)
static long
bitwiseXor(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)
-
-