list.add(cols); boolean present_location = true && (isSetLocation()); list.add(present_location); if (present_location)
String name, HiveConf conf) throws HiveException { Path path = null; if (!sd.isSetLocation())
/** * Make location in specified sd qualified. * * @param databaseName * Database name. * @param sd * Storage descriptor. * @param name * Object name. */ public static void makeLocationQualified(String databaseName, Table table, HiveConf conf) throws HiveException { Path path = null; StorageDescriptor sd = table.getTTable().getSd(); // If the table's location is currently unset, it is left unset, allowing the metastore to // fill in the table's location. // Note that the previous logic for some reason would make a special case if the DB was the // default database, and actually attempt to generate a location. // This seems incorrect and uncessary, since the metastore is just as able to fill in the // default table location in the case of the default DB, as it is for non-default DBs. if (sd.isSetLocation()) { path = new Path(sd.getLocation()); } if (path != null) { sd.setLocation(Utilities.getQualifiedPath(conf, path)); } }
lastComparison = Boolean.valueOf(isSetLocation()).compareTo(other.isSetLocation()); if (lastComparison != 0) { return lastComparison; if (isSetLocation()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, other.location); if (lastComparison != 0) {
if (other.isSetLocation()) { this.location = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(other.location);
partitionWithoutSD.setLastAccessTime(partition.getLastAccessTime()); partitionWithoutSD.setRelativePath( (isUnsetKey || !partition.getSd().isSetLocation()) ? null : partition.getSd() .getLocation().substring(tablePath.length())); partitionWithoutSD.setParameters(partition.getParameters());
optionals.set(0); if (struct.isSetLocation()) { optionals.set(1); if (struct.isSetLocation()) { oprot.writeString(struct.location);
return isSetCols(); case LOCATION: return isSetLocation(); case INPUT_FORMAT: return isSetInputFormat();
boolean this_present_location = true && this.isSetLocation(); boolean that_present_location = true && that.isSetLocation(); if (this_present_location || that_present_location) { if (!(this_present_location && that_present_location))
private static State getStorageProps(StorageDescriptor sd) { State storageProps = new State(); for (Map.Entry<String, String> entry : sd.getParameters().entrySet()) { storageProps.setProp(entry.getKey(), entry.getValue()); } if (sd.isSetLocation()) { storageProps.setProp(HiveConstants.LOCATION, sd.getLocation()); } if (sd.isSetInputFormat()) { storageProps.setProp(HiveConstants.INPUT_FORMAT, sd.getInputFormat()); } if (sd.isSetOutputFormat()) { storageProps.setProp(HiveConstants.OUTPUT_FORMAT, sd.getOutputFormat()); } if (sd.isSetCompressed()) { storageProps.setProp(HiveConstants.COMPRESSED, sd.isCompressed()); } if (sd.isSetNumBuckets()) { storageProps.setProp(HiveConstants.NUM_BUCKETS, sd.getNumBuckets()); } if (sd.isSetBucketCols()) { for (String bucketColumn : sd.getBucketCols()) { storageProps.appendToListProp(HiveConstants.BUCKET_COLUMNS, bucketColumn); } } if (sd.isSetStoredAsSubDirectories()) { storageProps.setProp(HiveConstants.STORED_AS_SUB_DIRS, sd.isStoredAsSubDirectories()); } return storageProps; }
throw new MetaException("Table is not partitioned"); if (!tbl.isSetSd() || !tbl.getSd().isSetLocation()) { throw new MetaException( "Table does not have storage location; this operation is not supported on views"); List<Partition> parts = ms.getPartitionsByNames(DEFAULT_CATALOG_NAME, dbName, tblName, nameBatch); for (Partition part : parts) { if (!part.isSetSd() || !part.getSd().isSetLocation()) { throw new MetaException("Partition does not have storage location;" + " this operation is not supported on views");
throws HiveException { Path path = null; if (!sd.isSetLocation())
if (other.isSetLocation()) { this.location = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(other.location);
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case COLS: return isSetCols(); case LOCATION: return isSetLocation(); case INPUT_FORMAT: return isSetInputFormat(); case OUTPUT_FORMAT: return isSetOutputFormat(); case COMPRESSED: return isSetCompressed(); case NUM_BUCKETS: return isSetNumBuckets(); case SERDE_INFO: return isSetSerdeInfo(); case BUCKET_COLS: return isSetBucketCols(); case SORT_COLS: return isSetSortCols(); case PARAMETERS: return isSetParameters(); } throw new IllegalStateException(); }
return isSetCols(); case LOCATION: return isSetLocation(); case INPUT_FORMAT: return isSetInputFormat();
return isSetCols(); case LOCATION: return isSetLocation(); case INPUT_FORMAT: return isSetInputFormat();
return isSetCols(); case LOCATION: return isSetLocation(); case INPUT_FORMAT: return isSetInputFormat();
private static State getStorageProps(StorageDescriptor sd) { State storageProps = new State(); for (Map.Entry<String, String> entry : sd.getParameters().entrySet()) { storageProps.setProp(entry.getKey(), entry.getValue()); } if (sd.isSetLocation()) { storageProps.setProp(HiveConstants.LOCATION, sd.getLocation()); } if (sd.isSetInputFormat()) { storageProps.setProp(HiveConstants.INPUT_FORMAT, sd.getInputFormat()); } if (sd.isSetOutputFormat()) { storageProps.setProp(HiveConstants.OUTPUT_FORMAT, sd.getOutputFormat()); } if (sd.isSetCompressed()) { storageProps.setProp(HiveConstants.COMPRESSED, sd.isCompressed()); } if (sd.isSetNumBuckets()) { storageProps.setProp(HiveConstants.NUM_BUCKETS, sd.getNumBuckets()); } if (sd.isSetBucketCols()) { for (String bucketColumn : sd.getBucketCols()) { storageProps.appendToListProp(HiveConstants.BUCKET_COLUMNS, bucketColumn); } } if (sd.isSetStoredAsSubDirectories()) { storageProps.setProp(HiveConstants.STORED_AS_SUB_DIRS, sd.isStoredAsSubDirectories()); } return storageProps; }
private static State getStorageProps(StorageDescriptor sd) { State storageProps = new State(); for (Map.Entry<String, String> entry : sd.getParameters().entrySet()) { storageProps.setProp(entry.getKey(), entry.getValue()); } if (sd.isSetLocation()) { storageProps.setProp(HiveConstants.LOCATION, sd.getLocation()); } if (sd.isSetInputFormat()) { storageProps.setProp(HiveConstants.INPUT_FORMAT, sd.getInputFormat()); } if (sd.isSetOutputFormat()) { storageProps.setProp(HiveConstants.OUTPUT_FORMAT, sd.getOutputFormat()); } if (sd.isSetCompressed()) { storageProps.setProp(HiveConstants.COMPRESSED, sd.isCompressed()); } if (sd.isSetNumBuckets()) { storageProps.setProp(HiveConstants.NUM_BUCKETS, sd.getNumBuckets()); } if (sd.isSetBucketCols()) { for (String bucketColumn : sd.getBucketCols()) { storageProps.appendToListProp(HiveConstants.BUCKET_COLUMNS, bucketColumn); } } if (sd.isSetStoredAsSubDirectories()) { storageProps.setProp(HiveConstants.STORED_AS_SUB_DIRS, sd.isStoredAsSubDirectories()); } return storageProps; }
builder.append(cols); boolean present_location = true && (isSetLocation()); builder.append(present_location); if (present_location)