Class JepMapper

java.lang.Object
net.sf.basedb.util.parser.JepMapper
All Implemented Interfaces:
Mapper

public class JepMapper extends Object implements Mapper
A mapper that uses Jep to calculate the final value. It should be used for numerical values that needs to be transformed before beeing inserted into the database. For example, if a file contains the radius of a spot instead of the diameter, it could be mapped as =2 * col('Radius').

It can also be used for concatenating string values but syntax with backslashes has better performance. The following mapping expressions are equivalent, but we recommend using the first one:

\Name\:\ID\
=col('Name')+':'+col('ID')
=\Name\+':'+\ID\
Version:
2.0
Author:
nicklas
Last modified
$Date: 2019-03-21 12:50:52 +0100 (tors, 21 mars 2019) $