File processing

Joule provides utility classes to load large files efficiently

Overview

Under the hood Joule uses Apache Arrow to read files and thereby enable efficient large file handling and OOTB standard file format support. The classes that perform this work have been surfaced to developers in the form of a Callable task.

Two key classes are provided:

Supported file formats supported

  • PARQUET

  • ORC

  • CSV

  • JSON

  • ARROW_IPC

FileProcessingTask

This processing task class reads a file contents and automatically converts each file logical row in to StreamEvent object. This is performed using micro-batch processing which reduces memory and processing overhead while driving stream processing throughput.

Example

The below example loads

ReferenceDataFileProcessingTask

This processing task class reads a reference data file contents and automatically converts each file logical row in to ReferenceData object. This is performed using micro-batch processing to reduce memory footprint and processing overhead and therefore able to read large files in to memory.

ReferenceData objects are stored within a in-memory data store to reduce the retrieval latency and I/O overhead.

Example

This example can be found within the fractalworks-geospatial-processor project test CellTowerCSVParserTest class.

Last updated

Was this helpful?