MCPcopy
hub / github.com/uber/aresdb / GetPathForTableArchiveBatchColumnFile

Function GetPathForTableArchiveBatchColumnFile

diskstore/diskstore_util.go:134–138  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
134func 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.
141func ParseBatchIDAndVersionName(batchIDAndVersion string) (string, uint32, uint32, error) {

Callers 5

DeleteColumnMethod · 0.85

Calls 2

JoinMethod · 0.65

Tested by

no test coverage detected