public void addProperties(Map<String, String> props) { if (description != null) { props.put(MetastoreUtil.getCubeColDescriptionKey(getName()), description); } if (displayString != null) { props.put(MetastoreUtil.getCubeColDisplayKey(getName()), displayString); } if (startTime != null) { props.put(MetastoreUtil.getCubeColStartTimePropertyKey(getName()), COLUMN_TIME_FORMAT.get().format(startTime)); } if (endTime != null) { props.put(MetastoreUtil.getCubeColEndTimePropertyKey(getName()), COLUMN_TIME_FORMAT.get().format(endTime)); } if (cost != null) { props.put(MetastoreUtil.getCubeColCostPropertyKey(getName()), cost.toString()); } if (tags != null) { addTagProperties(name, props, tags); } } }
public void addProperties(Map<String, String> props) { if (description != null) { props.put(MetastoreUtil.getCubeColDescriptionKey(getName()), description); } if (displayString != null) { props.put(MetastoreUtil.getCubeColDisplayKey(getName()), displayString); } if (startTime != null) { props.put(MetastoreUtil.getCubeColStartTimePropertyKey(getName()), COLUMN_TIME_FORMAT.get().format(startTime)); } if (endTime != null) { props.put(MetastoreUtil.getCubeColEndTimePropertyKey(getName()), COLUMN_TIME_FORMAT.get().format(endTime)); } if (cost != null) { props.put(MetastoreUtil.getCubeColCostPropertyKey(getName()), cost.toString()); } if (tags != null) { addTagProperties(name, props, tags); } } }
public CubeColumn(String name, Map<String, String> props) { this.name = name; this.startTime = getDate(MetastoreUtil.getCubeColStartTimePropertyKey(name), props); this.endTime = getDate(MetastoreUtil.getCubeColEndTimePropertyKey(name), props); this.cost = getDouble(MetastoreUtil.getCubeColCostPropertyKey(name), props); this.description = props.get(MetastoreUtil.getCubeColDescriptionKey(name)); this.displayString = props.get(MetastoreUtil.getCubeColDisplayKey(name)); this.tags = getColumnTags(MetastoreUtil.getCubeColTagKey(name), props); }
public CubeColumn(String name, Map<String, String> props) { this.name = name; this.startTime = getDate(MetastoreUtil.getCubeColStartTimePropertyKey(name), props); this.endTime = getDate(MetastoreUtil.getCubeColEndTimePropertyKey(name), props); this.cost = getDouble(MetastoreUtil.getCubeColCostPropertyKey(name), props); this.description = props.get(MetastoreUtil.getCubeColDescriptionKey(name)); this.displayString = props.get(MetastoreUtil.getCubeColDisplayKey(name)); this.tags = getColumnTags(MetastoreUtil.getCubeColTagKey(name), props); }