| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final int | |
| public static final int | Returns: the deserialized int valueWhence to read an int in)Read an integer previously written by writeInt(). |
| public static final int | |
| public static final long | |
| public static final long | Returns: the deserialized long valueWhence to read the long value in)Read a long previously written by writeLong(). |
| public static final long | |
| public static final int | Returns: the number of bytes which would be writtenThe int value to be serialized value)Return the number of bytes that would be written by a writeInt call |
| public static final int | |
| public static final int | Returns: the number of bytes writtenWhere to serialize the int value out, int The value to serialize value)Write a compressed integer only supporting signed values. |
| public static final int | Returns: the number of bytes writtenWhere to serialize the int value out, int The int value to serialize value)Write a compressed integer directly to an OutputStream. |
| public static final int | Returns: the number of bytes writtenWhere to write the long value out, long The long value to write value)Write a compressed long only supporting signed values. |
| public static final int | Returns: the number of bytes writtenWhere to write the long out, long The long to write value)Write a compressed integer only supporting signed values. |
| MAX_COMPRESSED_INT_ONE_BYTE | back to summary |
|---|---|
| public static final int MAX_COMPRESSED_INT_ONE_BYTE | |
| MAX_COMPRESSED_INT_TWO_BYTES | back to summary |
|---|---|
| public static final int MAX_COMPRESSED_INT_TWO_BYTES | |
| MAX_INT_STORED_SIZE | back to summary |
|---|---|
| public static final int MAX_INT_STORED_SIZE | |
| MAX_LONG_STORED_SIZE | back to summary |
|---|---|
| public static final int MAX_LONG_STORED_SIZE | |
| CompressedNumber | back to summary |
|---|---|
| public CompressedNumber() | |
| readInt | back to summary |
|---|---|
| public static final int readInt(DataInput in) throws IOException Read an integer previously written by writeInt().
| |
| readInt | back to summary |
|---|---|
| public static final int readInt(InputStream in) throws IOException Read an integer previously written by writeInt().
| |
| readInt | back to summary |
|---|---|
| public static final int readInt(byte[] data, int offset) | |
| readLong | back to summary |
|---|---|
| public static final long readLong(DataInput in) throws IOException Read a long previously written by writeLong().
| |
| readLong | back to summary |
|---|---|
| public static final long readLong(InputStream in) throws IOException Read a long previously written by writeLong().
| |
| readLong | back to summary |
|---|---|
| public static final long readLong(byte[] data, int offset) | |
| sizeInt | back to summary |
|---|---|
| public static final int sizeInt(int value) Return the number of bytes that would be written by a writeInt call
| |
| sizeLong | back to summary |
|---|---|
| public static final int sizeLong(long value) | |
| writeInt | back to summary |
|---|---|
| public static final int writeInt(DataOutput out, int value) throws IOException Write a compressed integer only supporting signed values. Formats are (with x representing value bits): 1 Byte - 00xxxxxx Represents the value <= 63 (0x3f) 2 Byte - 01xxxxxx xxxxxxxx Represents the value > 63 && <= 16383 (0x3fff) 4 byte - 1xxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx Represents the value > 16383 && <= MAX_INT
| |
| writeInt | back to summary |
|---|---|
| public static final int writeInt(OutputStream out, int value) throws IOException Write a compressed integer directly to an OutputStream.
| |
| writeLong | back to summary |
|---|---|
| public static final int writeLong(DataOutput out, long value) throws IOException Write a compressed long only supporting signed values. Formats are (with x representing value bits): 2 byte - 00xxxxxx xxxxxxxx Represents the value <= 16383 (0x3fff) 4 byte - 01xxxxxx xxxxxxxx xxxxxxxx xxxxxxxx Represents the value > 16383 && <= 0x3fffffff 8 byte - 1xxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx Represents the value > 0x3fffffff && <= MAX_LONG
| |
| writeLong | back to summary |
|---|---|
| public static final int writeLong(OutputStream out, long value) throws IOException Write a compressed integer only supporting signed values.
| |