public XJobQuery withConf(MapType... values) { if (values!= null) { for (MapType value: values) { getConf().add(value); } } return this; }
public XJobQuery withConf(Collection<MapType> values) { if (values!= null) { getConf().addAll(values); } return this; }
public XJobQuery withConf(MapType... values) { if (values!= null) { for (MapType value: values) { getConf().add(value); } } return this; }
public XJobQuery withConf(Collection<MapType> values) { if (values!= null) { getConf().addAll(values); } return this; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theQuery; theQuery = this.getQuery(); strategy.appendField(locator, this, "query", buffer, theQuery); } { List<MapType> theConf; theConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); strategy.appendField(locator, this, "conf", buffer, theConf); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theQuery; theQuery = this.getQuery(); strategy.appendField(locator, this, "query", buffer, theQuery); } { List<MapType> theConf; theConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); strategy.appendField(locator, this, "conf", buffer, theConf); } return buffer; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theQuery; theQuery = this.getQuery(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "query", theQuery), currentHashCode, theQuery); } { List<MapType> theConf; theConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "conf", theConf), currentHashCode, theConf); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theQuery; theQuery = this.getQuery(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "query", theQuery), currentHashCode, theQuery); } { List<MapType> theConf; theConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "conf", theConf), currentHashCode, theConf); } return currentHashCode; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof XJobQuery)) { return false; } if (this == object) { return true; } final XJobQuery that = ((XJobQuery) object); { String lhsQuery; lhsQuery = this.getQuery(); String rhsQuery; rhsQuery = that.getQuery(); if (!strategy.equals(LocatorUtils.property(thisLocator, "query", lhsQuery), LocatorUtils.property(thatLocator, "query", rhsQuery), lhsQuery, rhsQuery)) { return false; } } { List<MapType> lhsConf; 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; } } return true; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof XJobQuery)) { return false; } if (this == object) { return true; } final XJobQuery that = ((XJobQuery) object); { String lhsQuery; lhsQuery = this.getQuery(); String rhsQuery; rhsQuery = that.getQuery(); if (!strategy.equals(LocatorUtils.property(thisLocator, "query", lhsQuery), LocatorUtils.property(thatLocator, "query", rhsQuery), lhsQuery, rhsQuery)) { return false; } } { List<MapType> lhsConf; 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; } } return true; }
private LensConf getLensConf(XJob job, SchedulerJobInstanceHandle instanceHandle, DateTime scheduledTime) { List<MapType> jobConf = job.getExecution().getQuery().getConf(); LensConf queryConf = new LensConf(); for (MapType element : jobConf) { queryConf.addProperty(element.getKey(), element.getValue()); } queryConf.addProperty(JOB_INSTANCE_ID_KEY, instanceHandle.getHandleId()); // Current time is used for resolving date. queryConf.addProperty(LensConfConstants.QUERY_CURRENT_TIME_IN_MILLIS, scheduledTime.getMillis()); return queryConf; }
private void checkQuery(LensSessionHandle sessionHandle, XJob job) throws LensException { List<MapType> jobConf = job.getExecution().getQuery().getConf(); LensConf queryConf = new LensConf(); for (MapType element : jobConf) { queryConf.addProperty(element.getKey(), element.getValue()); } queryConf.addProperty(CubeQueryConfUtil.FAIL_QUERY_ON_PARTIAL_DATA, false); queryService.estimate(LensServices.get().getLogSegregationContext().getLogSegragationId(), sessionHandle, job.getExecution().getQuery().getQuery(), queryConf); }