This is an automated email from the ASF dual-hosted git repository. vgalaxies pushed a commit to branch trans-hstore in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
commit 6e2fb42affe17261e89172345f79bc381830f659 Author: VGalaxies <[email protected]> AuthorDate: Sun Aug 4 23:12:51 2024 +0800 trans server-hstore --- .../apache/hugegraph/backend/store/hstore/HstoreStore.java | 14 +++++++------- .../apache/hugegraph/backend/store/hstore/HstoreTable.java | 10 +++++----- .../hugegraph/backend/store/hstore/HstoreTables.java | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/hugegraph-server/hugegraph-hstore/src/main/java/org/apache/hugegraph/backend/store/hstore/HstoreStore.java b/hugegraph-server/hugegraph-hstore/src/main/java/org/apache/hugegraph/backend/store/hstore/HstoreStore.java index 603ef3a93..954fe3507 100644 --- a/hugegraph-server/hugegraph-hstore/src/main/java/org/apache/hugegraph/backend/store/hstore/HstoreStore.java +++ b/hugegraph-server/hugegraph-hstore/src/main/java/org/apache/hugegraph/backend/store/hstore/HstoreStore.java @@ -396,8 +396,8 @@ public abstract class HstoreStore extends AbstractBackendStore<Session> { // for (ConditionQuery conditionQuery : // ConditionQueryFlatten.flatten(cq)) { // Id label = conditionQuery.condition(HugeKeys.LABEL); - // /* 父类型 + sortKeys: g.V("V.id").outE("parentLabel").has - // ("sortKey","value")转成 所有子类型 + sortKeys*/ + // /* Parent type + sortKeys: g.V("V.id").outE("parentLabel").has + // ("sortKey","value") converted to all subtypes + sortKeys */ // if ((this.subEls == null || // !this.subEls.hasNext()) && label != null && // hugeGraph.edgeLabel(label).isFather() && @@ -563,7 +563,7 @@ public abstract class HstoreStore extends AbstractBackendStore<Session> { if (this.isGraphStore && !olapPks.isEmpty()) { List<Iterator<BackendEntry>> iterators = new ArrayList<>(); for (Id pk : olapPks) { - // 构造olap表查询query condition + // Construct OLAP table query query condition Query q = this.constructOlapQueryCondition(pk, query); table = this.table(HugeType.OLAP); iterators.add(table.queryOlap(this.session(HugeType.OLAP), q)); @@ -575,10 +575,10 @@ public abstract class HstoreStore extends AbstractBackendStore<Session> { } /** - * 重新构造 查询olap表 query - * 由于 olap合并成一张表, 在写入olap数据, key在后面增加了pk - * 所以在此进行查询的时候,需要重新构造pk前缀 - * 写入参考 BinarySerializer.writeOlapVertex + * Reconstruct the query OLAP table query + * Due to the olap merged into one table, when writing olap data, the key has a pk added at the end. + * So when making inquiries here, it is necessary to reconstruct the pk prefix. + * Write reference BinarySerializer.writeOlapVertex * * @param pk * @param query diff --git a/hugegraph-server/hugegraph-hstore/src/main/java/org/apache/hugegraph/backend/store/hstore/HstoreTable.java b/hugegraph-server/hugegraph-hstore/src/main/java/org/apache/hugegraph/backend/store/hstore/HstoreTable.java index 894964aa4..428368d9f 100755 --- a/hugegraph-server/hugegraph-hstore/src/main/java/org/apache/hugegraph/backend/store/hstore/HstoreTable.java +++ b/hugegraph-server/hugegraph-hstore/src/main/java/org/apache/hugegraph/backend/store/hstore/HstoreTable.java @@ -190,7 +190,7 @@ public class HstoreTable extends BackendTable<Session, BackendEntry> { } public byte[] getInsertOwner(BackendEntry entry) { - // 为适应 label 索引散列,不聚焦在一个分区 + // To adapt label index hashing, do not focus on a single partition if (entry.type().isLabelIndex() && (entry.columns().size() == 1)) { Iterator<BackendColumn> iterator = entry.columns().iterator(); while (iterator.hasNext()) { @@ -204,7 +204,7 @@ public class HstoreTable extends BackendTable<Session, BackendEntry> { } /** - * 返回 Id 所属的点 ID + * Return the point ID belonging to the Id * * @param id * @return @@ -221,7 +221,7 @@ public class HstoreTable extends BackendTable<Session, BackendEntry> { } /** - * 返回 Id 所属的点 ID + * Return the point ID of the Id 所属的点 ID * * @param id * @return @@ -425,7 +425,7 @@ public class HstoreTable extends BackendTable<Session, BackendEntry> { // Query by id if (query.conditions().isEmpty()) { assert !query.ids().isEmpty(); - // 单个 id 查询 走 get 接口查询 + // Single id query uses the get interface to query if (query.ids().size() == 1) { return this.getById(session, query.ids().iterator().next()); } @@ -503,7 +503,7 @@ public class HstoreTable extends BackendTable<Session, BackendEntry> { byte[] ownerKeyTo = this.ownerByQueryDelegate.apply(query.resultType(), query.prefix()); byte[] keyFrom = query.start().asBytes(); - // 前缀分页查询中,start 为最初的位置。因为在不同的分区 都是从 start 位置开始查询 + // In the prefix pagination query, start is the initial position. Because in different partitions, the query starts from the start position. if (query.paging()) { keyFrom = query.prefix().asBytes(); } diff --git a/hugegraph-server/hugegraph-hstore/src/main/java/org/apache/hugegraph/backend/store/hstore/HstoreTables.java b/hugegraph-server/hugegraph-hstore/src/main/java/org/apache/hugegraph/backend/store/hstore/HstoreTables.java index 704204670..fe8c324f1 100644 --- a/hugegraph-server/hugegraph-hstore/src/main/java/org/apache/hugegraph/backend/store/hstore/HstoreTables.java +++ b/hugegraph-server/hugegraph-hstore/src/main/java/org/apache/hugegraph/backend/store/hstore/HstoreTables.java @@ -49,7 +49,7 @@ public class HstoreTables { } /** - * task信息存储表 + * task information storage table */ public static class TaskInfo extends HstoreTable { @@ -131,7 +131,7 @@ public class HstoreTables { } /** - * 主要用于 range类型的index处理 + * Mainly used for range-type index processing * * @param session * @param query @@ -199,7 +199,7 @@ public class HstoreTables { public static final String TABLE = HugeTableType.OLAP_TABLE.string(); public OlapTable(String database) { - // 由原先多个ap_{pk_id} 合并成一个ap表 + // Originally multiple ap_{pk_id} merged into one ap table super(database, TABLE); }
