/** * Create hive ql CubeMeasure from JAXB counterpart * * @param xm * @return {@link CubeMeasure} */ public static CubeMeasure hiveMeasureFromXMeasure(XMeasure xm) { Date startDate = xm.getStartTime() == null ? null : xm.getStartTime().toGregorianCalendar().getTime(); Date endDate = xm.getEndTime() == null ? null : xm.getEndTime().toGregorianCalendar().getTime(); CubeMeasure cm = new ColumnMeasure(new FieldSchema(xm.getName(), xm.getType().name().toLowerCase(), xm.getDescription()), xm.getDisplayString(), xm.getFormatString(), xm.getDefaultAggr(), xm.getUnit(), startDate, endDate, null, xm.getMin(), xm.getMax(), mapFromXProperties(xm.getTags()) ); return cm; }
/** * Create hive ql CubeMeasure from JAXB counterpart * * @param xm * @return {@link CubeMeasure} */ public static CubeMeasure hiveMeasureFromXMeasure(XMeasure xm) { Date startDate = xm.getStartTime() == null ? null : xm.getStartTime().toGregorianCalendar().getTime(); Date endDate = xm.getEndTime() == null ? null : xm.getEndTime().toGregorianCalendar().getTime(); CubeMeasure cm = new ColumnMeasure(new FieldSchema(xm.getName(), xm.getType().name().toLowerCase(), xm.getDescription()), xm.getDisplayString(), xm.getFormatString(), xm.getDefaultAggr(), xm.getUnit(), startDate, endDate, null, xm.getMin(), xm.getMax(), mapFromXProperties(xm.getTags()) ); return cm; }
theStartTime = this.getStartTime(); strategy.appendField(locator, this, "startTime", buffer, theStartTime);
theStartTime = this.getStartTime(); strategy.appendField(locator, this, "startTime", buffer, theStartTime);
theStartTime = this.getStartTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "startTime", theStartTime), currentHashCode, theStartTime);
lhsStartTime = this.getStartTime(); XMLGregorianCalendar rhsStartTime; rhsStartTime = that.getStartTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "startTime", lhsStartTime), LocatorUtils.property(thatLocator, "startTime", rhsStartTime), lhsStartTime, rhsStartTime)) { return false;
lhsStartTime = this.getStartTime(); XMLGregorianCalendar rhsStartTime; rhsStartTime = that.getStartTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "startTime", lhsStartTime), LocatorUtils.property(thatLocator, "startTime", rhsStartTime), lhsStartTime, rhsStartTime)) { return false;
theStartTime = this.getStartTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "startTime", theStartTime), currentHashCode, theStartTime);