public XSessionType withResourcePath(ResourcePath... values) { if (values!= null) { for (ResourcePath value: values) { getResourcePath().add(value); } } return this; }
public XSessionType withResourcePath(Collection<ResourcePath> values) { if (values!= null) { getResourcePath().addAll(values); } return this; }
public XSessionType withResourcePath(ResourcePath... values) { if (values!= null) { for (ResourcePath value: values) { getResourcePath().add(value); } } return this; }
public XSessionType withResourcePath(Collection<ResourcePath> values) { if (values!= null) { getResourcePath().addAll(values); } return this; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theDb; theDb = this.getDb(); strategy.appendField(locator, this, "db", buffer, theDb); } { List<MapType> theConf; theConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); strategy.appendField(locator, this, "conf", buffer, theConf); } { List<ResourcePath> theResourcePath; theResourcePath = (((this.resourcePath!= null)&&(!this.resourcePath.isEmpty()))?this.getResourcePath():null); strategy.appendField(locator, this, "resourcePath", buffer, theResourcePath); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theDb; theDb = this.getDb(); strategy.appendField(locator, this, "db", buffer, theDb); } { List<MapType> theConf; theConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); strategy.appendField(locator, this, "conf", buffer, theConf); } { List<ResourcePath> theResourcePath; theResourcePath = (((this.resourcePath!= null)&&(!this.resourcePath.isEmpty()))?this.getResourcePath():null); strategy.appendField(locator, this, "resourcePath", buffer, theResourcePath); } return buffer; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theDb; theDb = this.getDb(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "db", theDb), currentHashCode, theDb); } { List<MapType> theConf; theConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "conf", theConf), currentHashCode, theConf); } { List<ResourcePath> theResourcePath; theResourcePath = (((this.resourcePath!= null)&&(!this.resourcePath.isEmpty()))?this.getResourcePath():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "resourcePath", theResourcePath), currentHashCode, theResourcePath); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theDb; theDb = this.getDb(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "db", theDb), currentHashCode, theDb); } { List<MapType> theConf; theConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "conf", theConf), currentHashCode, theConf); } { List<ResourcePath> theResourcePath; theResourcePath = (((this.resourcePath!= null)&&(!this.resourcePath.isEmpty()))?this.getResourcePath():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "resourcePath", theResourcePath), currentHashCode, theResourcePath); } return currentHashCode; }
lhsResourcePath = (((this.resourcePath!= null)&&(!this.resourcePath.isEmpty()))?this.getResourcePath():null); List<ResourcePath> rhsResourcePath; rhsResourcePath = (((that.resourcePath!= null)&&(!that.resourcePath.isEmpty()))?that.getResourcePath():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "resourcePath", lhsResourcePath), LocatorUtils.property(thatLocator, "resourcePath", rhsResourcePath), lhsResourcePath, rhsResourcePath)) { return false;
lhsResourcePath = (((this.resourcePath!= null)&&(!this.resourcePath.isEmpty()))?this.getResourcePath():null); List<ResourcePath> rhsResourcePath; rhsResourcePath = (((that.resourcePath!= null)&&(!that.resourcePath.isEmpty()))?that.getResourcePath():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "resourcePath", lhsResourcePath), LocatorUtils.property(thatLocator, "resourcePath", rhsResourcePath), lhsResourcePath, rhsResourcePath)) { return false;
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()); } }