All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fuzzycsv.SpreadConfig.groovy Maven / Gradle / Ivy

Go to download

A groovy/java tabular Data (from CSV,SQL,JSON) processing library that supports fuzzy column matching,tranformations/merging/querying etc

There is a newer version: 1.9.1-groovy4
Show newest version
package fuzzycsv

import groovy.transform.CompileStatic
import groovy.transform.builder.Builder
import groovy.transform.builder.SimpleStrategy;

@Builder(builderStrategy = SimpleStrategy, prefix = 'with')
@CompileStatic
class SpreadConfig {
    Object col
    Closure nameGenFn = { Object col, Object value -> "${RecordFx.resolveName(col)}_${value}" }


    String createName(def key) {
        return nameGenFn.call(col, key)?.toString()
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy