int function ( String arg0 ) { HiveServerVersionInfo [ ] loc0 = HiveServerVersionInfo . values ( ) ; for ( int loc1 = 0 ; loc1 < loc0 . length ; loc1 ++ ) { if ( loc0 [ loc1 ] . getDisplayName ( ) . equalsIgnoreCase ( arg0 ) ) { return loc1 ; } } return 0 ; }
gets the index of hive server by display name , if no index found , then return 0 . added by marvin wang on mar 25 , 2013 . concode_field_sep PlaceHolder placeHolder concode_field_sep String[] extractAvailableArrayDisplayNames concode_elem_sep String extractKey concode_elem_sep List<String> extractAvailableListDisplayNames concode_elem_sep String extractDisplayName concode_elem_sep int getIndexofHiveServerByKey concode_elem_sep List<String> extractListKeys concode_elem_sep String[] extractArrayDisplayNames concode_elem_sep List<String> extractListDisplayNames