Search in sources :

Example 6 with SchemaJob

use of com.baidu.hugegraph.job.schema.SchemaJob in project incubator-hugegraph by apache.

the class SchemaTransaction method removeOlapPk.

public Id removeOlapPk(PropertyKey propertyKey) {
    LOG.debug("SchemaTransaction remove olap property key {} with id '{}'", propertyKey.name(), propertyKey.id());
    SchemaJob callable = new OlapPropertyKeyRemoveJob();
    return asyncRun(this.graph(), propertyKey, callable);
}
Also used : OlapPropertyKeyRemoveJob(com.baidu.hugegraph.job.schema.OlapPropertyKeyRemoveJob) SchemaJob(com.baidu.hugegraph.job.schema.SchemaJob)

Example 7 with SchemaJob

use of com.baidu.hugegraph.job.schema.SchemaJob in project incubator-hugegraph by apache.

the class SchemaTransaction method removeEdgeLabel.

@Watched(prefix = "schema")
public Id removeEdgeLabel(Id id) {
    LOG.debug("SchemaTransaction remove edge label '{}'", id);
    SchemaJob callable = new EdgeLabelRemoveJob();
    EdgeLabel schema = this.getEdgeLabel(id);
    return asyncRun(this.graph(), schema, callable);
}
Also used : EdgeLabelRemoveJob(com.baidu.hugegraph.job.schema.EdgeLabelRemoveJob) EdgeLabel(com.baidu.hugegraph.schema.EdgeLabel) SchemaJob(com.baidu.hugegraph.job.schema.SchemaJob) Watched(com.baidu.hugegraph.perf.PerfUtil.Watched)

Aggregations

SchemaJob (com.baidu.hugegraph.job.schema.SchemaJob)7 Watched (com.baidu.hugegraph.perf.PerfUtil.Watched)4 EdgeLabelRemoveJob (com.baidu.hugegraph.job.schema.EdgeLabelRemoveJob)1 IndexLabelRebuildJob (com.baidu.hugegraph.job.schema.IndexLabelRebuildJob)1 IndexLabelRemoveJob (com.baidu.hugegraph.job.schema.IndexLabelRemoveJob)1 OlapPropertyKeyClearJob (com.baidu.hugegraph.job.schema.OlapPropertyKeyClearJob)1 OlapPropertyKeyCreateJob (com.baidu.hugegraph.job.schema.OlapPropertyKeyCreateJob)1 OlapPropertyKeyRemoveJob (com.baidu.hugegraph.job.schema.OlapPropertyKeyRemoveJob)1 VertexLabelRemoveJob (com.baidu.hugegraph.job.schema.VertexLabelRemoveJob)1 EdgeLabel (com.baidu.hugegraph.schema.EdgeLabel)1 IndexLabel (com.baidu.hugegraph.schema.IndexLabel)1 VertexLabel (com.baidu.hugegraph.schema.VertexLabel)1