Uses of Interface
org.apache.datasketches.memory.MemoryRequestServer
-
Uses of MemoryRequestServer in org.apache.datasketches.memory
Classes in org.apache.datasketches.memory that implement MemoryRequestServerModifier and TypeClassDescriptionfinal classThis example MemoryRequestServer is simple but demonstrates one of many ways to manage continuous requests for larger or smaller memory.Fields in org.apache.datasketches.memory declared as MemoryRequestServerModifier and TypeFieldDescriptionstatic final MemoryRequestServerResource.defaultMemReqSvrThe default MemoryRequestServer used primarily by test.Methods in org.apache.datasketches.memory that return MemoryRequestServerModifier and TypeMethodDescriptionResource.getMemoryRequestServer()Gets theMemoryRequestServerto request additional memory for writable resources that are not file-memory-mapped.Methods in org.apache.datasketches.memory with parameters of type MemoryRequestServerModifier and TypeMethodDescriptionstatic 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, long alignmentBytes, ByteOrder byteOrder, MemoryRequestServer memReqSvr, ArenaPREVIEW arena) Allocates and provides access to capacityBytes directly in native (off-heap) memory.static WritableMemoryWritableMemory.allocateDirect(long capacityBytes, MemoryRequestServer memReqSvr, ArenaPREVIEW arena) Allocates and provides access to capacityBytes directly in native (off-heap) memory.voidResource.setMemoryRequestServer(MemoryRequestServer memReqSvr) Sets the MemoryRequestServer to be used in case of capacity overflow of on-heap or off-heap allocated Memory.static WritableBufferWritableBuffer.writableWrap(ByteBuffer byteBuffer, ByteOrder byteOrder, MemoryRequestServer memReqSvr) Provides a view of the given ByteBuffer for write operations.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(ByteBuffer byteBuffer, ByteOrder byteOrder, MemoryRequestServer memReqSvr) Provides a view of the given ByteBuffer for write operations.