MCPcopy
hub / github.com/NVIDIA/aistore / ExtractShard

Method ExtractShard

dsort/extract/noop.go:26–28  ·  view source on GitHub ↗

ExtractShard reads the tarball f and extracts its metadata.

(lom *cluster.LOM, r cos.ReadReaderAt, extractor RecordExtractor, toDisk bool)

Source from the content-addressed store, hash-verified

24
25// ExtractShard reads the tarball f and extracts its metadata.
26func (t *nopExtractCreator) ExtractShard(lom *cluster.LOM, r cos.ReadReaderAt, extractor RecordExtractor, toDisk bool) (extractedSize int64, extractedCount int, err error) {
27 return t.internal.ExtractShard(lom, r, extractor, toDisk)
28}
29
30// CreateShard creates a new shard locally based on the Shard.
31func (*nopExtractCreator) CreateShard(s *Shard, w io.Writer, loadContent LoadContentFunc) (written int64, err error) {

Callers

nothing calls this directly

Calls 1

ExtractShardMethod · 0.65

Tested by

no test coverage detected