private List < Row > createExceptionAssignmentRowList ( String exceptionData ) { List < Row > list = new ArrayList < Row > ( ) ; String [ ] exceptions = exceptionData . split ( ",|:" ) ; int index = 1 ; while ( index < exceptions . length ) { Date startDate = DatatypeConverter . parseEpochTimestamp ( exceptions [ index + 0 ] ) ; Date endDate = DatatypeConverter . parseEpochTimestamp ( exceptions [ index + 1 ] ) ; //Integer exceptionTypeID = Integer.valueOf(exceptions[index + 2]); Map < String , Object > map = new HashMap < String , Object > ( ) ; map . put ( "STARU_DATE" , startDate ) ; map . put ( "ENE_DATE" , endDate ) ; list . add ( new MapRow ( map ) ) ; index += 3 ; } return list ; }
Extract a list of exception assignments .