use of com.alibaba.maxgraph.tinkerpop.steps.EstimateCountStep in project GraphScope by alibaba.
the class MaxGraphTraversalSource method estimateECount.
public GraphTraversal<Edge, Element> estimateECount(final String... labels) {
final GraphTraversalSource clone = this.clone();
clone.getBytecode().addStep(CustomSymbols.graph_source);
final GraphTraversal.Admin<Vertex, Vertex> traversal = new DefaultMaxGraphTraversal<>(clone);
return (DefaultMaxGraphTraversal) traversal.addStep(new EstimateCountStep<>(traversal, false, Sets.newHashSet(labels)));
}
use of com.alibaba.maxgraph.tinkerpop.steps.EstimateCountStep in project GraphScope by alibaba.
the class MaxGraphTraversalSource method estimateVCount.
public GraphTraversal<Vertex, Element> estimateVCount(final String... labels) {
final GraphTraversalSource clone = this.clone();
clone.getBytecode().addStep(CustomSymbols.graph_source);
final GraphTraversal.Admin<Vertex, Vertex> traversal = new DefaultMaxGraphTraversal<>(clone);
return (DefaultMaxGraphTraversal) traversal.addStep(new EstimateCountStep<>(traversal, true, Sets.newHashSet(labels)));
}
Aggregations