| Package | Description |
|---|---|
| io.airlift.slice | |
| io.airlift.slice.testing |
| Modifier and Type | Field and Description |
|---|---|
static Slice |
Slices.EMPTY_SLICE
A slice with size
0. |
| Modifier and Type | Method and Description |
|---|---|
static Slice |
Slices.allocate(int capacity) |
static Slice |
Slices.allocateDirect(int capacity) |
static Slice |
Slices.copiedBuffer(String string,
Charset charset) |
static Slice |
Slices.copyOf(Slice slice) |
static Slice |
Slices.copyOf(Slice slice,
int offset,
int length) |
Slice |
DynamicSliceOutput.copySlice() |
static Slice |
Slices.ensureSize(Slice existingSlice,
int minWritableBytes) |
Slice |
ChunkedSliceInput.BufferReference.getSlice() |
abstract Slice |
SliceOutput.getUnderlyingSlice()
Returns the raw underlying slice of this output stream.
|
Slice |
OutputStreamSliceOutput.getUnderlyingSlice() |
Slice |
DynamicSliceOutput.getUnderlyingSlice() |
Slice |
BasicSliceOutput.getUnderlyingSlice() |
static Slice |
Murmur3Hash128.hash(long seed,
Slice data,
int offset,
int length) |
static Slice |
Murmur3.hash(long seed,
Slice data,
int offset,
int length)
Deprecated.
|
static Slice |
Murmur3Hash128.hash(Slice data) |
static Slice |
Murmur3.hash(Slice data)
Deprecated.
|
static Slice |
Murmur3Hash128.hash(Slice data,
int offset,
int length) |
static Slice |
Murmur3.hash(Slice data,
int offset,
int length)
Deprecated.
|
static Slice |
Slices.mapFileReadOnly(File file) |
Slice |
UnsafeSliceFactory.newSlice(long address,
int size)
Creates a slice for directly a raw memory address.
|
Slice |
UnsafeSliceFactory.newSlice(long address,
int size,
Object reference)
Creates a slice for directly a raw memory address.
|
abstract Slice |
SliceInput.readSlice(int length)
Returns a new slice of this buffer's sub-region starting at the current
position and increases the position by the size
of the new slice (= length). |
Slice |
InputStreamSliceInput.readSlice(int length) |
Slice |
ChunkedSliceInput.readSlice(int length) |
Slice |
BasicSliceInput.readSlice(int length) |
abstract Slice |
SliceOutput.slice()
Returns a slice of this buffer's readable bytes.
|
Slice |
OutputStreamSliceOutput.slice() |
Slice |
DynamicSliceOutput.slice() |
Slice |
BasicSliceOutput.slice() |
Slice |
BasicSliceInput.slice()
Returns a slice of this buffer's readable bytes.
|
Slice |
Slice.slice(int index,
int length)
Returns a slice of this buffer's sub-region.
|
static Slice |
Slice.toUnsafeSlice(ByteBuffer byteBuffer)
Deprecated.
|
static Slice |
Slices.utf8Slice(String string) |
static Slice |
Slices.wrappedBooleanArray(boolean... array) |
static Slice |
Slices.wrappedBooleanArray(boolean[] array,
int offset,
int length) |
static Slice |
Slices.wrappedBuffer(byte[] array) |
static Slice |
Slices.wrappedBuffer(byte[] array,
int offset,
int length) |
static Slice |
Slices.wrappedBuffer(ByteBuffer buffer)
Wrap the visible portion of a
ByteBuffer. |
static Slice |
Slices.wrappedDoubleArray(double... array) |
static Slice |
Slices.wrappedDoubleArray(double[] array,
int offset,
int length) |
static Slice |
Slices.wrappedFloatArray(float... array) |
static Slice |
Slices.wrappedFloatArray(float[] array,
int offset,
int length) |
static Slice |
Slices.wrappedIntArray(int... array) |
static Slice |
Slices.wrappedIntArray(int[] array,
int offset,
int length) |
static Slice |
Slices.wrappedLongArray(long... array) |
static Slice |
Slices.wrappedLongArray(long[] array,
int offset,
int length) |
static Slice |
Slices.wrappedShortArray(short... array) |
static Slice |
Slices.wrappedShortArray(short[] array,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
abstract SliceOutput |
SliceOutput.appendBytes(Slice slice) |
SliceOutput |
OutputStreamSliceOutput.appendBytes(Slice slice) |
DynamicSliceOutput |
DynamicSliceOutput.appendBytes(Slice slice) |
BasicSliceOutput |
BasicSliceOutput.appendBytes(Slice slice) |
int |
Slice.compareTo(int offset,
int length,
Slice that,
int otherOffset,
int otherLength)
Compares a portion of this slice with a portion of the specified slice.
|
int |
Slice.compareTo(Slice that)
Compares the content of the specified buffer to the content of this
buffer.
|
static Slice |
Slices.copyOf(Slice slice) |
static Slice |
Slices.copyOf(Slice slice,
int offset,
int length) |
static Slice |
Slices.ensureSize(Slice existingSlice,
int minWritableBytes) |
boolean |
Slice.equals(int offset,
int length,
Slice that,
int otherOffset,
int otherLength)
Compares a portion of this slice with a portion of the specified slice.
|
void |
Slice.getBytes(int index,
Slice destination)
Transfers portion of data from this slice into the specified destination starting at
the specified absolute
index. |
void |
Slice.getBytes(int index,
Slice destination,
int destinationIndex,
int length)
Transfers portion of data from this slice into the specified destination starting at
the specified absolute
index. |
static int |
Murmur3Hash32.hash(int seed,
Slice data,
int offset,
int length) |
static long |
XxHash64.hash(long seed,
Slice data) |
static long |
XxHash64.hash(long seed,
Slice data,
int offset,
int length) |
static Slice |
Murmur3Hash128.hash(long seed,
Slice data,
int offset,
int length) |
static Slice |
Murmur3.hash(long seed,
Slice data,
int offset,
int length)
Deprecated.
|
static long |
XxHash64.hash(Slice data) |
static int |
Murmur3Hash32.hash(Slice data) |
static Slice |
Murmur3Hash128.hash(Slice data) |
static Slice |
Murmur3.hash(Slice data)
Deprecated.
|
static long |
XxHash64.hash(Slice data,
int offset,
int length) |
static int |
Murmur3Hash32.hash(Slice data,
int offset,
int length) |
static Slice |
Murmur3Hash128.hash(Slice data,
int offset,
int length) |
static Slice |
Murmur3.hash(Slice data,
int offset,
int length)
Deprecated.
|
static long |
Murmur3Hash128.hash64(long seed,
Slice data,
int offset,
int length) |
static long |
Murmur3.hash64(long seed,
Slice data,
int offset,
int length)
Deprecated.
|
static long |
Murmur3Hash128.hash64(Slice data)
Returns the 64 most significant bits of the Murmur128 hash of the provided value
|
static long |
Murmur3.hash64(Slice data)
Deprecated.
Returns the 64 most significant bits of the Murmur128 hash of the provided value
|
static long |
Murmur3Hash128.hash64(Slice data,
int offset,
int length) |
static long |
Murmur3.hash64(Slice data,
int offset,
int length)
Deprecated.
|
void |
SliceInput.readBytes(Slice destination)
Transfers this buffer's data to the specified destination starting at
the current
position until the destination becomes
non-writable, and increases the position by the number of the
transferred bytes. |
void |
SliceInput.readBytes(Slice destination,
int length)
Transfers this buffer's data to the specified destination starting at
the current
position and increases the position
by the number of the transferred bytes (= length). |
abstract void |
SliceInput.readBytes(Slice destination,
int destinationIndex,
int length)
Transfers this buffer's data to the specified destination starting at
the current
position and increases the position
by the number of the transferred bytes (= length). |
void |
InputStreamSliceInput.readBytes(Slice destination,
int destinationIndex,
int length) |
void |
ChunkedSliceInput.readBytes(Slice destination,
int destinationIndex,
int length) |
void |
BasicSliceInput.readBytes(Slice destination,
int destinationIndex,
int length) |
void |
Slice.setBytes(int index,
Slice source)
Transfers data from the specified slice into this buffer starting at
the specified absolute
index. |
void |
Slice.setBytes(int index,
Slice source,
int sourceIndex,
int length)
Transfers data from the specified slice into this buffer starting at
the specified absolute
index. |
abstract void |
SliceOutput.writeBytes(Slice source)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex until the source buffer becomes
unreadable, and increases the writerIndex by the number of
the transferred bytes. |
void |
OutputStreamSliceOutput.writeBytes(Slice source) |
void |
DynamicSliceOutput.writeBytes(Slice source) |
void |
BasicSliceOutput.writeBytes(Slice source) |
abstract void |
SliceOutput.writeBytes(Slice source,
int sourceIndex,
int length)
Transfers the specified source buffer's data to this buffer starting at
the current
writerIndex and increases the writerIndex
by the number of the transferred bytes (= length). |
void |
OutputStreamSliceOutput.writeBytes(Slice source,
int sourceIndex,
int length) |
void |
DynamicSliceOutput.writeBytes(Slice source,
int sourceIndex,
int length) |
void |
BasicSliceOutput.writeBytes(Slice source,
int sourceIndex,
int length) |
| Constructor and Description |
|---|
BasicSliceInput(Slice slice) |
BasicSliceOutput(Slice slice) |
| Modifier and Type | Method and Description |
|---|---|
static void |
SliceAssertions.assertSlicesEqual(Slice actual,
Slice expected) |
Copyright © 2012-2015. All Rights Reserved.