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 schema = io . cdap . cdap . api . data . schema . Schema . METHOD_3 ( STRING_1 , Schema . Field . of ( STRING_2 , io . cdap . cdap . api . data . schema . Schema . of ( Schema . Type . IDENT_4 ) ) , Schema . Field . of ( "name" , 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 , IDENT_9 . IDENT_10 . name ( ) , IDENT_3 , schema ) ; io . cdap . cdap . api . data . format . IDENT_11 IDENT_12 = io . cdap . cdap . api . data . format . IDENT_11 . builder ( schema ) . set ( STRING_2 , 0L ) . set ( "name" , STRING_4 ) . build ( ) ; io . cdap . cdap . api . data . format . IDENT_11 IDENT_13 = io . cdap . cdap . api . data . format . IDENT_11 . builder ( schema ) . set ( STRING_2 , 1L ) . build ( ) ; java . lang . String IDENT_14 = ( ( io . cdap . cdap . format . IDENT_15 . METHOD_6 ( IDENT_12 ) ) + "\n" ) + ( io . cdap . cdap . format . IDENT_15 . METHOD_6 ( IDENT_13 ) ) ; org . apache . commons . io . IDENT_16 . METHOD_7 ( IDENT_0 , IDENT_14 ) ; IDENT_8 . METHOD_8 ( IDENT_17 . IDENT_18 ) . METHOD_9 ( IDENT_19 . IDENT_20 , 5 , TimeUnit . IDENT_21 ) ; io . cdap . cdap . api . data . format . IDENT_11 IDENT_22 = io . cdap . cdap . api . data . format . IDENT_11 . builder ( schema ) . set ( STRING_2 , IDENT_12 . get ( STRING_2 ) ) . set ( "name" , IDENT_12 . get ( "name" ) ) . set ( STRING_3 , IDENT_0 . METHOD_10 ( ) . toString ( ) ) . build ( ) ; io . cdap . cdap . api . data . format . IDENT_11 IDENT_23 = io . cdap . cdap . api . data . format . IDENT_11 . builder ( schema ) . set ( STRING_2 , IDENT_13 . get ( STRING_2 ) ) . set ( "name" , IDENT_13 . get ( "name" ) ) . set ( STRING_3 , IDENT_0 . METHOD_10 ( ) . toString ( ) ) . build ( ) ; java . util . Set < io . cdap . cdap . api . data . format . IDENT_11 > expected = com . google . common . collect . IDENT_24 . of ( IDENT_22 , IDENT_23 ) ; io . cdap . cdap . test . IDENT_25 < io . cdap . cdap . api . dataset . table . IDENT_26 > IDENT_27 = METHOD_11 ( IDENT_3 ) ; java . util . Set < io . cdap . cdap . api . data . format . IDENT_11 > output = new java . util . HashSet ( io . cdap . cdap . IDENT_28 . mock . batch . IDENT_29 . METHOD_12 ( IDENT_27 ) ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( org . apache . IDENT_30 . IDENT_31 . IDENT_32 ) { org . apache . avro . Schema IDENT_33 = new org . apache . avro . Schema . METHOD_13 ( ) . parse ( io . cdap . plugin . batch . IDENT_34 . IDENT_35 . toString ( ) ) ; java . util . Map < java . lang . String , java . lang . Integer > IDENT_36 = new java . util . HashMap ( ) ; for ( org . apache . IDENT_30 . IDENT_31 . IDENT_32 file : IDENT_37 . list ( ) ) { java . lang . String IDENT_38 = file . getName ( ) ; if ( IDENT_38 . METHOD_14 ( STRING_5 ) ) { org . apache . avro . io . IDENT_39 < org . apache . avro . IDENT_40 . IDENT_41 > IDENT_42 = new org . apache . avro . IDENT_40 . METHOD_15 ( IDENT_33 ) ; org . apache . avro . file . IDENT_43 < org . apache . avro . IDENT_40 . IDENT_41 > IDENT_44 = new org . apache . avro . file . METHOD_16 ( file . METHOD_17 ( ) , IDENT_42 ) ; for ( org . apache . avro . IDENT_40 . IDENT_41 record : IDENT_44 ) { IDENT_36 . put ( record . get ( STRING_2 ) . toString ( ) , ( ( java . lang . Integer ) ( record . get ( STRING_6 ) ) ) ) ; } IDENT_44 . close ( ) ; } else if ( IDENT_38 . METHOD_14 ( STRING_7 ) ) { org . apache . hadoop . fs . Path IDENT_45 = new org . apache . hadoop . fs . Path ( file . toString ( ) ) ; org . apache . IDENT_46 . avro . IDENT_47 . Builder < org . apache . avro . IDENT_40 . IDENT_41 > IDENT_48 = org . apache . IDENT_46 . avro . IDENT_47 . builder ( IDENT_45 ) ; org . apache . IDENT_46 . hadoop . IDENT_49 < org . apache . avro . IDENT_40 . IDENT_41 > reader = IDENT_48 . build ( ) ; org . apache . avro . IDENT_40 . IDENT_41 record = reader . read ( ) ; while ( record != null ) { IDENT_36 . put ( record . get ( STRING_2 ) . toString ( ) , ( ( java . lang . Integer ) ( record . get ( STRING_6 ) ) ) ) ; record = reader . read ( ) ; } } } return IDENT_36 ; }
org . junit . Assert . assertEquals ( expected , output )