static EdgeLabel loadFromDb(Topology topology, String edgeLabelName) { return new EdgeLabel(topology, edgeLabelName); }
static EdgeLabel loadFromDb(Topology topology, String edgeLabelName) { return new EdgeLabel(topology, edgeLabelName); }
static EdgeLabel loadFromDb(Topology topology, String edgeLabelName, PartitionType partitionType, String partitionExpression) { return new EdgeLabel(topology, edgeLabelName, partitionType, partitionExpression); }
static EdgeLabel loadFromDb(Topology topology, String edgeLabelName, PartitionType partitionType, String partitionExpression) { return new EdgeLabel(topology, edgeLabelName, partitionType, partitionExpression); }
static EdgeLabel loadSqlgSchemaEdgeLabel( String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyType> properties) { //edges are created in the out vertex's schema. return new EdgeLabel(true, edgeLabelName, outVertexLabel, inVertexLabel, properties, new ListOrderedSet<>()); }
static EdgeLabel loadSqlgSchemaEdgeLabel( String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyType> properties) { //edges are created in the out vertex's schema. return new EdgeLabel(true, edgeLabelName, outVertexLabel, inVertexLabel, properties, new ListOrderedSet<>()); }
static EdgeLabel createPartitionedEdgeLabel( final String edgeLabelName, final VertexLabel outVertexLabel, final VertexLabel inVertexLabel, final Map<String, PropertyType> properties, final ListOrderedSet<String> identifiers, final PartitionType partitionType, final String partitionExpression) { Preconditions.checkState(!inVertexLabel.getSchema().isSqlgSchema(), "You may not create an edge to %s", Topology.SQLG_SCHEMA); //edges are created in the out vertex's schema. EdgeLabel edgeLabel = new EdgeLabel( false, edgeLabelName, outVertexLabel, inVertexLabel, properties, identifiers, partitionType, partitionExpression); edgeLabel.createEdgeTableOnDb(outVertexLabel, inVertexLabel, properties, identifiers); edgeLabel.committed = false; return edgeLabel; }
static EdgeLabel createPartitionedEdgeLabel( final String edgeLabelName, final VertexLabel outVertexLabel, final VertexLabel inVertexLabel, final Map<String, PropertyType> properties, final ListOrderedSet<String> identifiers, final PartitionType partitionType, final String partitionExpression) { Preconditions.checkState(!inVertexLabel.getSchema().isSqlgSchema(), "You may not create an edge to %s", Topology.SQLG_SCHEMA); //edges are created in the out vertex's schema. EdgeLabel edgeLabel = new EdgeLabel( false, edgeLabelName, outVertexLabel, inVertexLabel, properties, identifiers, partitionType, partitionExpression); edgeLabel.createEdgeTableOnDb(outVertexLabel, inVertexLabel, properties, identifiers); edgeLabel.committed = false; return edgeLabel; }
static EdgeLabel createEdgeLabel( String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyType> properties, ListOrderedSet<String> identifiers) { Preconditions.checkState(!inVertexLabel.getSchema().isSqlgSchema(), "You may not create an edge to %s", Topology.SQLG_SCHEMA); //edges are created in the out vertex's schema. EdgeLabel edgeLabel = new EdgeLabel(false, edgeLabelName, outVertexLabel, inVertexLabel, properties, identifiers); edgeLabel.createEdgeTableOnDb(outVertexLabel, inVertexLabel, properties, identifiers); edgeLabel.committed = false; return edgeLabel; }
static EdgeLabel createEdgeLabel( String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyType> properties, ListOrderedSet<String> identifiers) { Preconditions.checkState(!inVertexLabel.getSchema().isSqlgSchema(), "You may not create an edge to %s", Topology.SQLG_SCHEMA); //edges are created in the out vertex's schema. EdgeLabel edgeLabel = new EdgeLabel(false, edgeLabelName, outVertexLabel, inVertexLabel, properties, identifiers); edgeLabel.createEdgeTableOnDb(outVertexLabel, inVertexLabel, properties, identifiers); edgeLabel.committed = false; return edgeLabel; }
PartitionType partitionType = PartitionType.valueOf(uncommittedOutEdgeLabel.get("partitionType").asText()); if (partitionType.isNone()) { edgeLabel = new EdgeLabel(this.getSchema().getTopology(), edgeLabelName); } else { String partitionExpression = uncommittedOutEdgeLabel.get("partitionExpression").asText(); edgeLabel = new EdgeLabel(this.getSchema().getTopology(), edgeLabelName, partitionType, partitionExpression);
PartitionType partitionType = PartitionType.valueOf(uncommittedOutEdgeLabel.get("partitionType").asText()); if (partitionType.isNone()) { edgeLabel = new EdgeLabel(this.getSchema().getTopology(), edgeLabelName); } else { String partitionExpression = uncommittedOutEdgeLabel.get("partitionExpression").asText(); edgeLabel = new EdgeLabel(this.getSchema().getTopology(), edgeLabelName, partitionType, partitionExpression);