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

Interface Creator

dsort/extract/managers.go:53–59  ·  view source on GitHub ↗

Creator is interface which describes set of functions which each shard creator should implement.

Source from the content-addressed store, hash-verified

51 // Creator is interface which describes set of functions which each
52 // shard creator should implement.
53 Creator interface {
54 ExtractShard(lom *cluster.LOM, r cos.ReadReaderAt, extractor RecordExtractor, toDisk bool) (int64, int, error)
55 CreateShard(s *Shard, w io.Writer, loadContent LoadContentFunc) (int64, error)
56 UsingCompression() bool
57 SupportsOffset() bool
58 MetadataSize() int64
59 }
60
61 RecordExtractor interface {
62 ExtractRecordWithBuffer(args extractRecordArgs) (int64, error)

Callers 12

extractShardMethod · 0.65
ExtractShardMethod · 0.65
createShardMethod · 0.65
manager_test.goFile · 0.65
startMethod · 0.65
extractShardMethod · 0.65
watchExcessMethod · 0.65
MetadataSizeMethod · 0.65
ChangeStoreTypeMethod · 0.65

Implementers 5

extractCreatorMockdsort/dsort_test.go
targzExtractCreatordsort/extract/targz.go
tarExtractCreatordsort/extract/tar.go
nopExtractCreatordsort/extract/noop.go
zipExtractCreatordsort/extract/zip.go

Calls

no outgoing calls

Tested by

no test coverage detected