MCPcopy Index your code
hub / github.com/NVIDIA/aistore / PrefetchList

Function PrefetchList

api/multiobj.go:47–50  ·  view source on GitHub ↗

PrefetchList sends request to prefetch a list of objects from a remote bucket.

(baseParams BaseParams, bck cmn.Bck, fileslist []string)

Source from the content-addressed store, hash-verified

45
46// PrefetchList sends request to prefetch a list of objects from a remote bucket.
47func PrefetchList(baseParams BaseParams, bck cmn.Bck, fileslist []string) (string, error) {
48 prefetchMsg := cmn.SelectObjsMsg{ObjNames: fileslist}
49 return doListRangeRequest(baseParams, bck, apc.ActPrefetchObjects, prefetchMsg)
50}
51
52// PrefetchRange sends request to prefetch a range of objects from a remote bucket.
53func PrefetchRange(baseParams BaseParams, bck cmn.Bck, rng string) (string, error) {

Callers 4

listOpFunction · 0.92
TestPrefetchListFunction · 0.92
TestAtimePrefetchFunction · 0.92

Calls 1

doListRangeRequestFunction · 0.85

Tested by 3

TestPrefetchListFunction · 0.74
TestAtimePrefetchFunction · 0.74