Functions

buildContext

buildContext(dir: String)

Helper function to generate input context to run mappings. By default, it will check for the existence of reader properties files for a given input within the same directory, and attempt to pass them to the read function within the reader properties object.

Parameters
Name Description

dir

Directory where files will be traversed and transformed into inputs for the desired mapping execution

hasReaderProperties

hasReaderProperties(p: Path): Boolean

Helper function to assert whether a properties file containing reader parameters exists within the same directory for a given input file

Parameters
Name Type Description

p

Path

Path to the input file

interceptor

interceptor<T>(before: () -> Any, value: () -> T, after: (T) -> Any): T

Helper method to execute something before and after

Parameters
Name Description

before

The method to be executed before

value

The function to be executed

after

The function to be executed after

propertiesFileOf

propertiesFileOf(p: Path): Path

Helper function to assemble the path to a properties file corresponding to an input based on implicit naming conventions.

Parameters
Name Type Description

p

Path

Path to the input file.