public static byte [ ] getIids ( final List < String > ids , final UniqueIds uids ) { final int size = ids . size ( ) ; final byte [ ] iids = new byte [ IID_WIDTH * size ] ; for ( int i = 0 ; i < size ; i ++ ) { final String instanceId = ids . get ( i ) ; final byte [ ] iid = uids . getUiid ( ) . getId ( instanceId ) ; System . arraycopy ( iid , 0 , iids , i * IID_WIDTH , IID_WIDTH ) ; } return iids ; }
Compress a set of instances ids into a byte array where each id consist of 4 bytes each .