incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

基于表达式排序实现提问

Open zhang374723384 opened this issue 8 years ago • 2 comments

g.V().order().by(map{it.get().value("total_loan_cnt")*6+it.get().value("max_overdue_day_cnt")},decr) 像这样by里面写表达式进行排序使用java如何实现啊,请教

zhang374723384 avatar Nov 13 '18 09:11 zhang374723384

@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);

javeme avatar Nov 14 '18 03:11 javeme

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

github-actions[bot] avatar Jan 23 '22 21:01 github-actions[bot]