public class ByteWriter extends Object
| Constructor and Description |
|---|
ByteWriter(int pageSize) |
| Modifier and Type | Method and Description |
|---|---|
ByteWriter |
booleanByte(boolean value) |
ByteWriter |
bytes(byte[] value) |
ByteWriter |
bytes(byte[] value,
int from,
int to) |
ByteWriter |
comparableLong(long value) |
ByteWriter |
comparableUtf8(String value) |
byte[] |
concat() |
byte[] |
concat(int from,
int to) |
long |
crc32() |
int |
length() |
ByteWriter |
rawInt(int value) |
ByteWriter |
rawInts(int[] values) |
ByteWriter |
rawLong(long value) |
ByteWriter |
rawLongs(long[] values) |
String |
toString() |
byte[][] |
trimmedPages() |
ByteWriter |
varBytes(byte[] value) |
ByteWriter |
varInt(int value) |
ByteWriter |
varLong(long value) |
ByteWriter |
varUtf8(String value) |
public int length()
public byte[][] trimmedPages()
public byte[] concat()
public byte[] concat(int from,
int to)
public long crc32()
public ByteWriter bytes(byte[] value)
public ByteWriter bytes(byte[] value, int from, int to)
public ByteWriter varBytes(byte[] value)
public ByteWriter booleanByte(boolean value)
public ByteWriter rawInt(int value)
public ByteWriter rawInts(int[] values)
public ByteWriter varInt(int value)
public ByteWriter comparableLong(long value)
public ByteWriter rawLong(long value)
public ByteWriter rawLongs(long[] values)
public ByteWriter varLong(long value)
public ByteWriter varUtf8(String value)
public ByteWriter comparableUtf8(String value)
Copyright © 2009–2021. All rights reserved.