public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { XSessionType theSession; theSession = this.getSession(); strategy.appendField(locator, this, "session", buffer, theSession); } { XJobQuery theQuery; theQuery = this.getQuery(); strategy.appendField(locator, this, "query", buffer, theQuery); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { XSessionType theSession; theSession = this.getSession(); strategy.appendField(locator, this, "session", buffer, theSession); } { XJobQuery theQuery; theQuery = this.getQuery(); strategy.appendField(locator, this, "query", buffer, theQuery); } return buffer; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { XSessionType theSession; theSession = this.getSession(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "session", theSession), currentHashCode, theSession); } { XJobQuery theQuery; theQuery = this.getQuery(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "query", theQuery), currentHashCode, theQuery); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { XSessionType theSession; theSession = this.getSession(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "session", theSession), currentHashCode, theSession); } { XJobQuery theQuery; theQuery = this.getQuery(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "query", theQuery), currentHashCode, theQuery); } return currentHashCode; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof XExecution)) { return false; } if (this == object) { return true; } final XExecution that = ((XExecution) object); { XSessionType lhsSession; lhsSession = this.getSession(); XSessionType rhsSession; rhsSession = that.getSession(); if (!strategy.equals(LocatorUtils.property(thisLocator, "session", lhsSession), LocatorUtils.property(thatLocator, "session", rhsSession), lhsSession, rhsSession)) { return false; } } { XJobQuery lhsQuery; lhsQuery = this.getQuery(); XJobQuery rhsQuery; rhsQuery = that.getQuery(); if (!strategy.equals(LocatorUtils.property(thisLocator, "query", lhsQuery), LocatorUtils.property(thatLocator, "query", rhsQuery), lhsQuery, rhsQuery)) { return false; } } return true; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof XExecution)) { return false; } if (this == object) { return true; } final XExecution that = ((XExecution) object); { XSessionType lhsSession; lhsSession = this.getSession(); XSessionType rhsSession; rhsSession = that.getSession(); if (!strategy.equals(LocatorUtils.property(thisLocator, "session", lhsSession), LocatorUtils.property(thatLocator, "session", rhsSession), lhsSession, rhsSession)) { return false; } } { XJobQuery lhsQuery; lhsQuery = this.getQuery(); XJobQuery rhsQuery; rhsQuery = that.getQuery(); if (!strategy.equals(LocatorUtils.property(thisLocator, "query", lhsQuery), LocatorUtils.property(thatLocator, "query", rhsQuery), lhsQuery, rhsQuery)) { return false; } } return true; }
private void setSessionConf(LensSessionHandle sessionHandle, XJob job) throws LensException { XExecution execution = job.getExecution(); XSessionType executionSession = execution.getSession(); cubeMetastoreService.setCurrentDatabase(sessionHandle, executionSession.getDb()); List<MapType> sessionConfList = executionSession.getConf(); for (MapType element : sessionConfList) { sessionService.setSessionParameter(sessionHandle, element.getKey(), element.getValue()); } List<ResourcePath> resourceList = executionSession.getResourcePath(); for (ResourcePath path : resourceList) { sessionService.addResource(sessionHandle, path.getType(), path.getPath()); } }