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;
    }
  }
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.
@param client The HBase client to use.
@param table The name of the HBase table to use.
@param idwidth Number of bytes on which the UIDs should be.
@param kind The 'kind' of the ID (must not be {@code null}).
@param id The ID to look for.
@return 0 if the ID for this kind was found, 1 otherwise.