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

How to use
FijiSchemaTable$SchemaHashCache
in
com.moz.fiji.schema

Best Java code snippets using com.moz.fiji.schema.FijiSchemaTable$SchemaHashCache (Showing top 3 results out of 315)

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

 /**
  * Hashes an Avro schema.
  *
  * @param schema Avro schema to hash.
  * @return the schema hash.
  */
 public BytesKey getHash(Schema schema) {
  final BytesKey hash = mCache.get(schema);
  if (null != hash) {
   return hash;
  }
  final BytesKey newHash = new BytesKey(hashSchema(schema));
  mCache.put(schema, newHash);
  return newHash;
 }
}
origin: com.moz.fiji.schema/fiji-schema-cassandra

/** {@inheritDoc} */
@Override
public BytesKey getSchemaHash(Schema schema) {
 return mHashCache.getHash(schema);
}
origin: com.moz.fiji.schema/fiji-schema

/** {@inheritDoc} */
@Override
public BytesKey getSchemaHash(Schema schema) {
 return mHashCache.getHash(schema);
}
com.moz.fiji.schemaFijiSchemaTable$SchemaHashCache

Javadoc

Cache providing an efficient mapping from Avro schema object to the schema hash. Computing the hash code of a schema is expensive as it serializes the Avro schema object into JSON.

Most used methods

  • getHash
    Hashes an Avro schema.
  • hashSchema
    Computes a hash of the specified Avro schema. Fiji currently uses MD5 sums (128 bits) of the schema

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top plugins for Android Studio
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