Class TemplateTap can be used to write tuple streams out to files and sub-directories based on the values in the {@link cascading.tuple.Tuple}instance.
The constructor takes a {@link FileTap} {@link cascading.tap.Tap} and a {@link java.util.Formatter} format syntax String. This allowsTuple values at given positions to be used as directory names.
{@code openTapsThreshold} limits the number of open files to be output to. This value defaults to 300 files.Each time the threshold is exceeded, 10% of the least recently used open files will be closed.
TemplateTap will populate a given {@code pathTemplate} without regard to case of the values being used. Thusthe resulting paths {@code 2012/June/} and {@code 2012/june/} will likely result in two open files into the samelocation. Forcing the case to be consistent with an upstream {@link cascading.operation.Function} is recommended, see{@link cascading.operation.expression.ExpressionFunction}.