cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to get the number of documents

matt_bostrom
New Contributor II

after i am doing a file read snap and map the documents via mapper snap is there a way to get the total number of documents on the next snap? I basically need to perform a router and need the path/output of all the documents to go 1 way if there are < 500,000 rows/documents. otherwise go down another path/output >=500,000. how can i achieve this?

2 REPLIES 2

del
Contributor III

Matt, the snap.inputViews function may help with this.

winosky
New Contributor III

Just adding flavor. snap.inputViews.inputviewname.count.toString()