Example usage for org.apache.mahout.common Pair equals

List of usage examples for org.apache.mahout.common Pair equals

Introduction

In this page you can find the example usage for org.apache.mahout.common Pair equals.

Prototype

@Override
    public boolean equals(Object obj) 

Source Link

Usage

From source file:it.polito.dbdmg.searum.itemsets.ParallelFPGrowthReducer.java

License:Apache License

@Override
protected void setup(Context context) throws IOException, InterruptedException {

    super.setup(context);
    Parameters params = new Parameters(context.getConfiguration().get(ARM.PFP_PARAMETERS, ""));

    for (Pair<String, Long> e : ARM.readFList(context.getConfiguration())) {
        if (!e.equals("dataset")) {
            featureReverseMap.add(e.getFirst());
            freqList.add(e.getSecond());
        }//from   w w  w .j  av a2s. c om
    }

    maxHeapSize = Integer.valueOf(params.get(ARM.MAX_HEAPSIZE, "50"));
    minSupport = Integer.valueOf(params.get(ARM.MIN_SUPPORT, "5"));
    log.info("Support count: " + minSupport);
    maxPerGroup = params.getInt(ARM.MAX_PER_GROUP, 0);
    numFeatures = featureReverseMap.size();
}