Search in sources :

Example 1 with TaggedFirstSecondIndexes

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);
        }
    }
}
Also used : CM_N_COVCell(org.apache.sysml.runtime.matrix.data.CM_N_COVCell) TaggedFirstSecondIndexes(org.apache.sysml.runtime.matrix.data.TaggedFirstSecondIndexes)

Aggregations

CM_N_COVCell (org.apache.sysml.runtime.matrix.data.CM_N_COVCell)1 TaggedFirstSecondIndexes (org.apache.sysml.runtime.matrix.data.TaggedFirstSecondIndexes)1