Class DefaultRoundingPolicy

java.lang.Object
org.apache.arrow.memory.rounding.DefaultRoundingPolicy
All Implemented Interfaces:
RoundingPolicy

public class DefaultRoundingPolicy extends Object implements 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 Details

    • chunkSize

      public final long chunkSize
    • DEFAULT_ROUNDING_POLICY

      public static final DefaultRoundingPolicy DEFAULT_ROUNDING_POLICY
      The singleton instance.
  • Method Details