Class BitwiseFunctions


  • public final class BitwiseFunctions
    extends Object
    • 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)