public static int getPartitionStatic ( LongWritable key , LongWritable value , int numPartitions ) { return ( int ) ( Math . abs ( key . get ( ) ) % numPartitions ) ; }
Get a partition from the key only