A B C D E F G H I L M O P R S T W X
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- 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.
B
- Buffer - Interface in org.apache.datasketches.memory
-
Defines the read-only API for relative positional access to a resource.
- BufferPositionInvariantsException - Exception in org.apache.datasketches.memory
-
Position operation violation.
- BufferPositionInvariantsException(String) - Constructor for exception org.apache.datasketches.memory.BufferPositionInvariantsException
-
The associated position operation violated one of the positional invariants.
C
- clear() - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Clears all bytes of this Buffer from position to end to zero.
- clear() - Method in interface org.apache.datasketches.memory.WritableMemory
-
Clears all bytes of this Memory to zero
- clear(long, long) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Clears a portion of this Memory to zero.
- clearBits(long, byte) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Clears the bits defined by the bitMask
- close() - Method in interface org.apache.datasketches.memory.Resource
-
Closes this resource if this can be closed via AutoCloseable.
- compareTo(long, long, Buffer, long, long) - Method in interface org.apache.datasketches.memory.Buffer
-
Compares the bytes of this Buffer to that Buffer.
- compareTo(long, long, Memory, long, long) - Method in interface org.apache.datasketches.memory.Memory
-
Compares the bytes of this Memory to that Memory.
- copyTo(long, WritableMemory, long, long) - Method in interface org.apache.datasketches.memory.Memory
-
Copies bytes from a source range of this Memory to a destination range of the given Memory with the same semantics when copying between overlapping ranges of bytes as method
System.arraycopy(Object, int, Object, int, int)
has.
D
- DefaultMemoryRequestServer - Class in org.apache.datasketches.memory
-
This example MemoryRequestServer is simple but demonstrates one of many ways to manage continuous requests for larger memory.
- DefaultMemoryRequestServer() - Constructor for class org.apache.datasketches.memory.DefaultMemoryRequestServer
-
Default constructor.
- DefaultMemoryRequestServer(boolean, boolean) - Constructor for class org.apache.datasketches.memory.DefaultMemoryRequestServer
-
Constructor with parameters
- defaultMemReqSvr - Static variable in interface org.apache.datasketches.memory.Resource
-
The default MemoryRequestServer is used if not specified by the user.
- duplicate() - Method in interface org.apache.datasketches.memory.Buffer
-
Returns a read-only duplicate view of this Buffer with the same byte order, but independent values of start, position and end.
- duplicate(ByteOrder) - Method in interface org.apache.datasketches.memory.Buffer
-
Returns a read-only duplicate view of this Buffer with the same but independent values of start, position and end, but with the specified byteOrder.
E
- equalTo(long, Resource, long, long) - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if the given Resource has equal contents to this object in the given range of bytes.
- equalTo(Resource) - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if the given object (that) is an instance of this class and has contents equal to this object.
F
- fill(byte) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Fills this Buffer from position to end with the given byte value.
- fill(byte) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Fills all bytes of this Memory region to the given byte value.
- fill(long, long, byte) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Fills a portion of this Memory region to the given byte value.
- force() - Method in interface org.apache.datasketches.memory.Resource
-
Forces any changes made to the contents of this memory-mapped Resource to be written to the storage device described by the configured file descriptor.
G
- 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(long, short[], int, int) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the short array at the given offset
- getShortArray(short[], int, int) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the short array at the current position.
- 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.
H
- hasByteBuffer() - Method in interface org.apache.datasketches.memory.Resource
-
Returns true if this Memory is backed by a ByteBuffer.
- hash(byte[], 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(double, 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(long[], 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(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
I
- 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.
L
- load() - Method in interface org.apache.datasketches.memory.Resource
-
Loads the contents of this memory-mapped Resource into physical memory.
M
- map(File) - Static method in interface org.apache.datasketches.memory.Memory
-
Maps the given file into Memory for read operations Calling this method is equivalent to calling
map(file, 0, file.length(), ByteOrder.nativeOrder())
. - map(File, long, long, ByteOrder) - Static method in interface org.apache.datasketches.memory.Memory
-
Maps the specified portion of the given file into Memory for read operations.
- Memory - Interface in org.apache.datasketches.memory
-
Defines the read-only API for offset access to a resource.
- MemoryBoundsException - Exception in org.apache.datasketches.memory
-
Specific RuntimeException for bounds violations.
- MemoryBoundsException(String) - Constructor for exception org.apache.datasketches.memory.MemoryBoundsException
-
The associated operation violated access bounds with required details.
- MemoryException - Exception in org.apache.datasketches.memory
-
Specific RuntimeExceptions for the datasketches-memory component.
- MemoryException(String) - Constructor for exception org.apache.datasketches.memory.MemoryException
-
Constructs a new runtime exception with the specified detail message.
- MemoryRequestServer - Interface in org.apache.datasketches.memory
-
The MemoryRequestServer is a callback interface to provide a means for off-heap, heap and ByteBuffer backed resources to request more memory.
- MurmurHash3v2 - Class in org.apache.datasketches.memory
-
The MurmurHash3 is a fast, non-cryptographic, 128-bit hash function that has excellent avalanche and 2-way bit independence properties.
- MurmurHash3v2() - Constructor for class org.apache.datasketches.memory.MurmurHash3v2
O
- org.apache.datasketches.memory - package org.apache.datasketches.memory
-
This package provides high performance primitive and primitive array access to off-heap memory and memory-mapped file resources, consistent views into
ByteBuffer
, and on-heap primitive arrays.
P
- 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(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
- putShort(short) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the short value 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
- putShortArray(short[], int, int) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the short array at the current position.
R
- ReadOnlyException - Exception in org.apache.datasketches.memory
-
The exception thrown when attempting to write into a read-only Resource.
- ReadOnlyException(String) - Constructor for exception org.apache.datasketches.memory.ReadOnlyException
-
Read Only Exception
- region() - Method in interface org.apache.datasketches.memory.Buffer
-
A region is a read-only view of this object from position to end and with the same byte order.
- region(long, long) - Method in interface org.apache.datasketches.memory.Memory
-
A region is a read-only view of this object.
- region(long, long, ByteOrder) - Method in interface org.apache.datasketches.memory.Buffer
-
A region is a read-only view of this object from offsetBytes and with a length of capacityBytes and with the given byte order.
- region(long, long, ByteOrder) - Method in interface org.apache.datasketches.memory.Memory
-
A region is a read-only view of this object.
- request(WritableMemory, long) - Method in class org.apache.datasketches.memory.DefaultMemoryRequestServer
- request(WritableMemory, long) - Method in interface org.apache.datasketches.memory.MemoryRequestServer
-
Request new WritableMemory with the given newCapacityBytes.
- requestClose(WritableMemory) - Method in interface org.apache.datasketches.memory.MemoryRequestServer
-
Request to close the resource, if applicable.
- requestClose(WritableMemory, WritableMemory) - Method in class org.apache.datasketches.memory.DefaultMemoryRequestServer
- requestClose(WritableMemory, WritableMemory) - Method in interface org.apache.datasketches.memory.MemoryRequestServer
-
Request to close the resource, if applicable.
- resetPosition() - Method in interface org.apache.datasketches.memory.Positional
-
Resets the current position to the start position, This does not modify any data.
- Resource - Interface in org.apache.datasketches.memory
-
The base class for Memory and Buffer plus some common static variables and check methods.
S
- setBits(long, byte) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Sets the bits defined by the bitMask
- setMemoryRequestServer(MemoryRequestServer) - Method in interface org.apache.datasketches.memory.Resource
-
Sets the Default MemoryRequestServer
- setPosition(long) - Method in interface org.apache.datasketches.memory.Positional
-
Sets the current position.
- setStartPositionEnd(long, long, long) - Method in interface org.apache.datasketches.memory.Positional
-
Sets start position, current position, and end position.
T
- toString() - Method in interface org.apache.datasketches.memory.Resource
-
Returns a brief description of this object.
- toString(String, long, int, boolean) - Method in interface org.apache.datasketches.memory.Resource
-
Returns a description of this object with an optional formatted hex string of the data for the specified a range.
W
- 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[], 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(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(char[]) - 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.
- wrap(float[]) - 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(short[]) - Static method in interface org.apache.datasketches.memory.Memory
-
Wraps the given primitive array for read operations assuming native byte order.
- wrap(ByteBuffer) - 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.Buffer
-
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.
- 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
-
Maps the entire given file into native-ordered WritableMemory for write operations Calling this method is equivalent to calling
writableMap(file, 0, file.length(), ByteOrder.nativeOrder())
. - 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) - 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.WritableBuffer
-
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(byte[]) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations assuming native 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(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(char[]) - 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.
- writableWrap(float[]) - 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(short[]) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations assuming native byte order.
- writableWrap(ByteBuffer) - 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.WritableBuffer
-
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.
- 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
.
X
- XxHash - Class in org.apache.datasketches.memory
-
The XxHash is a fast, non-cryptographic, 64-bit hash function that has excellent avalanche and 2-way bit independence properties.
- xxHash64(long, long) - Method in interface org.apache.datasketches.memory.Resource
-
Returns a 64-bit hash from a single long.
- xxHash64(long, long, long) - Method in interface org.apache.datasketches.memory.Resource
-
Returns the 64-bit hash of the sequence of bytes in this object specified by offsetBytes, lengthBytes and a seed.
All Classes All Packages