You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2016/02/26 16:49:18 UTC
[jira] [Created] (TINKERPOP-1180) Add more optimized binary
operators to Operator.
Marko A. Rodriguez created TINKERPOP-1180:
---------------------------------------------
Summary: Add more optimized binary operators to Operator.
Key: TINKERPOP-1180
URL: https://issues.apache.org/jira/browse/TINKERPOP-1180
Project: TinkerPop
Issue Type: Improvement
Components: process
Affects Versions: 3.1.1-incubating
Reporter: Marko A. Rodriguez
We currently have {{Operator}} enum which has nice operators like {{add}}, {{assign}}, {{sum}}, {{max}}, {{min}}, etc. The problem with lots of the number-based implementations is that they reason about the number format using {{NumberHelper}}. I think we should add {{sumLong}}, {{sumInteger}}, and the like to allow classes the leverage {{Operator}} to bypass number-type-reasoning when they know it will be a long, integer, etc.
This is important for {{GraphComputer.Memory}} where reducers are binary operators and we use {{Operator}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)