本文整理了Java中com.alibaba.datax.common.util.Configuration.getUnnecessaryValue()
方法的一些代码示例,展示了Configuration.getUnnecessaryValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.getUnnecessaryValue()
方法的具体详情如下:
包路径:com.alibaba.datax.common.util.Configuration
类名称:Configuration
方法名:getUnnecessaryValue
暂无
代码示例来源:origin: ECNU-1X/DataX-Masking
public static void validateCompress(Configuration readerConfiguration) {
String compress =readerConfiguration
.getUnnecessaryValue(com.alibaba.datax.plugin.unstructuredstorage.reader.Key.COMPRESS,null,null);
if(StringUtils.isNotBlank(compress)){
compress = compress.toLowerCase().trim();
boolean compressTag = "gzip".equals(compress) || "bzip2".equals(compress) || "zip".equals(compress)
|| "lzo".equals(compress) || "lzo_deflate".equals(compress) || "hadoop-snappy".equals(compress)
|| "framing-snappy".equals(compress);
if (!compressTag) {
throw DataXException.asDataXException(UnstructuredStorageReaderErrorCode.ILLEGAL_VALUE,
String.format("仅支持 gzip, bzip2, zip, lzo, lzo_deflate, hadoop-snappy, framing-snappy " +
"文件压缩格式, 不支持您配置的文件压缩格式: [%s]", compress));
}
}else{
// 用户可能配置的是 compress:"",空字符串,需要将compress设置为null
compress = null;
}
readerConfiguration.set(com.alibaba.datax.plugin.unstructuredstorage.reader.Key.COMPRESS, compress);
}
代码示例来源:origin: ECNU-1X/DataX-Masking
this.connectPattern = this.originConfig.getUnnecessaryValue(Key.CONNECTPATTERN, Constant.DEFAULT_FTP_CONNECT_PATTERN, null);
boolean connectPatternTag = "PORT".equals(connectPattern) || "PASV".equals(connectPattern);
if (!connectPatternTag) {
内容来源于网络,如有侵权,请联系作者删除!