mOutputAssociator.write(ControlBlock.LIST_END);
if(mOutputRules != null && ((AssociationRulesProducer)tupleAssociator.getAssociator()).getAssociationRules().getRules().size() > 0 ) {
mOutputRules.write(ControlBlock.LIST_BEGIN);
ArrayList<ColumnMetadata> columns = new ArrayList<ColumnMetadata>();
columns.add(new SimpleColumnMetadata("Rule", TupleTypes._STRING,
0,
ColumnMetadata.COLUMN_NO_NULLS,
0));
String[] metrics = ((AssociationRulesProducer)tupleAssociator.getAssociator()).getAssociationRules().getRules().get(0).getMetricNamesForRule();
for(int i = 0 ; i<metrics.length; i++) {
SimpleColumnMetadata md = new SimpleColumnMetadata(metrics[i], TupleTypes._DOUBLE,
0,
ColumnMetadata.COLUMN_NO_NULLS,
0);
columns.add(md);