use of com.alibaba.maxgraph.compiler.tree.value.MapValueType in project GraphScope by alibaba.
the class AggregationListTreeNode method getOutputValueType.
@Override
public ValueType getOutputValueType() {
Set<ValueType> aggValueList = Sets.newHashSet();
aggNodeList.forEach(v -> aggValueList.add(v.getOutputValueType()));
return new MapValueType(new ValueValueType(Message.VariantType.VT_STRING), aggValueList.size() > 1 ? new VarietyValueType(aggValueList) : aggValueList.iterator().next());
}
use of com.alibaba.maxgraph.compiler.tree.value.MapValueType in project GraphScope by alibaba.
the class GroupTreeNode method getOutputValueType.
@Override
public ValueType getOutputValueType() {
ValueType keyValueType = null == keyTreeNode ? getInputNode().getOutputValueType() : keyTreeNode.getOutputValueType();
ValueType valueValueType = valueTreeNode.getOutputValueType();
return new MapValueType(keyValueType, valueValueType);
}
Aggregations