Tabnine Logo
SchemaMetadata.getCompatibility
Code IndexAdd Tabnine to your IDE (free)

How to use
getCompatibility
method
in
com.hortonworks.registries.schemaregistry.SchemaMetadata

Best Java code snippets using com.hortonworks.registries.schemaregistry.SchemaMetadata.getCompatibility (Showing top 9 results out of 315)

origin: hortonworks/registry

@Override
public CompatibilityResult checkForCompatibility(SchemaMetadata schemaMetadata,
                         String toSchemaText,
                         String existingSchemaText) {
  return checkCompatibility(schemaMetadata.getType(), toSchemaText, existingSchemaText, schemaMetadata.getCompatibility());
}
origin: com.hortonworks.registries/schema-registry-common

@Override
public int hashCode() {
  int result = type != null ? type.hashCode() : 0;
  result = 31 * result + (schemaGroup != null ? schemaGroup.hashCode() : 0);
  result = 31 * result + (name != null ? name.hashCode() : 0);
  result = 31 * result + (description != null ? description.hashCode() : 0);
  result = 31 * result + (getCompatibility() != null ? getCompatibility().hashCode() : 0);
  result = 31 * result + (getValidationLevel() != null ? getValidationLevel().hashCode() : 0);
  result = 31 * result + (evolve ? 1 : 0);
  return result;
}
origin: hortonworks/registry

@Override
public int hashCode() {
  int result = type != null ? type.hashCode() : 0;
  result = 31 * result + (schemaGroup != null ? schemaGroup.hashCode() : 0);
  result = 31 * result + (name != null ? name.hashCode() : 0);
  result = 31 * result + (description != null ? description.hashCode() : 0);
  result = 31 * result + (getCompatibility() != null ? getCompatibility().hashCode() : 0);
  result = 31 * result + (getValidationLevel() != null ? getValidationLevel().hashCode() : 0);
  result = 31 * result + (evolve ? 1 : 0);
  return result;
}
origin: hortonworks/registry

@Override
public boolean equals(Object o) {
  if (this == o) return true;
  if (o == null || getClass() != o.getClass()) return false;
  SchemaMetadata that = (SchemaMetadata) o;
  if (evolve != that.evolve) return false;
  if (type != null ? !type.equals(that.type) : that.type != null) return false;
  if (schemaGroup != null ? !schemaGroup.equals(that.schemaGroup) : that.schemaGroup != null) return false;
  if (name != null ? !name.equals(that.name) : that.name != null) return false;
  if (description != null ? !description.equals(that.description) : that.description != null) return false;
  if (getValidationLevel() != null ? !getValidationLevel().equals(that.getValidationLevel())
                   : that.getValidationLevel() != null) return false;
  return getCompatibility() == that.getCompatibility();
}
origin: com.hortonworks.registries/schema-registry-common

@Override
public boolean equals(Object o) {
  if (this == o) return true;
  if (o == null || getClass() != o.getClass()) return false;
  SchemaMetadata that = (SchemaMetadata) o;
  if (evolve != that.evolve) return false;
  if (type != null ? !type.equals(that.type) : that.type != null) return false;
  if (schemaGroup != null ? !schemaGroup.equals(that.schemaGroup) : that.schemaGroup != null) return false;
  if (name != null ? !name.equals(that.name) : that.name != null) return false;
  if (description != null ? !description.equals(that.description) : that.description != null) return false;
  if (getValidationLevel() != null ? !getValidationLevel().equals(that.getValidationLevel())
                   : that.getValidationLevel() != null) return false;
  return getCompatibility() == that.getCompatibility();
}
origin: com.hortonworks.registries/schema-registry-common

public Builder(SchemaMetadata schemaMetadata) {
  name = schemaMetadata.getName();
  type = schemaMetadata.getType();
  schemaGroup = schemaMetadata.getSchemaGroup();
  description = schemaMetadata.getDescription();
  compatibility = schemaMetadata.getCompatibility();
  validationLevel = schemaMetadata.getValidationLevel();
  evolve = schemaMetadata.isEvolve();
}
origin: hortonworks/registry

public Builder(SchemaMetadata schemaMetadata) {
  name = schemaMetadata.getName();
  type = schemaMetadata.getType();
  schemaGroup = schemaMetadata.getSchemaGroup();
  description = schemaMetadata.getDescription();
  compatibility = schemaMetadata.getCompatibility();
  validationLevel = schemaMetadata.getValidationLevel();
  evolve = schemaMetadata.isEvolve();
}
origin: hortonworks/registry

                     toSchema,
                     latestSchemaVersionInfo.getSchemaText(),
                     schemaMetadata.getCompatibility());
if (!compatibilityResult.isCompatible()) {
  LOG.info("Received schema is not compatible with the latest schema versions [{}] with schema name [{}]",
                       toSchema,
                       schemaVersionInfo.getSchemaText(),
                       schemaMetadata.getCompatibility());
  if (!compatibilityResult.isCompatible()) {
    LOG.info("Received schema is not compatible with one of the schema versions [{}] with schema name [{}]",
origin: hortonworks/registry

public static SchemaMetadataStorable updateSchemaMetadata(SchemaMetadataStorable schemaMetadataStorable, SchemaMetadata schemaMetadata) {
  schemaMetadataStorable.setType(schemaMetadata.getType());
  schemaMetadataStorable.setSchemaGroup(schemaMetadata.getSchemaGroup());
  schemaMetadataStorable.setName(schemaMetadata.getName());
  schemaMetadataStorable.setDescription(schemaMetadata.getDescription());
  schemaMetadataStorable.setCompatibility(schemaMetadata.getCompatibility());
  schemaMetadataStorable.setValidationLevel(schemaMetadata.getValidationLevel());
  schemaMetadataStorable.setEvolve(schemaMetadata.isEvolve());
  return schemaMetadataStorable;
}
com.hortonworks.registries.schemaregistrySchemaMetadatagetCompatibility

Popular methods of SchemaMetadata

  • getName
  • getDescription
  • getType
  • getValidationLevel
  • getSchemaGroup
  • isEvolve
  • <init>
  • equals
  • hashCode
  • toString
  • trim
  • trim

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Top Vim 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