METHOD_0 ( ) { org . apache . IDENT_0 . catalog . Schema schema = new org . apache . IDENT_0 . catalog . Schema ( ) . METHOD_1 ( STRING_0 , Type . IDENT_1 ) . METHOD_1 ( STRING_1 , Type . IDENT_1 ) ; org . apache . IDENT_0 . catalog . IDENT_2 [ ] IDENT_3 = org . apache . IDENT_0 . engine . IDENT_4 . IDENT_5 . METHOD_2 ( schema ) ; org . apache . IDENT_0 . storage . IDENT_6 s = new org . apache . IDENT_0 . storage . METHOD_3 ( 2 ) ; s . put ( 0 , org . apache . IDENT_0 . IDENT_7 . IDENT_8 . METHOD_4 ( STRING_2 ) ) ; s . put ( 1 , org . apache . IDENT_0 . IDENT_7 . IDENT_8 . METHOD_4 ( STRING_3 ) ) ; org . apache . IDENT_0 . storage . IDENT_6 e = new org . apache . IDENT_0 . storage . METHOD_3 ( 2 ) ; e . put ( 0 , org . apache . IDENT_0 . IDENT_7 . IDENT_8 . METHOD_4 ( STRING_4 ) ) ; e . put ( 1 , org . apache . IDENT_0 . IDENT_7 . IDENT_8 . METHOD_4 ( STRING_5 ) ) ; org . apache . IDENT_0 . storage . IDENT_9 expected = new org . apache . IDENT_0 . storage . METHOD_5 ( IDENT_3 , s , e ) ; org . apache . IDENT_0 . engine . IDENT_4 . IDENT_10 IDENT_11 = new org . apache . IDENT_0 . engine . IDENT_4 . METHOD_6 ( expected , IDENT_3 , true ) ; org . apache . IDENT_0 . storage . METHOD_5 [ ] IDENT_12 = IDENT_11 . METHOD_7 ( 1 ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( int ) { com . google . common . base . IDENT_13 . METHOD_8 ( ( IDENT_14 > 0 ) , ( STRING_6 + IDENT_14 ) ) ; com . google . common . base . IDENT_13 . METHOD_8 ( ( ( IDENT_15 . compareTo ( new java . math . BigDecimal ( IDENT_14 ) ) ) >= 0 ) , ( ( STRING_7 + ( IDENT_15 ) ) + STRING_8 ) ) ; int IDENT_16 ; for ( IDENT_16 = 0 ; IDENT_16 < ( IDENT_17 . length ) ; IDENT_16 ++ ) { if ( ( IDENT_17 [ IDENT_16 ] . compareTo ( new java . math . BigDecimal ( IDENT_14 ) ) ) >= 0 ) break ; } this . IDENT_18 = IDENT_16 ; java . math . BigDecimal [ ] IDENT_19 = new java . math . BigDecimal [ ( IDENT_18 ) + 1 ] ; for ( int i = IDENT_18 ; i >= 0 ; i OP_0 ) { if ( i == ( IDENT_18 ) ) { IDENT_19 [ i ] = IDENT_20 [ i ] ; } else { IDENT_19 [ i ] = IDENT_19 [ ( i + 1 ) ] . METHOD_9 ( IDENT_20 [ i ] ) ; } } java . util . List < org . apache . IDENT_0 . storage . METHOD_5 > IDENT_12 = com . google . common . collect . Lists . newArrayList ( ) ; java . math . BigDecimal IDENT_21 = IDENT_19 [ 0 ] . METHOD_10 ( new java . math . BigDecimal ( IDENT_14 ) , IDENT_22 . IDENT_23 ) ; java . math . BigDecimal IDENT_24 = IDENT_19 [ 0 ] ; org . apache . IDENT_0 . storage . IDENT_6 IDENT_25 = range . METHOD_11 ( ) ; while ( ( IDENT_24 . compareTo ( new java . math . BigDecimal ( 0 ) ) ) > 0 ) { if ( ( IDENT_24 . compareTo ( IDENT_21 ) ) <= 0 ) { IDENT_12 . add ( new org . apache . IDENT_0 . storage . METHOD_5 ( IDENT_3 , IDENT_25 , range . METHOD_12 ( ) ) ) ; } else { org . apache . IDENT_0 . storage . IDENT_6 next = METHOD_13 ( IDENT_25 , IDENT_21 . METHOD_14 ( ) , IDENT_18 ) ; IDENT_12 . add ( new org . apache . IDENT_0 . storage . METHOD_5 ( IDENT_3 , IDENT_25 , next ) ) ; } IDENT_25 = IDENT_12 . get ( ( ( IDENT_12 . size ( ) ) - 1 ) ) . METHOD_12 ( ) ; IDENT_24 = IDENT_24 . METHOD_15 ( IDENT_21 ) ; } return IDENT_12 . toArray ( new org . apache . IDENT_0 . storage . METHOD_5 [ IDENT_12 . size ( ) ] ) ; }
org . junit . Assert . assertEquals ( expected , IDENT_12 [ 0 ] )