本文整理了Java中org.apache.hadoop.hive.metastore.api.Table.isSetParameters()
方法的一些代码示例,展示了Table.isSetParameters()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.isSetParameters()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.Table
类名称:Table
方法名:isSetParameters
[英]Returns true if field parameters is set (has been assigned a value) and false otherwise
[中]如果设置了字段参数(已指定值),则返回true,否则返回false
代码示例来源:origin: apache/hive
private static boolean isMustPurge(EnvironmentContext envContext, Table tbl) {
// Data needs deletion. Check if trash may be skipped.
// Trash may be skipped iff:
// 1. deleteData == true, obviously.
// 2. tbl is external.
// 3. Either
// 3.1. User has specified PURGE from the commandline, and if not,
// 3.2. User has set the table to auto-purge.
return ((envContext != null) && Boolean.parseBoolean(envContext.getProperties().get("ifPurge")))
|| (tbl.isSetParameters() && "true".equalsIgnoreCase(tbl.getParameters().get("auto.purge")));
}
private void deleteParentRecursive(Path parent, int depth, boolean mustPurge, boolean needRecycle)
代码示例来源:origin: apache/hive
list.add(partitionKeys);
boolean present_parameters = true && (isSetParameters());
list.add(present_parameters);
if (present_parameters)
代码示例来源:origin: apache/hive
lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters());
if (lastComparison != 0) {
return lastComparison;
if (isSetParameters()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters);
if (lastComparison != 0) {
代码示例来源:origin: apache/hive
String[] parsedDbName = parseDbName(dbName, conf);
Table tbl = get_table_core(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], tableName);
boolean isAutopurge = (tbl.isSetParameters() && "true".equalsIgnoreCase(tbl.getParameters().get("auto.purge")));
Database db = get_database_core(parsedDbName[CAT_NAME], parsedDbName[DB_NAME]);
代码示例来源:origin: apache/hive
if (other.isSetParameters()) {
Map<String,String> __this__parameters = new HashMap<String,String>(other.parameters);
this.parameters = __this__parameters;
代码示例来源:origin: apache/hive
optionals.set(8);
if (struct.isSetParameters()) {
optionals.set(9);
if (struct.isSetParameters()) {
代码示例来源:origin: apache/hive
boolean this_present_parameters = true && this.isSetParameters();
boolean that_present_parameters = true && that.isSetParameters();
if (this_present_parameters || that_present_parameters) {
if (!(this_present_parameters && that_present_parameters))
代码示例来源:origin: apache/hive
return isSetPartitionKeys();
case PARAMETERS:
return isSetParameters();
case VIEW_ORIGINAL_TEXT:
return isSetViewOriginalText();
代码示例来源:origin: org.apache.hive/hive-standalone-metastore
private static boolean isMustPurge(EnvironmentContext envContext, Table tbl) {
// Data needs deletion. Check if trash may be skipped.
// Trash may be skipped iff:
// 1. deleteData == true, obviously.
// 2. tbl is external.
// 3. Either
// 3.1. User has specified PURGE from the commandline, and if not,
// 3.2. User has set the table to auto-purge.
return ((envContext != null) && Boolean.parseBoolean(envContext.getProperties().get("ifPurge")))
|| (tbl.isSetParameters() && "true".equalsIgnoreCase(tbl.getParameters().get("auto.purge")));
}
private void deleteParentRecursive(Path parent, int depth, boolean mustPurge, boolean needRecycle)
代码示例来源:origin: org.spark-project.hive/hive-metastore
private static boolean isMustPurge(EnvironmentContext envContext, Table tbl) {
// Data needs deletion. Check if trash may be skipped.
// Trash may be skipped iff:
// 1. deleteData == true, obviously.
// 2. tbl is external.
// 3. Either
// 3.1. User has specified PURGE from the commandline, and if not,
// 3.2. User has set the table to auto-purge.
return ((envContext != null) && Boolean.parseBoolean(envContext.getProperties().get("ifPurge")))
|| (tbl.isSetParameters() && "true".equalsIgnoreCase(tbl.getParameters().get("auto.purge")));
}
private void deleteParentRecursive(Path parent, int depth, boolean mustPurge) throws IOException, MetaException {
代码示例来源:origin: com.facebook.presto.hive/hive-apache
private static boolean isMustPurge(EnvironmentContext envContext, Table tbl) {
// Data needs deletion. Check if trash may be skipped.
// Trash may be skipped iff:
// 1. deleteData == true, obviously.
// 2. tbl is external.
// 3. Either
// 3.1. User has specified PURGE from the commandline, and if not,
// 3.2. User has set the table to auto-purge.
return ((envContext != null) && Boolean.parseBoolean(envContext.getProperties().get("ifPurge")))
|| (tbl.isSetParameters() && "true".equalsIgnoreCase(tbl.getParameters().get("auto.purge")));
}
private void deleteParentRecursive(Path parent, int depth, boolean mustPurge) throws IOException, MetaException {
代码示例来源:origin: org.spark-project.hive/hive-metastore
builder.append(partitionKeys);
boolean present_parameters = true && (isSetParameters());
builder.append(present_parameters);
if (present_parameters)
代码示例来源:origin: uk.co.nichesolutions.presto/presto-hive
properties.put(PARTITIONED_BY_PROPERTY, partitionedBy);
if (table.get().isSetParameters()) {
properties.putAll(tableParameterCodec.decode(table.get().getParameters()));
代码示例来源:origin: org.spark-project.hive/hive-metastore
if (other.isSetParameters()) {
Map<String,String> __this__parameters = new HashMap<String,String>();
for (Map.Entry<String, String> other_element : other.parameters.entrySet()) {
代码示例来源:origin: com.facebook.presto.hive/hive-apache
if (other.isSetParameters()) {
Map<String,String> __this__parameters = new HashMap<String,String>();
for (Map.Entry<String, String> other_element : other.parameters.entrySet()) {
代码示例来源:origin: org.apache.hive/hive-standalone-metastore
String[] parsedDbName = parseDbName(dbName, conf);
Table tbl = get_table_core(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], tableName);
boolean isAutopurge = (tbl.isSetParameters() && "true".equalsIgnoreCase(tbl.getParameters().get("auto.purge")));
Database db = get_database_core(parsedDbName[CAT_NAME], parsedDbName[DB_NAME]);
代码示例来源:origin: org.apache.hadoop.hive/hive-metastore
return isSetPartitionKeys();
case PARAMETERS:
return isSetParameters();
case VIEW_ORIGINAL_TEXT:
return isSetViewOriginalText();
代码示例来源:origin: com.facebook.presto.hive/hive-apache
return isSetPartitionKeys();
case PARAMETERS:
return isSetParameters();
case VIEW_ORIGINAL_TEXT:
return isSetViewOriginalText();
代码示例来源:origin: org.spark-project.hive/hive-metastore
return isSetPartitionKeys();
case PARAMETERS:
return isSetParameters();
case VIEW_ORIGINAL_TEXT:
return isSetViewOriginalText();
代码示例来源:origin: org.apache.hive/hive-standalone-metastore
return isSetPartitionKeys();
case PARAMETERS:
return isSetParameters();
case VIEW_ORIGINAL_TEXT:
return isSetViewOriginalText();
内容来源于网络,如有侵权,请联系作者删除!