fuzzycsv.DataAction.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fuzzy-csv Show documentation
Show all versions of fuzzy-csv Show documentation
A groovy/java tabular Data (from CSV,SQL,JSON) processing library that supports fuzzy column matching,tranformations/merging/querying etc
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
}
}