@Deprecated @InterfaceAudience.Public @InterfaceStability.Stable public class Utils extends Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static char[] |
hexchars
非推奨です。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static int |
compareBytes(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2)
非推奨です。
Lexicographic order of binary data.
|
static int |
getVIntSize(long i)
非推奨です。
Get the encoded length if an integer is stored in a variable-length format
|
static double |
readDouble(byte[] bytes,
int start)
非推奨です。
Parse a double from a byte array.
|
static float |
readFloat(byte[] bytes,
int start)
非推奨です。
Parse a float from a byte array.
|
static int |
readVInt(byte[] bytes,
int start)
非推奨です。
Reads a zero-compressed encoded integer from a byte array and returns it.
|
static int |
readVInt(DataInput in)
非推奨です。
Reads a zero-compressed encoded integer from a stream and returns it.
|
static long |
readVLong(byte[] bytes,
int start)
非推奨です。
Reads a zero-compressed encoded long from a byte array and returns it.
|
static long |
readVLong(DataInput in)
非推奨です。
Reads a zero-compressed encoded long from a stream and return it.
|
static void |
writeVInt(DataOutput stream,
int i)
非推奨です。
Serializes an int to a binary stream with zero-compressed encoding.
|
static void |
writeVLong(DataOutput stream,
long i)
非推奨です。
Serializes a long to a binary stream with zero-compressed encoding.
|
public static final char[] hexchars
public static float readFloat(byte[] bytes, int start)
public static double readDouble(byte[] bytes, int start)
public static long readVLong(byte[] bytes, int start) throws IOException
bytes - byte array with decode longstart - starting indexIOExceptionpublic static int readVInt(byte[] bytes, int start) throws IOException
bytes - byte array with the encoded integerstart - start indexIOExceptionpublic static long readVLong(DataInput in) throws IOException
in - input streamIOExceptionpublic static int readVInt(DataInput in) throws IOException
in - input streamIOExceptionpublic static int getVIntSize(long i)
public static void writeVLong(DataOutput stream, long i) throws IOException
stream - Binary output streami - Long to be serializedIOExceptionpublic static void writeVInt(DataOutput stream, int i) throws IOException
stream - Binary output streami - int to be serializedIOExceptionpublic static int compareBytes(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
Copyright © 2016 Apache Software Foundation. All rights reserved.