Creator is interface which describes set of functions which each shard creator should implement.
| 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) |
no outgoing calls
no test coverage detected