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

fuzzycsv.DataAction.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.stc.ClosureParams
import groovy.transform.stc.SimpleType
import static fuzzycsv.RecordFx.fx

class DataAction {
    FuzzyCSVTable table
    Closure       action
    Closure filter = { true }

    def set(@ClosureParams(value = SimpleType.class, options = "fuzzycsv.Record")
                    Closure action) {
        this.action = action

    }

    def where(@ClosureParams(value = SimpleType.class, options = "fuzzycsv.Record") Closure filter) {
        this.filter = filter
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy