private Map < BoxedByteArray , byte [ ] > processBatchCallresults ( List < Map . Entry < BoxedByteArray , T > > entries , Object [ ] objects ) { Map < BoxedByteArray , byte [ ] > successes = new HashMap <> ( ) ; for ( int i = 0 ; i < objects . length ; ++ i ) { if ( objects [ i ] != null && objects [ i ] instanceof Result ) { Result result = ( Result ) objects [ i ] ; byte [ ] value = result . getValue ( configuration . cf , HBaseDbHarness . QUALIFIER ) ; successes . put ( entries . get ( i ) . getKey ( ) , value ) ; } } return successes ; }
Converts the datacube request objects and an array of objects returned from an hbase batch call into the map we use to track success .