Uses of Interface
org.apache.datasketches.memory.WritableMemory
-
Uses of WritableMemory in org.apache.datasketches.memory
Methods in org.apache.datasketches.memory that return WritableMemoryModifier and TypeMethodDescriptionstatic WritableMemoryWritableMemory.allocate(int capacityBytes) Creates on-heap WritableMemory with the given capacity and the native byte order.static WritableMemoryCreates on-heap WritableMemory with the given capacity and the given byte order.static WritableMemoryWritableMemory.allocate(int capacityBytes, ByteOrder byteOrder, MemoryRequestServer memReqSvr) Creates on-heap WritableMemory with the given capacity and the given byte order.static WritableMemoryWritableMemory.allocateDirect(long capacityBytes) Allocates and provides access to capacityBytes directly in off-heap memory.static WritableMemoryWritableMemory.allocateDirect(long capacityBytes, ByteOrder byteOrder, MemoryRequestServer memReqSvr) Allocates and provides access to capacityBytes directly in off-heap memory.default WritableMemoryWritableBuffer.asWritableMemory()Convert this WritableBuffer to a WritableMemory.WritableBuffer.asWritableMemory(ByteOrder byteOrder) Convert this WritableBuffer to a WritableMemory with the given byte order.DefaultMemoryRequestServer.request(WritableMemory currentWmem, long newCapacityBytes) MemoryRequestServer.request(WritableMemory currentWritableMemory, long newCapacityBytes) Request new WritableMemory with the given newCapacityBytes.default WritableMemoryWritableMemory.writableRegion(long offsetBytes, long capacityBytes) A writable region is a writable view of this object.WritableMemory.writableRegion(long offsetBytes, long capacityBytes, ByteOrder byteOrder) A writable region is a writable view of this object.static WritableMemoryWritableMemory.writableWrap(byte[] array) Wraps the given primitive array for write operations assuming native byte order.static WritableMemoryWritableMemory.writableWrap(byte[] array, int offsetBytes, int lengthBytes, ByteOrder byteOrder) Wraps the given primitive array for write operations with the given byte order.static WritableMemoryWritableMemory.writableWrap(byte[] array, int offsetBytes, int lengthBytes, ByteOrder byteOrder, MemoryRequestServer memReqSvr) Wraps the given primitive array for write operations with the given byte order.static WritableMemoryWritableMemory.writableWrap(byte[] array, ByteOrder byteOrder) Wraps the given primitive array for write operations with the given byte order.static WritableMemoryWritableMemory.writableWrap(char[] array) Wraps the given primitive array for write operations assuming native byte order.static WritableMemoryWritableMemory.writableWrap(double[] array) Wraps the given primitive array for write operations assuming native byte order.static WritableMemoryWritableMemory.writableWrap(float[] array) Wraps the given primitive array for write operations assuming native byte order.static WritableMemoryWritableMemory.writableWrap(int[] array) Wraps the given primitive array for write operations assuming native byte order.static WritableMemoryWritableMemory.writableWrap(long[] array) Wraps the given primitive array for write operations assuming native byte order.static WritableMemoryWritableMemory.writableWrap(short[] array) Wraps the given primitive array for write operations assuming native byte order.static WritableMemoryWritableMemory.writableWrap(ByteBuffer byteBuffer) Provides a view of the given ByteBuffer for write operations.static WritableMemoryWritableMemory.writableWrap(ByteBuffer byteBuffer, ByteOrder byteOrder, MemoryRequestServer memReqSvr) Provides a view of the given ByteBuffer for write operations.Methods in org.apache.datasketches.memory with parameters of type WritableMemoryModifier and TypeMethodDescriptionvoidMemory.copyTo(long srcOffsetBytes, WritableMemory destination, long dstOffsetBytes, long lengthBytes) 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 methodSystem.arraycopy(Object, int, Object, int, int)has.DefaultMemoryRequestServer.request(WritableMemory currentWmem, long newCapacityBytes) MemoryRequestServer.request(WritableMemory currentWritableMemory, long newCapacityBytes) Request new WritableMemory with the given newCapacityBytes.voidDefaultMemoryRequestServer.requestClose(WritableMemory memToClose, WritableMemory newMemory) default voidMemoryRequestServer.requestClose(WritableMemory memToClose) Request to close the resource, if applicable.voidMemoryRequestServer.requestClose(WritableMemory memToClose, WritableMemory newMemory) Request to close the resource, if applicable.