public static long makeIntPair(int i1, int i2) {
    return (((long) i1) << 32) | (i2 & 0xffffffffL);
  }
Store two ints in a single long value.

@param i1 First int to store
@param i2 Second int to store
@return The combined value stored in a long
common/src/java/org/apache/hadoop/hive/common/NumberUtils.java