METHOD_0 ( ) { java . io . InputStream IDENT_0 = java . lang . IDENT_1 . METHOD_1 ( STRING_0 ) ; com . orientechnologies . orient . core . record . impl . IDENT_2 doc = new com . orientechnologies . orient . core . record . impl . METHOD_2 ( ) . METHOD_3 ( IDENT_0 ) ; java . util . Map geometry = doc . field ( STRING_1 ) ; java . lang . String type = ( ( java . lang . String ) ( geometry . get ( STRING_2 ) ) ) ; com . orientechnologies . orient . core . record . impl . METHOD_2 location = new com . orientechnologies . orient . core . record . impl . METHOD_2 ( ( STRING_3 + type ) ) ; location . field ( STRING_4 , geometry . get ( STRING_4 ) ) ; com . orientechnologies . orient . core . record . impl . METHOD_2 IDENT_3 = new com . orientechnologies . orient . core . record . impl . METHOD_2 ( STRING_5 ) ; IDENT_3 . field ( "name" , STRING_6 ) ; IDENT_3 . field ( STRING_7 , location ) ; db . save ( IDENT_3 ) ; com . orientechnologies . orient . core . index . IDENT_4 < ? > index = db . METHOD_4 ( ) . METHOD_5 ( ) . METHOD_6 ( STRING_8 ) ; "<AssertPlaceHolder>" ; METHOD_7 ( ) ; } METHOD_8 ( ) { while ( true ) { try { return storage . METHOD_9 ( false , false , IDENT_5 , new com . orientechnologies . orient . core . storage . impl . IDENT_6 . IDENT_7 < java . lang . Long > ( ) { @ com . orientechnologies . lucene . index . Override public com . orientechnologies . lucene . index . Long METHOD_10 ( com . orientechnologies . orient . core . index . engine . IDENT_8 engine ) { com . orientechnologies . orient . core . storage . IDENT_9 transaction = METHOD_11 ( ) . METHOD_12 ( ) ; com . orientechnologies . lucene . engine . IDENT_10 IDENT_11 = ( ( com . orientechnologies . lucene . engine . IDENT_10 ) ( engine ) ) ; return IDENT_11 . METHOD_13 ( METHOD_14 ( transaction ) ) ; } } ) ; } catch ( com . orientechnologies . orient . core . exception . IDENT_12 e ) { METHOD_15 ( ) ; } } }
org . junit . Assert . assertEquals ( 2 , index . METHOD_8 ( ) )