private ArrayList<Segment10> tableSegments(TableEntry10 table){
  ArrayList<Segment10> tableSegments=new ArrayList<>();
  for (  Segment10 segment : _segments) {
    if (Arrays.equals(segment.key(),table.key())) {
      tableSegments.add(segment);
    }
  }
  Collections.sort(tableSegments,null);
  return tableSegments;
}

private ArrayList < Segment10 > tableSegments ( TableEntry10 table ) { ArrayList < Segment10 > tableSegments = new ArrayList < > ( ) ; for ( Segment10 segment : _segments ) { if ( Arrays . equals ( segment . key ( ) , table . key ( ) ) ) { tableSegments . add ( segment ) ; } } Collections . sort ( tableSegments , null ) ; return tableSegments ; }
returns segments for a table in reverse sequence order . the reverse order minimizes extra pages reads , because older pages don ' t need to be read .
