-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
style(store): translate Chinese comment to English #2614
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2614 +/- ##
============================================
- Coverage 47.12% 39.95% -7.18%
+ Complexity 583 532 -51
============================================
Files 718 729 +11
Lines 58441 59508 +1067
Branches 7492 7659 +167
============================================
- Hits 27543 23775 -3768
- Misses 28127 33221 +5094
+ Partials 2771 2512 -259 ☔ View full report in Codecov by Sentry. |
*/ | ||
@Slf4j | ||
public class HgThread2DB { | ||
|
||
/*正在进行和在排队的任务的总数*/ | ||
/* The total number of tasks in line and queuing*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/* The total number of tasks in line and queuing*/ | |
/* The total number of tasks in line and queuing */ |
* This version isstore Internal use.Write data to the partition, | ||
* Partitionid andkey.keycode must be consistent with the partition information of PD storage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* This version isstore Internal use.Write data to the partition, | |
* Partitionid andkey.keycode must be consistent with the partition information of PD storage. | |
* This version is store internal use. Write data to the partition, | |
* partitionid and key.keycode must be consistent with the partition information of PD storage. |
@@ -48,7 +48,7 @@ public HgStoreNodePartitionerImpl(PDClient pdClient, HgStoreNodeManager nodeMana | |||
} | |||
|
|||
/** | |||
* 查询分区信息,结果通过HgNodePartitionerBuilder返回 | |||
* Query Partition Information, the result is returned through HGNODEPARTITITITITINERBUILDER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Query Partition Information, the result is returned through HGNODEPARTITITITITINERBUILDER | |
* Query Partition Information, the result is returned through HgNodePartitionerBuilder |
@@ -141,7 +141,7 @@ public int partition(HgNodePartitionerBuilder builder, String graphName, | |||
} | |||
|
|||
/** | |||
* 查询hgstore信息 | |||
* Inquirehgstore information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Inquirehgstore information | |
* Inquire hgstore information |
@@ -692,7 +692,7 @@ public boolean doAction(String table, HgOwnerKey startKey, Integer code, | |||
} | |||
|
|||
private List<NodeTkv> toNodeTkvList(Builder scanReqBuilder) { | |||
// TODO 使用builder获取owner | |||
// Todo use builder to get Owner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Todo use builder to get Owner | |
// TODO: use builder to get owner |
@@ -170,7 +173,7 @@ public void add(Supplier<HgKvIterator<HgKvEntry>> supplier) { | |||
} | |||
|
|||
/** | |||
* 迭代器是否有效,如果没有数据,等待数据到达 | |||
* WHETHER the ITERATOR is value, if no data, wait for the data to arrive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* WHETHER the ITERATOR is value, if no data, wait for the data to arrive | |
* whether the iterator is valid, if no data, wait for the data to arrive |
@@ -221,18 +226,18 @@ private void moveNext() { | |||
} | |||
|
|||
/** | |||
* 对多个Scanner返回结果进行归并排序 | |||
* Multiplescanner return results for merger and sorting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Multiplescanner return results for merger and sorting | |
* Multiple scanner return results for merger and sorting |
@@ -153,7 +154,7 @@ public synchronized boolean init(final HgStoreEngineOptions opts) { | |||
} | |||
|
|||
/** | |||
* 创建raft rpc server,用于store之间通讯 | |||
* Createraft RPC Server, used for communication between store |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Createraft RPC Server, used for communication between store | |
* Create raft RPC Server, used for communication between store |
partitionManager.setStore(store); | ||
partitionManager.loadPartition(); | ||
restoreLocalPartitionEngine(); | ||
} | ||
} | ||
|
||
/** | ||
* 恢复本地的PartitionEngine,恢复PD返回的分区信息 | ||
* 1、需要检查本次保存的分区,删除作废的分区 | ||
* RESTORE LOCALPARTITITITINGINE, restore the partition information returned by PD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* RESTORE LOCALPARTITITITINGINE, restore the partition information returned by PD | |
* restore local PartitionEngine, restore the partition information returned by PD |
* | ||
* @param storeId 变更的store id | ||
* @param storeId changedstore id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param storeId changedstore id | |
* @param storeId changed store id |
Considering the large number of files, can be split into multiple PRs... Using a more effective translator and matching method... |
as title.