private final SimpleOrderedMap < Object > createShardsOutput ( ) { SimpleOrderedMap < Object > output = new SimpleOrderedMap <> ( ) ; if ( shardStageStatus != null && ! shardStageStatus . isEmpty ( ) ) { List < SimpleOrderedMap < Object >> list = new ArrayList <> ( ) ; for ( StageStatus stageStatus : shardStageStatus . values ( ) ) { list . add ( stageStatus . createOutput ( ) ) ; } output . add ( NAME_STATUS_STAGES , list ) ; } if ( shards != null && ! shards . isEmpty ( ) ) { List < SimpleOrderedMap < Object >> list = new ArrayList <> ( ) ; for ( ShardStatus shardStatus : shards . values ( ) ) { list . add ( shardStatus . createOutput ( ) ) ; } output . add ( NAME_STATUS_SHARDS , list ) ; } return output ; }
Creates the shards output .