question: public static int prefixCodedToInt ( final BytesRef val ) { int sortableBits = 0 ; for ( int i = val . offset + 1 , limit = val . offset + val . length ; i < limit ; i ++ ) { sortableBits <<= 7 ; final byte b = val . bytes [ i ] ; if ( b < 0 ) { throw new NumberFormatException ( "Invalid prefixCoded numerical value representation (byte " + Integer . toHexString ( b & 0xff ) + " at position " + ( i - val . offset ) + " is invalid)" ) ; } sortableBits |= b ; } return ( sortableBits << getPrefixCodedIntShift ( val ) ) ^ 0x80000000 ; }
target:  Returns an int from prefixCoded bytes. Rightmost bits will be zero for lower precision codes. This method can be used to decode a term's value.