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

Function GetPathForTableArchiveBatchRootDir

diskstore/diskstore_util.go:115–118  ·  view source on GitHub ↗

Archive batches Utils Path on disk: {root_path}/data/{table_name}_{shard_id}/archiving_batches/{batch_id}_{batch_version} {root_path}/data/{table_name}_{shard_id}/archiving_batches/{batch_id}_{batch_version}/{columnID}.data Note: batch_id is UTC date batch_version is the cutoff seconds in unix tim

(prefix, table string, shardID int)

Source from the content-addressed store, hash-verified

113
114// GetPathForTableArchiveBatchRootDir is used to get root directory path for archive batch given path prefix, table name and shard id.
115func GetPathForTableArchiveBatchRootDir(prefix, table string, shardID int) string {
116 tableShardPath := getPathForTableShard(prefix, table, shardID)
117 return filepath.Join(tableShardPath, archiveBatches)
118}
119
120// GetPathForTableArchiveBatchDir is used to get the dir path of an archive batch version given path prefix, table name, shard id, batch id and batch version.
121func GetPathForTableArchiveBatchDir(prefix, table string, shardID int, batchID string, batchVersion uint32, seqNum uint32) string {

Callers 5

DeleteBatchVersionsMethod · 0.85
DeleteBatchesMethod · 0.85
DeleteColumnMethod · 0.85

Calls 2

getPathForTableShardFunction · 0.85
JoinMethod · 0.65

Tested by

no test coverage detected