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/03 23:34:40 UTC
[jira] [Created] (TINKERPOP-1122) StarGraph has a Long nextId. That
is pointless and a waste of 64-bits.
Marko A. Rodriguez created TINKERPOP-1122:
---------------------------------------------
Summary: StarGraph has a Long nextId. That is pointless and a waste of 64-bits.
Key: TINKERPOP-1122
URL: https://issues.apache.org/jira/browse/TINKERPOP-1122
Project: TinkerPop
Issue Type: Improvement
Components: hadoop, io, structure
Affects Versions: 3.1.1-incubating
Reporter: Marko A. Rodriguez
Fix For: 3.2.0-incubating
{code}
protected Long nextId = 0l;
private Long nextId() {
return this.nextId++;
}
{code}
This makes no sense as then each StarGraph in the full Graph will have similar ids! Moreover, what is referencing what when the adjacent vertices are just arbitrary long ids?!! We should require that StarGraph get provided ids for vertices (and perhaps edges)... We ensure no inconsistencies and we save 64-bits.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)