use of com.baidu.hugegraph.job.schema.SchemaJob in project incubator-hugegraph by apache.
the class SchemaTransaction method createOlapPk.
public Id createOlapPk(PropertyKey propertyKey) {
LOG.debug("SchemaTransaction create olap property key {} with id '{}'", propertyKey.name(), propertyKey.id());
SchemaJob callable = new OlapPropertyKeyCreateJob();
return asyncRun(this.graph(), propertyKey, callable);
}
use of com.baidu.hugegraph.job.schema.SchemaJob in project incubator-hugegraph by apache.
the class SchemaTransaction method removeVertexLabel.
@Watched(prefix = "schema")
public Id removeVertexLabel(Id id) {
LOG.debug("SchemaTransaction remove vertex label '{}'", id);
SchemaJob callable = new VertexLabelRemoveJob();
VertexLabel schema = this.getVertexLabel(id);
return asyncRun(this.graph(), schema, callable);
}
use of com.baidu.hugegraph.job.schema.SchemaJob in project incubator-hugegraph by apache.
the class SchemaTransaction method clearOlapPk.
public Id clearOlapPk(PropertyKey propertyKey) {
LOG.debug("SchemaTransaction clear olap property key {} with id '{}'", propertyKey.name(), propertyKey.id());
SchemaJob callable = new OlapPropertyKeyClearJob();
return asyncRun(this.graph(), propertyKey, callable);
}
use of com.baidu.hugegraph.job.schema.SchemaJob in project incubator-hugegraph by apache.
the class SchemaTransaction method rebuildIndex.
@Watched(prefix = "schema")
public Id rebuildIndex(SchemaElement schema, Set<Id> dependencies) {
LOG.debug("SchemaTransaction rebuild index for {} with id '{}'", schema.type(), schema.id());
SchemaJob callable = new IndexLabelRebuildJob();
return asyncRun(this.graph(), schema, callable, dependencies);
}
use of com.baidu.hugegraph.job.schema.SchemaJob in project incubator-hugegraph by apache.
the class SchemaTransaction method removeIndexLabel.
@Watched(prefix = "schema")
public Id removeIndexLabel(Id id) {
LOG.debug("SchemaTransaction remove index label '{}'", id);
SchemaJob callable = new IndexLabelRemoveJob();
IndexLabel schema = this.getIndexLabel(id);
return asyncRun(this.graph(), schema, callable);
}
Aggregations