Add system schema store (#1891)
authorzyxxoo <1318247699@qq.com>
Thu, 2 Jun 2022 08:42:46 +0000 (16:42 +0800)
committerGitHub <noreply@github.com>
Thu, 2 Jun 2022 08:42:46 +0000 (16:42 +0800)
commit2af01bc92ddfd69e654889b9f6e69a729d4f3043
treead4ce6a7464f9d992c3a61e136f89983e3381070
parentb9266b2f238383538f391c29586ff272bbe731f0
Add system schema store (#1891)

* Add meta table into system store
* Add system schema store
* Add test case for read version
* Let AbstractBackendStore impl default storedVersion()
* fix small bug og HugeProject
* add test for SystemSchemaStore
* fix initStore schema missed

Change-Id: I5c9d65c4ae022cb84592e8f2aa57bd7485cd12e4
Co-authored-by: liningrui <liningrui@baidu.com>
54 files changed:
hugegraph-api/src/main/java/com/baidu/hugegraph/auth/HugeGraphAuthProxy.java
hugegraph-api/src/main/java/com/baidu/hugegraph/core/GraphManager.java
hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraMetrics.java
hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraStore.java
hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraStoreProvider.java
hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraTables.java
hugegraph-core/src/main/java/com/baidu/hugegraph/HugeGraph.java
hugegraph-core/src/main/java/com/baidu/hugegraph/HugeGraphParams.java
hugegraph-core/src/main/java/com/baidu/hugegraph/StandardHugeGraph.java
hugegraph-core/src/main/java/com/baidu/hugegraph/auth/AuthManager.java
hugegraph-core/src/main/java/com/baidu/hugegraph/auth/HugeProject.java
hugegraph-core/src/main/java/com/baidu/hugegraph/auth/StandardAuthManager.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/cache/CachedBackendStore.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/AbstractBackendStore.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/AbstractBackendStoreProvider.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/BackendStore.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/BackendStoreInfo.java [new file with mode: 0644]
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/BackendStoreProvider.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/BackendStoreSystemInfo.java [deleted file]
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/SystemSchemaStore.java [new file with mode: 0644]
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/memory/InMemoryDBStore.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/memory/InMemoryDBStoreProvider.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/RaftBackendStore.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/RaftBackendStoreProvider.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/raft/RaftContext.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/tx/GraphTransaction.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/tx/SchemaTransaction.java
hugegraph-core/src/main/java/com/baidu/hugegraph/config/CoreOptions.java
hugegraph-core/src/main/java/com/baidu/hugegraph/schema/VertexLabel.java
hugegraph-core/src/main/java/com/baidu/hugegraph/task/ServerInfoManager.java
hugegraph-core/src/main/java/com/baidu/hugegraph/task/StandardTaskScheduler.java
hugegraph-core/src/main/java/com/baidu/hugegraph/task/TaskScheduler.java
hugegraph-core/src/main/java/com/baidu/hugegraph/type/HugeType.java
hugegraph-core/src/main/java/com/baidu/hugegraph/type/define/HugeKeys.java
hugegraph-dist/src/main/java/com/baidu/hugegraph/cmd/InitStore.java
hugegraph-hbase/src/main/java/com/baidu/hugegraph/backend/store/hbase/HbaseStore.java
hugegraph-hbase/src/main/java/com/baidu/hugegraph/backend/store/hbase/HbaseStoreProvider.java
hugegraph-hbase/src/main/java/com/baidu/hugegraph/backend/store/hbase/HbaseTables.java
hugegraph-mysql/src/main/java/com/baidu/hugegraph/backend/store/mysql/MysqlStore.java
hugegraph-mysql/src/main/java/com/baidu/hugegraph/backend/store/mysql/MysqlStoreProvider.java
hugegraph-mysql/src/main/java/com/baidu/hugegraph/backend/store/mysql/MysqlTables.java
hugegraph-palo/src/main/java/com/baidu/hugegraph/backend/store/palo/PaloStoreProvider.java
hugegraph-postgresql/src/main/java/com/baidu/hugegraph/backend/store/postgresql/PostgresqlStoreProvider.java
hugegraph-postgresql/src/main/java/com/baidu/hugegraph/backend/store/postgresql/PostgresqlTables.java
hugegraph-rocksdb/src/main/java/com/baidu/hugegraph/backend/store/rocksdb/RocksDBStore.java
hugegraph-rocksdb/src/main/java/com/baidu/hugegraph/backend/store/rocksdb/RocksDBStoreProvider.java
hugegraph-rocksdb/src/main/java/com/baidu/hugegraph/backend/store/rocksdb/RocksDBTables.java
hugegraph-scylladb/src/main/java/com/baidu/hugegraph/backend/store/scylladb/ScyllaDBStoreProvider.java
hugegraph-test/src/main/java/com/baidu/hugegraph/api/EdgeApiTest.java
hugegraph-test/src/main/java/com/baidu/hugegraph/core/MultiGraphsTest.java
hugegraph-test/src/main/java/com/baidu/hugegraph/tinkerpop/TestGraph.java
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/UnitTestSuite.java
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/core/BackendStoreInfoTest.java [new file with mode: 0644]
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/core/SystemSchemaStoreTest.java [moved from hugegraph-test/src/main/java/com/baidu/hugegraph/unit/core/BackendStoreSystemInfoTest.java with 51% similarity]