/** * 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; }
theFormatString = this.getFormatString(); strategy.appendField(locator, this, "formatString", buffer, theFormatString);
theFormatString = this.getFormatString(); strategy.appendField(locator, this, "formatString", buffer, theFormatString);
theFormatString = this.getFormatString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "formatString", theFormatString), currentHashCode, theFormatString);
lhsFormatString = this.getFormatString(); String rhsFormatString; rhsFormatString = that.getFormatString(); if (!strategy.equals(LocatorUtils.property(thisLocator, "formatString", lhsFormatString), LocatorUtils.property(thatLocator, "formatString", rhsFormatString), lhsFormatString, rhsFormatString)) { return false;
lhsFormatString = this.getFormatString(); String rhsFormatString; rhsFormatString = that.getFormatString(); if (!strategy.equals(LocatorUtils.property(thisLocator, "formatString", lhsFormatString), LocatorUtils.property(thatLocator, "formatString", rhsFormatString), lhsFormatString, rhsFormatString)) { return false;
theFormatString = this.getFormatString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "formatString", theFormatString), currentHashCode, theFormatString);