spanner-data-validator-java/src/main/java/com/google/migration/Helpers.java [68:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public static BigInteger uuidToBigInt(UUID in) {
    // https://stackoverflow.com/questions/55752927/how-to-convert-an-unsigned-long-to-biginteger
    final BigInteger MASK_64 =
        BigInteger.ONE.shiftLeft(64).subtract(BigInteger.ONE);

    BigInteger msb = BigInteger.valueOf(in.getMostSignificantBits()).and(MASK_64).shiftLeft(64);
    BigInteger lsb = BigInteger.valueOf(in.getLeastSignificantBits()).and(MASK_64);
    BigInteger retVal = msb.or(lsb);

    return retVal;
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spanner-data-validator-java/src/main/java/com/google/migration/partitioning/UUIDHelpers.java [30:40]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public static BigInteger uuidToBigInt(UUID in) {
    // https://stackoverflow.com/questions/55752927/how-to-convert-an-unsigned-long-to-biginteger
    final BigInteger MASK_64 =
        BigInteger.ONE.shiftLeft(64).subtract(BigInteger.ONE);

    BigInteger msb = BigInteger.valueOf(in.getMostSignificantBits()).and(MASK_64).shiftLeft(64);
    BigInteger lsb = BigInteger.valueOf(in.getLeastSignificantBits()).and(MASK_64);
    BigInteger retVal = msb.or(lsb);

    return retVal;
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



