| java.lang.Object org.apache.lucene.analysis.payloads.PayloadHelper
PayloadHelper | public class PayloadHelper (Code) | | |
Method Summary | |
public static float | decodeFloat(byte[] bytes) | final public static float | decodeFloat(byte[] bytes, int offset) Decode the payload that was encoded using
PayloadHelper.encodeFloat(float) .
NOTE: the length of the array must be at least offset + 4 long.
Parameters: bytes - The bytes to decode Parameters: offset - The offset into the array. | final public static int | decodeInt(byte[] bytes, int offset) | public static byte[] | encodeFloat(float payload) | public static byte[] | encodeFloat(float payload, byte[] data, int offset) | public static byte[] | encodeInt(int payload, byte[] data, int offset) |
decodeFloat | final public static float decodeFloat(byte[] bytes, int offset)(Code) | | Decode the payload that was encoded using
PayloadHelper.encodeFloat(float) .
NOTE: the length of the array must be at least offset + 4 long.
Parameters: bytes - The bytes to decode Parameters: offset - The offset into the array. The float that was encoded See Also: PayloadHelper.encodeFloat(float) |
decodeInt | final public static int decodeInt(byte[] bytes, int offset)(Code) | | |
encodeFloat | public static byte[] encodeFloat(float payload)(Code) | | |
encodeFloat | public static byte[] encodeFloat(float payload, byte[] data, int offset)(Code) | | |
encodeInt | public static byte[] encodeInt(int payload, byte[] data, int offset)(Code) | | |
|
|