@terascope/file-asset-apis / base/ChunkGenerator
base/ChunkGenerator
Classes
| Class | Description |
|---|---|
| ChunkGenerator | Efficiently breaks up a slice into multiple chunks. The behavior will change depending if the whole slice has be serialized at once or not. |
Interfaces
| Interface | Description |
|---|---|
| Chunk | - |
Variables
MAX_CHUNK_SIZE_BYTES
constMAX_CHUNK_SIZE_BYTES:number
Defined in: base/ChunkGenerator.ts:28
100 MiB - Used for determine how big each chunk of a single file should be
MiB
constMiB:number
Defined in: base/ChunkGenerator.ts:25
MIN_CHUNK_SIZE_BYTES
constMIN_CHUNK_SIZE_BYTES:number
Defined in: base/ChunkGenerator.ts:31
5MiB - Minimum part size for multipart uploads with S3
STREAM_CHUNK_SIZE_BYTES
constSTREAM_CHUNK_SIZE_BYTES:number
Defined in: base/ChunkGenerator.ts:39
8MiB - How big each chunk of a file's bytes sent as a stream (sendStream) is by default, the AWS CLI's multipart chunk size. A stream holds about (concurrency + 1) chunks, bigger chunks only cost memory, and S3's 10,000 parts make a file up to ~78GiB