@ Override public AvroEvaluatorList toAvro ( final Map < String , EvaluatorDescriptor > evaluatorMap , final int totalEvaluators , final String startTime ) { final List < AvroEvaluatorEntry > evaluatorEntities = new ArrayList <> ( ) ; for ( final Map . Entry < String , EvaluatorDescriptor > entry : evaluatorMap . entrySet ( ) ) { final EvaluatorDescriptor descriptor = entry . getValue ( ) ; evaluatorEntities . add ( AvroEvaluatorEntry . newBuilder ( ) . setId ( entry . getKey ( ) ) . setName ( descriptor . getNodeDescriptor ( ) . getName ( ) ) . build ( ) ) ; } return AvroEvaluatorList . newBuilder ( ) . setEvaluators ( evaluatorEntities ) . setTotal ( totalEvaluators ) . setStartTime ( startTime != null ? startTime : new Date ( ) . toString ( ) ) . build ( ) ; }
Build AvroEvaluatorList object .