/** * Ensures that the edge's table has the required columns. * The default schema is assumed. @see {@link SqlDialect#getPublicSchema()} * If a columns needs to be created a lock will be obtained. * The edge's schema and table must already exists. * * @param label The edge's label. * @param properties The properties to create if they do not exist. */ public void ensureEdgePropertiesExist(String label, Map<String, PropertyType> properties) { ensureEdgePropertiesExist(this.sqlgGraph.getSqlDialect().getPublicSchema(), label, properties); }
/** * Ensures that the edge's table has the required columns. * The default schema is assumed. @see {@link SqlDialect#getPublicSchema()} * If a columns needs to be created a lock will be obtained. * The edge's schema and table must already exists. * * @param label The edge's label. * @param properties The properties to create if they do not exist. */ public void ensureEdgePropertiesExist(String label, Map<String, PropertyType> properties) { ensureEdgePropertiesExist(this.sqlgGraph.getSqlDialect().getPublicSchema(), label, properties); }
Map<String, PropertyType> columns = new HashMap<>(); columns.put(key, PropertyType.from(value)); this.sqlgGraph.getTopology().ensureEdgePropertiesExist( this.schema, this.table,
Map<String, PropertyType> columns = new HashMap<>(); columns.put(key, PropertyType.from(value)); this.sqlgGraph.getTopology().ensureEdgePropertiesExist( this.schema, this.table,