public static void updatePartitionFromXPartition(Partition partition, XPartition xp) throws ClassNotFoundException { partition.getParameters().putAll(mapFromXProperties(xp.getPartitionParameters())); partition.getTPartition().getSd().getSerdeInfo().setParameters(mapFromXProperties(xp.getSerdeParameters())); partition.setLocation(xp.getLocation()); if (xp.getInputFormat() != null) { partition.setInputFormatClass(Class.forName(xp.getInputFormat()).asSubclass(InputFormat.class)); } if (xp.getOutputFormat() != null) { Class<? extends HiveOutputFormat> outputFormatClass = Class.forName(xp.getOutputFormat()).asSubclass(HiveOutputFormat.class); partition.setOutputFormatClass(outputFormatClass); } partition.getParameters().put(MetastoreConstants.PARTITION_UPDATE_PERIOD, xp.getUpdatePeriod().name()); partition.getTPartition().getSd().getSerdeInfo().setSerializationLib(xp.getSerdeClassname()); }
public static void updatePartitionFromXPartition(Partition partition, XPartition xp) throws ClassNotFoundException { partition.getParameters().putAll(mapFromXProperties(xp.getPartitionParameters())); partition.getTPartition().getSd().getSerdeInfo().setParameters(mapFromXProperties(xp.getSerdeParameters())); partition.setLocation(xp.getLocation()); if (xp.getInputFormat() != null) { partition.setInputFormatClass(Class.forName(xp.getInputFormat()).asSubclass(InputFormat.class)); } if (xp.getOutputFormat() != null) { Class<? extends HiveOutputFormat> outputFormatClass = Class.forName(xp.getOutputFormat()).asSubclass(HiveOutputFormat.class); partition.setOutputFormatClass(outputFormatClass); } partition.getParameters().put(MetastoreConstants.PARTITION_UPDATE_PERIOD, xp.getUpdatePeriod().name()); partition.getTPartition().getSd().getSerdeInfo().setSerializationLib(xp.getSerdeClassname()); }
xp.getSerdeParameters().getProperty().addAll(xPropertiesFromMap( p.getTPartition().getSd().getSerdeInfo().getParameters())); return xp;
xp.getSerdeParameters().getProperty().addAll(xPropertiesFromMap( p.getTPartition().getSd().getSerdeInfo().getParameters())); return xp;
public static StoragePartitionDesc storagePartSpecFromXPartition( XPartition xpart) { StoragePartitionDesc partDesc = new StoragePartitionDesc( xpart.getFactOrDimensionTableName(), timePartSpecfromXTimePartSpec(xpart.getTimePartitionSpec()), nonTimePartSpecfromXNonTimePartSpec(xpart.getNonTimePartitionSpec()), UpdatePeriod.valueOf(xpart.getUpdatePeriod().name())); partDesc.setPartParams(mapFromXProperties(xpart.getPartitionParameters())); partDesc.setSerdeParams(mapFromXProperties(xpart.getSerdeParameters())); partDesc.setLocation(xpart.getLocation()); partDesc.setInputFormat(xpart.getInputFormat()); partDesc.setOutputFormat(xpart.getOutputFormat()); partDesc.setSerializationLib(xpart.getSerdeClassname()); return partDesc; }
public static StoragePartitionDesc storagePartSpecFromXPartition( XPartition xpart) { StoragePartitionDesc partDesc = new StoragePartitionDesc( xpart.getFactOrDimensionTableName(), timePartSpecfromXTimePartSpec(xpart.getTimePartitionSpec()), nonTimePartSpecfromXNonTimePartSpec(xpart.getNonTimePartitionSpec()), UpdatePeriod.valueOf(xpart.getUpdatePeriod().name())); partDesc.setPartParams(mapFromXProperties(xpart.getPartitionParameters())); partDesc.setSerdeParams(mapFromXProperties(xpart.getSerdeParameters())); partDesc.setLocation(xpart.getLocation()); partDesc.setInputFormat(xpart.getInputFormat()); partDesc.setOutputFormat(xpart.getOutputFormat()); partDesc.setSerializationLib(xpart.getSerdeClassname()); return partDesc; }
theSerdeParameters = this.getSerdeParameters(); strategy.appendField(locator, this, "serdeParameters", buffer, theSerdeParameters);
theSerdeParameters = this.getSerdeParameters(); strategy.appendField(locator, this, "serdeParameters", buffer, theSerdeParameters);
lhsSerdeParameters = this.getSerdeParameters(); XProperties rhsSerdeParameters; rhsSerdeParameters = that.getSerdeParameters(); if (!strategy.equals(LocatorUtils.property(thisLocator, "serdeParameters", lhsSerdeParameters), LocatorUtils.property(thatLocator, "serdeParameters", rhsSerdeParameters), lhsSerdeParameters, rhsSerdeParameters)) { return false;
theSerdeParameters = this.getSerdeParameters(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "serdeParameters", theSerdeParameters), currentHashCode, theSerdeParameters);
lhsSerdeParameters = this.getSerdeParameters(); XProperties rhsSerdeParameters; rhsSerdeParameters = that.getSerdeParameters(); if (!strategy.equals(LocatorUtils.property(thisLocator, "serdeParameters", lhsSerdeParameters), LocatorUtils.property(thatLocator, "serdeParameters", rhsSerdeParameters), lhsSerdeParameters, rhsSerdeParameters)) { return false;
theSerdeParameters = this.getSerdeParameters(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "serdeParameters", theSerdeParameters), currentHashCode, theSerdeParameters);