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; }
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 (partitionValuesShouldBeCopiedAndSet == Boolean.TRUE) { List<String> sourcePartitionValues; sourcePartitionValues = (((this.partitionValues!= null)&&(!this.partitionValues.isEmpty()))?this.getPartitionValues():null); @SuppressWarnings("unchecked") List<String> copyPartitionValues = ((List<String> ) strategy.copy(LocatorUtils.property(locator, "partitionValues", sourcePartitionValues), sourcePartitionValues, ((this.partitionValues!= null)&&(!this.partitionValues.isEmpty())))); copy.partitionValues = null; if (copyPartitionValues!= null) { List<String> uniquePartitionValuesl = copy.getPartitionValues(); uniquePartitionValuesl.addAll(copyPartitionValues);
String partitionValue = hivePartition.getPartitionValues().get(i); partitionKeyValuePairs.add(String.format("`%s`='%s'", partitionColumnName, partitionValue));
String partitionValue = hivePartition.getPartitionValues().get(i); partitionKeyValuePairs.add(String.format("`%s`='%s'", partitionColumnName, partitionValue));