METHOD_0 ( ) { org . apache . IDENT_0 . catalog . Schema schema = new org . apache . IDENT_0 . catalog . Schema ( ) ; schema . METHOD_1 ( STRING_0 , Type . IDENT_1 ) ; schema . METHOD_1 ( STRING_1 , Type . IDENT_2 ) ; schema . METHOD_1 ( STRING_0 2 , Type . IDENT_3 ) ; schema . METHOD_1 ( STRING_2 , Type . IDENT_4 ) ; schema . METHOD_1 ( STRING_3 , Type . IDENT_5 ) ; schema . METHOD_1 ( STRING_4 , Type . IDENT_6 ) ; schema . METHOD_1 ( STRING_5 , Type . IDENT_7 ) ; schema . METHOD_1 ( STRING_6 , Type . IDENT_8 ) ; schema . METHOD_1 ( STRING_7 , Type . IDENT_9 ) ; schema . METHOD_1 ( STRING_8 , Type . IDENT_10 ) ; schema . METHOD_1 ( STRING_9 , Type . IDENT_11 ) ; org . apache . IDENT_0 . engine . util . IDENT_12 tuple = new org . apache . IDENT_0 . engine . util . METHOD_2 ( INT_0 ) ; tuple . put ( new org . apache . IDENT_0 . IDENT_13 . IDENT_14 [ ] { org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_3 ( true ) , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_4 ( ( ( byte ) ( INT_1 ) ) ) , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_5 ( STRING_10 ) , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_6 ( ( ( short ) ( INT_2 ) ) ) , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_7 ( INT_3 ) , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_8 ( INT_4 ) , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_9 ( FLOAT_0 ) , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_10 ( FLOAT_1 ) , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_11 ( STRING_0 1 ) , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_12 ( STRING_0 FLOAT_2 getBytes ( ) ) , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_13 ( STRING_0 0 ) } ) ; byte [ ] bytes = IDENT_16 . IDENT_17 . METHOD_14 ( schema , tuple ) ; org . apache . IDENT_0 . engine . util . IDENT_12 IDENT_18 = IDENT_16 . IDENT_19 . METHOD_15 ( schema , bytes ) ; "<AssertPlaceHolder>" ; } METHOD_15 ( org . apache . IDENT_0 . catalog . Schema , byte [ ] ) { java . nio . ByteBuffer IDENT_20 = java . nio . ByteBuffer . METHOD_16 ( bytes ) ; org . apache . IDENT_0 . storage . IDENT_12 tuple = new org . apache . IDENT_0 . storage . METHOD_2 ( schema . size ( ) ) ; org . apache . IDENT_0 . catalog . IDENT_21 IDENT_22 ; org . apache . IDENT_0 . common . IDENT_23 . IDENT_24 type ; for ( int i = 0 ; i < ( schema . size ( ) ) ; i ++ ) { IDENT_22 = schema . METHOD_17 ( i ) ; type = IDENT_22 . METHOD_18 ( ) ; switch ( type . getType ( ) ) { case IDENT_1 : tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_3 ( IDENT_20 . get ( ) ) ) ; break ; case IDENT_2 : byte b = IDENT_20 . get ( ) ; if ( b == 0 ) { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_19 ( ) ) ; } else { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_4 ( b ) ) ; } break ; case IDENT_3 : byte c = IDENT_20 . get ( ) ; if ( c == 0 ) { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_19 ( ) ) ; } else { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_5 ( c ) ) ; } break ; case IDENT_4 : short s = IDENT_20 . METHOD_20 ( ) ; if ( s < ( ( IDENT_25 . IDENT_26 ) + 1 ) ) { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_19 ( ) ) ; } else { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_6 ( s ) ) ; } break ; case IDENT_5 : case IDENT_27 : int IDENT_28 = IDENT_20 . METHOD_21 ( ) ; if ( IDENT_28 < ( ( Integer . IDENT_26 ) + 1 ) ) { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_19 ( ) ) ; } else { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_22 ( type , IDENT_28 ) ) ; } break ; case IDENT_6 : case IDENT_29 : case IDENT_30 : long l = IDENT_20 . METHOD_23 ( ) ; if ( l < ( ( Long . IDENT_26 ) + 1 ) ) { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_19 ( ) ) ; } else { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_24 ( type , l ) ) ; } break ; case IDENT_7 : float f = IDENT_20 . METHOD_25 ( ) ; if ( java . lang . IDENT_31 . METHOD_26 ( f ) ) { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_19 ( ) ) ; } else { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_9 ( f ) ) ; } break ; case IDENT_8 : double d = IDENT_20 . METHOD_27 ( ) ; if ( java . lang . Double . METHOD_26 ( d ) ) { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_19 ( ) ) ; } else { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_10 ( d ) ) ; } break ; case IDENT_9 : byte [ ] IDENT_32 = new byte [ IDENT_20 . METHOD_21 ( ) ] ; IDENT_20 . get ( IDENT_32 ) ; java . lang . String str = new java . lang . String ( IDENT_32 ) ; if ( ( str . compareTo ( STRING_11 ) ) == 0 ) { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_19 ( ) ) ; } else { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_11 ( str ) ) ; } break ; case IDENT_10 : byte [ ] IDENT_33 = new byte [ IDENT_20 . METHOD_21 ( ) ] ; IDENT_20 . get ( IDENT_33 ) ; if ( ( org . apache . IDENT_0 . util . IDENT_34 . compareTo ( bytes , org . apache . IDENT_0 . util . IDENT_34 . METHOD_14 ( STRING_11 ) ) ) == 0 ) { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_19 ( ) ) ; } else { tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_12 ( IDENT_33 ) ) ; } break ; case IDENT_11 : byte [ ] IDENT_35 = new byte [ 4 ] ; IDENT_20 . get ( IDENT_35 ) ; tuple . put ( i , org . apache . IDENT_0 . IDENT_13 . IDENT_15 . METHOD_13 ( IDENT_35 ) ) ; break ; case IDENT_36 : } } return tuple ; }
org . junit . Assert . assertEquals ( tuple , IDENT_18 )