Skip to content

Commit b1ec887

Browse files
authored
Fixed links in proj1-part2-README-zh_CN.md (talent-plan#34)
1 parent deb2e18 commit b1ec887

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

courses/proj1-part2-README-zh_CN.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@
5454

5555
## 理解代码
5656

57-
tablecodec 的主要代码位于 [tablecodec.go](https://github.com/pingcap-incubator/tinysql/blob/table-codec/tablecodec/tablecodec.go),这次我们需要关注的代码主要从 [L32](https://github.com/pingcap-incubator/tinysql/blob/table-codec/tablecodec/tablecodec.go#L32)[L146](https://github.com/pingcap-incubator/tinysql/blob/table-codec/tablecodec/tablecodec.go#L146) 之间。
57+
tablecodec 的主要代码位于 [tablecodec.go](https://github.com/pingcap-incubator/tinysql/blob/course/tablecodec/tablecodec.go),这次我们需要关注的代码主要从 [L33L147](https://github.com/pingcap-incubator/tinysql/blob/course/tablecodec/tablecodec.go#L33-L146) 之间。
5858

5959
代码一开始,定义了上文提到的三个常量:tablePrefix,recordPrefixSep 和 indexPrefixSep。
6060

61-
接下来可以看到 [EncodeRowKeyWithHandle](https://github.com/pingcap-incubator/tinysql/blob/table-codec/tablecodec/tablecodec.go#L64)[EncodeIndexSeekKey](https://github.com/pingcap-incubator/tinysql/blob/table-codec/tablecodec/tablecodec.go#L86) 分别实现了上述所说的行数据和索引数据的编码。
61+
接下来可以看到 [EncodeRowKeyWithHandle](https://github.com/pingcap-incubator/tinysql/blob/course/tablecodec/tablecodec.go#L64)[EncodeIndexSeekKey](https://github.com/pingcap-incubator/tinysql/blob/course/tablecodec/tablecodec.go#L86) 分别实现了上述所说的行数据和索引数据的编码。
6262

6363
## 作业描述
6464

65-
根据上述 [EncodeRowKeyWithHandle](https://github.com/pingcap-incubator/tinysql/blob/table-codec/tablecodec/tablecodec.go#L64)[EncodeIndexSeekKey](https://github.com/pingcap-incubator/tinysql/blob/table-codec/tablecodec/tablecodec.go#L86),实现 [DecodeRecordKey](https://github.com/pingcap-incubator/tinysql/blob/table-codec/tablecodec/tablecodec.go#L72)[DecodeIndexKeyPrefix](https://github.com/pingcap-incubator/tinysql/blob/table-codec/tablecodec/tablecodec.go#L95),注意由于参数 `key` 可能是不合法的,需要考虑错误处理。
65+
根据上述 [EncodeRowKeyWithHandle](https://github.com/pingcap-incubator/tinysql/blob/course/tablecodec/tablecodec.go#L64)[EncodeIndexSeekKey](https://github.com/pingcap-incubator/tinysql/blob/course/tablecodec/tablecodec.go#L86),实现 [DecodeRecordKey](https://github.com/pingcap-incubator/tinysql/blob/course/tablecodec/tablecodec.go#L72)[DecodeIndexKeyPrefix](https://github.com/pingcap-incubator/tinysql/blob/course/tablecodec/tablecodec.go#L95),注意由于参数 `key` 可能是不合法的,需要考虑错误处理。
6666

6767
## 测试
6868

69-
通过 [tablecodec](https://github.com/pingcap-incubator/tinysql/blob/table-codec/tablecodec) 下所有测试。
69+
通过 [tablecodec](https://github.com/pingcap-incubator/tinysql/blob/course/tablecodec) 下所有测试。
7070

7171
## 评分
7272

0 commit comments

Comments
 (0)