String function ( Batch < String > arg0 ) { List < String > loc0 = arg0 . getRecords ( ) ; ArrayList < EventhubRequest > loc1 = new ArrayList < > ( ) ; for ( String loc2 : loc0 ) { loc1 . add ( new EventhubRequest ( loc2 ) ) ; } return mapper . writeValueAsString ( loc1 ) ; }
each record of batch is wrapped by a ` body ' json object put this new object into an array , encode the whole array concode_field_sep Meter bytesWritten concode_elem_sep long sigExpireInMinute concode_elem_sep WriteResponseMapper<Integer> WRITE_RESPONSE_WRAPPER concode_elem_sep String sasKeyName concode_elem_sep String signature concode_elem_sep Meter recordsFailed concode_elem_sep String sasKey concode_elem_sep Timer writeTimer concode_elem_sep long postStartTimestamp concode_elem_sep MetricContext metricContext concode_elem_sep Meter recordsSuccess concode_elem_sep ObjectMapper mapper concode_elem_sep String targetURI concode_elem_sep Meter recordsAttempted concode_elem_sep Logger LOG concode_elem_sep String eventHubName concode_elem_sep HttpClient httpclient concode_elem_sep String namespaceName concode_field_sep int request concode_elem_sep String encodeRecord concode_elem_sep void flush concode_elem_sep void cleanup concode_elem_sep void refreshSignature concode_elem_sep WriteResponse wrap concode_elem_sep Future<WriteResponse> write concode_elem_sep WriteResponse write concode_elem_sep void close