public XSessionType withConf(MapType... values) { if (values!= null) { for (MapType value: values) { getConf().add(value); } } return this; }
public XSessionType withConf(Collection<MapType> values) { if (values!= null) { getConf().addAll(values); } return this; }
public XSessionType withConf(MapType... values) { if (values!= null) { for (MapType value: values) { getConf().add(value); } } return this; }
public XSessionType withConf(Collection<MapType> values) { if (values!= null) { getConf().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; }
lhsConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); List<MapType> rhsConf; rhsConf = (((that.conf!= null)&&(!that.conf.isEmpty()))?that.getConf():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "conf", lhsConf), LocatorUtils.property(thatLocator, "conf", rhsConf), lhsConf, rhsConf)) { return false;
lhsConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); List<MapType> rhsConf; rhsConf = (((that.conf!= null)&&(!that.conf.isEmpty()))?that.getConf():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "conf", lhsConf), LocatorUtils.property(thatLocator, "conf", rhsConf), lhsConf, rhsConf)) { 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()); } }