跳到主要内容
版本:v3.0.x

FlushEvent

This interface describes a BulkWriter flush event. It reports the files generated for a chunk, the row count in that chunk, and the chunk index.

JavaScript
interface FlushEvent

FIELDS:

  • files (string[]) -

    [REQUIRED]

    Lists the files generated for the flushed chunk.

  • rowCount (number) -

    [REQUIRED]

    Specifies how many rows were flushed.

  • chunkIndex (number) -

    [REQUIRED]

    Specifies the zero-based chunk index.

Example

JavaScript
const event = {
files: ['/tmp/chunk_0/data.parquet'],
rowCount: 10000,
chunkIndex: 0,
};