public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String thePath; thePath = this.getPath(); strategy.appendField(locator, this, "path", buffer, thePath, (this.path!= null)); } { List<String> thePartitionValues; thePartitionValues = (((this.partitionValues!= null)&&(!this.partitionValues.isEmpty()))?this.getPartitionValues():null); strategy.appendField(locator, this, "partitionValues", buffer, thePartitionValues, ((this.partitionValues!= null)&&(!this.partitionValues.isEmpty()))); } return buffer; }
Assert.isTrue(hivePartition.getPath().equals(partitionPath), String.format( "Found two different locations for the same Hive partition. Storage: {%s}, business object data: {%s}, " + "S3 key prefix: {%s}, path[1]: {%s}, path[2]: {%s}", storageName, businessObjectDataHelper.businessObjectDataEntityAltKeyToString(businessObjectDataEntity), s3KeyPrefix, hivePartition.getPath(), partitionPath));
Assert.isTrue(hivePartition.getPath().equals(partitionPath), String.format( "Found two different locations for the same Hive partition. Storage: {%s}, business object data: {%s}, " + "S3 key prefix: {%s}, path[1]: {%s}, path[2]: {%s}", storageName, businessObjectDataHelper.businessObjectDataEntityAltKeyToString(businessObjectDataEntity), s3KeyPrefix, hivePartition.getPath(), partitionPath));
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String thePath; thePath = this.getPath(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "path", thePath), currentHashCode, thePath, (this.path!= null)); } { List<String> thePartitionValues; thePartitionValues = (((this.partitionValues!= null)&&(!this.partitionValues.isEmpty()))?this.getPartitionValues():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "partitionValues", thePartitionValues), currentHashCode, thePartitionValues, ((this.partitionValues!= null)&&(!this.partitionValues.isEmpty()))); } return currentHashCode; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final HivePartitionDto that = ((HivePartitionDto) object); { String lhsPath; lhsPath = this.getPath(); String rhsPath; rhsPath = that.getPath(); if (!strategy.equals(LocatorUtils.property(thisLocator, "path", lhsPath), LocatorUtils.property(thatLocator, "path", rhsPath), lhsPath, rhsPath, (this.path!= null), (that.path!= null))) { return false; } } { List<String> lhsPartitionValues; lhsPartitionValues = (((this.partitionValues!= null)&&(!this.partitionValues.isEmpty()))?this.getPartitionValues():null); List<String> rhsPartitionValues; rhsPartitionValues = (((that.partitionValues!= null)&&(!that.partitionValues.isEmpty()))?that.getPartitionValues():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "partitionValues", lhsPartitionValues), LocatorUtils.property(thatLocator, "partitionValues", rhsPartitionValues), lhsPartitionValues, rhsPartitionValues, ((this.partitionValues!= null)&&(!this.partitionValues.isEmpty())), ((that.partitionValues!= null)&&(!that.partitionValues.isEmpty())))) { return false; } } return true; }
if (pathShouldBeCopiedAndSet == Boolean.TRUE) { String sourcePath; sourcePath = this.getPath(); String copyPath = ((String) strategy.copy(LocatorUtils.property(locator, "path", sourcePath), sourcePath, (this.path!= null))); copy.setPath(copyPath);