Skip to main content

iter_ndjson_chunks

Function iter_ndjson_chunks 

Source
pub fn iter_ndjson_chunks<R: BufRead>(
    view_definition: SofViewDefinition,
    reader: R,
    config: ChunkConfig,
) -> Result<NdjsonChunkIterator<R>, SofError>
Expand description

Create an iterator for chunked NDJSON processing.

This is a convenience function that creates an NdjsonChunkIterator. Use this when you want more control over how chunks are processed.

§Arguments

  • view_definition - The ViewDefinition to execute
  • reader - A buffered reader for the NDJSON input
  • config - Configuration for chunk processing

§Returns

An iterator that yields ChunkedResult for each processed chunk.