|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elasticsearch.common.Bytes
public class Bytes
| Field Summary | |
|---|---|
static byte[] |
EMPTY_ARRAY
|
| Constructor Summary | |
|---|---|
Bytes()
|
|
| Method Summary | |
|---|---|
static int |
atoi(byte[] s)
|
static long |
atol(byte[] s)
|
static byte[] |
itoa(int i)
Blatant copy of Integer.toString, but returning a byte array instead of a String, as string charset decoding/encoding was killing us on performance. |
static byte[] |
ltoa(long i)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte[] EMPTY_ARRAY
| Constructor Detail |
|---|
public Bytes()
| Method Detail |
|---|
public static byte[] itoa(int i)
i - integer to convert
public static int atoi(byte[] s)
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic static byte[] ltoa(long i)
public static long atol(byte[] s)
throws java.lang.NumberFormatException
java.lang.NumberFormatException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||