/** * 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; }
theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType);
theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType);
theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType);
theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType);