MCPcopy Create free account
hub / github.com/dgraph-io/dgraph4j / alter

Method alter

src/main/java/io/dgraph/DgraphClient.java:471–476  ·  view source on GitHub ↗

Alter can be used to perform the following operations, by setting the right fields in the protocol buffer Operation object. - Modify a schema. - Drop predicate. - Drop the database. @param op a protocol buffer Operation object representing the operation being performed.

(Operation op)

Source from the content-addressed store, hash-verified

469 * @param op a protocol buffer Operation object representing the operation being performed.
470 */
471 public void alter(Operation op) {
472 Exceptions.withExceptionUnwrapped(
473 () -> {
474 asyncClient.alter(op).join();
475 });
476 }
477
478 /**
479 * checkVersion can be used to find out the version of the Dgraph instance this client is

Callers 15

mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
createSchemaMethod · 0.45
dropAllMethod · 0.45
upsertBlockTestMethod · 0.45
upsertTimeoutTestMethod · 0.45
deleteEdgesTestMethod · 0.45

Calls 1

Tested by 15

upsertBlockTestMethod · 0.36
upsertTimeoutTestMethod · 0.36
deleteEdgesTestMethod · 0.36
testInsert3QuadsMethod · 0.36
beforeMethodMethod · 0.36
testTxnQueryVariablesMethod · 0.36
testTimeoutsMethod · 0.36