Package org.apache.parquet.hadoop.codec
Class CleanUtil
- java.lang.Object
-
- org.apache.parquet.hadoop.codec.CleanUtil
-
public class CleanUtil extends Object
A Helper class which use reflections to clean up DirectBuffer. It's implemented for better compatibility with both java8 and java9+, because the Cleaner class is moved to another place since java9+. Strongly inspired by: https://github.com/apache/tomcat/blob/master/java/org/apache/tomcat/util/buf/ByteBufferUtils.java
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcleanDirectBuffer(ByteBuffer buf)
-
-
-
Method Detail
-
cleanDirectBuffer
public static void cleanDirectBuffer(ByteBuffer buf)
-
-