support olap writeback for cassandra and rocksdb (#1506)
authorzhoney <zhangyi89817@126.com>
Thu, 22 Jul 2021 15:53:49 +0000 (23:53 +0800)
committerGitHub <noreply@github.com>
Thu, 22 Jul 2021 15:53:49 +0000 (23:53 +0800)
commitef37b3ac96b1fc8e82bca487b074abf79bba846d
tree920b987b106e0c07425e296484ed038d02c06d7e
parent379859a44102a76cf5f815fcec70e9186c86e962
support olap writeback for cassandra and rocksdb (#1506)

* support olap writeback for cassandra and rocksdb
* add olap property key tests
* clear vertex cache when olap pk changed
* support config data disk for olap pk when using rocksdb backend
* rename read frequency to write type

Change-Id: I947c3a96eb7aa67ee9eff5f7fb248e9f4539e91b
75 files changed:
hugegraph-api/pom.xml
hugegraph-api/src/main/java/com/baidu/hugegraph/api/API.java
hugegraph-api/src/main/java/com/baidu/hugegraph/api/graph/VertexAPI.java
hugegraph-api/src/main/java/com/baidu/hugegraph/api/profile/GraphsAPI.java
hugegraph-api/src/main/java/com/baidu/hugegraph/api/schema/IndexLabelAPI.java
hugegraph-api/src/main/java/com/baidu/hugegraph/api/schema/PropertyKeyAPI.java
hugegraph-api/src/main/java/com/baidu/hugegraph/auth/HugeGraphAuthProxy.java
hugegraph-api/src/main/java/com/baidu/hugegraph/serializer/JsonSerializer.java
hugegraph-api/src/main/java/com/baidu/hugegraph/serializer/Serializer.java
hugegraph-api/src/main/java/com/baidu/hugegraph/version/ApiVersion.java
hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraFeatures.java
hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraSerializer.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/CassandraTable.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/StandardHugeGraph.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/query/ConditionQuery.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/query/IdQuery.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/query/Query.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/serializer/BinaryBackendEntry.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/serializer/BinarySerializer.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/serializer/GraphSerializer.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/serializer/MergeIterator.java [new file with mode: 0644]
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/serializer/TableBackendEntry.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/serializer/TableSerializer.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/serializer/TextBackendEntry.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/serializer/TextSerializer.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/AbstractBackendStoreProvider.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/BackendEntry.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/BackendStore.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/BackendStoreProvider.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/tx/AbstractTransaction.java
hugegraph-core/src/main/java/com/baidu/hugegraph/backend/tx/GraphIndexTransaction.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/io/GraphSONSchemaSerializer.java
hugegraph-core/src/main/java/com/baidu/hugegraph/job/schema/EdgeLabelRemoveCallable.java
hugegraph-core/src/main/java/com/baidu/hugegraph/job/schema/IndexLabelRemoveCallable.java
hugegraph-core/src/main/java/com/baidu/hugegraph/job/schema/OlapPropertyKeyClearCallable.java [new file with mode: 0644]
hugegraph-core/src/main/java/com/baidu/hugegraph/job/schema/OlapPropertyKeyCreateCallable.java [new file with mode: 0644]
hugegraph-core/src/main/java/com/baidu/hugegraph/job/schema/OlapPropertyKeyRemoveCallable.java [new file with mode: 0644]
hugegraph-core/src/main/java/com/baidu/hugegraph/job/schema/RebuildIndexCallable.java
hugegraph-core/src/main/java/com/baidu/hugegraph/job/schema/SchemaCallable.java
hugegraph-core/src/main/java/com/baidu/hugegraph/job/schema/VertexLabelRemoveCallable.java
hugegraph-core/src/main/java/com/baidu/hugegraph/schema/IndexLabel.java
hugegraph-core/src/main/java/com/baidu/hugegraph/schema/PropertyKey.java
hugegraph-core/src/main/java/com/baidu/hugegraph/schema/SchemaElement.java
hugegraph-core/src/main/java/com/baidu/hugegraph/schema/VertexLabel.java
hugegraph-core/src/main/java/com/baidu/hugegraph/schema/builder/IndexLabelBuilder.java
hugegraph-core/src/main/java/com/baidu/hugegraph/schema/builder/PropertyKeyBuilder.java
hugegraph-core/src/main/java/com/baidu/hugegraph/structure/HugeVertex.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-core/src/main/java/com/baidu/hugegraph/type/define/SchemaStatus.java
hugegraph-core/src/main/java/com/baidu/hugegraph/type/define/WriteType.java [moved from hugegraph-core/src/main/java/com/baidu/hugegraph/type/define/ReadFrequency.java with 66% similarity]
hugegraph-core/src/main/java/com/baidu/hugegraph/util/LockUtil.java
hugegraph-mysql/src/main/java/com/baidu/hugegraph/backend/store/mysql/MysqlSerializer.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-rocksdb/src/main/java/com/baidu/hugegraph/backend/store/rocksdb/RocksDBFeatures.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/RocksDBTable.java
hugegraph-rocksdb/src/main/java/com/baidu/hugegraph/backend/store/rocksdb/RocksDBTables.java
hugegraph-test/src/main/java/com/baidu/hugegraph/api/PropertyKeyApiTest.java
hugegraph-test/src/main/java/com/baidu/hugegraph/core/EdgeCoreTest.java
hugegraph-test/src/main/java/com/baidu/hugegraph/core/IndexLabelCoreTest.java
hugegraph-test/src/main/java/com/baidu/hugegraph/core/PropertyKeyCoreTest.java
hugegraph-test/src/main/java/com/baidu/hugegraph/core/VertexCoreTest.java
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/core/QueryTest.java
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/util/JsonUtilTest.java