private static int extactLookupId ( final HBaseClient client , final byte [ ] table , final short idwidth , final String kind , final byte [ ] id ) { final UniqueId uid = new UniqueId ( client , table , kind , ( int ) idwidth ) ; try { final String name = uid . getName ( id ) ; System . out . println ( kind + ' ' + name + ": " + Arrays . toString ( id ) ) ; return 0 ; } catch ( NoSuchUniqueId e ) { LOG . error ( e . getMessage ( ) ) ; return 1 ; } }
Looks up an ID for a given kind and prints it if found .