Search in sources :

Example 1 with SchemaConflict

use of com.baidu.hugegraph.entity.schema.SchemaConflict in project incubator-hugegraph-toolchain by apache.

the class SchemaService method compareWithEachOther.

public static <T extends SchemaEntity> void compareWithEachOther(ConflictDetail detail, SchemaType type) {
    List<SchemaConflict<T>> conflicts = detail.getConflicts(type);
    for (int i = 0; i < conflicts.size(); i++) {
        SchemaConflict<T> conflict = conflicts.get(i);
        if (conflict.getStatus().isConflicted()) {
            continue;
        }
        ConflictStatus status = compareWithOthers(i, conflicts);
        conflict.setStatus(status);
    }
}
Also used : ConflictStatus(com.baidu.hugegraph.entity.schema.ConflictStatus) SchemaConflict(com.baidu.hugegraph.entity.schema.SchemaConflict)

Aggregations

ConflictStatus (com.baidu.hugegraph.entity.schema.ConflictStatus)1 SchemaConflict (com.baidu.hugegraph.entity.schema.SchemaConflict)1