2017-07-31 11:36:24 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2017 HugeGraph Authors
|
|
|
|
|
*
|
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with this
|
|
|
|
|
* work for additional information regarding copyright ownership. The ASF
|
|
|
|
|
* licenses this file to You under the Apache License, Version 2.0 (the
|
|
|
|
|
* "License"); you may not use this file except in compliance with the License.
|
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
|
*
|
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
|
* under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package com.baidu.hugegraph.version;
|
|
|
|
|
|
|
|
|
|
import com.baidu.hugegraph.util.VersionUtil;
|
|
|
|
|
import com.baidu.hugegraph.util.VersionUtil.Version;
|
|
|
|
|
|
|
|
|
|
public final class ApiVersion {
|
|
|
|
|
|
|
|
|
|
public static final String NAME = "hugegraph-api";
|
|
|
|
|
|
2017-07-31 21:26:38 +08:00
|
|
|
/**
|
2018-04-20 15:30:14 +08:00
|
|
|
* API Version change log
|
2017-07-31 21:26:38 +08:00
|
|
|
*
|
2018-04-20 15:30:14 +08:00
|
|
|
* version 0.2:
|
|
|
|
|
* [0.2] HugeGraph-527: First add the version to the hugegraph module
|
|
|
|
|
* [0.3] HugeGraph-525: Add versions check of components and api
|
|
|
|
|
* [0.4] HugeGraph-162: Add schema builder to seperate client and
|
|
|
|
|
* inner interface.
|
|
|
|
|
* [0.5] HugeGraph-498: Support three kind of id strategy
|
2017-07-31 21:26:38 +08:00
|
|
|
*
|
2018-04-20 15:30:14 +08:00
|
|
|
* version 0.3:
|
|
|
|
|
*
|
|
|
|
|
* [0.6] HugeGraph-614: Add update api of VL/EL to support append and
|
|
|
|
|
* eliminate action
|
|
|
|
|
* [0.7] HugeGraph-245: Add nullable-props for vertex label and edge label
|
|
|
|
|
* [0.8] HugeGraph-396: Continue to improve variables implementation
|
2018-03-12 16:50:13 +08:00
|
|
|
* [0.9] HugeGraph-894: Add vertex/edge update api to add property and
|
|
|
|
|
* remove property
|
2018-04-20 15:30:14 +08:00
|
|
|
* [0.10] HugeGraph-919: Add condition query for vertex/edge list API
|
|
|
|
|
*
|
|
|
|
|
* version 0.4:
|
|
|
|
|
* [0.11] HugeGraph-938: Remove useless indexnames field in VL/EL API
|
|
|
|
|
* [0.12] HugeGraph-589: Add schema id for all schema element
|
|
|
|
|
* [0.13] HugeGraph-956: Support customize string/number id strategy
|
|
|
|
|
*
|
|
|
|
|
* version 0.5:
|
|
|
|
|
* [0.14] HugeGraph-1085: Add enable_label_index to VL/EL
|
|
|
|
|
* [0.15] HugeGraph-1105: Support paging for large amounts of records
|
|
|
|
|
* [0.16] HugeGraph-944: Support rest shortest path, k-out, k-neighbor
|
|
|
|
|
* [0.17] HugeGraph-944: Support rest shortest path, k-out, k-neighbor
|
|
|
|
|
* [0.18] HugeGraph-81: Change argument "checkVertex" to "check_vertex"
|
|
|
|
|
*
|
|
|
|
|
* version 0.6:
|
|
|
|
|
* [0.19] HugeGraph-1195: Support eliminate userdata on schema
|
2018-03-12 16:50:13 +08:00
|
|
|
* [0.20] HugeGraph-1210: Add paths api to find paths between two nodes
|
2018-04-20 15:30:14 +08:00
|
|
|
* [0.21] HugeGraph-1197: Expose scan api for hugegraph-spark
|
2018-03-12 16:50:13 +08:00
|
|
|
* [0.22] HugeGraph-1162: Support authentication and permission control
|
2018-04-28 15:07:18 +08:00
|
|
|
* [0.23] HugeGraph-1176: Support degree and capacity for traverse api
|
2018-05-03 15:24:43 +08:00
|
|
|
* [0.24] HugeGraph-1261: Add param offset for vertex/edge list API
|
2018-05-15 18:07:02 +08:00
|
|
|
* [0.25] HugeGraph-1272: Support set/clear restore status of graph
|
2018-05-28 22:24:57 +08:00
|
|
|
* [0.26] HugeGraph-1273: Add some monitoring counters to integrate with
|
|
|
|
|
* gremlin's monitoring framework
|
2018-06-22 19:23:06 +08:00
|
|
|
* [0.27] HugeGraph-889: Use asynchronous mechanism to do schema deletion
|
2018-11-01 19:33:43 +08:00
|
|
|
*
|
|
|
|
|
* version 0.8:
|
|
|
|
|
* [0.28] Issue-153: Add task-cancel API
|
2018-08-30 19:52:32 +08:00
|
|
|
* [0.29] Issue-39: Add rays and rings RESTful API
|
2018-08-27 18:57:11 +08:00
|
|
|
* [0.30] Issue-32: Change index create API to return indexLabel and task id
|
2018-08-06 17:19:53 +08:00
|
|
|
* [0.31] Issue-182: Support restore graph in restoring and merging mode
|
2019-04-02 17:39:29 +08:00
|
|
|
*
|
|
|
|
|
* version 0.9:
|
2018-11-30 17:09:58 +08:00
|
|
|
* [0.32] Issue-250: Keep depth and degree consistent for traverser api
|
2019-03-11 17:58:36 +08:00
|
|
|
* [0.33] Issue-305: Implement customized paths and crosspoints RESTful API
|
2019-03-12 19:23:14 +08:00
|
|
|
* [0.34] Issue-307: Let VertexAPI use simplified property serializer
|
2019-03-27 16:22:34 +08:00
|
|
|
* [0.35] Issue-287: Support pagination when do index query
|
2019-04-02 17:39:29 +08:00
|
|
|
* [0.36] Issue-360: Support paging for scan api
|
2017-07-31 21:26:38 +08:00
|
|
|
*/
|
|
|
|
|
|
2017-07-31 11:36:24 +08:00
|
|
|
// The second parameter of Version.of() is for IDE running without JAR
|
2019-04-02 17:39:29 +08:00
|
|
|
public static final Version VERSION = Version.of(ApiVersion.class, "0.36");
|
2017-07-31 11:36:24 +08:00
|
|
|
|
|
|
|
|
public static final void check() {
|
2018-04-20 15:30:14 +08:00
|
|
|
// Check version of hugegraph-core. Firstly do check from version 0.3
|
2018-12-12 18:23:15 +08:00
|
|
|
VersionUtil.check(CoreVersion.VERSION, "0.9", "0.10", CoreVersion.NAME);
|
2017-07-31 11:36:24 +08:00
|
|
|
}
|
|
|
|
|
}
|