METHOD_0 ( ) { java . io . File IDENT_0 = io . cdap . plugin . batch . source . IDENT_1 . IDENT_2 . METHOD_1 ( ) ; java . io . File IDENT_3 = new java . io . File ( IDENT_0 , STRING_0 ) ; java . lang . String IDENT_4 = STRING_1 ; io . cdap . cdap . api . data . schema . Schema IDENT_5 = io . cdap . cdap . api . data . schema . Schema . METHOD_2 ( STRING_2 0 , Schema . Field . of ( STRING_3 , io . cdap . cdap . api . data . schema . Schema . of ( Schema . Type . IDENT_6 ) ) , Schema . Field . of ( STRING_4 , io . cdap . cdap . api . data . schema . Schema . METHOD_3 ( io . cdap . cdap . api . data . schema . Schema . of ( Schema . Type . IDENT_7 ) ) ) , Schema . Field . of ( STRING_5 , io . cdap . cdap . api . data . schema . Schema . METHOD_3 ( io . cdap . cdap . api . data . schema . Schema . of ( Schema . Type . IDENT_7 ) ) ) ) ; java . lang . String IDENT_8 = STRING_2 ; io . cdap . cdap . test . IDENT_9 IDENT_10 = METHOD_4 ( IDENT_8 , IDENT_0 , STRING_6 , IDENT_4 , IDENT_5 ) ; org . apache . commons . io . IDENT_11 . METHOD_5 ( IDENT_3 , STRING_7 ) ; java . io . File IDENT_12 = new java . io . File ( IDENT_0 , STRING_8 ) ; IDENT_12 . METHOD_6 ( ) ; IDENT_10 . METHOD_7 ( IDENT_13 . IDENT_14 ) . METHOD_8 ( IDENT_15 . IDENT_16 , 5 , TimeUnit . IDENT_17 ) ; java . util . List < io . cdap . cdap . api . data . format . IDENT_18 > expected = com . google . common . collect . ImmutableList . of ( io . cdap . cdap . api . data . format . IDENT_18 . builder ( IDENT_5 ) . set ( STRING_3 , ( ( long ) ( 0 ) ) ) . set ( STRING_4 , STRING_7 ) . set ( STRING_5 , IDENT_3 . METHOD_9 ( ) . toString ( ) ) . build ( ) ) ; io . cdap . cdap . test . IDENT_19 < io . cdap . cdap . api . dataset . table . IDENT_20 > IDENT_21 = METHOD_10 ( IDENT_4 ) ; java . util . List < io . cdap . cdap . api . data . format . IDENT_18 > output = io . cdap . cdap . IDENT_22 . mock . batch . IDENT_23 . METHOD_11 ( IDENT_21 ) ; "<AssertPlaceHolder>" ; METHOD_12 ( ( IDENT_8 + STRING_9 ) , IDENT_5 ) ; } METHOD_11 ( org . apache . IDENT_24 . IDENT_25 . IDENT_26 ) { org . apache . avro . Schema IDENT_27 = new org . apache . avro . Schema . METHOD_13 ( ) . parse ( io . cdap . plugin . batch . IDENT_28 . IDENT_29 . toString ( ) ) ; java . util . Map < java . lang . String , java . lang . Integer > IDENT_30 = new java . util . HashMap ( ) ; for ( org . apache . IDENT_24 . IDENT_25 . IDENT_26 file : IDENT_31 . list ( ) ) { java . lang . String IDENT_32 = file . getName ( ) ; if ( IDENT_32 . METHOD_14 ( STRING_10 ) ) { org . apache . avro . io . IDENT_33 < org . apache . avro . IDENT_34 . IDENT_35 > IDENT_36 = new org . apache . avro . IDENT_34 . METHOD_15 ( IDENT_27 ) ; org . apache . avro . file . IDENT_37 < org . apache . avro . IDENT_34 . IDENT_35 > IDENT_38 = new org . apache . avro . file . METHOD_16 ( file . METHOD_17 ( ) , IDENT_36 ) ; for ( org . apache . avro . IDENT_34 . IDENT_35 record : IDENT_38 ) { IDENT_30 . put ( record . get ( STRING_11 ) . toString ( ) , ( ( java . lang . Integer ) ( record . get ( STRING_12 ) ) ) ) ; } IDENT_38 . close ( ) ; } else if ( IDENT_32 . METHOD_14 ( STRING_13 ) ) { org . apache . hadoop . fs . Path IDENT_39 = new org . apache . hadoop . fs . Path ( file . toString ( ) ) ; org . apache . IDENT_40 . avro . IDENT_41 . Builder < org . apache . avro . IDENT_34 . IDENT_35 > IDENT_42 = org . apache . IDENT_40 . avro . IDENT_41 . builder ( IDENT_39 ) ; org . apache . IDENT_40 . hadoop . IDENT_43 < org . apache . avro . IDENT_34 . IDENT_35 > reader = IDENT_42 . build ( ) ; org . apache . avro . IDENT_34 . IDENT_35 record = reader . read ( ) ; while ( record != null ) { IDENT_30 . put ( record . get ( STRING_11 ) . toString ( ) , ( ( java . lang . Integer ) ( record . get ( STRING_12 ) ) ) ) ; record = reader . read ( ) ; } } } return IDENT_30 ; }
org . junit . Assert . assertEquals ( expected , output )