public interface MemoryStatus
Modifier and Type | Method and Description |
---|---|
default boolean |
hasMemory()
Returns true if this object's internal data is backed by a Memory object,
which may be on-heap or off-heap.
|
default boolean |
isDirect()
Returns true if this object's internal data is backed by direct (off-heap) Memory.
|
default boolean |
isSameResource(org.apache.datasketches.memory.Memory that)
Returns true if the backing resource of this is identical with the backing resource
of that.
|
default boolean hasMemory()
default boolean isDirect()
default boolean isSameResource(org.apache.datasketches.memory.Memory that)
that
- A different non-null and alive Memory object.SketchesArgumentException
- if that is not alive (already closed).Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.