Example usage for org.apache.hadoop.io FloatWritable compareTo

List of usage examples for org.apache.hadoop.io FloatWritable compareTo

Introduction

In this page you can find the example usage for org.apache.hadoop.io FloatWritable compareTo.

Prototype

@Override
public int compareTo(FloatWritable o) 

Source Link

Document

Compares two FloatWritables.

Usage

From source file:Assignment3_P5_Top25Movies.Top25MovieRating_SortComparator.java

@Override
public int compare(WritableComparable w1, WritableComparable w2) {
    FloatWritable key1 = (FloatWritable) w1;
    FloatWritable key2 = (FloatWritable) w2;

    return -1 * key1.compareTo(key2);// (cw1.getDeptNo().compareTo(cw2.getDeptNo()));
}