...
- predicate: If evaluated to true, a NewFilenamePunctuation will be created.TODO
- filename: An expression that constructs the new filename. Return value will be interpreted as string.
Example
Code Block |
---|
#PARSER PQL #ADDQUERY heart = TIMER({PERIOD = 1000, SOURCE = 'source'}) prep = MAP({ expressions = [['counter()','count']], evaluateonpunctuation = true }, heart ) prep2) punc = MAPCREATENEWFILENAMEPUNCTUATION({ filename expressions = ['count',['"${WORKSPACEPROJECT}/out/"+toString(count)+".csv"','filename']], evaluateonpunctuation = true }, prep ) punc = CREATENEWFILENAMEPUNCTUATION({ filenameattribute = 'filename', predicate = 'count % 10 = 0', && count suppressfilenameinoutput = true > 0' }, prep2 ) prep ) out = CSVFILESINK({FILENAME = '${WORKSPACEPROJECT}/out/ignore0.csv', SINK = 'sink'}, punc) |