Class MemoryRange<T extends org.apache.datasketches.memory.Memory>
- java.lang.Object
-
- org.apache.druid.frame.allocation.MemoryRange<T>
-
public class MemoryRange<T extends org.apache.datasketches.memory.Memory> extends Object
Reference to a particular region of someMemory
. This is used because it is cheaper to reuse this object rather than callingMemory.region(long, long)
for each row. Not immutable. The pointed-to range may change as this object gets reused.
-
-
Constructor Summary
Constructors Constructor Description MemoryRange(T memory, long start, long length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
length()
T
memory()
Returns the underlying memory *without* clipping it to this particular range.void
set(T memory, long start, long length)
long
start()
-