Uses of Interface
org.apache.datasketches.memory.MemoryRequestServer
-
Uses of MemoryRequestServer in org.apache.datasketches.memory
Modifier and TypeClassDescriptionfinal class
This example MemoryRequestServer is simple but demonstrates one of many ways to manage continuous requests for larger memory.Modifier and TypeFieldDescriptionstatic final MemoryRequestServer
Resource.defaultMemReqSvr
The default MemoryRequestServer used primarily by test.Modifier and TypeMethodDescriptionResource.getMemoryRequestServer()
Gets theMemoryRequestServer
to request additional memory for writable resources that are not file-memory-mapped.Modifier and TypeMethodDescriptionstatic WritableMemory
WritableMemory.allocate
(int capacityBytes, ByteOrder byteOrder, MemoryRequestServer memReqSvr) Creates on-heap WritableMemory with the given capacity and the given byte order.static WritableMemory
WritableMemory.allocateDirect
(long capacityBytes, long alignmentBytes, ByteOrder byteOrder, MemoryRequestServer memReqSvr) Allocates and provides access to capacityBytes directly in native (off-heap) memory.static WritableMemory
WritableMemory.allocateDirect
(long capacityBytes, long alignmentBytes, ResourceScope scope, ByteOrder byteOrder, MemoryRequestServer memReqSvr) Allocates and provides access to capacityBytes directly in native (off-heap) memory with a ResourceScope.void
Resource.setMemoryRequestServer
(MemoryRequestServer memReqSvr) Sets the MemoryRequestServer to be used in case of capacity overflow of on-heap or off-heap allocated Memory.static WritableBuffer
WritableBuffer.writableWrap
(ByteBuffer byteBuffer, ByteOrder byteOrder, MemoryRequestServer memReqSvr) Provides a view of the given ByteBuffer for write operations.static WritableMemory
WritableMemory.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 WritableMemory
WritableMemory.writableWrap
(ByteBuffer byteBuffer, ByteOrder byteOrder, MemoryRequestServer memReqSvr) Provides a view of the given ByteBuffer for write operations.