@Override public Object buildResponseFromRequest(Object stepRequest) { EmrHiveStepAddRequest emrHiveStepAddRequest = (EmrHiveStepAddRequest) stepRequest; EmrHiveStep step = new EmrHiveStep(); step.setNamespace(emrHiveStepAddRequest.getNamespace()); step.setEmrClusterDefinitionName(emrHiveStepAddRequest.getEmrClusterDefinitionName()); step.setEmrClusterName(emrHiveStepAddRequest.getEmrClusterName()); step.setStepName(emrHiveStepAddRequest.getStepName().trim()); step.setScriptLocation(emrHiveStepAddRequest.getScriptLocation().trim().replaceAll(getS3ManagedReplaceString(), emrHelper.getS3StagingLocation())); // Add the script arguments if (!CollectionUtils.isEmpty(emrHiveStepAddRequest.getScriptArguments())) { List<String> scriptArguments = new ArrayList<>(); step.setScriptArguments(scriptArguments); for (String argument : emrHiveStepAddRequest.getScriptArguments()) { scriptArguments.add(argument.trim()); } } step.setContinueOnError(emrHiveStepAddRequest.isContinueOnError()); return step; }
@Override public Object buildResponseFromRequest(Object stepRequest) { EmrHiveStepAddRequest emrHiveStepAddRequest = (EmrHiveStepAddRequest) stepRequest; EmrHiveStep step = new EmrHiveStep(); step.setNamespace(emrHiveStepAddRequest.getNamespace()); step.setEmrClusterDefinitionName(emrHiveStepAddRequest.getEmrClusterDefinitionName()); step.setEmrClusterName(emrHiveStepAddRequest.getEmrClusterName()); step.setStepName(emrHiveStepAddRequest.getStepName().trim()); step.setScriptLocation(emrHiveStepAddRequest.getScriptLocation().trim().replaceAll(getS3ManagedReplaceString(), emrHelper.getS3StagingLocation())); // Add the script arguments if (!CollectionUtils.isEmpty(emrHiveStepAddRequest.getScriptArguments())) { List<String> scriptArguments = new ArrayList<>(); step.setScriptArguments(scriptArguments); for (String argument : emrHiveStepAddRequest.getScriptArguments()) { scriptArguments.add(argument.trim()); } } step.setContinueOnError(emrHiveStepAddRequest.isContinueOnError()); return step; }
theScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null); strategy.appendField(locator, this, "scriptArguments", buffer, theScriptArguments, (this.scriptArguments!= null));
lhsScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null); List<String> rhsScriptArguments; rhsScriptArguments = ((that.scriptArguments!= null)?that.getScriptArguments():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "scriptArguments", lhsScriptArguments), LocatorUtils.property(thatLocator, "scriptArguments", rhsScriptArguments), lhsScriptArguments, rhsScriptArguments, (this.scriptArguments!= null), (that.scriptArguments!= null))) { return false;
lhsScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null); List<String> rhsScriptArguments; rhsScriptArguments = ((that.scriptArguments!= null)?that.getScriptArguments():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "scriptArguments", lhsScriptArguments), LocatorUtils.property(thatLocator, "scriptArguments", rhsScriptArguments), lhsScriptArguments, rhsScriptArguments, (this.scriptArguments!= null), (that.scriptArguments!= null))) { return false;
theScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null); strategy.appendField(locator, this, "scriptArguments", buffer, theScriptArguments, (this.scriptArguments!= null));
theScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null); strategy.appendField(locator, this, "scriptArguments", buffer, theScriptArguments, (this.scriptArguments!= null));
lhsScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null); List<String> rhsScriptArguments; rhsScriptArguments = ((that.scriptArguments!= null)?that.getScriptArguments():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "scriptArguments", lhsScriptArguments), LocatorUtils.property(thatLocator, "scriptArguments", rhsScriptArguments), lhsScriptArguments, rhsScriptArguments, (this.scriptArguments!= null), (that.scriptArguments!= null))) { return false;
theScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scriptArguments", theScriptArguments), currentHashCode, theScriptArguments, (this.scriptArguments!= null));
theScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scriptArguments", theScriptArguments), currentHashCode, theScriptArguments, (this.scriptArguments!= null));
theScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scriptArguments", theScriptArguments), currentHashCode, theScriptArguments, (this.scriptArguments!= null));
if (scriptArgumentsShouldBeCopiedAndSet == Boolean.TRUE) { List<String> sourceScriptArguments; sourceScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null); @SuppressWarnings("unchecked") List<String> copyScriptArguments = ((List<String> ) strategy.copy(LocatorUtils.property(locator, "scriptArguments", sourceScriptArguments), sourceScriptArguments, (this.scriptArguments!= null)));
if (scriptArgumentsShouldBeCopiedAndSet == Boolean.TRUE) { List<String> sourceScriptArguments; sourceScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null); @SuppressWarnings("unchecked") List<String> copyScriptArguments = ((List<String> ) strategy.copy(LocatorUtils.property(locator, "scriptArguments", sourceScriptArguments), sourceScriptArguments, (this.scriptArguments!= null)));
if (scriptArgumentsShouldBeCopiedAndSet == Boolean.TRUE) { List<String> sourceScriptArguments; sourceScriptArguments = ((this.scriptArguments!= null)?this.getScriptArguments():null); @SuppressWarnings("unchecked") List<String> copyScriptArguments = ((List<String> ) strategy.copy(LocatorUtils.property(locator, "scriptArguments", sourceScriptArguments), sourceScriptArguments, (this.scriptArguments!= null)));