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