A B C D E F G H I L M O P R S T U 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 native (off-heap) memory.
- allocateDirect(long, ByteOrder, MemoryRequestServer) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Allocates and provides access to capacityBytes directly in native (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
- BaseBuffer - Interface in org.apache.datasketches.memory
-
Defines the relative positional API.
- BaseState - Interface in org.apache.datasketches.memory
-
Keeps key configuration state for Memory and Buffer plus some common static variables and check methods.
- Buffer - Interface in org.apache.datasketches.memory
-
Defines the read-only API for relative positional access to a resource.
C
- checkValidAndBounds(long, long) - Method in interface org.apache.datasketches.memory.BaseState
-
Checks that the specified range of bytes is within bounds of this object, throws
IllegalArgumentException
if it's not: i. - 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
- compareAndSwapLong(long, long, long) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Atomically sets the current value at the memory location to the given updated value if and only if the current value
==
the expected value. - 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 is a simple implementation of the MemoryRequestServer that creates space on the Java heap for the requesting application.
- DefaultMemoryRequestServer() - Constructor for class org.apache.datasketches.memory.DefaultMemoryRequestServer
- defaultMemReqSvr - Static variable in interface org.apache.datasketches.memory.BaseState
-
The placeholder for the default MemoryRequestServer, if set at all.
- duplicate() - 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.
- 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
- equals(Object) - Method in interface org.apache.datasketches.memory.BaseState
-
Returns true if the given object is an instance of this class and has equal data contents.
- equalTo(long, Object, long, long) - Method in interface org.apache.datasketches.memory.BaseState
-
Returns true if the given object is an instance of this class and has equal contents to this object in the given range of bytes.
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.WritableMap
G
- get() - Method in interface org.apache.datasketches.memory.Handle
-
Gets a Memory
- getAndAddLong(long, long) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Atomically adds the given value to the long located at offsetBytes.
- getAndSetLong(long, long) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Atomically exchanges the given value with the current value located at offsetBytes.
- 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
- getBooleanArray(boolean[], int, int) - Method in interface org.apache.datasketches.memory.Buffer
-
Gets the boolean array at the current position.
- getBooleanArray(long, boolean[], int, int) - Method in interface org.apache.datasketches.memory.Memory
-
Gets the boolean array 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
- getByteBuffer() - Method in interface org.apache.datasketches.memory.BaseState
-
Gets the backing ByteBuffer if it exists, otherwise returns null.
- getCapacity() - Method in interface org.apache.datasketches.memory.BaseState
-
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
- getCharsFromUtf8(long, int, Appendable) - Method in interface org.apache.datasketches.memory.Memory
-
Gets UTF-8 encoded bytes from this Memory, starting at offsetBytes to a length of utf8LengthBytes, decodes them into characters and appends them to the given Appendable.
- getCharsFromUtf8(long, int, StringBuilder) - Method in interface org.apache.datasketches.memory.Memory
-
Gets UTF-8 encoded bytes from this Memory, starting at offsetBytes to a length of utf8LengthBytes, decodes them into characters and appends them to the given StringBuilder.
- getCumulativeOffset() - Method in interface org.apache.datasketches.memory.BaseState
-
Gets the cumulative offset in bytes of this object from the backing resource.
- getCumulativeOffset(long) - Method in interface org.apache.datasketches.memory.BaseState
-
Gets the cumulative offset in bytes of this object from the backing resource including the given offsetBytes.
- getCurrentDirectMemoryAllocated() - Static method in interface org.apache.datasketches.memory.BaseState
-
Gets the current size of active direct memory allocated.
- getCurrentDirectMemoryAllocations() - Static method in interface org.apache.datasketches.memory.BaseState
-
Gets the current number of active direct memory allocations.
- getCurrentDirectMemoryMapAllocated() - Static method in interface org.apache.datasketches.memory.BaseState
-
Gets the current size of active direct memory map allocated.
- getCurrentDirectMemoryMapAllocations() - Static method in interface org.apache.datasketches.memory.BaseState
-
Gets the current number of active direct memory map allocations.
- 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.BaseBuffer
-
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.WritableBuffer
-
WritableBuffer enables this for ByteBuffer backed resources.
- getMemoryRequestServer() - Method in interface org.apache.datasketches.memory.WritableMemory
-
WritableMemory enables this for ByteBuffer, Heap and Direct Memory backed resources.
- getPosition() - Method in interface org.apache.datasketches.memory.BaseBuffer
-
Gets the current position
- getRegionOffset() - Method in interface org.apache.datasketches.memory.BaseState
-
Returns the offset of address zero of this object relative to the address zero of the backing resource but not including the size of any Java object header.
- getRegionOffset(long) - Method in interface org.apache.datasketches.memory.BaseState
-
Returns the offset of address zero of this object relative to the address zero of the backing resource plus the given offsetBytes but not including the size of any Java object header.
- getRemaining() - Method in interface org.apache.datasketches.memory.BaseBuffer
-
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.BaseBuffer
-
Gets start position
- getTypeByteOrder() - Method in interface org.apache.datasketches.memory.BaseState
-
Gets the current Type ByteOrder.
- getWritable() - Method in interface org.apache.datasketches.memory.WritableHandle
-
Gets a WritableMemory
H
- Handle - Interface in org.apache.datasketches.memory
-
A handle for read-only Memory resource.
- hasArray() - Method in interface org.apache.datasketches.memory.BaseState
-
Returns true if this object is backed by an on-heap primitive array
- hasByteBuffer() - Method in interface org.apache.datasketches.memory.BaseState
-
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.
- hashBooleanArr(boolean[], 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.
- 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.
- hashCode() - Method in interface org.apache.datasketches.memory.BaseState
-
Returns the hashCode of this object.
- 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.
- hasRemaining() - Method in interface org.apache.datasketches.memory.BaseBuffer
-
Returns true if there are elements remaining between the current position and the end position
I
- illegalSurrogatePair(char, char) - Static method in exception org.apache.datasketches.memory.Utf8CodingException
-
Exception for an illegal surrogate pair
- illegalUtf8DecodeByteSequence(byte[]) - Static method in exception org.apache.datasketches.memory.Utf8CodingException
-
Exception for an illegal UTF_8 Decode Byte Sequence
- incrementAndCheckPosition(long) - Method in interface org.apache.datasketches.memory.BaseBuffer
-
Increments the current position by the given increment.
- incrementPosition(long) - Method in interface org.apache.datasketches.memory.BaseBuffer
-
Increments the current position by the given increment.
- isByteOrderCompatible(ByteOrder) - Method in interface org.apache.datasketches.memory.BaseState
-
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.
- isDirect() - Method in interface org.apache.datasketches.memory.BaseState
-
Returns true if the backing resource is direct (off-heap) memory.
- isLoaded() - Method in interface org.apache.datasketches.memory.Map
- isReadOnly() - Method in interface org.apache.datasketches.memory.BaseState
-
Returns true if this object or the backing resource is read-only.
- isSameResource(Object) - Method in interface org.apache.datasketches.memory.BaseState
-
Returns true if the backing resource of this is identical with the backing resource of that.
- isValid() - Method in interface org.apache.datasketches.memory.BaseState
-
Returns true if this object is valid and has not been closed.
L
M
- map(File) - Static method in interface org.apache.datasketches.memory.Memory
-
Maps the entire given file into native-ordered 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.
- Map - Interface in org.apache.datasketches.memory
-
Read only interface for a memory mapped file
- MapHandle - Interface in org.apache.datasketches.memory
-
A Handle for a memory-mapped, read-only file resource.
- Memory - Interface in org.apache.datasketches.memory
-
Defines the read-only API for offset access to a resource.
- MemoryCloseException - Exception in org.apache.datasketches.memory
-
Specific RuntimeException for the AutoCloseable.close() method.
- MemoryCloseException() - Constructor for exception org.apache.datasketches.memory.MemoryCloseException
-
The associated resource failed to close.
- MemoryCloseException(String) - Constructor for exception org.apache.datasketches.memory.MemoryCloseException
-
The associated resource failed to close, with comment
- 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 direct (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 direct (native), off-heap memory and memory-mapped file resources, and consistent views into
ByteBuffer
, and on-heap primitive arrays. - outOfMemory() - Static method in exception org.apache.datasketches.memory.Utf8CodingException
-
Exception for out-of-memory
P
- 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
- putBooleanArray(boolean[], int, int) - Method in interface org.apache.datasketches.memory.WritableBuffer
-
Puts the boolean array at the current position.
- putBooleanArray(long, boolean[], int, int) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Puts the boolean array 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
- putCharsToUtf8(long, CharSequence) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Encodes characters from the given CharSequence into UTF-8 bytes and puts them into this WritableMemory begining at the given offsetBytes.
- 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.
- 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.
- 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 new WritableMemory with the given capacity.
- request(WritableMemory, long) - Method in interface org.apache.datasketches.memory.MemoryRequestServer
-
Request new WritableMemory with the given capacity.
- requestClose(WritableMemory, WritableMemory) - Method in class org.apache.datasketches.memory.DefaultMemoryRequestServer
-
Request close the AutoCloseable resource.
- requestClose(WritableMemory, WritableMemory) - Method in interface org.apache.datasketches.memory.MemoryRequestServer
-
Request close the AutoCloseable resource.
- resetPosition() - Method in interface org.apache.datasketches.memory.BaseBuffer
-
Resets the current position to the start position, This does not modify any data.
S
- setAndCheckPosition(long) - Method in interface org.apache.datasketches.memory.BaseBuffer
-
Sets the current position.
- setAndCheckStartPositionEnd(long, long, long) - Method in interface org.apache.datasketches.memory.BaseBuffer
-
Sets start position, current position, and end position.
- setBits(long, byte) - Method in interface org.apache.datasketches.memory.WritableMemory
-
Sets the bits defined by the bitMask
- setPosition(long) - Method in interface org.apache.datasketches.memory.BaseBuffer
-
Sets the current position.
- setStartPositionEnd(long, long, long) - Method in interface org.apache.datasketches.memory.BaseBuffer
-
Sets start position, current position, and end position.
- shortUtf8DecodeByteSequence(byte, long, long, int) - Static method in exception org.apache.datasketches.memory.Utf8CodingException
-
Exception for a short UTF_8 Decode Byte Sequence
- shortUtf8EncodeByteLength(int) - Static method in exception org.apache.datasketches.memory.Utf8CodingException
-
Exception for a short UTF_8 encode byte length
T
- toHexString(String, long, int) - Method in interface org.apache.datasketches.memory.BaseState
-
Returns a formatted hex string of a range of this object.
U
- unpairedSurrogate(char) - Static method in exception org.apache.datasketches.memory.Utf8CodingException
-
Exception for an unpaired surrogate
- Utf8CodingException - Exception in org.apache.datasketches.memory
-
This exception will be thrown for errors encountered during either the encoding of characters to Utf8 bytes, or the decoding of Utf8 bytes to characters.
- Utf8CodingException(String) - Constructor for exception org.apache.datasketches.memory.Utf8CodingException
-
A coding exception occured processing UTF_8
W
- wrap(boolean[]) - Static method in interface org.apache.datasketches.memory.Memory
-
Wraps the given primitive array for read operations assuming native byte order.
- 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
-
Accesses the given ByteBuffer for read-only operations.
- wrap(ByteBuffer) - Static method in interface org.apache.datasketches.memory.Memory
-
Accesses the given ByteBuffer for read-only operations.
- wrap(ByteBuffer, ByteOrder) - Static method in interface org.apache.datasketches.memory.Buffer
-
Accesses the given ByteBuffer for read-only operations.
- wrap(ByteBuffer, ByteOrder) - Static method in interface org.apache.datasketches.memory.Memory
-
Accesses 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.
- WritableHandle - Interface in org.apache.datasketches.memory
-
A Handle for writable direct memory or a memory-mapped, writable file resource.
- 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.
- WritableMap - Interface in org.apache.datasketches.memory
-
Writable interface for a memory mapped file
- WritableMapHandle - Interface in org.apache.datasketches.memory
-
A Handle for a memory-mapped, writable file resource.
- 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(boolean[]) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Wraps the given primitive array for write operations assuming native byte order.
- 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
-
Accesses the given ByteBuffer for write operations.
- writableWrap(ByteBuffer) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Accesses the given ByteBuffer for write operations.
- writableWrap(ByteBuffer, ByteOrder) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Accesses the given ByteBuffer for write operations.
- writableWrap(ByteBuffer, ByteOrder, MemoryRequestServer) - Static method in interface org.apache.datasketches.memory.WritableBuffer
-
Accesses the given ByteBuffer for write operations.
- writableWrap(ByteBuffer, ByteOrder, MemoryRequestServer) - Static method in interface org.apache.datasketches.memory.WritableMemory
-
Accesses 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.BaseState
-
Returns a 64-bit hash from a single long.
- xxHash64(long, long, long) - Method in interface org.apache.datasketches.memory.BaseState
-
Returns the 64-bit hash of the sequence of bytes in this object specified by offsetBytes, lengthBytes and a seed.
All Classes All Packages