@Override public String getRequestEmrClusterName(Object stepRequest) { return ((EmrPigStepAddRequest) stepRequest).getEmrClusterName(); }
@Override public String getRequestEmrClusterName(Object stepRequest) { return ((EmrPigStepAddRequest) stepRequest).getEmrClusterName(); }
@Override public Object buildResponseFromRequest(Object stepRequest) { EmrPigStepAddRequest emrPigStepAddRequest = (EmrPigStepAddRequest) stepRequest; EmrPigStep step = new EmrPigStep(); step.setNamespace(emrPigStepAddRequest.getNamespace()); step.setEmrClusterDefinitionName(emrPigStepAddRequest.getEmrClusterDefinitionName()); step.setEmrClusterName(emrPigStepAddRequest.getEmrClusterName()); step.setStepName(emrPigStepAddRequest.getStepName().trim()); step.setScriptLocation(emrPigStepAddRequest.getScriptLocation().trim().replaceAll(getS3ManagedReplaceString(), emrHelper.getS3StagingLocation())); // Add the script arguments if (!CollectionUtils.isEmpty(emrPigStepAddRequest.getScriptArguments())) { List<String> scriptArguments = new ArrayList<>(); step.setScriptArguments(scriptArguments); for (String argument : emrPigStepAddRequest.getScriptArguments()) { scriptArguments.add(argument.trim()); } } step.setContinueOnError(emrPigStepAddRequest.isContinueOnError()); return step; }
@Override public Object buildResponseFromRequest(Object stepRequest) { EmrPigStepAddRequest emrPigStepAddRequest = (EmrPigStepAddRequest) stepRequest; EmrPigStep step = new EmrPigStep(); step.setNamespace(emrPigStepAddRequest.getNamespace()); step.setEmrClusterDefinitionName(emrPigStepAddRequest.getEmrClusterDefinitionName()); step.setEmrClusterName(emrPigStepAddRequest.getEmrClusterName()); step.setStepName(emrPigStepAddRequest.getStepName().trim()); step.setScriptLocation(emrPigStepAddRequest.getScriptLocation().trim().replaceAll(getS3ManagedReplaceString(), emrHelper.getS3StagingLocation())); // Add the script arguments if (!CollectionUtils.isEmpty(emrPigStepAddRequest.getScriptArguments())) { List<String> scriptArguments = new ArrayList<>(); step.setScriptArguments(scriptArguments); for (String argument : emrPigStepAddRequest.getScriptArguments()) { scriptArguments.add(argument.trim()); } } step.setContinueOnError(emrPigStepAddRequest.isContinueOnError()); return step; }
theEmrClusterName = this.getEmrClusterName(); strategy.appendField(locator, this, "emrClusterName", buffer, theEmrClusterName, (this.emrClusterName!= null));
lhsEmrClusterName = this.getEmrClusterName(); String rhsEmrClusterName; rhsEmrClusterName = that.getEmrClusterName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterName", lhsEmrClusterName), LocatorUtils.property(thatLocator, "emrClusterName", rhsEmrClusterName), lhsEmrClusterName, rhsEmrClusterName, (this.emrClusterName!= null), (that.emrClusterName!= null))) { return false;
theEmrClusterName = this.getEmrClusterName(); strategy.appendField(locator, this, "emrClusterName", buffer, theEmrClusterName, (this.emrClusterName!= null));
theEmrClusterName = this.getEmrClusterName(); strategy.appendField(locator, this, "emrClusterName", buffer, theEmrClusterName, (this.emrClusterName!= null));
lhsEmrClusterName = this.getEmrClusterName(); String rhsEmrClusterName; rhsEmrClusterName = that.getEmrClusterName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterName", lhsEmrClusterName), LocatorUtils.property(thatLocator, "emrClusterName", rhsEmrClusterName), lhsEmrClusterName, rhsEmrClusterName, (this.emrClusterName!= null), (that.emrClusterName!= null))) { return false;
lhsEmrClusterName = this.getEmrClusterName(); String rhsEmrClusterName; rhsEmrClusterName = that.getEmrClusterName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "emrClusterName", lhsEmrClusterName), LocatorUtils.property(thatLocator, "emrClusterName", rhsEmrClusterName), lhsEmrClusterName, rhsEmrClusterName, (this.emrClusterName!= null), (that.emrClusterName!= null))) { return false;
theEmrClusterName = this.getEmrClusterName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterName", theEmrClusterName), currentHashCode, theEmrClusterName, (this.emrClusterName!= null));
theEmrClusterName = this.getEmrClusterName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterName", theEmrClusterName), currentHashCode, theEmrClusterName, (this.emrClusterName!= null));
theEmrClusterName = this.getEmrClusterName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "emrClusterName", theEmrClusterName), currentHashCode, theEmrClusterName, (this.emrClusterName!= null));
if (emrClusterNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceEmrClusterName; sourceEmrClusterName = this.getEmrClusterName(); String copyEmrClusterName = ((String) strategy.copy(LocatorUtils.property(locator, "emrClusterName", sourceEmrClusterName), sourceEmrClusterName, (this.emrClusterName!= null))); copy.setEmrClusterName(copyEmrClusterName);
if (emrClusterNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceEmrClusterName; sourceEmrClusterName = this.getEmrClusterName(); String copyEmrClusterName = ((String) strategy.copy(LocatorUtils.property(locator, "emrClusterName", sourceEmrClusterName), sourceEmrClusterName, (this.emrClusterName!= null))); copy.setEmrClusterName(copyEmrClusterName);
if (emrClusterNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceEmrClusterName; sourceEmrClusterName = this.getEmrClusterName(); String copyEmrClusterName = ((String) strategy.copy(LocatorUtils.property(locator, "emrClusterName", sourceEmrClusterName), sourceEmrClusterName, (this.emrClusterName!= null))); copy.setEmrClusterName(copyEmrClusterName);