# Kv Mapping Continues...

+ Clustering refers to a physical storage method that stores all rows with the same cluster key value in the same location based on a column. The cluster structure where only one table is created in the specified cluster is called a single-table cluster
+ Mapping rules for non-clustered table KV
+ Value stores real row data in KV storage
+ Mapping rules for clustered table KV

```
Key:   tablePrefix { TableID }_recordPrefixSep{ _Tidb_RowID }
Value: [col1, col2, col3, col4]
Key:   tablePrefix{ TableID }_recordPrefixSep{ Col1 }
Value: [col2, col3, col4]
```

------------------------------------------------------------
Mapping rules for non-clustered table KV
  - Value stores real row data in KV storage
Key: tablePrefix {tableId} _RecordPrefixSep {_tidb_rowID}
Value: [col1, col2, col3, col4]

Mapping rules for clustered table KV 
  - Assume Column_1 is Cluster Index
Key: TablePrefix {tableId} _RecordPrefixSep {Col1}
Value: [col2, col3, col4]


Clustering refers to a physical storage method that stores all rows with the same cluster key value in the same location based on a column. The cluster structure where only one table is created in the specified cluster is called a single-table cluster
