Search in sources :

Example 1 with Checkable

use of com.baidu.hugegraph.define.Checkable in project incubator-hugegraph by apache.

the class API method checkUpdatingBody.

protected static void checkUpdatingBody(Collection<? extends Checkable> bodies) {
    E.checkArgumentNotNull(bodies, "The request body can't be empty");
    for (Checkable body : bodies) {
        E.checkArgumentNotNull(body, "The batch body can't contain null record");
        body.checkUpdate();
    }
}
Also used : Checkable(com.baidu.hugegraph.define.Checkable)

Example 2 with Checkable

use of com.baidu.hugegraph.define.Checkable in project incubator-hugegraph by apache.

the class API method checkCreatingBody.

protected static void checkCreatingBody(Collection<? extends Checkable> bodies) {
    E.checkArgumentNotNull(bodies, "The request body can't be empty");
    for (Checkable body : bodies) {
        E.checkArgument(body != null, "The batch body can't contain null record");
        body.checkCreate(true);
    }
}
Also used : Checkable(com.baidu.hugegraph.define.Checkable)

Aggregations

Checkable (com.baidu.hugegraph.define.Checkable)2