Search in sources :

Example 1 with SchemaJob

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);
}
Also used : OlapPropertyKeyCreateJob(com.baidu.hugegraph.job.schema.OlapPropertyKeyCreateJob) SchemaJob(com.baidu.hugegraph.job.schema.SchemaJob)

Example 2 with SchemaJob

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);
}
Also used : VertexLabel(com.baidu.hugegraph.schema.VertexLabel) VertexLabelRemoveJob(com.baidu.hugegraph.job.schema.VertexLabelRemoveJob) SchemaJob(com.baidu.hugegraph.job.schema.SchemaJob) Watched(com.baidu.hugegraph.perf.PerfUtil.Watched)

Example 3 with SchemaJob

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);
}
Also used : OlapPropertyKeyClearJob(com.baidu.hugegraph.job.schema.OlapPropertyKeyClearJob) SchemaJob(com.baidu.hugegraph.job.schema.SchemaJob)

Example 4 with SchemaJob

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);
}
Also used : IndexLabelRebuildJob(com.baidu.hugegraph.job.schema.IndexLabelRebuildJob) SchemaJob(com.baidu.hugegraph.job.schema.SchemaJob) Watched(com.baidu.hugegraph.perf.PerfUtil.Watched)

Example 5 with SchemaJob

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);
}
Also used : IndexLabel(com.baidu.hugegraph.schema.IndexLabel) IndexLabelRemoveJob(com.baidu.hugegraph.job.schema.IndexLabelRemoveJob) 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