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

How to use
getHashType
method
in
com.moz.fiji.schema.avro.RowKeyFormat

Best Java code snippets using com.moz.fiji.schema.avro.RowKeyFormat.getHashType (Showing top 2 results out of 315)

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

/**
 * Hashes a Fiji row key.
 *
 * @param format Hashing specification.
 * @param fijiRowKey Fiji row key to hash.
 * @return a hash of the given Fiji row key.
 */
public static byte[] hashFijiRowKey(RowKeyFormat format, byte[] fijiRowKey) {
 // TODO refactor into hash factories:
 switch (format.getHashType()) {
 case MD5: return Hasher.hash(fijiRowKey);
 default:
  throw new RuntimeException(String.format("Unexpected hashing type: '%s'.", format));
 }
}
origin: com.moz.fiji.schema/fiji-schema

/**
 * Hashes a Fiji row key.
 *
 * @param format Hashing specification.
 * @param fijiRowKey Fiji row key.
 * @return a hash of the Fiji row key.
 */
public static byte[] hashFijiRowKey(RowKeyFormat format, byte[] fijiRowKey) {
 // TODO refactor into hash factories:
 switch (format.getHashType()) {
 case MD5: return Hasher.hash(fijiRowKey);
 default:
  throw new RuntimeException(String.format("Unexpected hashing type: '%s'.", format));
 }
}
com.moz.fiji.schema.avroRowKeyFormatgetHashType

Popular methods of RowKeyFormat

  • getEncoding
  • getHashSize

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Path (java.nio.file)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 12 Jupyter Notebook extensions
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