有多种运算符可以和sack一起使用。它们定义在TinkerPop Java枚举类Operator中。我们可以使用的这样的运算符有min,max这两个。下面的例了是找出从SAF出的所有中径的距离,在每个情况下,返最小的距离或者400,400就是在查询开始时初始化sack的值。
There are many different operators that can be used with sacks. They are defined as part of the
TinkerPop Java Enum called Operator. Two such operators that we can use are min and max. The
example below looks at the distances of all routes that start at SAF and in each case returns the
minimum of the distance or 400 which is assigned to the sack at the start of the query.
在类似的情况中,这个查询是出来最大的实际距离或者是400.
In a similar vein, this query picks the maximum of the actual distance or 400.
浙公网安备 33010602011771号