Package org.apache.arrow.memory.rounding
Class DefaultRoundingPolicy
java.lang.Object
org.apache.arrow.memory.rounding.DefaultRoundingPolicy
- All Implemented Interfaces:
RoundingPolicy
The default rounding policy. That is, if the requested size is within the chunk size, the rounded
size will be the next power of two. Otherwise, the rounded size will be identical to the
requested size.
-
Field Summary
Modifier and TypeFieldDescriptionfinal long
static final DefaultRoundingPolicy
The singleton instance. -
Method Summary
-
Field Details
-
chunkSize
public final long chunkSize -
DEFAULT_ROUNDING_POLICY
The singleton instance.
-
-
Method Details
-
getRoundedSize
public long getRoundedSize(long requestSize) - Specified by:
getRoundedSize
in interfaceRoundingPolicy
-