MCPcopy Create free account
hub / github.com/cortexproject/cortex / MakeFragmentKey

Function MakeFragmentKey

pkg/distributed_execution/fragment_key.go:15–20  ·  view source on GitHub ↗

MakeFragmentKey creates a new FragmentKey with the given queryID and fragmentID. It's used to track and identify fragments during distributed query execution.

(queryID uint64, fragmentID uint64)

Source from the content-addressed store, hash-verified

13// MakeFragmentKey creates a new FragmentKey with the given queryID and fragmentID.
14// It's used to track and identify fragments during distributed query execution.
15func MakeFragmentKey(queryID uint64, fragmentID uint64) FragmentKey {
16 return FragmentKey{
17 queryID: queryID,
18 fragmentID: fragmentID,
19 }
20}
21
22// GetQueryID returns the queryID for the current key
23// This ID is shared across all fragments of the same distributed query.

Callers 4

AddAddressByIDMethod · 0.92
GetAddrByIDMethod · 0.92
FragmentMethod · 0.92
UnmarshalJSONMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected