@Override public String toString() { return ByteArrayFormatter.toHex(mBytes, ':'); } }
/** * Shell friendly string representation of the HBaseEntityId. * When used as input to a CLI, will be converted to the EntityId type specified in the * provided table layout. * * @return a copyable string. */ @Override public String toShellString() { return String.format("hbase=hex:%s", ByteArrayFormatter.toHex(mHBaseRowKey)); } }
/** {@inheritDoc} */ @Override public String toShellString() { if (mFijiRowKey != null) { return String.format("fiji=%s", Bytes.toStringBinary(mFijiRowKey)); } else { return String.format("hbase=hex:%s", ByteArrayFormatter.toHex(mHBaseRowKey)); } } }
/** {@inheritDoc} */ @Override public String toShellString() { if (mFijiRowKey != null) { return String.format("fiji=%s", Bytes.toStringBinary(mFijiRowKey)); } else { return String.format("hbase=hex:%s", ByteArrayFormatter.toHex(mHBaseRowKey)); } } }
/** * Constructs an EntityIdWritable from an existing EntityId. * * @param entityId from a FijiRowData. */ public EntityIdWritable(EntityId entityId) { mHBaseRowKey = entityId.getHBaseRowKey(); try { mComponents = entityId.getComponents(); } catch (IllegalStateException ise) { LOG.warn("Cannot retrieve EntityId components", ise.getMessage()); String asciiRowKey = ByteArrayFormatter.toHex(mHBaseRowKey); mComponents = Collections.singletonList((Object) asciiRowKey); } mShellString = entityId.toShellString(); }
/** {@inheritDoc} */ @Override protected void setup(Context context) throws IOException { try { super.setup(context); } catch (InterruptedException ie) { throw new IOException(ie); } if (context.getInputSplit() instanceof TableSplit) { TableSplit taskSplit = (TableSplit) context.getInputSplit(); LOG.info("Setting up map task on region [{} -- {}]", toHex(taskSplit.getStartRow()), toHex(taskSplit.getEndRow())); } }
LOG.debug("Generated split key: {}", ByteArrayFormatter.toHex(ends[i], ':'));
/** {@inheritDoc} */ @Override protected void cleanup(Context context) throws IOException { if (context.getInputSplit() instanceof TableSplit) { TableSplit taskSplit = (TableSplit) context.getInputSplit(); LOG.info("Cleaning up task on region [{} -- {}]", toHex(taskSplit.getStartRow()), toHex(taskSplit.getEndRow())); } try { super.cleanup(context); } catch (InterruptedException ie) { throw new IOException(ie); } }
public String toShellString() { if (mRowKeyFormat.getSalt().getSuppressKeyMaterialization()) { return String.format("hbase=hex:%s", ByteArrayFormatter.toHex(mHBaseRowKey));