public abstract static class CollationKeys.SortKeyByteSink extends Object
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buffer_ |
| Constructor and Description |
|---|
SortKeyByteSink(byte[] dest) |
| Modifier and Type | Method and Description |
|---|---|
void |
Append(byte[] bytes,
int n) |
void |
Append(int b) |
protected abstract void |
AppendBeyondCapacity(byte[] bytes,
int start,
int n,
int length) |
int |
GetRemainingCapacity() |
int |
NumberOfBytesAppended() |
boolean |
Overflowed() |
protected abstract boolean |
Resize(int appendCapacity,
int length) |
void |
setBufferAndAppended(byte[] dest,
int app)
Needed in Java for when we write to the buffer directly.
|
public void setBufferAndAppended(byte[] dest,
int app)
public void Append(byte[] bytes,
int n)
bytes - the array of byten - the length of bytes to be appendedpublic void Append(int b)
public int NumberOfBytesAppended()
public int GetRemainingCapacity()
public boolean Overflowed()
protected abstract void AppendBeyondCapacity(byte[] bytes,
int start,
int n,
int length)
bytes - the array of bytestart - the start index within the array to be appendedn - the length of bytes to be appendedlength - the length of buffer required to store the entire data (i.e. already appended
bytes + bytes to be appended by this method)protected abstract boolean Resize(int appendCapacity,
int length)