public void insertRecord ( long recordPointer , int partitionId ) { if ( ! hasSpaceForAnotherRecord ( ) ) { throw new IllegalStateException ( "There is no space for new record" ) ; } array . set ( pos , PackedRecordPointer . packPointer ( recordPointer , partitionId ) ) ; pos ++ ; }
Inserts a record to be sorted .