Class MemoryRange<T extends org.apache.datasketches.memory.Memory>
java.lang.Object
org.apache.druid.frame.allocation.MemoryRange<T>
Reference to a particular region of some
Memory. This is used because it is cheaper to reuse this object
rather than calling Memory.region(long, long) for each row.
Not immutable. The pointed-to range may change as this object gets reused.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MemoryRange
-
-
Method Details
-
memory
Returns the underlying memory *without* clipping it to this particular range. Callers must apply the offset given bystartand capacity given bylength. -
start
public long start() -
length
public long length() -
set
-