Search in sources :

Example 1 with MapValueType

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());
}
Also used : VarietyValueType(com.alibaba.maxgraph.compiler.tree.value.VarietyValueType) ValueType(com.alibaba.maxgraph.compiler.tree.value.ValueType) VarietyValueType(com.alibaba.maxgraph.compiler.tree.value.VarietyValueType) MapValueType(com.alibaba.maxgraph.compiler.tree.value.MapValueType) ValueValueType(com.alibaba.maxgraph.compiler.tree.value.ValueValueType) MapValueType(com.alibaba.maxgraph.compiler.tree.value.MapValueType) ValueValueType(com.alibaba.maxgraph.compiler.tree.value.ValueValueType)

Example 2 with MapValueType

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);
}
Also used : MapValueType(com.alibaba.maxgraph.compiler.tree.value.MapValueType) VertexValueType(com.alibaba.maxgraph.compiler.tree.value.VertexValueType) ValueType(com.alibaba.maxgraph.compiler.tree.value.ValueType) MapValueType(com.alibaba.maxgraph.compiler.tree.value.MapValueType)

Aggregations

MapValueType (com.alibaba.maxgraph.compiler.tree.value.MapValueType)2 ValueType (com.alibaba.maxgraph.compiler.tree.value.ValueType)2 ValueValueType (com.alibaba.maxgraph.compiler.tree.value.ValueValueType)1 VarietyValueType (com.alibaba.maxgraph.compiler.tree.value.VarietyValueType)1 VertexValueType (com.alibaba.maxgraph.compiler.tree.value.VertexValueType)1