Codota Logo
MetadataPayload
Code IndexAdd Codota to your IDE (free)

How to use
MetadataPayload
in
co.cask.cdap.proto.audit.payload.metadata

Best Java code snippets using co.cask.cdap.proto.audit.payload.metadata.MetadataPayload (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: co.cask.cdap/cdap-data-fabric

 /**
  * Build the metadata payload using the previous value, additions and deletions.
  *
  * @return the metadata payload built
  */
 public MetadataPayload build() {
  return new MetadataPayload(previous, additions, deletions);
 }
}
origin: cdapio/cdap

private int addAllSystemMetadata(Set<String> allMetadata) {
 for (AuditMessage auditMessage : getMetadataUpdateMessages()) {
  AuditPayload payload = auditMessage.getPayload();
  Assert.assertTrue(payload instanceof MetadataPayload);
  MetadataPayload metadataPayload = (MetadataPayload) payload;
  Map<MetadataScope, Metadata> additions = metadataPayload.getAdditions();
  if (additions.containsKey(MetadataScope.SYSTEM)) {
   allMetadata.addAll(additions.get(MetadataScope.SYSTEM).getProperties().keySet());
   allMetadata.addAll(additions.get(MetadataScope.SYSTEM).getTags());
  }
  Map<MetadataScope, Metadata> deletions = metadataPayload.getDeletions();
  if (deletions.containsKey(MetadataScope.SYSTEM)) {
   allMetadata.addAll(deletions.get(MetadataScope.SYSTEM).getProperties().keySet());
   allMetadata.addAll(deletions.get(MetadataScope.SYSTEM).getTags());
  }
 }
 return allMetadata.size();
}
origin: cdapio/cdap

 /**
  * Build the metadata payload using the previous value, additions and deletions.
  *
  * @return the metadata payload built
  */
 public MetadataPayload build() {
  return new MetadataPayload(previous, additions, deletions);
 }
}
co.cask.cdap.proto.audit.payload.metadataMetadataPayload

Javadoc

Represents changes to metadata of an entity.

Most used methods

  • <init>
  • getAdditions
  • getDeletions

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JButton (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now