private void compactEntries(Segment segment,Segment compactSegment){
  for (long i=segment.firstIndex(); i <= segment.lastIndex(); i++) {
    checkEntry(i,segment,compactSegment);
  }
}

private void compactEntries ( Segment segment , Segment compactSegment ) { for ( long i = segment . firstIndex ( ) ; i <= segment . lastIndex ( ) ; i ++ ) { checkEntry ( i , segment , compactSegment ) ; } }
compacts entries from the given segment , rewriting them to the compact segment .
