private ArrayList<WritableComparable> readPartitions(FileSystem fs,Path p,JobConf job) throws IOException {
  SequenceFile.Reader reader=new SequenceFile.Reader(fs,p,job);
  ArrayList<WritableComparable> parts=new ArrayList<WritableComparable>();
  try {
    DoubleWritable key=new DoubleWritable();
    NullWritable value=NullWritable.get();
    while (reader.next(key,value)) {
      parts.add(key);
      key=new DoubleWritable();
    }
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
 finally {
    IOUtilFunctions.closeSilently(reader);
  }
  reader.close();
  return parts;
}

private ArrayList < WritableComparable > readPartitions ( FileSystem fs , Path p , JobConf job ) throws IOException { SequenceFile . Reader reader = new SequenceFile . Reader ( fs , p , job ) ; ArrayList < WritableComparable > parts = new ArrayList < WritableComparable > ( ) ; try { DoubleWritable key = new DoubleWritable ( ) ; NullWritable value = NullWritable . get ( ) ; while ( reader . next ( key , value ) ) { parts . add ( key ) ; key = new DoubleWritable ( ) ; } } catch ( Exception e ) { throw new RuntimeException ( e ) ; } finally { IOUtilFunctions . closeSilently ( reader ) ; } reader . close ( ) ; return parts ; }
read the cut points from the given sequence file .
