incubator-hugegraph
incubator-hugegraph copied to clipboard
基于表达式排序实现提问
g.V().order().by(map{it.get().value("total_loan_cnt")*6+it.get().value("max_overdue_day_cnt")},decr) 像这样by里面写表达式进行排序使用java如何实现啊,请教
@zhang374723384 上述gremlin语句等价的java实现:
g.V().order().by(__.<Vertex, Long>map(it->it.get().<Long>value("total_loan_cnt")*6+it.get().<Long>value("max_overdue_day_cnt")),Order.decr);
Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label