You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Typically, the output is send to a single file name. With this punctation the output can be send to different output files.

Parameter

  • predicate: If evaluated to true, a NewFilenamePunctuation will be created.
  • TODO.

Example

#PARSER PQL
#ADDQUERY
heart = TIMER({PERIOD = 1000, SOURCE = 'source'})
        
prep = MAP({
            expressions = [['counter()','count']],
            evaluateonpunctuation = true
          },
          heart
        )
        
prep2 = MAP({
    expressions = ['count',['"${WORKSPACEPROJECT}/out/"+toString(count)+".csv"','filename']],
    evaluateonpunctuation = true
  },
  prep
)
        
        
punc = CREATENEWFILENAMEPUNCTUATION({
            filenameattribute = 'filename',
            predicate = 'count % 10 = 0',
            suppressfilenameinoutput = true
          },
          prep2
        )
        
out = CSVFILESINK({FILENAME = '${WORKSPACEPROJECT}/out/ignore.csv', SINK = 'sink'}, punc)
  • No labels