datapilot-cli
Version:
Enterprise-grade streaming multi-format data analysis with comprehensive statistical insights and intelligent relationship detection - supports CSV, JSON, Excel, TSV, Parquet - memory-efficient, cross-platform
30 lines (23 loc) • 477 B
JavaScript
const BaseXform = require('../base-xform');
class DimensionXform extends BaseXform {
get tag() {
return 'dimension';
}
render(xmlStream, model) {
if (model) {
xmlStream.leafNode('dimension', {ref: model});
}
}
parseOpen(node) {
if (node.name === 'dimension') {
this.model = node.attributes.ref;
return true;
}
return false;
}
parseText() {}
parseClose() {
return false;
}
}
module.exports = DimensionXform;