@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; }
theScriptLocation = this.getScriptLocation(); strategy.appendField(locator, this, "scriptLocation", buffer, theScriptLocation, (this.scriptLocation!= null));
theScriptLocation = this.getScriptLocation(); strategy.appendField(locator, this, "scriptLocation", buffer, theScriptLocation, (this.scriptLocation!= null));
lhsScriptLocation = this.getScriptLocation(); String rhsScriptLocation; rhsScriptLocation = that.getScriptLocation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "scriptLocation", lhsScriptLocation), LocatorUtils.property(thatLocator, "scriptLocation", rhsScriptLocation), lhsScriptLocation, rhsScriptLocation, (this.scriptLocation!= null), (that.scriptLocation!= null))) { return false;
lhsScriptLocation = this.getScriptLocation(); String rhsScriptLocation; rhsScriptLocation = that.getScriptLocation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "scriptLocation", lhsScriptLocation), LocatorUtils.property(thatLocator, "scriptLocation", rhsScriptLocation), lhsScriptLocation, rhsScriptLocation, (this.scriptLocation!= null), (that.scriptLocation!= null))) { return false;
theScriptLocation = this.getScriptLocation(); strategy.appendField(locator, this, "scriptLocation", buffer, theScriptLocation, (this.scriptLocation!= null));
lhsScriptLocation = this.getScriptLocation(); String rhsScriptLocation; rhsScriptLocation = that.getScriptLocation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "scriptLocation", lhsScriptLocation), LocatorUtils.property(thatLocator, "scriptLocation", rhsScriptLocation), lhsScriptLocation, rhsScriptLocation, (this.scriptLocation!= null), (that.scriptLocation!= null))) { return false;
theScriptLocation = this.getScriptLocation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scriptLocation", theScriptLocation), currentHashCode, theScriptLocation, (this.scriptLocation!= null));
theScriptLocation = this.getScriptLocation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scriptLocation", theScriptLocation), currentHashCode, theScriptLocation, (this.scriptLocation!= null));
theScriptLocation = this.getScriptLocation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "scriptLocation", theScriptLocation), currentHashCode, theScriptLocation, (this.scriptLocation!= null));
if (scriptLocationShouldBeCopiedAndSet == Boolean.TRUE) { String sourceScriptLocation; sourceScriptLocation = this.getScriptLocation(); String copyScriptLocation = ((String) strategy.copy(LocatorUtils.property(locator, "scriptLocation", sourceScriptLocation), sourceScriptLocation, (this.scriptLocation!= null))); copy.setScriptLocation(copyScriptLocation);
if (scriptLocationShouldBeCopiedAndSet == Boolean.TRUE) { String sourceScriptLocation; sourceScriptLocation = this.getScriptLocation(); String copyScriptLocation = ((String) strategy.copy(LocatorUtils.property(locator, "scriptLocation", sourceScriptLocation), sourceScriptLocation, (this.scriptLocation!= null))); copy.setScriptLocation(copyScriptLocation);
if (scriptLocationShouldBeCopiedAndSet == Boolean.TRUE) { String sourceScriptLocation; sourceScriptLocation = this.getScriptLocation(); String copyScriptLocation = ((String) strategy.copy(LocatorUtils.property(locator, "scriptLocation", sourceScriptLocation), sourceScriptLocation, (this.scriptLocation!= null))); copy.setScriptLocation(copyScriptLocation);