Skip to main content

@terascope/file-asset-apis / base/ChunkGenerator

base/ChunkGenerator

Classes​

ClassDescription
ChunkGeneratorEfficiently breaks up a slice into multiple chunks. The behavior will change depending if the whole slice has be serialized at once or not.

Interfaces​

InterfaceDescription
Chunk-

Variables​

MAX_CHUNK_SIZE_BYTES​

const MAX_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​

const MiB: number

Defined in: base/ChunkGenerator.ts:25


MIN_CHUNK_SIZE_BYTES​

const MIN_CHUNK_SIZE_BYTES: number

Defined in: base/ChunkGenerator.ts:31

5MiB - Minimum part size for multipart uploads with S3


STREAM_CHUNK_SIZE_BYTES​

const STREAM_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