in flume-hdfs-sink/src/main/java/org/apache/flume/sink/hdfs/HDFSEventSink.java [305:317]
private static boolean codecMatches(Class<? extends CompressionCodec> cls, String codecName) {
String simpleName = cls.getSimpleName();
if (cls.getName().equals(codecName) || simpleName.equalsIgnoreCase(codecName)) {
return true;
}
if (simpleName.endsWith("Codec")) {
String prefix = simpleName.substring(0, simpleName.length() - "Codec".length());
if (prefix.equalsIgnoreCase(codecName)) {
return true;
}
}
return false;
}