07-19-2015 03:38 AM
I am checking some concepts in Definitive guide and could not figure out this small logic.
When you convert VIntWritable to Byte Array and convert that byte array to string, there is additional '8f' at the start of any avalue.
for normal IntWritable the value of 172 in hexa decimal representation is - 000000ac
for VIntWritable, the HexaDecimal String for 172 is 8fac
for VIntWritable, the HexaDecimal String for -172 is 87ab
I am confused. could you please elaborate a bit.?
07-19-2015 04:43 AM