congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ByteArrayFormatter
Code IndexAdd Tabnine to your IDE (free)

How to use
ByteArrayFormatter
in
com.moz.fiji.schema.util

Best Java code snippets using com.moz.fiji.schema.util.ByteArrayFormatter (Showing top 11 results out of 315)

origin: com.moz.fiji.schema/fiji-schema

 @Override
 public String toString() {
  return ByteArrayFormatter.toHex(mBytes, ':');
 }
}
origin: com.moz.fiji.schema/fiji-schema

if (flag.startsWith(BYTES_SPEC_PREFIX_HEX)) {
 return ByteArrayFormatter.parseHex(flag.substring(BYTES_SPEC_PREFIX_HEX.length()));
origin: com.moz.fiji.schema/fiji-schema

final BytesKey bytesKey = new BytesKey(ByteArrayFormatter.parseHex(mGetByHashFlag, ':'));
final SchemaEntry sEntry = table.getSchemaEntry(bytesKey);
final Schema schema = sEntry.getSchema();
origin: com.moz.fiji.schema/fiji-schema

 /**
  * 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));
 }
}
origin: com.moz.fiji.schema/fiji-schema

 /** {@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));
  }
 }
}
origin: com.moz.fiji.schema/fiji-schema

 /** {@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));
  }
 }
}
origin: com.moz.fiji.hive/fiji-hive-lib

/**
 * 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();
}
origin: com.moz.fiji.schema/fiji-schema

LOG.debug("Generated split key: {}", ByteArrayFormatter.toHex(ends[i], ':'));
origin: com.moz.fiji.mapreduce/fiji-mapreduce

/** {@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);
 }
}
origin: com.moz.fiji.schema/fiji-schema

public String toShellString() {
 if (mRowKeyFormat.getSalt().getSuppressKeyMaterialization()) {
  return String.format("hbase=hex:%s", ByteArrayFormatter.toHex(mHBaseRowKey));
origin: com.moz.fiji.mapreduce/fiji-mapreduce

/** {@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()));
 }
}
com.moz.fiji.schema.utilByteArrayFormatter

Javadoc

Utility class to format byte arrays.

Most used methods

  • toHex
    Formats a byte array as a sequence of 2 hex-digits bytes with the specified separator.
  • parseHex
    Parses a string hexadecimal representation of a byte array with separator.

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • ImageIO (javax.imageio)
  • JFrame (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now