@Override public void validateAddStepRequest(Object step) { EmrHiveStepAddRequest hiveStepRequest = (EmrHiveStepAddRequest) step; validateStepName(hiveStepRequest.getStepName()); validateScriptLocation(hiveStepRequest.getScriptLocation()); }
@Override public void validateAddStepRequest(Object step) { EmrHiveStepAddRequest hiveStepRequest = (EmrHiveStepAddRequest) step; validateStepName(hiveStepRequest.getStepName()); validateScriptLocation(hiveStepRequest.getScriptLocation()); }
@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; }
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));
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);