public static LongToPrefixCoded ( long val, int shift, BytesRef bytes ) : void | ||
val | long | the numeric value |
shift | int | how many bits to strip from the right |
bytes | BytesRef | will contain the encoded value |
return | void |
shift
bits. this is method is used by NumericTokenStream. After encoding, {@code bytes.offset} will always be 0. public static LongToPrefixCoded ( long val, int shift, BytesRef bytes ) : void | ||
val | long | the numeric value |
shift | int | how many bits to strip from the right |
bytes | BytesRef | will contain the encoded value |
return | void |