Class CleanUtil

java.lang.Object
org.apache.parquet.hadoop.codec.CleanUtil

public class CleanUtil extends Object
A helper class that uses sun.misc.Unsafe#invokeCleaner(ByteBuffer) reflectively to clean up direct buffers.

Strongly inspired by: Tomcat ByteBufferUtils

  • Method Details

    • cleanDirectBuffer

      public static void cleanDirectBuffer(ByteBuffer buf)