mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 07:11:02 +00:00
* Clean up dax service interfaces
Rename some of the `computer` interfaces and organize them in the
appropriate files.
Remove `dax/computer/alpha` package
* Remove ComputeAPI (it was replaced by batch.Importer)
* add nss-tools dependecy to smoke test
(cherry picked from commit 969bf055b2)
24 lines
504 B
Go
24 lines
504 B
Go
package computer
|
|
|
|
import (
|
|
"fmt"
|
|
"path"
|
|
|
|
"github.com/molecula/featurebase/v3/dax"
|
|
)
|
|
|
|
const (
|
|
keysFileName = "keys"
|
|
)
|
|
|
|
func partitionBucket(table dax.TableKey, partition dax.PartitionNum) string {
|
|
return path.Join(string(table), "partition", fmt.Sprintf("%d", partition))
|
|
}
|
|
|
|
func shardKey(shard dax.ShardNum) string {
|
|
return path.Join("shard", fmt.Sprintf("%d", shard))
|
|
}
|
|
|
|
func fieldBucket(table dax.TableKey, field dax.FieldName) string {
|
|
return path.Join(string(table), "field", string(field))
|
|
}
|