- allocate(int) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Creates on-heap WritableMemory with the given capacity and the native byte order.
- allocate(int, ByteOrder) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Creates on-heap WritableMemory with the given capacity and the given byte order.
- allocate(int, ByteOrder, MemoryRequestServer) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Creates on-heap WritableMemory with the given capacity and the given byte order.
- allocateDirect(long) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Allocates and provides access to capacityBytes directly in off-heap memory.
- allocateDirect(long, ByteOrder, MemoryRequestServer) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Allocates and provides access to capacityBytes directly in off-heap memory.
- asBuffer() - Method in interface org.apache.datasketches.memory.Memory
-
Returns a new Buffer view of this object.
- asBuffer(ByteOrder) - Method in interface org.apache.datasketches.memory.Memory
-
Returns a new Buffer view of this object, with the given
byte order.
- asMemory() - Method in interface org.apache.datasketches.memory.Buffer
-
Convert this Buffer to a Memory.
- asMemory(ByteOrder) - Method in interface org.apache.datasketches.memory.Buffer
-
Convert this Buffer to a Memory with the given byte order.
- asWritableBuffer() - Method in interface org.apache.datasketches.memory.WritableMemory
-
Returns a new WritableBuffer with a writable view of this object.
- asWritableBuffer(ByteOrder) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Returns a new WritableBuffer with a writable view of this object
with the given byte order.
- asWritableMemory() - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Convert this WritableBuffer to a WritableMemory.
- asWritableMemory(ByteOrder) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Convert this WritableBuffer to a WritableMemory with the given byte order.
- getArray() - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Returns the primitive backing array, otherwise null.
- getArray() - Method in interface org.apache.datasketches.memory.WritableMemory
-
Returns the primitive backing array, otherwise null.
- getBoolean() - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the boolean value at the current position.
- getBoolean(long) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the boolean value at the given offset.
- getBoolean(long) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the boolean value at the given offset
- getByte() - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the byte value at the current position.
- getByte(long) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the byte value at the given offset.
- getByte(long) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the byte value at the given offset
- getByteArray(byte[], int, int) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the byte array at the current position.
- getByteArray(long, byte[], int, int) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the byte array at the given offset
- getCapacity() - Method in interface org.apache.datasketches.memory.Resource
-
Gets the capacity of this object in bytes
- getChar() - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the char value at the current position.
- getChar(long) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the char value at the given offset.
- getChar(long) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the char value at the given offset
- getCharArray(char[], int, int) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the char array at the current position.
- getCharArray(long, char[], int, int) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the char array at the given offset
- getCumulativeOffset() - Method in interface org.apache.datasketches.memory.Resource
-
Gets the cumulative offset in bytes of this object from the backing resource.
- getCumulativeOffset(long) - Method in interface org.apache.datasketches.memory.Resource
-
Gets the cumulative offset in bytes of this object from the backing resource including the given
offsetBytes.
- getDouble() - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the double value at the current position.
- getDouble(long) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the double value at the given offset.
- getDouble(long) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the double value at the given offset
- getDoubleArray(double[], int, int) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the double array at the current position.
- getDoubleArray(long, double[], int, int) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the double array at the given offset
- getEnd() - Method in interface org.apache.datasketches.memory.Positional
-
Gets the end position
- getFloat() - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the float value at the current position.
- getFloat(long) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the float value at the given offset.
- getFloat(long) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the float value at the given offset
- getFloatArray(float[], int, int) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the float array at the current position.
- getFloatArray(long, float[], int, int) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the float array at the given offset
- getInt() - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the int value at the current position.
- getInt(long) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the int value at the given offset.
- getInt(long) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the int value at the given offset
- getIntArray(int[], int, int) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the int array at the current position.
- getIntArray(long, int[], int, int) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the int array at the given offset
- getLong() - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the long value at the current position.
- getLong(long) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the long value at the given offset.
- getLong(long) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the long value at the given offset
- getLongArray(long[], int, int) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the long array at the current position.
- getLongArray(long, long[], int, int) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the long array at the given offset
- getMemoryRequestServer() - Method in interface org.apache.datasketches.memory.Resource
-
Gets the MemoryRequestServer object, if set, for the below resources to request additional memory.
- getPosition() - Method in interface org.apache.datasketches.memory.Positional
-
Gets the current position
- getRelativeOffset() - Method in interface org.apache.datasketches.memory.Resource
-
Returns the offset of address zero of this object relative to the base address of the
backing resource.
- getRemaining() - Method in interface org.apache.datasketches.memory.Positional
-
The number of elements remaining between the current position and the end position
- getShort() - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the short value at the current position.
- getShort(long) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the short value at the given offset.
- getShort(long) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the short value at the given offset
- getShortArray(short[], int, int) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the short array at the current position.
- getShortArray(long, short[], int, int) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the short array at the given offset
- getStart() - Method in interface org.apache.datasketches.memory.Positional
-
Gets start position
- getTypeByteOrder() - Method in interface org.apache.datasketches.memory.Resource
-
Gets the current ByteOrder.
- hasByteBuffer() - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if this Memory is backed by a ByteBuffer.
- hash(long[], long) - Static method in class org.apache.datasketches.memory.MurmurHash3v2
-
Returns a 128-bit hash of the input.
- hash(int[], long) - Static method in class org.apache.datasketches.memory.MurmurHash3v2
-
Returns a 128-bit hash of the input.
- hash(char[], long) - Static method in class org.apache.datasketches.memory.MurmurHash3v2
-
Returns a 128-bit hash of the input.
- hash(byte[], long) - Static method in class org.apache.datasketches.memory.MurmurHash3v2
-
Returns a 128-bit hash of the input.
- hash(long, long, long[]) - Static method in class org.apache.datasketches.memory.MurmurHash3v2
-
Returns a 128-bit hash of the input.
- hash(double, long, long[]) - Static method in class org.apache.datasketches.memory.MurmurHash3v2
-
Returns a 128-bit hash of the input.
- hash(String, long, long[]) - Static method in class org.apache.datasketches.memory.MurmurHash3v2
-
Returns a 128-bit hash of the input.
- hash(Memory, long, long, long, long[]) - Static method in class org.apache.datasketches.memory.MurmurHash3v2
-
Returns a 128-bit hash of the input as a long array of size 2.
- hashByteArr(byte[], long, long, long) - Static method in class org.apache.datasketches.memory.XxHash
-
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
- hashCharArr(char[], long, long, long) - Static method in class org.apache.datasketches.memory.XxHash
-
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
- hashDoubleArr(double[], long, long, long) - Static method in class org.apache.datasketches.memory.XxHash
-
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
- hashFloatArr(float[], long, long, long) - Static method in class org.apache.datasketches.memory.XxHash
-
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
- hashIntArr(int[], long, long, long) - Static method in class org.apache.datasketches.memory.XxHash
-
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
- hashLong(long, long) - Static method in class org.apache.datasketches.memory.XxHash
-
Returns a 64-bit hash from a single long.
- hashLongArr(long[], long, long, long) - Static method in class org.apache.datasketches.memory.XxHash
-
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
- hashShortArr(short[], long, long, long) - Static method in class org.apache.datasketches.memory.XxHash
-
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
- hashString(String, long, long, long) - Static method in class org.apache.datasketches.memory.XxHash
-
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
- hasMemoryRequestServer() - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if the MemoryRequestServer has been configured by the user.
- hasRemaining() - Method in interface org.apache.datasketches.memory.Positional
-
Returns true if there are elements remaining between the current position and the end position
- incrementPosition(long) - Method in interface org.apache.datasketches.memory.Positional
-
Increments the current position by the given increment.
- isAlive() - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if this object is alive and has not been closed.
- isByteOrderCompatible(ByteOrder) - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if the Native ByteOrder is the same as the ByteOrder of the
current Buffer or Memory and the same ByteOrder as the given byteOrder.
- isCloseable() - Method in interface org.apache.datasketches.memory.Resource
-
Return true if this resource is closeable.
- isDirect() - Method in interface org.apache.datasketches.memory.Resource
-
If true, the backing resource is off-heap memory.
- isDuplicate() - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if this instance is a duplicate of a Buffer instance.
- isHeap() - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if this object is backed by an on-heap primitive array or an on-heap ByteBuffer.
- isLoaded() - Method in interface org.apache.datasketches.memory.Resource
-
Tells whether or not the contents of this memory-mapped Resource is resident in physical memory.
- isMapped() - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if the backing resource is a memory-mapped file.
- isMemory() - Method in interface org.apache.datasketches.memory.Resource
-
If true, this is a Memory or WritableMemory instance, which provides the Memory API.
- isNonNativeOrder() - Method in interface org.apache.datasketches.memory.Resource
-
If true, all put and get operations will assume the non-native ByteOrder.
- isReadOnly() - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if this object or the backing resource is read-only.
- isRegionView() - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if this instance is a region view of another Memory or Buffer
- isSameResource(Resource) - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if the backing resource of this is identical with the backing resource
of that.
- Positional - Interface in org.apache.datasketches.memory
-
Defines the relative positional API.
- putBoolean(boolean) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the boolean value at the current position.
- putBoolean(long, boolean) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the boolean value at the given offset.
- putBoolean(long, boolean) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the boolean value at the given offset
- putByte(byte) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the byte value at the current position.
- putByte(long, byte) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the byte value at the given offset.
- putByte(long, byte) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the byte value at the given offset
- putByteArray(byte[], int, int) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the byte array at the current position.
- putByteArray(long, byte[], int, int) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the byte array at the given offset
- putChar(char) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the char value at the current position.
- putChar(long, char) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the char value at the given offset.
- putChar(long, char) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the char value at the given offset
- putCharArray(char[], int, int) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the char array at the current position.
- putCharArray(long, char[], int, int) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the char array at the given offset
- putDouble(double) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the double value at the current position.
- putDouble(long, double) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the double value at the given offset.
- putDouble(long, double) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the double value at the given offset
- putDoubleArray(double[], int, int) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the double array at the current position.
- putDoubleArray(long, double[], int, int) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the double array at the given offset
- putFloat(float) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the float value at the current position.
- putFloat(long, float) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the float value at the given offset.
- putFloat(long, float) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the float value at the given offset
- putFloatArray(float[], int, int) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the float array at the current position.
- putFloatArray(long, float[], int, int) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the float array at the given offset
- putInt(int) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the int value at the current position.
- putInt(long, int) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the int value at the given offset.
- putInt(long, int) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the int value at the given offset
- putIntArray(int[], int, int) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the int array at the current position.
- putIntArray(long, int[], int, int) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the int array at the given offset
- putLong(long) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the long value at the current position.
- putLong(long, long) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the long value at the given offset.
- putLong(long, long) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the long value at the given offset
- putLongArray(long[], int, int) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the long array at the current position.
- putLongArray(long, long[], int, int) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the long array at the given offset
- putShort(short) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the short value at the current position.
- putShort(long, short) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the short value at the given offset.
- putShort(long, short) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the short value at the given offset
- putShortArray(short[], int, int) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the short array at the current position.
- putShortArray(long, short[], int, int) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the short array at the given offset
- wrap(ByteBuffer) - Static method in interface org.apache.datasketches.memory.Buffer
-
Provides a view of the given ByteBuffer for read-only operations.
- wrap(ByteBuffer, ByteOrder) - Static method in interface org.apache.datasketches.memory.Buffer
-
Provides a view of the given ByteBuffer for read-only operations.
- wrap(ByteBuffer) - Static method in interface org.apache.datasketches.memory.Memory
-
Provides a view of the given ByteBuffer for read-only operations.
- wrap(ByteBuffer, ByteOrder) - Static method in interface org.apache.datasketches.memory.Memory
-
Provides a view of the given ByteBuffer for read-only operations.
- wrap(byte[]) - Static method in interface org.apache.datasketches.memory.Memory
-
Wraps the given primitive array for read operations assuming native byte order.
- wrap(byte[], ByteOrder) - Static method in interface org.apache.datasketches.memory.Memory
-
Wraps the given primitive array for read operations with the given byte order.
- wrap(byte[], int, int, ByteOrder) - Static method in interface org.apache.datasketches.memory.Memory
-
Wraps the given primitive array for read operations with the given byte order.
- wrap(char[]) - Static method in interface org.apache.datasketches.memory.Memory
-
Wraps the given primitive array for read operations assuming native byte order.
- wrap(short[]) - Static method in interface org.apache.datasketches.memory.Memory
-
Wraps the given primitive array for read operations assuming native byte order.
- wrap(int[]) - Static method in interface org.apache.datasketches.memory.Memory
-
Wraps the given primitive array for read operations assuming native byte order.
- wrap(long[]) - Static method in interface org.apache.datasketches.memory.Memory
-
Wraps the given primitive array for read operations assuming native byte order.
- wrap(float[]) - Static method in interface org.apache.datasketches.memory.Memory
-
Wraps the given primitive array for read operations assuming native byte order.
- wrap(double[]) - Static method in interface org.apache.datasketches.memory.Memory
-
Wraps the given primitive array for read operations assuming native byte order.
- WritableBuffer - Interface in org.apache.datasketches.memory
-
Defines the writable API for relative positional access to a resource
- writableDuplicate() - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Returns a duplicate writable view of this Buffer with the same but independent values of
start, position and end.
- writableDuplicate(ByteOrder) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Returns a duplicate writable view of this Buffer with the same but independent values of
start, position and end, but with the specified byteOrder.
- writableMap(File) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
- writableMap(File, long, long, ByteOrder) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Maps the specified portion of the given file into Memory for write operations.
- WritableMemory - Interface in org.apache.datasketches.memory
-
Defines the writable API for offset access to a resource.
- writableRegion() - Method in interface org.apache.datasketches.memory.WritableBuffer
-
A writable region is a writable view of this object.
- writableRegion(long, long, ByteOrder) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
A writable region is a writable view of this object.
- writableRegion(long, long) - Method in interface org.apache.datasketches.memory.WritableMemory
-
A writable region is a writable view of this object.
- writableRegion(long, long, ByteOrder) - Method in interface org.apache.datasketches.memory.WritableMemory
-
A writable region is a writable view of this object.
- writableWrap(ByteBuffer) - Static method in interface org.apache.datasketches.memory.WritableBuffer
-
Provides a view of the given ByteBuffer for write operations.
- writableWrap(ByteBuffer, ByteOrder, MemoryRequestServer) - Static method in interface org.apache.datasketches.memory.WritableBuffer
-
Provides a view of the given ByteBuffer for write operations.
- writableWrap(ByteBuffer) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Provides a view of the given ByteBuffer for write operations.
- writableWrap(ByteBuffer, ByteOrder, MemoryRequestServer) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Provides a view of the given ByteBuffer for write operations.
- writableWrap(byte[]) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations assuming native byte order.
- writableWrap(byte[], ByteOrder) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations with the given byte order.
- writableWrap(byte[], int, int, ByteOrder) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations with the given byte order.
- writableWrap(byte[], int, int, ByteOrder, MemoryRequestServer) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations with the given byte order.
- writableWrap(char[]) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations assuming native byte order.
- writableWrap(short[]) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations assuming native byte order.
- writableWrap(int[]) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations assuming native byte order.
- writableWrap(long[]) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations assuming native byte order.
- writableWrap(float[]) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations assuming native byte order.
- writableWrap(double[]) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations assuming native byte order.
- writeTo(long, long, WritableByteChannel) - Method in interface org.apache.datasketches.memory.Memory
-
Writes bytes from a source range of this Memory to the given WritableByteChannel
.