@Override public String getRequestStepName(Object stepRequest) { return ((EmrPigStepAddRequest) stepRequest).getStepName(); }
@Override public String getRequestStepName(Object stepRequest) { return ((EmrPigStepAddRequest) stepRequest).getStepName(); }
@Override public void validateAddStepRequest(Object step) { EmrPigStepAddRequest pigStepRequest = (EmrPigStepAddRequest) step; validateStepName(pigStepRequest.getStepName()); validateScriptLocation(pigStepRequest.getScriptLocation()); }
@Override public void validateAddStepRequest(Object step) { EmrPigStepAddRequest pigStepRequest = (EmrPigStepAddRequest) step; validateStepName(pigStepRequest.getStepName()); validateScriptLocation(pigStepRequest.getScriptLocation()); }
@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; }
theStepName = this.getStepName(); strategy.appendField(locator, this, "stepName", buffer, theStepName, (this.stepName!= null));
theStepName = this.getStepName(); strategy.appendField(locator, this, "stepName", buffer, theStepName, (this.stepName!= null));
lhsStepName = this.getStepName(); String rhsStepName; rhsStepName = that.getStepName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "stepName", lhsStepName), LocatorUtils.property(thatLocator, "stepName", rhsStepName), lhsStepName, rhsStepName, (this.stepName!= null), (that.stepName!= null))) { return false;
lhsStepName = this.getStepName(); String rhsStepName; rhsStepName = that.getStepName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "stepName", lhsStepName), LocatorUtils.property(thatLocator, "stepName", rhsStepName), lhsStepName, rhsStepName, (this.stepName!= null), (that.stepName!= null))) { return false;
theStepName = this.getStepName(); strategy.appendField(locator, this, "stepName", buffer, theStepName, (this.stepName!= null));
lhsStepName = this.getStepName(); String rhsStepName; rhsStepName = that.getStepName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "stepName", lhsStepName), LocatorUtils.property(thatLocator, "stepName", rhsStepName), lhsStepName, rhsStepName, (this.stepName!= null), (that.stepName!= null))) { return false;
theStepName = this.getStepName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stepName", theStepName), currentHashCode, theStepName, (this.stepName!= null));
theStepName = this.getStepName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stepName", theStepName), currentHashCode, theStepName, (this.stepName!= null));
theStepName = this.getStepName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stepName", theStepName), currentHashCode, theStepName, (this.stepName!= null));
if (stepNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceStepName; sourceStepName = this.getStepName(); String copyStepName = ((String) strategy.copy(LocatorUtils.property(locator, "stepName", sourceStepName), sourceStepName, (this.stepName!= null))); copy.setStepName(copyStepName);
if (stepNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceStepName; sourceStepName = this.getStepName(); String copyStepName = ((String) strategy.copy(LocatorUtils.property(locator, "stepName", sourceStepName), sourceStepName, (this.stepName!= null))); copy.setStepName(copyStepName);
if (stepNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceStepName; sourceStepName = this.getStepName(); String copyStepName = ((String) strategy.copy(LocatorUtils.property(locator, "stepName", sourceStepName), sourceStepName, (this.stepName!= null))); copy.setStepName(copyStepName);