本文整理汇总了Java中org.apache.hadoop.io.compress.Decompressor.end方法的典型用法代码示例。如果您正苦于以下问题:Java Decompressor.end方法的具体用法?Java Decompressor.end怎么用?Java Decompressor.end使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.io.compress.Decompressor
的用法示例。
在下文中一共展示了Decompressor.end方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: returnDecompressor
import org.apache.hadoop.io.compress.Decompressor; //导入方法依赖的package包/类
public void returnDecompressor(Decompressor decompressor) {
if (decompressor != null) {
if (LOG.isTraceEnabled()) LOG.trace("Returning decompressor " + decompressor + " to pool.");
CodecPool.returnDecompressor(decompressor);
if (decompressor.getClass().isAnnotationPresent(DoNotPool.class)) {
if (LOG.isTraceEnabled()) LOG.trace("Ending decompressor " + decompressor);
decompressor.end();
}
}
}
示例2: returnDecompressor
import org.apache.hadoop.io.compress.Decompressor; //导入方法依赖的package包/类
public void returnDecompressor(Decompressor decompressor) {
if (decompressor != null) {
CodecPool.returnDecompressor(decompressor);
Annotation[] annotations = decompressor.getClass().getAnnotations();
if (annotations != null) {
for (Annotation annotation : annotations) {
String annoName = annotation.annotationType().getSimpleName();
if (annoName.equals("DoNotPool")) {
decompressor.end();
}
}
}
}
}
示例3: returnDecompressor
import org.apache.hadoop.io.compress.Decompressor; //导入方法依赖的package包/类
public void returnDecompressor(Decompressor decompressor) {
if (decompressor != null) {
CodecPool.returnDecompressor(decompressor);
if (decompressor.getClass().isAnnotationPresent(DoNotPool.class)) {
decompressor.end();
}
}
}