GetPathForTableArchiveBatchColumnFile is used to get the file path of a column inside an archive batch version given path prefix, table name, shard id, batch id, batch version and column id.
(prefix, table string, shardID int, batchID string, batchVersion uint32, seqNum uint32, columnID int)
| 132 | |
| 133 | // GetPathForTableArchiveBatchColumnFile is used to get the file path of a column inside an archive batch version given path prefix, table name, shard id, batch id, batch version and column id. |
| 134 | func GetPathForTableArchiveBatchColumnFile(prefix, table string, shardID int, batchID string, batchVersion uint32, seqNum uint32, columnID int) string { |
| 135 | tableArchiveBatchDir := GetPathForTableArchiveBatchDir(prefix, table, shardID, batchID, batchVersion, seqNum) |
| 136 | columnFileName := fmt.Sprintf("%d.data", columnID) |
| 137 | return filepath.Join(tableArchiveBatchDir, columnFileName) |
| 138 | } |
| 139 | |
| 140 | // ParseBatchIDAndVersionName will parse a batchIDAndVersion into batchID and batchVersion+seqNum. |
| 141 | func ParseBatchIDAndVersionName(batchIDAndVersion string) (string, uint32, uint32, error) { |
no test coverage detected