Skip to content

File

The file source reads data items from a specified file, where each line is treated as a new data item. It is useful for streaming data stored in text files. It requires parallelism to be set to 1 as only one thread can read lines from the file.

FileSource.withNewlineDelimiter("/path/to/input.txt");
source:
  file:
    path: "/path/to/input.txt"

Properties

path

Path to the file that is the source of data. Required.

Type: string

Java dependency management

Add this declaration to your dependency management system to access the configuration DSL for this plugin in Java.

<dependency>
    <groupId>org.voltdb</groupId>
    <artifactId>volt-stream-connectors-api</artifactId>
    <version>1.4.0</version>
</dependency>
implementation group: 'org.voltdb', name: 'volt-stream-connectors-api', version: '1.4.0'