public static int getAllFlags(long state) {
      return (int) (state & FLAGS_MASK);
    }
@return null if no action is required; otherwise, the buffer should be deallocated and,
        if the value is true, its memory should be released to the memory manager.
llap-server/src/java/org/apache/hadoop/hive/llap/cache/LlapAllocatorBuffer.java