cohort result is written out to a folder named by the query. There was a result file and cohort files, and the result file contains the query and the result.
query is separated from the result and stored under the same folder.
flexibility in choosing what to write out: there are static methods defined under the CohortWriter interface that can be used to write out cohort/query/result.
For cohort selection the old logic works that it has an empty cohortselector so the output cohort will have the name "all.cohort".
With non-empty cohortselector, now user can use the two additional fields outputCohort and outputAll to pick one cohort user list to write out or all.
Changes
CohortWriter
interface that can be used to write out cohort/query/result.outputCohort
andoutputAll
to pick one cohort user list to write out or all.