@Override public String getRequestStepName(Object stepRequest) { return ((EmrHiveStepAddRequest) stepRequest).getStepName(); }
@Override public String getRequestStepName(Object stepRequest) { return ((EmrHiveStepAddRequest) stepRequest).getStepName(); }
@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; }
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));
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);