/** * Ensures that the vertex's table has the required columns. * If a columns needs to be created a lock will be obtained. * The vertex's schema and table must already exists. * The default "public" schema will be used. {@link SqlDialect#getPublicSchema()} * * @param label The vertex's label. * @param properties The properties to create if they do not exist. */ public void ensureVertexLabelPropertiesExist(String label, Map<String, PropertyType> properties) { ensureVertexLabelPropertiesExist(this.sqlgGraph.getSqlDialect().getPublicSchema(), label, properties); }
/** * Ensures that the vertex's table has the required columns. * If a columns needs to be created a lock will be obtained. * The vertex's schema and table must already exists. * The default "public" schema will be used. {@link SqlDialect#getPublicSchema()} * * @param label The vertex's label. * @param properties The properties to create if they do not exist. */ public void ensureVertexLabelPropertiesExist(String label, Map<String, PropertyType> properties) { ensureVertexLabelPropertiesExist(this.sqlgGraph.getSqlDialect().getPublicSchema(), label, properties); }
Map<String, PropertyType> columns = new HashMap<>(); columns.put("dummy", PropertyType.from(0)); sqlgGraph.getTopology().ensureVertexLabelPropertiesExist( schemaTable.getSchema(), schemaTable.getTable(),
properties.remove(options().identifierKey().get()); if (properties.isEmpty()) { graph().getTopology().ensureVertexLabelPropertiesExist(label, Collections.singletonMap("_flatten_dummy", PropertyType.from(0))); properties.putAll(graph().getTopology().getPropertiesFor(table)); properties.remove(options().identifierKey().get());
Map<String, PropertyType> columns = new HashMap<>(); columns.put(key, PropertyType.from(value)); this.sqlgGraph.getTopology().ensureVertexLabelPropertiesExist( this.schema, this.table,
Map<String, PropertyType> columns = new HashMap<>(); columns.put(key, PropertyType.from(value)); this.sqlgGraph.getTopology().ensureVertexLabelPropertiesExist( this.schema, this.table,
graph().getTopology().ensureVertexLabelPropertiesExist(file.getSchema(), file.withOutPrefix().getTable(), ImmutableMap.of(
graph().getTopology().ensureEdgeLabelExist(parent.withOutPrefix().getTable(), fileLabel, fileLabel, ImmutableMap.of()); graph().getTopology().ensureVertexLabelPropertiesExist(file.getSchema(), file.withOutPrefix().getTable(), ImmutableMap.of( Bdio.DataProperty.fileSystemType.name(), PropertyType.STRING, Bdio.DataProperty.byteCount.name(), PropertyType.LONG,