use of org.apache.sysml.runtime.matrix.data.TaggedFirstSecondIndexes in project incubator-systemml by apache.
the class CMCOVMRMapper method close.
public void close() throws IOException {
if (cachedCollector != null) {
for (byte tag : cmTags) {
CM_N_COVCell cmValue = (CM_N_COVCell) cmNcovCache.getFirst(tag).getValue();
cachedCollector.collect(new TaggedFirstSecondIndexes(1, tag, 1), cmValue);
//System.out.println("output to reducer with tag:"+tag+" and value: "+cmValue);
}
for (byte tag : covTags) {
CM_N_COVCell comValue = (CM_N_COVCell) cmNcovCache.getFirst(tag).getValue();
cachedCollector.collect(new TaggedFirstSecondIndexes(1, tag, 1), comValue);
//System.out.println("output to reducer with tag:"+tag+" and value: "+comValue);
}
}
}
Aggregations