use of org.apache.tinkerpop.gremlin.structure.PropertyType in project GraphScope by alibaba.
the class TreeBuilder method visitPropertyMapStep.
private TreeNode visitPropertyMapStep(PropertyMapStep step, TreeNode prev) {
Traversal.Admin<?, ?> propertyTraversal = step.getLocalChildren().isEmpty() ? null : (Traversal.Admin<?, ?>) step.getLocalChildren().get(0);
TraversalRing<?, ?> traversalRing = ReflectionUtils.getFieldValue(PropertyMapStep.class, step, "traversalRing");
if (null != propertyTraversal || !traversalRing.isEmpty()) {
throw new UnsupportedOperationException("Not support value map with property traversal or traversal ring");
}
String[] propertyKeys = step.getPropertyKeys();
PropertyType propertyType = step.getReturnType();
return new PropertyMapTreeNode(prev, schema, propertyKeys, propertyType, step.getIncludedTokens() != 0);
}
Aggregations