diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/events/KafkaAuditHeader.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/events/KafkaAuditHeader.java
deleted file mode 100644
index 3fbcfa9cc7f8fe..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/events/KafkaAuditHeader.java
+++ /dev/null
@@ -1,528 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.events;
-@SuppressWarnings("all")
-/** This header records information about the context of an event as it is emitted into kafka and is intended to be used by the kafka audit application. For more information see go/kafkaauditheader */
-@org.apache.avro.specific.AvroGenerated
-public class KafkaAuditHeader extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"KafkaAuditHeader\",\"namespace\":\"com.linkedin.events\",\"doc\":\"This header records information about the context of an event as it is emitted into kafka and is intended to be used by the kafka audit application. For more information see go/kafkaauditheader\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"The time at which the event was emitted into kafka.\",\"compliance\":[{\"policy\":\"EVENT_TIME\"}]},{\"name\":\"server\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The fully qualified name of the host from which the event is being emitted.\",\"compliance\":\"NONE\"},{\"name\":\"instance\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The instance on the server from which the event is being emitted. e.g. i001\",\"default\":null,\"compliance\":\"NONE\"},{\"name\":\"appName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the application from which the event is being emitted. see go/appname\",\"compliance\":\"NONE\"},{\"name\":\"messageId\",\"type\":{\"type\":\"fixed\",\"name\":\"UUID\",\"size\":16},\"doc\":\"A unique identifier for the message\",\"compliance\":\"NONE\"},{\"name\":\"auditVersion\",\"type\":[\"null\",\"int\"],\"doc\":\"The version that is being used for auditing. In version 0, the audit trail buckets events into 10 minute audit windows based on the EventHeader timestamp. In version 1, the audit trail buckets events as follows: if the schema has an outer KafkaAuditHeader, use the outer audit header timestamp for bucketing; else if the EventHeader has an inner KafkaAuditHeader use that inner audit header's timestamp for bucketing\",\"default\":null,\"compliance\":\"NONE\"},{\"name\":\"fabricUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The fabricUrn of the host from which the event is being emitted. Fabric Urn in the format of urn:li:fabric:{fabric_name}. See go/fabric.\",\"default\":null,\"compliance\":\"NONE\"},{\"name\":\"clusterConnectionString\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"This is a String that the client uses to establish some kind of connection with the Kafka cluster. The exact format of it depends on specific versions of clients and brokers. This information could potentially identify the fabric and cluster with which the client is producing to or consuming from.\",\"default\":null,\"compliance\":\"NONE\"}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** The time at which the event was emitted into kafka. */
- @Deprecated public long time;
- /** The fully qualified name of the host from which the event is being emitted. */
- @Deprecated public java.lang.String server;
- /** The instance on the server from which the event is being emitted. e.g. i001 */
- @Deprecated public java.lang.String instance;
- /** The name of the application from which the event is being emitted. see go/appname */
- @Deprecated public java.lang.String appName;
- /** A unique identifier for the message */
- @Deprecated public com.linkedin.events.UUID messageId;
- /** The version that is being used for auditing. In version 0, the audit trail buckets events into 10 minute audit windows based on the EventHeader timestamp. In version 1, the audit trail buckets events as follows: if the schema has an outer KafkaAuditHeader, use the outer audit header timestamp for bucketing; else if the EventHeader has an inner KafkaAuditHeader use that inner audit header's timestamp for bucketing */
- @Deprecated public java.lang.Integer auditVersion;
- /** The fabricUrn of the host from which the event is being emitted. Fabric Urn in the format of urn:li:fabric:{fabric_name}. See go/fabric. */
- @Deprecated public java.lang.String fabricUrn;
- /** This is a String that the client uses to establish some kind of connection with the Kafka cluster. The exact format of it depends on specific versions of clients and brokers. This information could potentially identify the fabric and cluster with which the client is producing to or consuming from. */
- @Deprecated public java.lang.String clusterConnectionString;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public KafkaAuditHeader() {}
-
- /**
- * All-args constructor.
- */
- public KafkaAuditHeader(java.lang.Long time, java.lang.String server, java.lang.String instance, java.lang.String appName, com.linkedin.events.UUID messageId, java.lang.Integer auditVersion, java.lang.String fabricUrn, java.lang.String clusterConnectionString) {
- this.time = time;
- this.server = server;
- this.instance = instance;
- this.appName = appName;
- this.messageId = messageId;
- this.auditVersion = auditVersion;
- this.fabricUrn = fabricUrn;
- this.clusterConnectionString = clusterConnectionString;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return time;
- case 1: return server;
- case 2: return instance;
- case 3: return appName;
- case 4: return messageId;
- case 5: return auditVersion;
- case 6: return fabricUrn;
- case 7: return clusterConnectionString;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: time = (java.lang.Long)value$; break;
- case 1: server = (java.lang.String)value$; break;
- case 2: instance = (java.lang.String)value$; break;
- case 3: appName = (java.lang.String)value$; break;
- case 4: messageId = (com.linkedin.events.UUID)value$; break;
- case 5: auditVersion = (java.lang.Integer)value$; break;
- case 6: fabricUrn = (java.lang.String)value$; break;
- case 7: clusterConnectionString = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'time' field.
- * The time at which the event was emitted into kafka. */
- public java.lang.Long getTime() {
- return time;
- }
-
- /**
- * Sets the value of the 'time' field.
- * The time at which the event was emitted into kafka. * @param value the value to set.
- */
- public void setTime(java.lang.Long value) {
- this.time = value;
- }
-
- /**
- * Gets the value of the 'server' field.
- * The fully qualified name of the host from which the event is being emitted. */
- public java.lang.String getServer() {
- return server;
- }
-
- /**
- * Sets the value of the 'server' field.
- * The fully qualified name of the host from which the event is being emitted. * @param value the value to set.
- */
- public void setServer(java.lang.String value) {
- this.server = value;
- }
-
- /**
- * Gets the value of the 'instance' field.
- * The instance on the server from which the event is being emitted. e.g. i001 */
- public java.lang.String getInstance() {
- return instance;
- }
-
- /**
- * Sets the value of the 'instance' field.
- * The instance on the server from which the event is being emitted. e.g. i001 * @param value the value to set.
- */
- public void setInstance(java.lang.String value) {
- this.instance = value;
- }
-
- /**
- * Gets the value of the 'appName' field.
- * The name of the application from which the event is being emitted. see go/appname */
- public java.lang.String getAppName() {
- return appName;
- }
-
- /**
- * Sets the value of the 'appName' field.
- * The name of the application from which the event is being emitted. see go/appname * @param value the value to set.
- */
- public void setAppName(java.lang.String value) {
- this.appName = value;
- }
-
- /**
- * Gets the value of the 'messageId' field.
- * A unique identifier for the message */
- public com.linkedin.events.UUID getMessageId() {
- return messageId;
- }
-
- /**
- * Sets the value of the 'messageId' field.
- * A unique identifier for the message * @param value the value to set.
- */
- public void setMessageId(com.linkedin.events.UUID value) {
- this.messageId = value;
- }
-
- /**
- * Gets the value of the 'auditVersion' field.
- * The version that is being used for auditing. In version 0, the audit trail buckets events into 10 minute audit windows based on the EventHeader timestamp. In version 1, the audit trail buckets events as follows: if the schema has an outer KafkaAuditHeader, use the outer audit header timestamp for bucketing; else if the EventHeader has an inner KafkaAuditHeader use that inner audit header's timestamp for bucketing */
- public java.lang.Integer getAuditVersion() {
- return auditVersion;
- }
-
- /**
- * Sets the value of the 'auditVersion' field.
- * The version that is being used for auditing. In version 0, the audit trail buckets events into 10 minute audit windows based on the EventHeader timestamp. In version 1, the audit trail buckets events as follows: if the schema has an outer KafkaAuditHeader, use the outer audit header timestamp for bucketing; else if the EventHeader has an inner KafkaAuditHeader use that inner audit header's timestamp for bucketing * @param value the value to set.
- */
- public void setAuditVersion(java.lang.Integer value) {
- this.auditVersion = value;
- }
-
- /**
- * Gets the value of the 'fabricUrn' field.
- * The fabricUrn of the host from which the event is being emitted. Fabric Urn in the format of urn:li:fabric:{fabric_name}. See go/fabric. */
- public java.lang.String getFabricUrn() {
- return fabricUrn;
- }
-
- /**
- * Sets the value of the 'fabricUrn' field.
- * The fabricUrn of the host from which the event is being emitted. Fabric Urn in the format of urn:li:fabric:{fabric_name}. See go/fabric. * @param value the value to set.
- */
- public void setFabricUrn(java.lang.String value) {
- this.fabricUrn = value;
- }
-
- /**
- * Gets the value of the 'clusterConnectionString' field.
- * This is a String that the client uses to establish some kind of connection with the Kafka cluster. The exact format of it depends on specific versions of clients and brokers. This information could potentially identify the fabric and cluster with which the client is producing to or consuming from. */
- public java.lang.String getClusterConnectionString() {
- return clusterConnectionString;
- }
-
- /**
- * Sets the value of the 'clusterConnectionString' field.
- * This is a String that the client uses to establish some kind of connection with the Kafka cluster. The exact format of it depends on specific versions of clients and brokers. This information could potentially identify the fabric and cluster with which the client is producing to or consuming from. * @param value the value to set.
- */
- public void setClusterConnectionString(java.lang.String value) {
- this.clusterConnectionString = value;
- }
-
- /** Creates a new KafkaAuditHeader RecordBuilder */
- public static com.linkedin.events.KafkaAuditHeader.Builder newBuilder() {
- return new com.linkedin.events.KafkaAuditHeader.Builder();
- }
-
- /** Creates a new KafkaAuditHeader RecordBuilder by copying an existing Builder */
- public static com.linkedin.events.KafkaAuditHeader.Builder newBuilder(com.linkedin.events.KafkaAuditHeader.Builder other) {
- return new com.linkedin.events.KafkaAuditHeader.Builder(other);
- }
-
- /** Creates a new KafkaAuditHeader RecordBuilder by copying an existing KafkaAuditHeader instance */
- public static com.linkedin.events.KafkaAuditHeader.Builder newBuilder(com.linkedin.events.KafkaAuditHeader other) {
- return new com.linkedin.events.KafkaAuditHeader.Builder(other);
- }
-
- /**
- * RecordBuilder for KafkaAuditHeader instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private long time;
- private java.lang.String server;
- private java.lang.String instance;
- private java.lang.String appName;
- private com.linkedin.events.UUID messageId;
- private java.lang.Integer auditVersion;
- private java.lang.String fabricUrn;
- private java.lang.String clusterConnectionString;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.events.KafkaAuditHeader.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.events.KafkaAuditHeader.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.time)) {
- this.time = data().deepCopy(fields()[0].schema(), other.time);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.server)) {
- this.server = data().deepCopy(fields()[1].schema(), other.server);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.instance)) {
- this.instance = data().deepCopy(fields()[2].schema(), other.instance);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.appName)) {
- this.appName = data().deepCopy(fields()[3].schema(), other.appName);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.messageId)) {
- this.messageId = data().deepCopy(fields()[4].schema(), other.messageId);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.auditVersion)) {
- this.auditVersion = data().deepCopy(fields()[5].schema(), other.auditVersion);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.fabricUrn)) {
- this.fabricUrn = data().deepCopy(fields()[6].schema(), other.fabricUrn);
- fieldSetFlags()[6] = true;
- }
- if (isValidValue(fields()[7], other.clusterConnectionString)) {
- this.clusterConnectionString = data().deepCopy(fields()[7].schema(), other.clusterConnectionString);
- fieldSetFlags()[7] = true;
- }
- }
-
- /** Creates a Builder by copying an existing KafkaAuditHeader instance */
- private Builder(com.linkedin.events.KafkaAuditHeader other) {
- super(com.linkedin.events.KafkaAuditHeader.SCHEMA$);
- if (isValidValue(fields()[0], other.time)) {
- this.time = data().deepCopy(fields()[0].schema(), other.time);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.server)) {
- this.server = data().deepCopy(fields()[1].schema(), other.server);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.instance)) {
- this.instance = data().deepCopy(fields()[2].schema(), other.instance);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.appName)) {
- this.appName = data().deepCopy(fields()[3].schema(), other.appName);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.messageId)) {
- this.messageId = data().deepCopy(fields()[4].schema(), other.messageId);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.auditVersion)) {
- this.auditVersion = data().deepCopy(fields()[5].schema(), other.auditVersion);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.fabricUrn)) {
- this.fabricUrn = data().deepCopy(fields()[6].schema(), other.fabricUrn);
- fieldSetFlags()[6] = true;
- }
- if (isValidValue(fields()[7], other.clusterConnectionString)) {
- this.clusterConnectionString = data().deepCopy(fields()[7].schema(), other.clusterConnectionString);
- fieldSetFlags()[7] = true;
- }
- }
-
- /** Gets the value of the 'time' field */
- public java.lang.Long getTime() {
- return time;
- }
-
- /** Sets the value of the 'time' field */
- public com.linkedin.events.KafkaAuditHeader.Builder setTime(long value) {
- validate(fields()[0], value);
- this.time = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'time' field has been set */
- public boolean hasTime() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'time' field */
- public com.linkedin.events.KafkaAuditHeader.Builder clearTime() {
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'server' field */
- public java.lang.String getServer() {
- return server;
- }
-
- /** Sets the value of the 'server' field */
- public com.linkedin.events.KafkaAuditHeader.Builder setServer(java.lang.String value) {
- validate(fields()[1], value);
- this.server = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'server' field has been set */
- public boolean hasServer() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'server' field */
- public com.linkedin.events.KafkaAuditHeader.Builder clearServer() {
- server = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'instance' field */
- public java.lang.String getInstance() {
- return instance;
- }
-
- /** Sets the value of the 'instance' field */
- public com.linkedin.events.KafkaAuditHeader.Builder setInstance(java.lang.String value) {
- validate(fields()[2], value);
- this.instance = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'instance' field has been set */
- public boolean hasInstance() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'instance' field */
- public com.linkedin.events.KafkaAuditHeader.Builder clearInstance() {
- instance = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'appName' field */
- public java.lang.String getAppName() {
- return appName;
- }
-
- /** Sets the value of the 'appName' field */
- public com.linkedin.events.KafkaAuditHeader.Builder setAppName(java.lang.String value) {
- validate(fields()[3], value);
- this.appName = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'appName' field has been set */
- public boolean hasAppName() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'appName' field */
- public com.linkedin.events.KafkaAuditHeader.Builder clearAppName() {
- appName = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- /** Gets the value of the 'messageId' field */
- public com.linkedin.events.UUID getMessageId() {
- return messageId;
- }
-
- /** Sets the value of the 'messageId' field */
- public com.linkedin.events.KafkaAuditHeader.Builder setMessageId(com.linkedin.events.UUID value) {
- validate(fields()[4], value);
- this.messageId = value;
- fieldSetFlags()[4] = true;
- return this;
- }
-
- /** Checks whether the 'messageId' field has been set */
- public boolean hasMessageId() {
- return fieldSetFlags()[4];
- }
-
- /** Clears the value of the 'messageId' field */
- public com.linkedin.events.KafkaAuditHeader.Builder clearMessageId() {
- messageId = null;
- fieldSetFlags()[4] = false;
- return this;
- }
-
- /** Gets the value of the 'auditVersion' field */
- public java.lang.Integer getAuditVersion() {
- return auditVersion;
- }
-
- /** Sets the value of the 'auditVersion' field */
- public com.linkedin.events.KafkaAuditHeader.Builder setAuditVersion(java.lang.Integer value) {
- validate(fields()[5], value);
- this.auditVersion = value;
- fieldSetFlags()[5] = true;
- return this;
- }
-
- /** Checks whether the 'auditVersion' field has been set */
- public boolean hasAuditVersion() {
- return fieldSetFlags()[5];
- }
-
- /** Clears the value of the 'auditVersion' field */
- public com.linkedin.events.KafkaAuditHeader.Builder clearAuditVersion() {
- auditVersion = null;
- fieldSetFlags()[5] = false;
- return this;
- }
-
- /** Gets the value of the 'fabricUrn' field */
- public java.lang.String getFabricUrn() {
- return fabricUrn;
- }
-
- /** Sets the value of the 'fabricUrn' field */
- public com.linkedin.events.KafkaAuditHeader.Builder setFabricUrn(java.lang.String value) {
- validate(fields()[6], value);
- this.fabricUrn = value;
- fieldSetFlags()[6] = true;
- return this;
- }
-
- /** Checks whether the 'fabricUrn' field has been set */
- public boolean hasFabricUrn() {
- return fieldSetFlags()[6];
- }
-
- /** Clears the value of the 'fabricUrn' field */
- public com.linkedin.events.KafkaAuditHeader.Builder clearFabricUrn() {
- fabricUrn = null;
- fieldSetFlags()[6] = false;
- return this;
- }
-
- /** Gets the value of the 'clusterConnectionString' field */
- public java.lang.String getClusterConnectionString() {
- return clusterConnectionString;
- }
-
- /** Sets the value of the 'clusterConnectionString' field */
- public com.linkedin.events.KafkaAuditHeader.Builder setClusterConnectionString(java.lang.String value) {
- validate(fields()[7], value);
- this.clusterConnectionString = value;
- fieldSetFlags()[7] = true;
- return this;
- }
-
- /** Checks whether the 'clusterConnectionString' field has been set */
- public boolean hasClusterConnectionString() {
- return fieldSetFlags()[7];
- }
-
- /** Clears the value of the 'clusterConnectionString' field */
- public com.linkedin.events.KafkaAuditHeader.Builder clearClusterConnectionString() {
- clusterConnectionString = null;
- fieldSetFlags()[7] = false;
- return this;
- }
-
- @Override
- public KafkaAuditHeader build() {
- try {
- KafkaAuditHeader record = new KafkaAuditHeader();
- record.time = fieldSetFlags()[0] ? this.time : (java.lang.Long) defaultValue(fields()[0]);
- record.server = fieldSetFlags()[1] ? this.server : (java.lang.String) defaultValue(fields()[1]);
- record.instance = fieldSetFlags()[2] ? this.instance : (java.lang.String) defaultValue(fields()[2]);
- record.appName = fieldSetFlags()[3] ? this.appName : (java.lang.String) defaultValue(fields()[3]);
- record.messageId = fieldSetFlags()[4] ? this.messageId : (com.linkedin.events.UUID) defaultValue(fields()[4]);
- record.auditVersion = fieldSetFlags()[5] ? this.auditVersion : (java.lang.Integer) defaultValue(fields()[5]);
- record.fabricUrn = fieldSetFlags()[6] ? this.fabricUrn : (java.lang.String) defaultValue(fields()[6]);
- record.clusterConnectionString = fieldSetFlags()[7] ? this.clusterConnectionString : (java.lang.String) defaultValue(fields()[7]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/events/UUID.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/events/UUID.java
deleted file mode 100644
index 65d841736d0b42..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/events/UUID.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.events;
-@SuppressWarnings("all")
-@org.apache.avro.specific.FixedSize(16)
-@org.apache.avro.specific.AvroGenerated
-public class UUID extends org.apache.avro.specific.SpecificFixed {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"fixed\",\"name\":\"UUID\",\"namespace\":\"com.linkedin.events\",\"size\":16}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-
- /** Creates a new UUID */
- public UUID() {
- super();
- }
-
- /** Creates a new UUID with the given bytes */
- public UUID(byte[] bytes) {
- super(bytes);
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/access/token/DataHubAccessTokenInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/access/token/DataHubAccessTokenInfo.java
deleted file mode 100644
index 0120dfdbaae520..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/access/token/DataHubAccessTokenInfo.java
+++ /dev/null
@@ -1,418 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.access.token;
-@SuppressWarnings("all")
-/** Information about a DataHub Access Token */
-@org.apache.avro.specific.AvroGenerated
-public class DataHubAccessTokenInfo extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"DataHubAccessTokenInfo\",\"namespace\":\"com.linkedin.pegasus2avro.access.token\",\"doc\":\"Information about a DataHub Access Token\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"User defined name for the access token if defined.\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"actorUrn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the actor to which this access token belongs to.\",\"Searchable\":{\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"ownerUrn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the actor which created this access token.\",\"Searchable\":{\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"createdAt\",\"type\":\"long\",\"doc\":\"When the token was created.\",\"Searchable\":{\"fieldType\":\"COUNT\",\"queryByDefault\":false}},{\"name\":\"expiresAt\",\"type\":[\"null\",\"long\"],\"doc\":\"When the token expires.\",\"default\":null,\"Searchable\":{\"fieldType\":\"COUNT\",\"queryByDefault\":false}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description of the token if defined.\",\"default\":null}],\"Aspect\":{\"name\":\"dataHubAccessTokenInfo\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** User defined name for the access token if defined. */
- @Deprecated public java.lang.String name;
- /** Urn of the actor to which this access token belongs to. */
- @Deprecated public java.lang.String actorUrn;
- /** Urn of the actor which created this access token. */
- @Deprecated public java.lang.String ownerUrn;
- /** When the token was created. */
- @Deprecated public long createdAt;
- /** When the token expires. */
- @Deprecated public java.lang.Long expiresAt;
- /** Description of the token if defined. */
- @Deprecated public java.lang.String description;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public DataHubAccessTokenInfo() {}
-
- /**
- * All-args constructor.
- */
- public DataHubAccessTokenInfo(java.lang.String name, java.lang.String actorUrn, java.lang.String ownerUrn, java.lang.Long createdAt, java.lang.Long expiresAt, java.lang.String description) {
- this.name = name;
- this.actorUrn = actorUrn;
- this.ownerUrn = ownerUrn;
- this.createdAt = createdAt;
- this.expiresAt = expiresAt;
- this.description = description;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return name;
- case 1: return actorUrn;
- case 2: return ownerUrn;
- case 3: return createdAt;
- case 4: return expiresAt;
- case 5: return description;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: name = (java.lang.String)value$; break;
- case 1: actorUrn = (java.lang.String)value$; break;
- case 2: ownerUrn = (java.lang.String)value$; break;
- case 3: createdAt = (java.lang.Long)value$; break;
- case 4: expiresAt = (java.lang.Long)value$; break;
- case 5: description = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'name' field.
- * User defined name for the access token if defined. */
- public java.lang.String getName() {
- return name;
- }
-
- /**
- * Sets the value of the 'name' field.
- * User defined name for the access token if defined. * @param value the value to set.
- */
- public void setName(java.lang.String value) {
- this.name = value;
- }
-
- /**
- * Gets the value of the 'actorUrn' field.
- * Urn of the actor to which this access token belongs to. */
- public java.lang.String getActorUrn() {
- return actorUrn;
- }
-
- /**
- * Sets the value of the 'actorUrn' field.
- * Urn of the actor to which this access token belongs to. * @param value the value to set.
- */
- public void setActorUrn(java.lang.String value) {
- this.actorUrn = value;
- }
-
- /**
- * Gets the value of the 'ownerUrn' field.
- * Urn of the actor which created this access token. */
- public java.lang.String getOwnerUrn() {
- return ownerUrn;
- }
-
- /**
- * Sets the value of the 'ownerUrn' field.
- * Urn of the actor which created this access token. * @param value the value to set.
- */
- public void setOwnerUrn(java.lang.String value) {
- this.ownerUrn = value;
- }
-
- /**
- * Gets the value of the 'createdAt' field.
- * When the token was created. */
- public java.lang.Long getCreatedAt() {
- return createdAt;
- }
-
- /**
- * Sets the value of the 'createdAt' field.
- * When the token was created. * @param value the value to set.
- */
- public void setCreatedAt(java.lang.Long value) {
- this.createdAt = value;
- }
-
- /**
- * Gets the value of the 'expiresAt' field.
- * When the token expires. */
- public java.lang.Long getExpiresAt() {
- return expiresAt;
- }
-
- /**
- * Sets the value of the 'expiresAt' field.
- * When the token expires. * @param value the value to set.
- */
- public void setExpiresAt(java.lang.Long value) {
- this.expiresAt = value;
- }
-
- /**
- * Gets the value of the 'description' field.
- * Description of the token if defined. */
- public java.lang.String getDescription() {
- return description;
- }
-
- /**
- * Sets the value of the 'description' field.
- * Description of the token if defined. * @param value the value to set.
- */
- public void setDescription(java.lang.String value) {
- this.description = value;
- }
-
- /** Creates a new DataHubAccessTokenInfo RecordBuilder */
- public static com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder();
- }
-
- /** Creates a new DataHubAccessTokenInfo RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder newBuilder(com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder other) {
- return new com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder(other);
- }
-
- /** Creates a new DataHubAccessTokenInfo RecordBuilder by copying an existing DataHubAccessTokenInfo instance */
- public static com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder newBuilder(com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo other) {
- return new com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder(other);
- }
-
- /**
- * RecordBuilder for DataHubAccessTokenInfo instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String name;
- private java.lang.String actorUrn;
- private java.lang.String ownerUrn;
- private long createdAt;
- private java.lang.Long expiresAt;
- private java.lang.String description;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.name)) {
- this.name = data().deepCopy(fields()[0].schema(), other.name);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.actorUrn)) {
- this.actorUrn = data().deepCopy(fields()[1].schema(), other.actorUrn);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.ownerUrn)) {
- this.ownerUrn = data().deepCopy(fields()[2].schema(), other.ownerUrn);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.createdAt)) {
- this.createdAt = data().deepCopy(fields()[3].schema(), other.createdAt);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.expiresAt)) {
- this.expiresAt = data().deepCopy(fields()[4].schema(), other.expiresAt);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.description)) {
- this.description = data().deepCopy(fields()[5].schema(), other.description);
- fieldSetFlags()[5] = true;
- }
- }
-
- /** Creates a Builder by copying an existing DataHubAccessTokenInfo instance */
- private Builder(com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo other) {
- super(com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.SCHEMA$);
- if (isValidValue(fields()[0], other.name)) {
- this.name = data().deepCopy(fields()[0].schema(), other.name);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.actorUrn)) {
- this.actorUrn = data().deepCopy(fields()[1].schema(), other.actorUrn);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.ownerUrn)) {
- this.ownerUrn = data().deepCopy(fields()[2].schema(), other.ownerUrn);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.createdAt)) {
- this.createdAt = data().deepCopy(fields()[3].schema(), other.createdAt);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.expiresAt)) {
- this.expiresAt = data().deepCopy(fields()[4].schema(), other.expiresAt);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.description)) {
- this.description = data().deepCopy(fields()[5].schema(), other.description);
- fieldSetFlags()[5] = true;
- }
- }
-
- /** Gets the value of the 'name' field */
- public java.lang.String getName() {
- return name;
- }
-
- /** Sets the value of the 'name' field */
- public com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder setName(java.lang.String value) {
- validate(fields()[0], value);
- this.name = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'name' field has been set */
- public boolean hasName() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'name' field */
- public com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder clearName() {
- name = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'actorUrn' field */
- public java.lang.String getActorUrn() {
- return actorUrn;
- }
-
- /** Sets the value of the 'actorUrn' field */
- public com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder setActorUrn(java.lang.String value) {
- validate(fields()[1], value);
- this.actorUrn = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'actorUrn' field has been set */
- public boolean hasActorUrn() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'actorUrn' field */
- public com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder clearActorUrn() {
- actorUrn = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'ownerUrn' field */
- public java.lang.String getOwnerUrn() {
- return ownerUrn;
- }
-
- /** Sets the value of the 'ownerUrn' field */
- public com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder setOwnerUrn(java.lang.String value) {
- validate(fields()[2], value);
- this.ownerUrn = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'ownerUrn' field has been set */
- public boolean hasOwnerUrn() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'ownerUrn' field */
- public com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder clearOwnerUrn() {
- ownerUrn = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'createdAt' field */
- public java.lang.Long getCreatedAt() {
- return createdAt;
- }
-
- /** Sets the value of the 'createdAt' field */
- public com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder setCreatedAt(long value) {
- validate(fields()[3], value);
- this.createdAt = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'createdAt' field has been set */
- public boolean hasCreatedAt() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'createdAt' field */
- public com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder clearCreatedAt() {
- fieldSetFlags()[3] = false;
- return this;
- }
-
- /** Gets the value of the 'expiresAt' field */
- public java.lang.Long getExpiresAt() {
- return expiresAt;
- }
-
- /** Sets the value of the 'expiresAt' field */
- public com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder setExpiresAt(java.lang.Long value) {
- validate(fields()[4], value);
- this.expiresAt = value;
- fieldSetFlags()[4] = true;
- return this;
- }
-
- /** Checks whether the 'expiresAt' field has been set */
- public boolean hasExpiresAt() {
- return fieldSetFlags()[4];
- }
-
- /** Clears the value of the 'expiresAt' field */
- public com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder clearExpiresAt() {
- expiresAt = null;
- fieldSetFlags()[4] = false;
- return this;
- }
-
- /** Gets the value of the 'description' field */
- public java.lang.String getDescription() {
- return description;
- }
-
- /** Sets the value of the 'description' field */
- public com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder setDescription(java.lang.String value) {
- validate(fields()[5], value);
- this.description = value;
- fieldSetFlags()[5] = true;
- return this;
- }
-
- /** Checks whether the 'description' field has been set */
- public boolean hasDescription() {
- return fieldSetFlags()[5];
- }
-
- /** Clears the value of the 'description' field */
- public com.linkedin.pegasus2avro.access.token.DataHubAccessTokenInfo.Builder clearDescription() {
- description = null;
- fieldSetFlags()[5] = false;
- return this;
- }
-
- @Override
- public DataHubAccessTokenInfo build() {
- try {
- DataHubAccessTokenInfo record = new DataHubAccessTokenInfo();
- record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]);
- record.actorUrn = fieldSetFlags()[1] ? this.actorUrn : (java.lang.String) defaultValue(fields()[1]);
- record.ownerUrn = fieldSetFlags()[2] ? this.ownerUrn : (java.lang.String) defaultValue(fields()[2]);
- record.createdAt = fieldSetFlags()[3] ? this.createdAt : (java.lang.Long) defaultValue(fields()[3]);
- record.expiresAt = fieldSetFlags()[4] ? this.expiresAt : (java.lang.Long) defaultValue(fields()[4]);
- record.description = fieldSetFlags()[5] ? this.description : (java.lang.String) defaultValue(fields()[5]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionInfo.java
deleted file mode 100644
index 054e63196cc6b8..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionInfo.java
+++ /dev/null
@@ -1,309 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-/** Information about an assertion */
-@org.apache.avro.specific.AvroGenerated
-public class AssertionInfo extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AssertionInfo\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"doc\":\"Information about an assertion\",\"fields\":[{\"name\":\"customProperties\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"},\"doc\":\"Custom property bag.\",\"default\":{},\"Searchable\":{\"/*\":{\"queryByDefault\":true}}},{\"name\":\"externalUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"URL where the reference exist\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"AssertionType\",\"symbols\":[\"DATASET\"]},\"doc\":\"Type of assertion. Assertion types can evolve to span Datasets, Flows (Pipelines), Models, Features etc.\"},{\"name\":\"datasetAssertion\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DatasetAssertionInfo\",\"doc\":\"Attributes that are applicable to single-Dataset Assertions\",\"fields\":[{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The dataset targeted by this assertion.\",\"Relationship\":{\"entityTypes\":[\"dataset\"],\"name\":\"Asserts\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"scope\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetAssertionScope\",\"symbols\":[\"DATASET_COLUMN\",\"DATASET_ROWS\",\"DATASET_SCHEMA\",\"UNKNOWN\"],\"symbolDocs\":{\"DATASET_COLUMN\":\"This assertion applies to dataset columns\",\"DATASET_ROWS\":\"This assertion applies to entire rows of the dataset\",\"DATASET_SCHEMA\":\"This assertion applies to the schema of the dataset\",\"UNKNOWN\":\"The scope of the assertion is unknown\"}},\"doc\":\"Scope of the Assertion. What part of the dataset does this assertion apply to?\"},{\"name\":\"fields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"One or more dataset schema fields that are targeted by this assertion\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Asserts\"}}},{\"name\":\"aggregation\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"AssertionStdAggregation\",\"doc\":\"The function that is applied to the aggregation input (schema, rows, column values) before evaluating an operator.\",\"symbols\":[\"ROW_COUNT\",\"COLUMNS\",\"COLUMN_COUNT\",\"IDENTITY\",\"MEAN\",\"MEDIAN\",\"UNIQUE_COUNT\",\"UNIQUE_PROPOTION\",\"NULL_COUNT\",\"NULL_PROPORTION\",\"STDDEV\",\"MIN\",\"MAX\",\"SUM\",\"_NATIVE_\"],\"symbolDocs\":{\"COLUMNS\":\"Assertion is applied on all columns.\",\"COLUMN_COUNT\":\"Assertion is applied on number of columns.\",\"IDENTITY\":\"Assertion is applied on individual column value.\",\"MAX\":\"Assertion is applied on column std deviation\",\"MEAN\":\"Assertion is applied on column mean\",\"MEDIAN\":\"Assertion is applied on column median\",\"MIN\":\"Assertion is applied on column min\",\"NULL_COUNT\":\"Assertion is applied on number of null values in column\",\"NULL_PROPORTION\":\"Assertion is applied on proportion of null values in column\",\"ROW_COUNT\":\"Assertion is applied on number of rows.\",\"STDDEV\":\"Assertion is applied on column std deviation\",\"SUM\":\"Assertion is applied on column sum\",\"UNIQUE_COUNT\":\"Assertion is applied on number of distinct values in column\",\"UNIQUE_PROPOTION\":\"Assertion is applied on proportion of distinct values in column\",\"_NATIVE_\":\"Other\"}}],\"doc\":\"Standardized assertion operator\",\"default\":null},{\"name\":\"operator\",\"type\":{\"type\":\"enum\",\"name\":\"AssertionStdOperator\",\"doc\":\"A boolean operator that is applied on the input to an assertion, after an aggregation function has been applied.\",\"symbols\":[\"BETWEEN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"EQUAL_TO\",\"NOT_NULL\",\"CONTAIN\",\"END_WITH\",\"START_WITH\",\"REGEX_MATCH\",\"IN\",\"NOT_IN\",\"_NATIVE_\"],\"symbolDocs\":{\"BETWEEN\":\"Value being asserted is between min_value and max_value. Requires 'minValue' & 'maxValue' parameters.\",\"CONTAIN\":\"Value being asserted contains value. Requires 'value' parameter.\",\"END_WITH\":\"Value being asserted ends with value. Requires 'value' parameter.\",\"EQUAL_TO\":\"Value being asserted is equal to value. Requires 'value' parameter.\",\"GREATER_THAN\":\"Value being asserted is greater than some value. Requires 'value' parameter.\",\"GREATER_THAN_OR_EQUAL_TO\":\"Value being asserted is greater than or equal to some value. Requires 'value' parameter.\",\"IN\":\"Value being asserted is one of the array values. Requires 'value' parameter.\",\"LESS_THAN\":\"Value being asserted is less than a max value. Requires 'value' parameter.\",\"LESS_THAN_OR_EQUAL_TO\":\"Value being asserted is less than or equal to some value. Requires 'value' parameter.\",\"NOT_IN\":\"Value being asserted is not in one of the array values. Requires 'value' parameter.\",\"NOT_NULL\":\"Value being asserted is not null. Requires no parameters.\",\"REGEX_MATCH\":\"Value being asserted matches the regex value. Requires 'value' parameter.\",\"START_WITH\":\"Value being asserted starts with value. Requires 'value' parameter.\",\"_NATIVE_\":\"Other\"}},\"doc\":\"Standardized assertion operator\"},{\"name\":\"parameters\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"AssertionStdParameters\",\"doc\":\"Parameters for AssertionStdOperators.\",\"fields\":[{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"AssertionStdParameter\",\"doc\":\"Single parameter for AssertionStdOperators.\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The parameter value\"},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"AssertionStdParameterType\",\"symbols\":[\"STRING\",\"NUMBER\",\"LIST\",\"SET\",\"UNKNOWN\"]},\"doc\":\"The type of the parameter\"}]}],\"doc\":\"The value parameter of an assertion\",\"default\":null},{\"name\":\"maxValue\",\"type\":[\"null\",\"AssertionStdParameter\"],\"doc\":\"The maxValue parameter of an assertion\",\"default\":null},{\"name\":\"minValue\",\"type\":[\"null\",\"AssertionStdParameter\"],\"doc\":\"The minValue parameter of an assertion\",\"default\":null}]}],\"doc\":\"Standard parameters required for the assertion. e.g. min_value, max_value, value, columns\",\"default\":null},{\"name\":\"nativeType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Native assertion type\",\"default\":null},{\"name\":\"nativeParameters\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Native parameters required for the assertion.\",\"default\":null},{\"name\":\"logic\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Dataset Assertion information when type is DATASET\",\"default\":null}],\"Aspect\":{\"name\":\"assertionInfo\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** Custom property bag. */
- @Deprecated public java.util.Map customProperties;
- /** URL where the reference exist */
- @Deprecated public java.lang.String externalUrl;
- /** Type of assertion. Assertion types can evolve to span Datasets, Flows (Pipelines), Models, Features etc. */
- @Deprecated public com.linkedin.pegasus2avro.assertion.AssertionType type;
- /** Dataset Assertion information when type is DATASET */
- @Deprecated public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo datasetAssertion;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public AssertionInfo() {}
-
- /**
- * All-args constructor.
- */
- public AssertionInfo(java.util.Map customProperties, java.lang.String externalUrl, com.linkedin.pegasus2avro.assertion.AssertionType type, com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo datasetAssertion) {
- this.customProperties = customProperties;
- this.externalUrl = externalUrl;
- this.type = type;
- this.datasetAssertion = datasetAssertion;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return customProperties;
- case 1: return externalUrl;
- case 2: return type;
- case 3: return datasetAssertion;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: customProperties = (java.util.Map)value$; break;
- case 1: externalUrl = (java.lang.String)value$; break;
- case 2: type = (com.linkedin.pegasus2avro.assertion.AssertionType)value$; break;
- case 3: datasetAssertion = (com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'customProperties' field.
- * Custom property bag. */
- public java.util.Map getCustomProperties() {
- return customProperties;
- }
-
- /**
- * Sets the value of the 'customProperties' field.
- * Custom property bag. * @param value the value to set.
- */
- public void setCustomProperties(java.util.Map value) {
- this.customProperties = value;
- }
-
- /**
- * Gets the value of the 'externalUrl' field.
- * URL where the reference exist */
- public java.lang.String getExternalUrl() {
- return externalUrl;
- }
-
- /**
- * Sets the value of the 'externalUrl' field.
- * URL where the reference exist * @param value the value to set.
- */
- public void setExternalUrl(java.lang.String value) {
- this.externalUrl = value;
- }
-
- /**
- * Gets the value of the 'type' field.
- * Type of assertion. Assertion types can evolve to span Datasets, Flows (Pipelines), Models, Features etc. */
- public com.linkedin.pegasus2avro.assertion.AssertionType getType() {
- return type;
- }
-
- /**
- * Sets the value of the 'type' field.
- * Type of assertion. Assertion types can evolve to span Datasets, Flows (Pipelines), Models, Features etc. * @param value the value to set.
- */
- public void setType(com.linkedin.pegasus2avro.assertion.AssertionType value) {
- this.type = value;
- }
-
- /**
- * Gets the value of the 'datasetAssertion' field.
- * Dataset Assertion information when type is DATASET */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo getDatasetAssertion() {
- return datasetAssertion;
- }
-
- /**
- * Sets the value of the 'datasetAssertion' field.
- * Dataset Assertion information when type is DATASET * @param value the value to set.
- */
- public void setDatasetAssertion(com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo value) {
- this.datasetAssertion = value;
- }
-
- /** Creates a new AssertionInfo RecordBuilder */
- public static com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder();
- }
-
- /** Creates a new AssertionInfo RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder newBuilder(com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder other) {
- return new com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder(other);
- }
-
- /** Creates a new AssertionInfo RecordBuilder by copying an existing AssertionInfo instance */
- public static com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder newBuilder(com.linkedin.pegasus2avro.assertion.AssertionInfo other) {
- return new com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder(other);
- }
-
- /**
- * RecordBuilder for AssertionInfo instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.util.Map customProperties;
- private java.lang.String externalUrl;
- private com.linkedin.pegasus2avro.assertion.AssertionType type;
- private com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo datasetAssertion;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.assertion.AssertionInfo.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.customProperties)) {
- this.customProperties = data().deepCopy(fields()[0].schema(), other.customProperties);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.externalUrl)) {
- this.externalUrl = data().deepCopy(fields()[1].schema(), other.externalUrl);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.type)) {
- this.type = data().deepCopy(fields()[2].schema(), other.type);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.datasetAssertion)) {
- this.datasetAssertion = data().deepCopy(fields()[3].schema(), other.datasetAssertion);
- fieldSetFlags()[3] = true;
- }
- }
-
- /** Creates a Builder by copying an existing AssertionInfo instance */
- private Builder(com.linkedin.pegasus2avro.assertion.AssertionInfo other) {
- super(com.linkedin.pegasus2avro.assertion.AssertionInfo.SCHEMA$);
- if (isValidValue(fields()[0], other.customProperties)) {
- this.customProperties = data().deepCopy(fields()[0].schema(), other.customProperties);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.externalUrl)) {
- this.externalUrl = data().deepCopy(fields()[1].schema(), other.externalUrl);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.type)) {
- this.type = data().deepCopy(fields()[2].schema(), other.type);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.datasetAssertion)) {
- this.datasetAssertion = data().deepCopy(fields()[3].schema(), other.datasetAssertion);
- fieldSetFlags()[3] = true;
- }
- }
-
- /** Gets the value of the 'customProperties' field */
- public java.util.Map getCustomProperties() {
- return customProperties;
- }
-
- /** Sets the value of the 'customProperties' field */
- public com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder setCustomProperties(java.util.Map value) {
- validate(fields()[0], value);
- this.customProperties = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'customProperties' field has been set */
- public boolean hasCustomProperties() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'customProperties' field */
- public com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder clearCustomProperties() {
- customProperties = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'externalUrl' field */
- public java.lang.String getExternalUrl() {
- return externalUrl;
- }
-
- /** Sets the value of the 'externalUrl' field */
- public com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder setExternalUrl(java.lang.String value) {
- validate(fields()[1], value);
- this.externalUrl = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'externalUrl' field has been set */
- public boolean hasExternalUrl() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'externalUrl' field */
- public com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder clearExternalUrl() {
- externalUrl = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'type' field */
- public com.linkedin.pegasus2avro.assertion.AssertionType getType() {
- return type;
- }
-
- /** Sets the value of the 'type' field */
- public com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder setType(com.linkedin.pegasus2avro.assertion.AssertionType value) {
- validate(fields()[2], value);
- this.type = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'type' field has been set */
- public boolean hasType() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'type' field */
- public com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder clearType() {
- type = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'datasetAssertion' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo getDatasetAssertion() {
- return datasetAssertion;
- }
-
- /** Sets the value of the 'datasetAssertion' field */
- public com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder setDatasetAssertion(com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo value) {
- validate(fields()[3], value);
- this.datasetAssertion = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'datasetAssertion' field has been set */
- public boolean hasDatasetAssertion() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'datasetAssertion' field */
- public com.linkedin.pegasus2avro.assertion.AssertionInfo.Builder clearDatasetAssertion() {
- datasetAssertion = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- @Override
- public AssertionInfo build() {
- try {
- AssertionInfo record = new AssertionInfo();
- record.customProperties = fieldSetFlags()[0] ? this.customProperties : (java.util.Map) defaultValue(fields()[0]);
- record.externalUrl = fieldSetFlags()[1] ? this.externalUrl : (java.lang.String) defaultValue(fields()[1]);
- record.type = fieldSetFlags()[2] ? this.type : (com.linkedin.pegasus2avro.assertion.AssertionType) defaultValue(fields()[2]);
- record.datasetAssertion = fieldSetFlags()[3] ? this.datasetAssertion : (com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo) defaultValue(fields()[3]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionResult.java
deleted file mode 100644
index fca90aee7728f1..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionResult.java
+++ /dev/null
@@ -1,474 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-/** The result of running an assertion */
-@org.apache.avro.specific.AvroGenerated
-public class AssertionResult extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AssertionResult\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"doc\":\"The result of running an assertion\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"AssertionResultType\",\"symbols\":[\"SUCCESS\",\"FAILURE\"],\"symbolDocs\":{\"FAILURE\":\" The Assertion Failed\",\"SUCCESS\":\" The Assertion Succeeded\"}},\"doc\":\" The final result, e.g. either SUCCESS or FAILURE.\",\"TimeseriesField\":{}},{\"name\":\"rowCount\",\"type\":[\"null\",\"long\"],\"doc\":\"Number of rows for evaluated batch\",\"default\":null},{\"name\":\"missingCount\",\"type\":[\"null\",\"long\"],\"doc\":\"Number of rows with missing value for evaluated batch\",\"default\":null},{\"name\":\"unexpectedCount\",\"type\":[\"null\",\"long\"],\"doc\":\"Number of rows with unexpected value for evaluated batch\",\"default\":null},{\"name\":\"actualAggValue\",\"type\":[\"null\",\"float\"],\"doc\":\"Observed aggregate value for evaluated batch\",\"default\":null},{\"name\":\"nativeResults\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Other results of evaluation\",\"default\":null},{\"name\":\"externalUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"URL where full results are available\",\"default\":null}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** The final result, e.g. either SUCCESS or FAILURE. */
- @Deprecated public com.linkedin.pegasus2avro.assertion.AssertionResultType type;
- /** Number of rows for evaluated batch */
- @Deprecated public java.lang.Long rowCount;
- /** Number of rows with missing value for evaluated batch */
- @Deprecated public java.lang.Long missingCount;
- /** Number of rows with unexpected value for evaluated batch */
- @Deprecated public java.lang.Long unexpectedCount;
- /** Observed aggregate value for evaluated batch */
- @Deprecated public java.lang.Float actualAggValue;
- /** Other results of evaluation */
- @Deprecated public java.util.Map nativeResults;
- /** URL where full results are available */
- @Deprecated public java.lang.String externalUrl;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public AssertionResult() {}
-
- /**
- * All-args constructor.
- */
- public AssertionResult(com.linkedin.pegasus2avro.assertion.AssertionResultType type, java.lang.Long rowCount, java.lang.Long missingCount, java.lang.Long unexpectedCount, java.lang.Float actualAggValue, java.util.Map nativeResults, java.lang.String externalUrl) {
- this.type = type;
- this.rowCount = rowCount;
- this.missingCount = missingCount;
- this.unexpectedCount = unexpectedCount;
- this.actualAggValue = actualAggValue;
- this.nativeResults = nativeResults;
- this.externalUrl = externalUrl;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return type;
- case 1: return rowCount;
- case 2: return missingCount;
- case 3: return unexpectedCount;
- case 4: return actualAggValue;
- case 5: return nativeResults;
- case 6: return externalUrl;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: type = (com.linkedin.pegasus2avro.assertion.AssertionResultType)value$; break;
- case 1: rowCount = (java.lang.Long)value$; break;
- case 2: missingCount = (java.lang.Long)value$; break;
- case 3: unexpectedCount = (java.lang.Long)value$; break;
- case 4: actualAggValue = (java.lang.Float)value$; break;
- case 5: nativeResults = (java.util.Map)value$; break;
- case 6: externalUrl = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'type' field.
- * The final result, e.g. either SUCCESS or FAILURE. */
- public com.linkedin.pegasus2avro.assertion.AssertionResultType getType() {
- return type;
- }
-
- /**
- * Sets the value of the 'type' field.
- * The final result, e.g. either SUCCESS or FAILURE. * @param value the value to set.
- */
- public void setType(com.linkedin.pegasus2avro.assertion.AssertionResultType value) {
- this.type = value;
- }
-
- /**
- * Gets the value of the 'rowCount' field.
- * Number of rows for evaluated batch */
- public java.lang.Long getRowCount() {
- return rowCount;
- }
-
- /**
- * Sets the value of the 'rowCount' field.
- * Number of rows for evaluated batch * @param value the value to set.
- */
- public void setRowCount(java.lang.Long value) {
- this.rowCount = value;
- }
-
- /**
- * Gets the value of the 'missingCount' field.
- * Number of rows with missing value for evaluated batch */
- public java.lang.Long getMissingCount() {
- return missingCount;
- }
-
- /**
- * Sets the value of the 'missingCount' field.
- * Number of rows with missing value for evaluated batch * @param value the value to set.
- */
- public void setMissingCount(java.lang.Long value) {
- this.missingCount = value;
- }
-
- /**
- * Gets the value of the 'unexpectedCount' field.
- * Number of rows with unexpected value for evaluated batch */
- public java.lang.Long getUnexpectedCount() {
- return unexpectedCount;
- }
-
- /**
- * Sets the value of the 'unexpectedCount' field.
- * Number of rows with unexpected value for evaluated batch * @param value the value to set.
- */
- public void setUnexpectedCount(java.lang.Long value) {
- this.unexpectedCount = value;
- }
-
- /**
- * Gets the value of the 'actualAggValue' field.
- * Observed aggregate value for evaluated batch */
- public java.lang.Float getActualAggValue() {
- return actualAggValue;
- }
-
- /**
- * Sets the value of the 'actualAggValue' field.
- * Observed aggregate value for evaluated batch * @param value the value to set.
- */
- public void setActualAggValue(java.lang.Float value) {
- this.actualAggValue = value;
- }
-
- /**
- * Gets the value of the 'nativeResults' field.
- * Other results of evaluation */
- public java.util.Map getNativeResults() {
- return nativeResults;
- }
-
- /**
- * Sets the value of the 'nativeResults' field.
- * Other results of evaluation * @param value the value to set.
- */
- public void setNativeResults(java.util.Map value) {
- this.nativeResults = value;
- }
-
- /**
- * Gets the value of the 'externalUrl' field.
- * URL where full results are available */
- public java.lang.String getExternalUrl() {
- return externalUrl;
- }
-
- /**
- * Sets the value of the 'externalUrl' field.
- * URL where full results are available * @param value the value to set.
- */
- public void setExternalUrl(java.lang.String value) {
- this.externalUrl = value;
- }
-
- /** Creates a new AssertionResult RecordBuilder */
- public static com.linkedin.pegasus2avro.assertion.AssertionResult.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.assertion.AssertionResult.Builder();
- }
-
- /** Creates a new AssertionResult RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.assertion.AssertionResult.Builder newBuilder(com.linkedin.pegasus2avro.assertion.AssertionResult.Builder other) {
- return new com.linkedin.pegasus2avro.assertion.AssertionResult.Builder(other);
- }
-
- /** Creates a new AssertionResult RecordBuilder by copying an existing AssertionResult instance */
- public static com.linkedin.pegasus2avro.assertion.AssertionResult.Builder newBuilder(com.linkedin.pegasus2avro.assertion.AssertionResult other) {
- return new com.linkedin.pegasus2avro.assertion.AssertionResult.Builder(other);
- }
-
- /**
- * RecordBuilder for AssertionResult instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private com.linkedin.pegasus2avro.assertion.AssertionResultType type;
- private java.lang.Long rowCount;
- private java.lang.Long missingCount;
- private java.lang.Long unexpectedCount;
- private java.lang.Float actualAggValue;
- private java.util.Map nativeResults;
- private java.lang.String externalUrl;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.assertion.AssertionResult.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.assertion.AssertionResult.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.type)) {
- this.type = data().deepCopy(fields()[0].schema(), other.type);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.rowCount)) {
- this.rowCount = data().deepCopy(fields()[1].schema(), other.rowCount);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.missingCount)) {
- this.missingCount = data().deepCopy(fields()[2].schema(), other.missingCount);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.unexpectedCount)) {
- this.unexpectedCount = data().deepCopy(fields()[3].schema(), other.unexpectedCount);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.actualAggValue)) {
- this.actualAggValue = data().deepCopy(fields()[4].schema(), other.actualAggValue);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.nativeResults)) {
- this.nativeResults = data().deepCopy(fields()[5].schema(), other.nativeResults);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.externalUrl)) {
- this.externalUrl = data().deepCopy(fields()[6].schema(), other.externalUrl);
- fieldSetFlags()[6] = true;
- }
- }
-
- /** Creates a Builder by copying an existing AssertionResult instance */
- private Builder(com.linkedin.pegasus2avro.assertion.AssertionResult other) {
- super(com.linkedin.pegasus2avro.assertion.AssertionResult.SCHEMA$);
- if (isValidValue(fields()[0], other.type)) {
- this.type = data().deepCopy(fields()[0].schema(), other.type);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.rowCount)) {
- this.rowCount = data().deepCopy(fields()[1].schema(), other.rowCount);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.missingCount)) {
- this.missingCount = data().deepCopy(fields()[2].schema(), other.missingCount);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.unexpectedCount)) {
- this.unexpectedCount = data().deepCopy(fields()[3].schema(), other.unexpectedCount);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.actualAggValue)) {
- this.actualAggValue = data().deepCopy(fields()[4].schema(), other.actualAggValue);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.nativeResults)) {
- this.nativeResults = data().deepCopy(fields()[5].schema(), other.nativeResults);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.externalUrl)) {
- this.externalUrl = data().deepCopy(fields()[6].schema(), other.externalUrl);
- fieldSetFlags()[6] = true;
- }
- }
-
- /** Gets the value of the 'type' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResultType getType() {
- return type;
- }
-
- /** Sets the value of the 'type' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder setType(com.linkedin.pegasus2avro.assertion.AssertionResultType value) {
- validate(fields()[0], value);
- this.type = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'type' field has been set */
- public boolean hasType() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'type' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder clearType() {
- type = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'rowCount' field */
- public java.lang.Long getRowCount() {
- return rowCount;
- }
-
- /** Sets the value of the 'rowCount' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder setRowCount(java.lang.Long value) {
- validate(fields()[1], value);
- this.rowCount = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'rowCount' field has been set */
- public boolean hasRowCount() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'rowCount' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder clearRowCount() {
- rowCount = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'missingCount' field */
- public java.lang.Long getMissingCount() {
- return missingCount;
- }
-
- /** Sets the value of the 'missingCount' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder setMissingCount(java.lang.Long value) {
- validate(fields()[2], value);
- this.missingCount = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'missingCount' field has been set */
- public boolean hasMissingCount() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'missingCount' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder clearMissingCount() {
- missingCount = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'unexpectedCount' field */
- public java.lang.Long getUnexpectedCount() {
- return unexpectedCount;
- }
-
- /** Sets the value of the 'unexpectedCount' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder setUnexpectedCount(java.lang.Long value) {
- validate(fields()[3], value);
- this.unexpectedCount = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'unexpectedCount' field has been set */
- public boolean hasUnexpectedCount() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'unexpectedCount' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder clearUnexpectedCount() {
- unexpectedCount = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- /** Gets the value of the 'actualAggValue' field */
- public java.lang.Float getActualAggValue() {
- return actualAggValue;
- }
-
- /** Sets the value of the 'actualAggValue' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder setActualAggValue(java.lang.Float value) {
- validate(fields()[4], value);
- this.actualAggValue = value;
- fieldSetFlags()[4] = true;
- return this;
- }
-
- /** Checks whether the 'actualAggValue' field has been set */
- public boolean hasActualAggValue() {
- return fieldSetFlags()[4];
- }
-
- /** Clears the value of the 'actualAggValue' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder clearActualAggValue() {
- actualAggValue = null;
- fieldSetFlags()[4] = false;
- return this;
- }
-
- /** Gets the value of the 'nativeResults' field */
- public java.util.Map getNativeResults() {
- return nativeResults;
- }
-
- /** Sets the value of the 'nativeResults' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder setNativeResults(java.util.Map value) {
- validate(fields()[5], value);
- this.nativeResults = value;
- fieldSetFlags()[5] = true;
- return this;
- }
-
- /** Checks whether the 'nativeResults' field has been set */
- public boolean hasNativeResults() {
- return fieldSetFlags()[5];
- }
-
- /** Clears the value of the 'nativeResults' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder clearNativeResults() {
- nativeResults = null;
- fieldSetFlags()[5] = false;
- return this;
- }
-
- /** Gets the value of the 'externalUrl' field */
- public java.lang.String getExternalUrl() {
- return externalUrl;
- }
-
- /** Sets the value of the 'externalUrl' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder setExternalUrl(java.lang.String value) {
- validate(fields()[6], value);
- this.externalUrl = value;
- fieldSetFlags()[6] = true;
- return this;
- }
-
- /** Checks whether the 'externalUrl' field has been set */
- public boolean hasExternalUrl() {
- return fieldSetFlags()[6];
- }
-
- /** Clears the value of the 'externalUrl' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult.Builder clearExternalUrl() {
- externalUrl = null;
- fieldSetFlags()[6] = false;
- return this;
- }
-
- @Override
- public AssertionResult build() {
- try {
- AssertionResult record = new AssertionResult();
- record.type = fieldSetFlags()[0] ? this.type : (com.linkedin.pegasus2avro.assertion.AssertionResultType) defaultValue(fields()[0]);
- record.rowCount = fieldSetFlags()[1] ? this.rowCount : (java.lang.Long) defaultValue(fields()[1]);
- record.missingCount = fieldSetFlags()[2] ? this.missingCount : (java.lang.Long) defaultValue(fields()[2]);
- record.unexpectedCount = fieldSetFlags()[3] ? this.unexpectedCount : (java.lang.Long) defaultValue(fields()[3]);
- record.actualAggValue = fieldSetFlags()[4] ? this.actualAggValue : (java.lang.Float) defaultValue(fields()[4]);
- record.nativeResults = fieldSetFlags()[5] ? this.nativeResults : (java.util.Map) defaultValue(fields()[5]);
- record.externalUrl = fieldSetFlags()[6] ? this.externalUrl : (java.lang.String) defaultValue(fields()[6]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionResultType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionResultType.java
deleted file mode 100644
index eae5216441eeb3..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionResultType.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-@org.apache.avro.specific.AvroGenerated
-public enum AssertionResultType {
- SUCCESS, FAILURE ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"AssertionResultType\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"symbols\":[\"SUCCESS\",\"FAILURE\"],\"symbolDocs\":{\"FAILURE\":\" The Assertion Failed\",\"SUCCESS\":\" The Assertion Succeeded\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionRunEvent.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionRunEvent.java
deleted file mode 100644
index 13617d32d6a1b0..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionRunEvent.java
+++ /dev/null
@@ -1,692 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-/** An event representing the current status of evaluating an assertion on a batch.
-AssertionRunEvent should be used for reporting the status of a run as an assertion evaluation progresses. */
-@org.apache.avro.specific.AvroGenerated
-public class AssertionRunEvent extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AssertionRunEvent\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"doc\":\"An event representing the current status of evaluating an assertion on a batch.\\nAssertionRunEvent should be used for reporting the status of a run as an assertion evaluation progresses.\",\"fields\":[{\"name\":\"timestampMillis\",\"type\":\"long\",\"doc\":\"The event timestamp field as epoch at UTC in milli seconds.\"},{\"name\":\"eventGranularity\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeWindowSize\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"doc\":\"Defines the size of a time window.\",\"fields\":[{\"name\":\"unit\",\"type\":{\"type\":\"enum\",\"name\":\"CalendarInterval\",\"symbols\":[\"SECOND\",\"MINUTE\",\"HOUR\",\"DAY\",\"WEEK\",\"MONTH\",\"QUARTER\",\"YEAR\"]},\"doc\":\"Interval unit such as minute/hour/day etc.\"},{\"name\":\"multiple\",\"type\":\"int\",\"doc\":\"How many units. Defaults to 1.\",\"default\":1}]}],\"doc\":\"Granularity of the event if applicable\",\"default\":null},{\"name\":\"partitionSpec\",\"type\":[{\"type\":\"record\",\"name\":\"PartitionSpec\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"doc\":\"Defines how the data is partitioned\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"PartitionType\",\"symbols\":[\"FULL_TABLE\",\"QUERY\",\"PARTITION\"]},\"default\":\"PARTITION\"},{\"name\":\"partition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"String representation of the partition\",\"TimeseriesField\":{}},{\"name\":\"timePartition\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeWindow\",\"fields\":[{\"name\":\"startTimeMillis\",\"type\":\"long\",\"doc\":\"Start time as epoch at UTC.\"},{\"name\":\"length\",\"type\":\"TimeWindowSize\",\"doc\":\"The length of the window.\"}]}],\"doc\":\"Time window of the partition if applicable\",\"default\":null}]},\"null\"],\"doc\":\"The optional partition specification.\",\"default\":{\"partition\":\"FULL_TABLE_SNAPSHOT\",\"type\":\"FULL_TABLE\",\"timePartition\":null}},{\"name\":\"messageId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The optional messageId, if provided serves as a custom user-defined unique identifier for an aspect value.\",\"default\":null},{\"name\":\"runId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\" Native (platform-specific) identifier for this run\"},{\"name\":\"assertionUrn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"TimeseriesField\":{},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"asserteeUrn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"TimeseriesField\":{},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"batchSpec\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"BatchSpec\",\"doc\":\"A batch on which certain operations, e.g. data quality evaluation, is done.\",\"fields\":[{\"name\":\"customProperties\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"},\"doc\":\"Custom property bag.\",\"default\":{},\"Searchable\":{\"/*\":{\"queryByDefault\":true}}},{\"name\":\"nativeBatchId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The native identifier as specified by the system operating on the batch.\",\"default\":null},{\"name\":\"query\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A query that identifies a batch of data\",\"default\":null},{\"name\":\"limit\",\"type\":[\"null\",\"int\"],\"doc\":\"Any limit to the number of rows in the batch, if applied\",\"default\":null}]}],\"doc\":\"Specification of the batch which this run is evaluating\",\"default\":null},{\"name\":\"status\",\"type\":{\"type\":\"enum\",\"name\":\"AssertionRunStatus\",\"symbols\":[\"COMPLETE\"],\"symbolDocs\":{\"COMPLETE\":\"The Assertion Run has completed\"}},\"doc\":\"The status of the assertion run as per this timeseries event.\",\"TimeseriesField\":{}},{\"name\":\"result\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"AssertionResult\",\"doc\":\"The result of running an assertion\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"AssertionResultType\",\"symbols\":[\"SUCCESS\",\"FAILURE\"],\"symbolDocs\":{\"FAILURE\":\" The Assertion Failed\",\"SUCCESS\":\" The Assertion Succeeded\"}},\"doc\":\" The final result, e.g. either SUCCESS or FAILURE.\",\"TimeseriesField\":{}},{\"name\":\"rowCount\",\"type\":[\"null\",\"long\"],\"doc\":\"Number of rows for evaluated batch\",\"default\":null},{\"name\":\"missingCount\",\"type\":[\"null\",\"long\"],\"doc\":\"Number of rows with missing value for evaluated batch\",\"default\":null},{\"name\":\"unexpectedCount\",\"type\":[\"null\",\"long\"],\"doc\":\"Number of rows with unexpected value for evaluated batch\",\"default\":null},{\"name\":\"actualAggValue\",\"type\":[\"null\",\"float\"],\"doc\":\"Observed aggregate value for evaluated batch\",\"default\":null},{\"name\":\"nativeResults\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Other results of evaluation\",\"default\":null},{\"name\":\"externalUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"URL where full results are available\",\"default\":null}]}],\"doc\":\"Results of assertion, present if the status is COMPLETE\",\"default\":null},{\"name\":\"runtimeContext\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Runtime parameters of evaluation\",\"default\":null}],\"Aspect\":{\"name\":\"assertionRunEvent\",\"type\":\"timeseries\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** The event timestamp field as epoch at UTC in milli seconds. */
- @Deprecated public long timestampMillis;
- /** Granularity of the event if applicable */
- @Deprecated public com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity;
- /** The optional partition specification. */
- @Deprecated public com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec;
- /** The optional messageId, if provided serves as a custom user-defined unique identifier for an aspect value. */
- @Deprecated public java.lang.String messageId;
- /** Native (platform-specific) identifier for this run */
- @Deprecated public java.lang.String runId;
- @Deprecated public java.lang.String assertionUrn;
- @Deprecated public java.lang.String asserteeUrn;
- /** Specification of the batch which this run is evaluating */
- @Deprecated public com.linkedin.pegasus2avro.assertion.BatchSpec batchSpec;
- /** The status of the assertion run as per this timeseries event. */
- @Deprecated public com.linkedin.pegasus2avro.assertion.AssertionRunStatus status;
- /** Results of assertion, present if the status is COMPLETE */
- @Deprecated public com.linkedin.pegasus2avro.assertion.AssertionResult result;
- /** Runtime parameters of evaluation */
- @Deprecated public java.util.Map runtimeContext;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public AssertionRunEvent() {}
-
- /**
- * All-args constructor.
- */
- public AssertionRunEvent(java.lang.Long timestampMillis, com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity, com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec, java.lang.String messageId, java.lang.String runId, java.lang.String assertionUrn, java.lang.String asserteeUrn, com.linkedin.pegasus2avro.assertion.BatchSpec batchSpec, com.linkedin.pegasus2avro.assertion.AssertionRunStatus status, com.linkedin.pegasus2avro.assertion.AssertionResult result, java.util.Map runtimeContext) {
- this.timestampMillis = timestampMillis;
- this.eventGranularity = eventGranularity;
- this.partitionSpec = partitionSpec;
- this.messageId = messageId;
- this.runId = runId;
- this.assertionUrn = assertionUrn;
- this.asserteeUrn = asserteeUrn;
- this.batchSpec = batchSpec;
- this.status = status;
- this.result = result;
- this.runtimeContext = runtimeContext;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return timestampMillis;
- case 1: return eventGranularity;
- case 2: return partitionSpec;
- case 3: return messageId;
- case 4: return runId;
- case 5: return assertionUrn;
- case 6: return asserteeUrn;
- case 7: return batchSpec;
- case 8: return status;
- case 9: return result;
- case 10: return runtimeContext;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: timestampMillis = (java.lang.Long)value$; break;
- case 1: eventGranularity = (com.linkedin.pegasus2avro.timeseries.TimeWindowSize)value$; break;
- case 2: partitionSpec = (com.linkedin.pegasus2avro.timeseries.PartitionSpec)value$; break;
- case 3: messageId = (java.lang.String)value$; break;
- case 4: runId = (java.lang.String)value$; break;
- case 5: assertionUrn = (java.lang.String)value$; break;
- case 6: asserteeUrn = (java.lang.String)value$; break;
- case 7: batchSpec = (com.linkedin.pegasus2avro.assertion.BatchSpec)value$; break;
- case 8: status = (com.linkedin.pegasus2avro.assertion.AssertionRunStatus)value$; break;
- case 9: result = (com.linkedin.pegasus2avro.assertion.AssertionResult)value$; break;
- case 10: runtimeContext = (java.util.Map)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'timestampMillis' field.
- * The event timestamp field as epoch at UTC in milli seconds. */
- public java.lang.Long getTimestampMillis() {
- return timestampMillis;
- }
-
- /**
- * Sets the value of the 'timestampMillis' field.
- * The event timestamp field as epoch at UTC in milli seconds. * @param value the value to set.
- */
- public void setTimestampMillis(java.lang.Long value) {
- this.timestampMillis = value;
- }
-
- /**
- * Gets the value of the 'eventGranularity' field.
- * Granularity of the event if applicable */
- public com.linkedin.pegasus2avro.timeseries.TimeWindowSize getEventGranularity() {
- return eventGranularity;
- }
-
- /**
- * Sets the value of the 'eventGranularity' field.
- * Granularity of the event if applicable * @param value the value to set.
- */
- public void setEventGranularity(com.linkedin.pegasus2avro.timeseries.TimeWindowSize value) {
- this.eventGranularity = value;
- }
-
- /**
- * Gets the value of the 'partitionSpec' field.
- * The optional partition specification. */
- public com.linkedin.pegasus2avro.timeseries.PartitionSpec getPartitionSpec() {
- return partitionSpec;
- }
-
- /**
- * Sets the value of the 'partitionSpec' field.
- * The optional partition specification. * @param value the value to set.
- */
- public void setPartitionSpec(com.linkedin.pegasus2avro.timeseries.PartitionSpec value) {
- this.partitionSpec = value;
- }
-
- /**
- * Gets the value of the 'messageId' field.
- * The optional messageId, if provided serves as a custom user-defined unique identifier for an aspect value. */
- public java.lang.String getMessageId() {
- return messageId;
- }
-
- /**
- * Sets the value of the 'messageId' field.
- * The optional messageId, if provided serves as a custom user-defined unique identifier for an aspect value. * @param value the value to set.
- */
- public void setMessageId(java.lang.String value) {
- this.messageId = value;
- }
-
- /**
- * Gets the value of the 'runId' field.
- * Native (platform-specific) identifier for this run */
- public java.lang.String getRunId() {
- return runId;
- }
-
- /**
- * Sets the value of the 'runId' field.
- * Native (platform-specific) identifier for this run * @param value the value to set.
- */
- public void setRunId(java.lang.String value) {
- this.runId = value;
- }
-
- /**
- * Gets the value of the 'assertionUrn' field.
- */
- public java.lang.String getAssertionUrn() {
- return assertionUrn;
- }
-
- /**
- * Sets the value of the 'assertionUrn' field.
- * @param value the value to set.
- */
- public void setAssertionUrn(java.lang.String value) {
- this.assertionUrn = value;
- }
-
- /**
- * Gets the value of the 'asserteeUrn' field.
- */
- public java.lang.String getAsserteeUrn() {
- return asserteeUrn;
- }
-
- /**
- * Sets the value of the 'asserteeUrn' field.
- * @param value the value to set.
- */
- public void setAsserteeUrn(java.lang.String value) {
- this.asserteeUrn = value;
- }
-
- /**
- * Gets the value of the 'batchSpec' field.
- * Specification of the batch which this run is evaluating */
- public com.linkedin.pegasus2avro.assertion.BatchSpec getBatchSpec() {
- return batchSpec;
- }
-
- /**
- * Sets the value of the 'batchSpec' field.
- * Specification of the batch which this run is evaluating * @param value the value to set.
- */
- public void setBatchSpec(com.linkedin.pegasus2avro.assertion.BatchSpec value) {
- this.batchSpec = value;
- }
-
- /**
- * Gets the value of the 'status' field.
- * The status of the assertion run as per this timeseries event. */
- public com.linkedin.pegasus2avro.assertion.AssertionRunStatus getStatus() {
- return status;
- }
-
- /**
- * Sets the value of the 'status' field.
- * The status of the assertion run as per this timeseries event. * @param value the value to set.
- */
- public void setStatus(com.linkedin.pegasus2avro.assertion.AssertionRunStatus value) {
- this.status = value;
- }
-
- /**
- * Gets the value of the 'result' field.
- * Results of assertion, present if the status is COMPLETE */
- public com.linkedin.pegasus2avro.assertion.AssertionResult getResult() {
- return result;
- }
-
- /**
- * Sets the value of the 'result' field.
- * Results of assertion, present if the status is COMPLETE * @param value the value to set.
- */
- public void setResult(com.linkedin.pegasus2avro.assertion.AssertionResult value) {
- this.result = value;
- }
-
- /**
- * Gets the value of the 'runtimeContext' field.
- * Runtime parameters of evaluation */
- public java.util.Map getRuntimeContext() {
- return runtimeContext;
- }
-
- /**
- * Sets the value of the 'runtimeContext' field.
- * Runtime parameters of evaluation * @param value the value to set.
- */
- public void setRuntimeContext(java.util.Map value) {
- this.runtimeContext = value;
- }
-
- /** Creates a new AssertionRunEvent RecordBuilder */
- public static com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder();
- }
-
- /** Creates a new AssertionRunEvent RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder newBuilder(com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder other) {
- return new com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder(other);
- }
-
- /** Creates a new AssertionRunEvent RecordBuilder by copying an existing AssertionRunEvent instance */
- public static com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder newBuilder(com.linkedin.pegasus2avro.assertion.AssertionRunEvent other) {
- return new com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder(other);
- }
-
- /**
- * RecordBuilder for AssertionRunEvent instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private long timestampMillis;
- private com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity;
- private com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec;
- private java.lang.String messageId;
- private java.lang.String runId;
- private java.lang.String assertionUrn;
- private java.lang.String asserteeUrn;
- private com.linkedin.pegasus2avro.assertion.BatchSpec batchSpec;
- private com.linkedin.pegasus2avro.assertion.AssertionRunStatus status;
- private com.linkedin.pegasus2avro.assertion.AssertionResult result;
- private java.util.Map runtimeContext;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.assertion.AssertionRunEvent.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.timestampMillis)) {
- this.timestampMillis = data().deepCopy(fields()[0].schema(), other.timestampMillis);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.eventGranularity)) {
- this.eventGranularity = data().deepCopy(fields()[1].schema(), other.eventGranularity);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.partitionSpec)) {
- this.partitionSpec = data().deepCopy(fields()[2].schema(), other.partitionSpec);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.messageId)) {
- this.messageId = data().deepCopy(fields()[3].schema(), other.messageId);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.runId)) {
- this.runId = data().deepCopy(fields()[4].schema(), other.runId);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.assertionUrn)) {
- this.assertionUrn = data().deepCopy(fields()[5].schema(), other.assertionUrn);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.asserteeUrn)) {
- this.asserteeUrn = data().deepCopy(fields()[6].schema(), other.asserteeUrn);
- fieldSetFlags()[6] = true;
- }
- if (isValidValue(fields()[7], other.batchSpec)) {
- this.batchSpec = data().deepCopy(fields()[7].schema(), other.batchSpec);
- fieldSetFlags()[7] = true;
- }
- if (isValidValue(fields()[8], other.status)) {
- this.status = data().deepCopy(fields()[8].schema(), other.status);
- fieldSetFlags()[8] = true;
- }
- if (isValidValue(fields()[9], other.result)) {
- this.result = data().deepCopy(fields()[9].schema(), other.result);
- fieldSetFlags()[9] = true;
- }
- if (isValidValue(fields()[10], other.runtimeContext)) {
- this.runtimeContext = data().deepCopy(fields()[10].schema(), other.runtimeContext);
- fieldSetFlags()[10] = true;
- }
- }
-
- /** Creates a Builder by copying an existing AssertionRunEvent instance */
- private Builder(com.linkedin.pegasus2avro.assertion.AssertionRunEvent other) {
- super(com.linkedin.pegasus2avro.assertion.AssertionRunEvent.SCHEMA$);
- if (isValidValue(fields()[0], other.timestampMillis)) {
- this.timestampMillis = data().deepCopy(fields()[0].schema(), other.timestampMillis);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.eventGranularity)) {
- this.eventGranularity = data().deepCopy(fields()[1].schema(), other.eventGranularity);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.partitionSpec)) {
- this.partitionSpec = data().deepCopy(fields()[2].schema(), other.partitionSpec);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.messageId)) {
- this.messageId = data().deepCopy(fields()[3].schema(), other.messageId);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.runId)) {
- this.runId = data().deepCopy(fields()[4].schema(), other.runId);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.assertionUrn)) {
- this.assertionUrn = data().deepCopy(fields()[5].schema(), other.assertionUrn);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.asserteeUrn)) {
- this.asserteeUrn = data().deepCopy(fields()[6].schema(), other.asserteeUrn);
- fieldSetFlags()[6] = true;
- }
- if (isValidValue(fields()[7], other.batchSpec)) {
- this.batchSpec = data().deepCopy(fields()[7].schema(), other.batchSpec);
- fieldSetFlags()[7] = true;
- }
- if (isValidValue(fields()[8], other.status)) {
- this.status = data().deepCopy(fields()[8].schema(), other.status);
- fieldSetFlags()[8] = true;
- }
- if (isValidValue(fields()[9], other.result)) {
- this.result = data().deepCopy(fields()[9].schema(), other.result);
- fieldSetFlags()[9] = true;
- }
- if (isValidValue(fields()[10], other.runtimeContext)) {
- this.runtimeContext = data().deepCopy(fields()[10].schema(), other.runtimeContext);
- fieldSetFlags()[10] = true;
- }
- }
-
- /** Gets the value of the 'timestampMillis' field */
- public java.lang.Long getTimestampMillis() {
- return timestampMillis;
- }
-
- /** Sets the value of the 'timestampMillis' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder setTimestampMillis(long value) {
- validate(fields()[0], value);
- this.timestampMillis = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'timestampMillis' field has been set */
- public boolean hasTimestampMillis() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'timestampMillis' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder clearTimestampMillis() {
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'eventGranularity' field */
- public com.linkedin.pegasus2avro.timeseries.TimeWindowSize getEventGranularity() {
- return eventGranularity;
- }
-
- /** Sets the value of the 'eventGranularity' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder setEventGranularity(com.linkedin.pegasus2avro.timeseries.TimeWindowSize value) {
- validate(fields()[1], value);
- this.eventGranularity = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'eventGranularity' field has been set */
- public boolean hasEventGranularity() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'eventGranularity' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder clearEventGranularity() {
- eventGranularity = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'partitionSpec' field */
- public com.linkedin.pegasus2avro.timeseries.PartitionSpec getPartitionSpec() {
- return partitionSpec;
- }
-
- /** Sets the value of the 'partitionSpec' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder setPartitionSpec(com.linkedin.pegasus2avro.timeseries.PartitionSpec value) {
- validate(fields()[2], value);
- this.partitionSpec = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'partitionSpec' field has been set */
- public boolean hasPartitionSpec() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'partitionSpec' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder clearPartitionSpec() {
- partitionSpec = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'messageId' field */
- public java.lang.String getMessageId() {
- return messageId;
- }
-
- /** Sets the value of the 'messageId' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder setMessageId(java.lang.String value) {
- validate(fields()[3], value);
- this.messageId = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'messageId' field has been set */
- public boolean hasMessageId() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'messageId' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder clearMessageId() {
- messageId = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- /** Gets the value of the 'runId' field */
- public java.lang.String getRunId() {
- return runId;
- }
-
- /** Sets the value of the 'runId' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder setRunId(java.lang.String value) {
- validate(fields()[4], value);
- this.runId = value;
- fieldSetFlags()[4] = true;
- return this;
- }
-
- /** Checks whether the 'runId' field has been set */
- public boolean hasRunId() {
- return fieldSetFlags()[4];
- }
-
- /** Clears the value of the 'runId' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder clearRunId() {
- runId = null;
- fieldSetFlags()[4] = false;
- return this;
- }
-
- /** Gets the value of the 'assertionUrn' field */
- public java.lang.String getAssertionUrn() {
- return assertionUrn;
- }
-
- /** Sets the value of the 'assertionUrn' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder setAssertionUrn(java.lang.String value) {
- validate(fields()[5], value);
- this.assertionUrn = value;
- fieldSetFlags()[5] = true;
- return this;
- }
-
- /** Checks whether the 'assertionUrn' field has been set */
- public boolean hasAssertionUrn() {
- return fieldSetFlags()[5];
- }
-
- /** Clears the value of the 'assertionUrn' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder clearAssertionUrn() {
- assertionUrn = null;
- fieldSetFlags()[5] = false;
- return this;
- }
-
- /** Gets the value of the 'asserteeUrn' field */
- public java.lang.String getAsserteeUrn() {
- return asserteeUrn;
- }
-
- /** Sets the value of the 'asserteeUrn' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder setAsserteeUrn(java.lang.String value) {
- validate(fields()[6], value);
- this.asserteeUrn = value;
- fieldSetFlags()[6] = true;
- return this;
- }
-
- /** Checks whether the 'asserteeUrn' field has been set */
- public boolean hasAsserteeUrn() {
- return fieldSetFlags()[6];
- }
-
- /** Clears the value of the 'asserteeUrn' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder clearAsserteeUrn() {
- asserteeUrn = null;
- fieldSetFlags()[6] = false;
- return this;
- }
-
- /** Gets the value of the 'batchSpec' field */
- public com.linkedin.pegasus2avro.assertion.BatchSpec getBatchSpec() {
- return batchSpec;
- }
-
- /** Sets the value of the 'batchSpec' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder setBatchSpec(com.linkedin.pegasus2avro.assertion.BatchSpec value) {
- validate(fields()[7], value);
- this.batchSpec = value;
- fieldSetFlags()[7] = true;
- return this;
- }
-
- /** Checks whether the 'batchSpec' field has been set */
- public boolean hasBatchSpec() {
- return fieldSetFlags()[7];
- }
-
- /** Clears the value of the 'batchSpec' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder clearBatchSpec() {
- batchSpec = null;
- fieldSetFlags()[7] = false;
- return this;
- }
-
- /** Gets the value of the 'status' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunStatus getStatus() {
- return status;
- }
-
- /** Sets the value of the 'status' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder setStatus(com.linkedin.pegasus2avro.assertion.AssertionRunStatus value) {
- validate(fields()[8], value);
- this.status = value;
- fieldSetFlags()[8] = true;
- return this;
- }
-
- /** Checks whether the 'status' field has been set */
- public boolean hasStatus() {
- return fieldSetFlags()[8];
- }
-
- /** Clears the value of the 'status' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder clearStatus() {
- status = null;
- fieldSetFlags()[8] = false;
- return this;
- }
-
- /** Gets the value of the 'result' field */
- public com.linkedin.pegasus2avro.assertion.AssertionResult getResult() {
- return result;
- }
-
- /** Sets the value of the 'result' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder setResult(com.linkedin.pegasus2avro.assertion.AssertionResult value) {
- validate(fields()[9], value);
- this.result = value;
- fieldSetFlags()[9] = true;
- return this;
- }
-
- /** Checks whether the 'result' field has been set */
- public boolean hasResult() {
- return fieldSetFlags()[9];
- }
-
- /** Clears the value of the 'result' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder clearResult() {
- result = null;
- fieldSetFlags()[9] = false;
- return this;
- }
-
- /** Gets the value of the 'runtimeContext' field */
- public java.util.Map getRuntimeContext() {
- return runtimeContext;
- }
-
- /** Sets the value of the 'runtimeContext' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder setRuntimeContext(java.util.Map value) {
- validate(fields()[10], value);
- this.runtimeContext = value;
- fieldSetFlags()[10] = true;
- return this;
- }
-
- /** Checks whether the 'runtimeContext' field has been set */
- public boolean hasRuntimeContext() {
- return fieldSetFlags()[10];
- }
-
- /** Clears the value of the 'runtimeContext' field */
- public com.linkedin.pegasus2avro.assertion.AssertionRunEvent.Builder clearRuntimeContext() {
- runtimeContext = null;
- fieldSetFlags()[10] = false;
- return this;
- }
-
- @Override
- public AssertionRunEvent build() {
- try {
- AssertionRunEvent record = new AssertionRunEvent();
- record.timestampMillis = fieldSetFlags()[0] ? this.timestampMillis : (java.lang.Long) defaultValue(fields()[0]);
- record.eventGranularity = fieldSetFlags()[1] ? this.eventGranularity : (com.linkedin.pegasus2avro.timeseries.TimeWindowSize) defaultValue(fields()[1]);
- record.partitionSpec = fieldSetFlags()[2] ? this.partitionSpec : (com.linkedin.pegasus2avro.timeseries.PartitionSpec) defaultValue(fields()[2]);
- record.messageId = fieldSetFlags()[3] ? this.messageId : (java.lang.String) defaultValue(fields()[3]);
- record.runId = fieldSetFlags()[4] ? this.runId : (java.lang.String) defaultValue(fields()[4]);
- record.assertionUrn = fieldSetFlags()[5] ? this.assertionUrn : (java.lang.String) defaultValue(fields()[5]);
- record.asserteeUrn = fieldSetFlags()[6] ? this.asserteeUrn : (java.lang.String) defaultValue(fields()[6]);
- record.batchSpec = fieldSetFlags()[7] ? this.batchSpec : (com.linkedin.pegasus2avro.assertion.BatchSpec) defaultValue(fields()[7]);
- record.status = fieldSetFlags()[8] ? this.status : (com.linkedin.pegasus2avro.assertion.AssertionRunStatus) defaultValue(fields()[8]);
- record.result = fieldSetFlags()[9] ? this.result : (com.linkedin.pegasus2avro.assertion.AssertionResult) defaultValue(fields()[9]);
- record.runtimeContext = fieldSetFlags()[10] ? this.runtimeContext : (java.util.Map) defaultValue(fields()[10]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionRunStatus.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionRunStatus.java
deleted file mode 100644
index de31419230a2f2..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionRunStatus.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-@org.apache.avro.specific.AvroGenerated
-public enum AssertionRunStatus {
- COMPLETE ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"AssertionRunStatus\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"symbols\":[\"COMPLETE\"],\"symbolDocs\":{\"COMPLETE\":\"The Assertion Run has completed\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdAggregation.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdAggregation.java
deleted file mode 100644
index 5494c2ab738f88..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdAggregation.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-/** The function that is applied to the aggregation input (schema, rows, column values) before evaluating an operator. */
-@org.apache.avro.specific.AvroGenerated
-public enum AssertionStdAggregation {
- ROW_COUNT, COLUMNS, COLUMN_COUNT, IDENTITY, MEAN, MEDIAN, UNIQUE_COUNT, UNIQUE_PROPOTION, NULL_COUNT, NULL_PROPORTION, STDDEV, MIN, MAX, SUM, _NATIVE_ ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"AssertionStdAggregation\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"doc\":\"The function that is applied to the aggregation input (schema, rows, column values) before evaluating an operator.\",\"symbols\":[\"ROW_COUNT\",\"COLUMNS\",\"COLUMN_COUNT\",\"IDENTITY\",\"MEAN\",\"MEDIAN\",\"UNIQUE_COUNT\",\"UNIQUE_PROPOTION\",\"NULL_COUNT\",\"NULL_PROPORTION\",\"STDDEV\",\"MIN\",\"MAX\",\"SUM\",\"_NATIVE_\"],\"symbolDocs\":{\"COLUMNS\":\"Assertion is applied on all columns.\",\"COLUMN_COUNT\":\"Assertion is applied on number of columns.\",\"IDENTITY\":\"Assertion is applied on individual column value.\",\"MAX\":\"Assertion is applied on column std deviation\",\"MEAN\":\"Assertion is applied on column mean\",\"MEDIAN\":\"Assertion is applied on column median\",\"MIN\":\"Assertion is applied on column min\",\"NULL_COUNT\":\"Assertion is applied on number of null values in column\",\"NULL_PROPORTION\":\"Assertion is applied on proportion of null values in column\",\"ROW_COUNT\":\"Assertion is applied on number of rows.\",\"STDDEV\":\"Assertion is applied on column std deviation\",\"SUM\":\"Assertion is applied on column sum\",\"UNIQUE_COUNT\":\"Assertion is applied on number of distinct values in column\",\"UNIQUE_PROPOTION\":\"Assertion is applied on proportion of distinct values in column\",\"_NATIVE_\":\"Other\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdOperator.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdOperator.java
deleted file mode 100644
index d640b9dcc36936..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdOperator.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-/** A boolean operator that is applied on the input to an assertion, after an aggregation function has been applied. */
-@org.apache.avro.specific.AvroGenerated
-public enum AssertionStdOperator {
- BETWEEN, LESS_THAN, LESS_THAN_OR_EQUAL_TO, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, EQUAL_TO, NOT_NULL, CONTAIN, END_WITH, START_WITH, REGEX_MATCH, IN, NOT_IN, _NATIVE_ ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"AssertionStdOperator\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"doc\":\"A boolean operator that is applied on the input to an assertion, after an aggregation function has been applied.\",\"symbols\":[\"BETWEEN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"EQUAL_TO\",\"NOT_NULL\",\"CONTAIN\",\"END_WITH\",\"START_WITH\",\"REGEX_MATCH\",\"IN\",\"NOT_IN\",\"_NATIVE_\"],\"symbolDocs\":{\"BETWEEN\":\"Value being asserted is between min_value and max_value. Requires 'minValue' & 'maxValue' parameters.\",\"CONTAIN\":\"Value being asserted contains value. Requires 'value' parameter.\",\"END_WITH\":\"Value being asserted ends with value. Requires 'value' parameter.\",\"EQUAL_TO\":\"Value being asserted is equal to value. Requires 'value' parameter.\",\"GREATER_THAN\":\"Value being asserted is greater than some value. Requires 'value' parameter.\",\"GREATER_THAN_OR_EQUAL_TO\":\"Value being asserted is greater than or equal to some value. Requires 'value' parameter.\",\"IN\":\"Value being asserted is one of the array values. Requires 'value' parameter.\",\"LESS_THAN\":\"Value being asserted is less than a max value. Requires 'value' parameter.\",\"LESS_THAN_OR_EQUAL_TO\":\"Value being asserted is less than or equal to some value. Requires 'value' parameter.\",\"NOT_IN\":\"Value being asserted is not in one of the array values. Requires 'value' parameter.\",\"NOT_NULL\":\"Value being asserted is not null. Requires no parameters.\",\"REGEX_MATCH\":\"Value being asserted matches the regex value. Requires 'value' parameter.\",\"START_WITH\":\"Value being asserted starts with value. Requires 'value' parameter.\",\"_NATIVE_\":\"Other\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdParameter.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdParameter.java
deleted file mode 100644
index 070ded2c80b7fb..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdParameter.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-/** Single parameter for AssertionStdOperators. */
-@org.apache.avro.specific.AvroGenerated
-public class AssertionStdParameter extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AssertionStdParameter\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"doc\":\"Single parameter for AssertionStdOperators.\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The parameter value\"},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"AssertionStdParameterType\",\"symbols\":[\"STRING\",\"NUMBER\",\"LIST\",\"SET\",\"UNKNOWN\"]},\"doc\":\"The type of the parameter\"}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** The parameter value */
- @Deprecated public java.lang.String value;
- /** The type of the parameter */
- @Deprecated public com.linkedin.pegasus2avro.assertion.AssertionStdParameterType type;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public AssertionStdParameter() {}
-
- /**
- * All-args constructor.
- */
- public AssertionStdParameter(java.lang.String value, com.linkedin.pegasus2avro.assertion.AssertionStdParameterType type) {
- this.value = value;
- this.type = type;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return value;
- case 1: return type;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: value = (java.lang.String)value$; break;
- case 1: type = (com.linkedin.pegasus2avro.assertion.AssertionStdParameterType)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'value' field.
- * The parameter value */
- public java.lang.String getValue() {
- return value;
- }
-
- /**
- * Sets the value of the 'value' field.
- * The parameter value * @param value the value to set.
- */
- public void setValue(java.lang.String value) {
- this.value = value;
- }
-
- /**
- * Gets the value of the 'type' field.
- * The type of the parameter */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameterType getType() {
- return type;
- }
-
- /**
- * Sets the value of the 'type' field.
- * The type of the parameter * @param value the value to set.
- */
- public void setType(com.linkedin.pegasus2avro.assertion.AssertionStdParameterType value) {
- this.type = value;
- }
-
- /** Creates a new AssertionStdParameter RecordBuilder */
- public static com.linkedin.pegasus2avro.assertion.AssertionStdParameter.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.assertion.AssertionStdParameter.Builder();
- }
-
- /** Creates a new AssertionStdParameter RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.assertion.AssertionStdParameter.Builder newBuilder(com.linkedin.pegasus2avro.assertion.AssertionStdParameter.Builder other) {
- return new com.linkedin.pegasus2avro.assertion.AssertionStdParameter.Builder(other);
- }
-
- /** Creates a new AssertionStdParameter RecordBuilder by copying an existing AssertionStdParameter instance */
- public static com.linkedin.pegasus2avro.assertion.AssertionStdParameter.Builder newBuilder(com.linkedin.pegasus2avro.assertion.AssertionStdParameter other) {
- return new com.linkedin.pegasus2avro.assertion.AssertionStdParameter.Builder(other);
- }
-
- /**
- * RecordBuilder for AssertionStdParameter instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String value;
- private com.linkedin.pegasus2avro.assertion.AssertionStdParameterType type;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.assertion.AssertionStdParameter.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.assertion.AssertionStdParameter.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.value)) {
- this.value = data().deepCopy(fields()[0].schema(), other.value);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = true;
- }
- }
-
- /** Creates a Builder by copying an existing AssertionStdParameter instance */
- private Builder(com.linkedin.pegasus2avro.assertion.AssertionStdParameter other) {
- super(com.linkedin.pegasus2avro.assertion.AssertionStdParameter.SCHEMA$);
- if (isValidValue(fields()[0], other.value)) {
- this.value = data().deepCopy(fields()[0].schema(), other.value);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = true;
- }
- }
-
- /** Gets the value of the 'value' field */
- public java.lang.String getValue() {
- return value;
- }
-
- /** Sets the value of the 'value' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameter.Builder setValue(java.lang.String value) {
- validate(fields()[0], value);
- this.value = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'value' field has been set */
- public boolean hasValue() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'value' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameter.Builder clearValue() {
- value = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'type' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameterType getType() {
- return type;
- }
-
- /** Sets the value of the 'type' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameter.Builder setType(com.linkedin.pegasus2avro.assertion.AssertionStdParameterType value) {
- validate(fields()[1], value);
- this.type = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'type' field has been set */
- public boolean hasType() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'type' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameter.Builder clearType() {
- type = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- @Override
- public AssertionStdParameter build() {
- try {
- AssertionStdParameter record = new AssertionStdParameter();
- record.value = fieldSetFlags()[0] ? this.value : (java.lang.String) defaultValue(fields()[0]);
- record.type = fieldSetFlags()[1] ? this.type : (com.linkedin.pegasus2avro.assertion.AssertionStdParameterType) defaultValue(fields()[1]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdParameterType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdParameterType.java
deleted file mode 100644
index fb1e7b41238783..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdParameterType.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-@org.apache.avro.specific.AvroGenerated
-public enum AssertionStdParameterType {
- STRING, NUMBER, LIST, SET, UNKNOWN ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"AssertionStdParameterType\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"symbols\":[\"STRING\",\"NUMBER\",\"LIST\",\"SET\",\"UNKNOWN\"]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdParameters.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdParameters.java
deleted file mode 100644
index f33135bc8daf4f..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionStdParameters.java
+++ /dev/null
@@ -1,254 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-/** Parameters for AssertionStdOperators. */
-@org.apache.avro.specific.AvroGenerated
-public class AssertionStdParameters extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AssertionStdParameters\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"doc\":\"Parameters for AssertionStdOperators.\",\"fields\":[{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"AssertionStdParameter\",\"doc\":\"Single parameter for AssertionStdOperators.\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The parameter value\"},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"AssertionStdParameterType\",\"symbols\":[\"STRING\",\"NUMBER\",\"LIST\",\"SET\",\"UNKNOWN\"]},\"doc\":\"The type of the parameter\"}]}],\"doc\":\"The value parameter of an assertion\",\"default\":null},{\"name\":\"maxValue\",\"type\":[\"null\",\"AssertionStdParameter\"],\"doc\":\"The maxValue parameter of an assertion\",\"default\":null},{\"name\":\"minValue\",\"type\":[\"null\",\"AssertionStdParameter\"],\"doc\":\"The minValue parameter of an assertion\",\"default\":null}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** The value parameter of an assertion */
- @Deprecated public com.linkedin.pegasus2avro.assertion.AssertionStdParameter value;
- /** The maxValue parameter of an assertion */
- @Deprecated public com.linkedin.pegasus2avro.assertion.AssertionStdParameter maxValue;
- /** The minValue parameter of an assertion */
- @Deprecated public com.linkedin.pegasus2avro.assertion.AssertionStdParameter minValue;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public AssertionStdParameters() {}
-
- /**
- * All-args constructor.
- */
- public AssertionStdParameters(com.linkedin.pegasus2avro.assertion.AssertionStdParameter value, com.linkedin.pegasus2avro.assertion.AssertionStdParameter maxValue, com.linkedin.pegasus2avro.assertion.AssertionStdParameter minValue) {
- this.value = value;
- this.maxValue = maxValue;
- this.minValue = minValue;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return value;
- case 1: return maxValue;
- case 2: return minValue;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: value = (com.linkedin.pegasus2avro.assertion.AssertionStdParameter)value$; break;
- case 1: maxValue = (com.linkedin.pegasus2avro.assertion.AssertionStdParameter)value$; break;
- case 2: minValue = (com.linkedin.pegasus2avro.assertion.AssertionStdParameter)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'value' field.
- * The value parameter of an assertion */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameter getValue() {
- return value;
- }
-
- /**
- * Sets the value of the 'value' field.
- * The value parameter of an assertion * @param value the value to set.
- */
- public void setValue(com.linkedin.pegasus2avro.assertion.AssertionStdParameter value) {
- this.value = value;
- }
-
- /**
- * Gets the value of the 'maxValue' field.
- * The maxValue parameter of an assertion */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameter getMaxValue() {
- return maxValue;
- }
-
- /**
- * Sets the value of the 'maxValue' field.
- * The maxValue parameter of an assertion * @param value the value to set.
- */
- public void setMaxValue(com.linkedin.pegasus2avro.assertion.AssertionStdParameter value) {
- this.maxValue = value;
- }
-
- /**
- * Gets the value of the 'minValue' field.
- * The minValue parameter of an assertion */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameter getMinValue() {
- return minValue;
- }
-
- /**
- * Sets the value of the 'minValue' field.
- * The minValue parameter of an assertion * @param value the value to set.
- */
- public void setMinValue(com.linkedin.pegasus2avro.assertion.AssertionStdParameter value) {
- this.minValue = value;
- }
-
- /** Creates a new AssertionStdParameters RecordBuilder */
- public static com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder();
- }
-
- /** Creates a new AssertionStdParameters RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder newBuilder(com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder other) {
- return new com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder(other);
- }
-
- /** Creates a new AssertionStdParameters RecordBuilder by copying an existing AssertionStdParameters instance */
- public static com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder newBuilder(com.linkedin.pegasus2avro.assertion.AssertionStdParameters other) {
- return new com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder(other);
- }
-
- /**
- * RecordBuilder for AssertionStdParameters instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private com.linkedin.pegasus2avro.assertion.AssertionStdParameter value;
- private com.linkedin.pegasus2avro.assertion.AssertionStdParameter maxValue;
- private com.linkedin.pegasus2avro.assertion.AssertionStdParameter minValue;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.assertion.AssertionStdParameters.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.value)) {
- this.value = data().deepCopy(fields()[0].schema(), other.value);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.maxValue)) {
- this.maxValue = data().deepCopy(fields()[1].schema(), other.maxValue);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.minValue)) {
- this.minValue = data().deepCopy(fields()[2].schema(), other.minValue);
- fieldSetFlags()[2] = true;
- }
- }
-
- /** Creates a Builder by copying an existing AssertionStdParameters instance */
- private Builder(com.linkedin.pegasus2avro.assertion.AssertionStdParameters other) {
- super(com.linkedin.pegasus2avro.assertion.AssertionStdParameters.SCHEMA$);
- if (isValidValue(fields()[0], other.value)) {
- this.value = data().deepCopy(fields()[0].schema(), other.value);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.maxValue)) {
- this.maxValue = data().deepCopy(fields()[1].schema(), other.maxValue);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.minValue)) {
- this.minValue = data().deepCopy(fields()[2].schema(), other.minValue);
- fieldSetFlags()[2] = true;
- }
- }
-
- /** Gets the value of the 'value' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameter getValue() {
- return value;
- }
-
- /** Sets the value of the 'value' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder setValue(com.linkedin.pegasus2avro.assertion.AssertionStdParameter value) {
- validate(fields()[0], value);
- this.value = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'value' field has been set */
- public boolean hasValue() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'value' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder clearValue() {
- value = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'maxValue' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameter getMaxValue() {
- return maxValue;
- }
-
- /** Sets the value of the 'maxValue' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder setMaxValue(com.linkedin.pegasus2avro.assertion.AssertionStdParameter value) {
- validate(fields()[1], value);
- this.maxValue = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'maxValue' field has been set */
- public boolean hasMaxValue() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'maxValue' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder clearMaxValue() {
- maxValue = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'minValue' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameter getMinValue() {
- return minValue;
- }
-
- /** Sets the value of the 'minValue' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder setMinValue(com.linkedin.pegasus2avro.assertion.AssertionStdParameter value) {
- validate(fields()[2], value);
- this.minValue = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'minValue' field has been set */
- public boolean hasMinValue() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'minValue' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameters.Builder clearMinValue() {
- minValue = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- @Override
- public AssertionStdParameters build() {
- try {
- AssertionStdParameters record = new AssertionStdParameters();
- record.value = fieldSetFlags()[0] ? this.value : (com.linkedin.pegasus2avro.assertion.AssertionStdParameter) defaultValue(fields()[0]);
- record.maxValue = fieldSetFlags()[1] ? this.maxValue : (com.linkedin.pegasus2avro.assertion.AssertionStdParameter) defaultValue(fields()[1]);
- record.minValue = fieldSetFlags()[2] ? this.minValue : (com.linkedin.pegasus2avro.assertion.AssertionStdParameter) defaultValue(fields()[2]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionType.java
deleted file mode 100644
index 5cb4c86504d067..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/AssertionType.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-@org.apache.avro.specific.AvroGenerated
-public enum AssertionType {
- DATASET ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"AssertionType\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"symbols\":[\"DATASET\"]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/BatchSpec.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/BatchSpec.java
deleted file mode 100644
index 017e84803801ab..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/BatchSpec.java
+++ /dev/null
@@ -1,309 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-/** A batch on which certain operations, e.g. data quality evaluation, is done. */
-@org.apache.avro.specific.AvroGenerated
-public class BatchSpec extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BatchSpec\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"doc\":\"A batch on which certain operations, e.g. data quality evaluation, is done.\",\"fields\":[{\"name\":\"customProperties\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"},\"doc\":\"Custom property bag.\",\"default\":{},\"Searchable\":{\"/*\":{\"queryByDefault\":true}}},{\"name\":\"nativeBatchId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The native identifier as specified by the system operating on the batch.\",\"default\":null},{\"name\":\"query\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A query that identifies a batch of data\",\"default\":null},{\"name\":\"limit\",\"type\":[\"null\",\"int\"],\"doc\":\"Any limit to the number of rows in the batch, if applied\",\"default\":null}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** Custom property bag. */
- @Deprecated public java.util.Map customProperties;
- /** The native identifier as specified by the system operating on the batch. */
- @Deprecated public java.lang.String nativeBatchId;
- /** A query that identifies a batch of data */
- @Deprecated public java.lang.String query;
- /** Any limit to the number of rows in the batch, if applied */
- @Deprecated public java.lang.Integer limit;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public BatchSpec() {}
-
- /**
- * All-args constructor.
- */
- public BatchSpec(java.util.Map customProperties, java.lang.String nativeBatchId, java.lang.String query, java.lang.Integer limit) {
- this.customProperties = customProperties;
- this.nativeBatchId = nativeBatchId;
- this.query = query;
- this.limit = limit;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return customProperties;
- case 1: return nativeBatchId;
- case 2: return query;
- case 3: return limit;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: customProperties = (java.util.Map)value$; break;
- case 1: nativeBatchId = (java.lang.String)value$; break;
- case 2: query = (java.lang.String)value$; break;
- case 3: limit = (java.lang.Integer)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'customProperties' field.
- * Custom property bag. */
- public java.util.Map getCustomProperties() {
- return customProperties;
- }
-
- /**
- * Sets the value of the 'customProperties' field.
- * Custom property bag. * @param value the value to set.
- */
- public void setCustomProperties(java.util.Map value) {
- this.customProperties = value;
- }
-
- /**
- * Gets the value of the 'nativeBatchId' field.
- * The native identifier as specified by the system operating on the batch. */
- public java.lang.String getNativeBatchId() {
- return nativeBatchId;
- }
-
- /**
- * Sets the value of the 'nativeBatchId' field.
- * The native identifier as specified by the system operating on the batch. * @param value the value to set.
- */
- public void setNativeBatchId(java.lang.String value) {
- this.nativeBatchId = value;
- }
-
- /**
- * Gets the value of the 'query' field.
- * A query that identifies a batch of data */
- public java.lang.String getQuery() {
- return query;
- }
-
- /**
- * Sets the value of the 'query' field.
- * A query that identifies a batch of data * @param value the value to set.
- */
- public void setQuery(java.lang.String value) {
- this.query = value;
- }
-
- /**
- * Gets the value of the 'limit' field.
- * Any limit to the number of rows in the batch, if applied */
- public java.lang.Integer getLimit() {
- return limit;
- }
-
- /**
- * Sets the value of the 'limit' field.
- * Any limit to the number of rows in the batch, if applied * @param value the value to set.
- */
- public void setLimit(java.lang.Integer value) {
- this.limit = value;
- }
-
- /** Creates a new BatchSpec RecordBuilder */
- public static com.linkedin.pegasus2avro.assertion.BatchSpec.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.assertion.BatchSpec.Builder();
- }
-
- /** Creates a new BatchSpec RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.assertion.BatchSpec.Builder newBuilder(com.linkedin.pegasus2avro.assertion.BatchSpec.Builder other) {
- return new com.linkedin.pegasus2avro.assertion.BatchSpec.Builder(other);
- }
-
- /** Creates a new BatchSpec RecordBuilder by copying an existing BatchSpec instance */
- public static com.linkedin.pegasus2avro.assertion.BatchSpec.Builder newBuilder(com.linkedin.pegasus2avro.assertion.BatchSpec other) {
- return new com.linkedin.pegasus2avro.assertion.BatchSpec.Builder(other);
- }
-
- /**
- * RecordBuilder for BatchSpec instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.util.Map customProperties;
- private java.lang.String nativeBatchId;
- private java.lang.String query;
- private java.lang.Integer limit;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.assertion.BatchSpec.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.assertion.BatchSpec.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.customProperties)) {
- this.customProperties = data().deepCopy(fields()[0].schema(), other.customProperties);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.nativeBatchId)) {
- this.nativeBatchId = data().deepCopy(fields()[1].schema(), other.nativeBatchId);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.query)) {
- this.query = data().deepCopy(fields()[2].schema(), other.query);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.limit)) {
- this.limit = data().deepCopy(fields()[3].schema(), other.limit);
- fieldSetFlags()[3] = true;
- }
- }
-
- /** Creates a Builder by copying an existing BatchSpec instance */
- private Builder(com.linkedin.pegasus2avro.assertion.BatchSpec other) {
- super(com.linkedin.pegasus2avro.assertion.BatchSpec.SCHEMA$);
- if (isValidValue(fields()[0], other.customProperties)) {
- this.customProperties = data().deepCopy(fields()[0].schema(), other.customProperties);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.nativeBatchId)) {
- this.nativeBatchId = data().deepCopy(fields()[1].schema(), other.nativeBatchId);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.query)) {
- this.query = data().deepCopy(fields()[2].schema(), other.query);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.limit)) {
- this.limit = data().deepCopy(fields()[3].schema(), other.limit);
- fieldSetFlags()[3] = true;
- }
- }
-
- /** Gets the value of the 'customProperties' field */
- public java.util.Map getCustomProperties() {
- return customProperties;
- }
-
- /** Sets the value of the 'customProperties' field */
- public com.linkedin.pegasus2avro.assertion.BatchSpec.Builder setCustomProperties(java.util.Map value) {
- validate(fields()[0], value);
- this.customProperties = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'customProperties' field has been set */
- public boolean hasCustomProperties() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'customProperties' field */
- public com.linkedin.pegasus2avro.assertion.BatchSpec.Builder clearCustomProperties() {
- customProperties = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'nativeBatchId' field */
- public java.lang.String getNativeBatchId() {
- return nativeBatchId;
- }
-
- /** Sets the value of the 'nativeBatchId' field */
- public com.linkedin.pegasus2avro.assertion.BatchSpec.Builder setNativeBatchId(java.lang.String value) {
- validate(fields()[1], value);
- this.nativeBatchId = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'nativeBatchId' field has been set */
- public boolean hasNativeBatchId() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'nativeBatchId' field */
- public com.linkedin.pegasus2avro.assertion.BatchSpec.Builder clearNativeBatchId() {
- nativeBatchId = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'query' field */
- public java.lang.String getQuery() {
- return query;
- }
-
- /** Sets the value of the 'query' field */
- public com.linkedin.pegasus2avro.assertion.BatchSpec.Builder setQuery(java.lang.String value) {
- validate(fields()[2], value);
- this.query = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'query' field has been set */
- public boolean hasQuery() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'query' field */
- public com.linkedin.pegasus2avro.assertion.BatchSpec.Builder clearQuery() {
- query = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'limit' field */
- public java.lang.Integer getLimit() {
- return limit;
- }
-
- /** Sets the value of the 'limit' field */
- public com.linkedin.pegasus2avro.assertion.BatchSpec.Builder setLimit(java.lang.Integer value) {
- validate(fields()[3], value);
- this.limit = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'limit' field has been set */
- public boolean hasLimit() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'limit' field */
- public com.linkedin.pegasus2avro.assertion.BatchSpec.Builder clearLimit() {
- limit = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- @Override
- public BatchSpec build() {
- try {
- BatchSpec record = new BatchSpec();
- record.customProperties = fieldSetFlags()[0] ? this.customProperties : (java.util.Map) defaultValue(fields()[0]);
- record.nativeBatchId = fieldSetFlags()[1] ? this.nativeBatchId : (java.lang.String) defaultValue(fields()[1]);
- record.query = fieldSetFlags()[2] ? this.query : (java.lang.String) defaultValue(fields()[2]);
- record.limit = fieldSetFlags()[3] ? this.limit : (java.lang.Integer) defaultValue(fields()[3]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/DatasetAssertionInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/DatasetAssertionInfo.java
deleted file mode 100644
index 3c740466125b09..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/DatasetAssertionInfo.java
+++ /dev/null
@@ -1,583 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-/** Attributes that are applicable to single-Dataset Assertions */
-@org.apache.avro.specific.AvroGenerated
-public class DatasetAssertionInfo extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"DatasetAssertionInfo\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"doc\":\"Attributes that are applicable to single-Dataset Assertions\",\"fields\":[{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The dataset targeted by this assertion.\",\"Relationship\":{\"entityTypes\":[\"dataset\"],\"name\":\"Asserts\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"scope\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetAssertionScope\",\"symbols\":[\"DATASET_COLUMN\",\"DATASET_ROWS\",\"DATASET_SCHEMA\",\"UNKNOWN\"],\"symbolDocs\":{\"DATASET_COLUMN\":\"This assertion applies to dataset columns\",\"DATASET_ROWS\":\"This assertion applies to entire rows of the dataset\",\"DATASET_SCHEMA\":\"This assertion applies to the schema of the dataset\",\"UNKNOWN\":\"The scope of the assertion is unknown\"}},\"doc\":\"Scope of the Assertion. What part of the dataset does this assertion apply to?\"},{\"name\":\"fields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"One or more dataset schema fields that are targeted by this assertion\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Asserts\"}}},{\"name\":\"aggregation\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"AssertionStdAggregation\",\"doc\":\"The function that is applied to the aggregation input (schema, rows, column values) before evaluating an operator.\",\"symbols\":[\"ROW_COUNT\",\"COLUMNS\",\"COLUMN_COUNT\",\"IDENTITY\",\"MEAN\",\"MEDIAN\",\"UNIQUE_COUNT\",\"UNIQUE_PROPOTION\",\"NULL_COUNT\",\"NULL_PROPORTION\",\"STDDEV\",\"MIN\",\"MAX\",\"SUM\",\"_NATIVE_\"],\"symbolDocs\":{\"COLUMNS\":\"Assertion is applied on all columns.\",\"COLUMN_COUNT\":\"Assertion is applied on number of columns.\",\"IDENTITY\":\"Assertion is applied on individual column value.\",\"MAX\":\"Assertion is applied on column std deviation\",\"MEAN\":\"Assertion is applied on column mean\",\"MEDIAN\":\"Assertion is applied on column median\",\"MIN\":\"Assertion is applied on column min\",\"NULL_COUNT\":\"Assertion is applied on number of null values in column\",\"NULL_PROPORTION\":\"Assertion is applied on proportion of null values in column\",\"ROW_COUNT\":\"Assertion is applied on number of rows.\",\"STDDEV\":\"Assertion is applied on column std deviation\",\"SUM\":\"Assertion is applied on column sum\",\"UNIQUE_COUNT\":\"Assertion is applied on number of distinct values in column\",\"UNIQUE_PROPOTION\":\"Assertion is applied on proportion of distinct values in column\",\"_NATIVE_\":\"Other\"}}],\"doc\":\"Standardized assertion operator\",\"default\":null},{\"name\":\"operator\",\"type\":{\"type\":\"enum\",\"name\":\"AssertionStdOperator\",\"doc\":\"A boolean operator that is applied on the input to an assertion, after an aggregation function has been applied.\",\"symbols\":[\"BETWEEN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"EQUAL_TO\",\"NOT_NULL\",\"CONTAIN\",\"END_WITH\",\"START_WITH\",\"REGEX_MATCH\",\"IN\",\"NOT_IN\",\"_NATIVE_\"],\"symbolDocs\":{\"BETWEEN\":\"Value being asserted is between min_value and max_value. Requires 'minValue' & 'maxValue' parameters.\",\"CONTAIN\":\"Value being asserted contains value. Requires 'value' parameter.\",\"END_WITH\":\"Value being asserted ends with value. Requires 'value' parameter.\",\"EQUAL_TO\":\"Value being asserted is equal to value. Requires 'value' parameter.\",\"GREATER_THAN\":\"Value being asserted is greater than some value. Requires 'value' parameter.\",\"GREATER_THAN_OR_EQUAL_TO\":\"Value being asserted is greater than or equal to some value. Requires 'value' parameter.\",\"IN\":\"Value being asserted is one of the array values. Requires 'value' parameter.\",\"LESS_THAN\":\"Value being asserted is less than a max value. Requires 'value' parameter.\",\"LESS_THAN_OR_EQUAL_TO\":\"Value being asserted is less than or equal to some value. Requires 'value' parameter.\",\"NOT_IN\":\"Value being asserted is not in one of the array values. Requires 'value' parameter.\",\"NOT_NULL\":\"Value being asserted is not null. Requires no parameters.\",\"REGEX_MATCH\":\"Value being asserted matches the regex value. Requires 'value' parameter.\",\"START_WITH\":\"Value being asserted starts with value. Requires 'value' parameter.\",\"_NATIVE_\":\"Other\"}},\"doc\":\"Standardized assertion operator\"},{\"name\":\"parameters\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"AssertionStdParameters\",\"doc\":\"Parameters for AssertionStdOperators.\",\"fields\":[{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"AssertionStdParameter\",\"doc\":\"Single parameter for AssertionStdOperators.\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The parameter value\"},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"AssertionStdParameterType\",\"symbols\":[\"STRING\",\"NUMBER\",\"LIST\",\"SET\",\"UNKNOWN\"]},\"doc\":\"The type of the parameter\"}]}],\"doc\":\"The value parameter of an assertion\",\"default\":null},{\"name\":\"maxValue\",\"type\":[\"null\",\"AssertionStdParameter\"],\"doc\":\"The maxValue parameter of an assertion\",\"default\":null},{\"name\":\"minValue\",\"type\":[\"null\",\"AssertionStdParameter\"],\"doc\":\"The minValue parameter of an assertion\",\"default\":null}]}],\"doc\":\"Standard parameters required for the assertion. e.g. min_value, max_value, value, columns\",\"default\":null},{\"name\":\"nativeType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Native assertion type\",\"default\":null},{\"name\":\"nativeParameters\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Native parameters required for the assertion.\",\"default\":null},{\"name\":\"logic\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** The dataset targeted by this assertion. */
- @Deprecated public java.lang.String dataset;
- /** Scope of the Assertion. What part of the dataset does this assertion apply to? */
- @Deprecated public com.linkedin.pegasus2avro.assertion.DatasetAssertionScope scope;
- /** One or more dataset schema fields that are targeted by this assertion */
- @Deprecated public java.util.List fields;
- /** Standardized assertion operator */
- @Deprecated public com.linkedin.pegasus2avro.assertion.AssertionStdAggregation aggregation;
- /** Standardized assertion operator */
- @Deprecated public com.linkedin.pegasus2avro.assertion.AssertionStdOperator operator;
- /** Standard parameters required for the assertion. e.g. min_value, max_value, value, columns */
- @Deprecated public com.linkedin.pegasus2avro.assertion.AssertionStdParameters parameters;
- /** Native assertion type */
- @Deprecated public java.lang.String nativeType;
- /** Native parameters required for the assertion. */
- @Deprecated public java.util.Map nativeParameters;
- @Deprecated public java.lang.String logic;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public DatasetAssertionInfo() {}
-
- /**
- * All-args constructor.
- */
- public DatasetAssertionInfo(java.lang.String dataset, com.linkedin.pegasus2avro.assertion.DatasetAssertionScope scope, java.util.List fields, com.linkedin.pegasus2avro.assertion.AssertionStdAggregation aggregation, com.linkedin.pegasus2avro.assertion.AssertionStdOperator operator, com.linkedin.pegasus2avro.assertion.AssertionStdParameters parameters, java.lang.String nativeType, java.util.Map nativeParameters, java.lang.String logic) {
- this.dataset = dataset;
- this.scope = scope;
- this.fields = fields;
- this.aggregation = aggregation;
- this.operator = operator;
- this.parameters = parameters;
- this.nativeType = nativeType;
- this.nativeParameters = nativeParameters;
- this.logic = logic;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return dataset;
- case 1: return scope;
- case 2: return fields;
- case 3: return aggregation;
- case 4: return operator;
- case 5: return parameters;
- case 6: return nativeType;
- case 7: return nativeParameters;
- case 8: return logic;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: dataset = (java.lang.String)value$; break;
- case 1: scope = (com.linkedin.pegasus2avro.assertion.DatasetAssertionScope)value$; break;
- case 2: fields = (java.util.List)value$; break;
- case 3: aggregation = (com.linkedin.pegasus2avro.assertion.AssertionStdAggregation)value$; break;
- case 4: operator = (com.linkedin.pegasus2avro.assertion.AssertionStdOperator)value$; break;
- case 5: parameters = (com.linkedin.pegasus2avro.assertion.AssertionStdParameters)value$; break;
- case 6: nativeType = (java.lang.String)value$; break;
- case 7: nativeParameters = (java.util.Map)value$; break;
- case 8: logic = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'dataset' field.
- * The dataset targeted by this assertion. */
- public java.lang.String getDataset() {
- return dataset;
- }
-
- /**
- * Sets the value of the 'dataset' field.
- * The dataset targeted by this assertion. * @param value the value to set.
- */
- public void setDataset(java.lang.String value) {
- this.dataset = value;
- }
-
- /**
- * Gets the value of the 'scope' field.
- * Scope of the Assertion. What part of the dataset does this assertion apply to? */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionScope getScope() {
- return scope;
- }
-
- /**
- * Sets the value of the 'scope' field.
- * Scope of the Assertion. What part of the dataset does this assertion apply to? * @param value the value to set.
- */
- public void setScope(com.linkedin.pegasus2avro.assertion.DatasetAssertionScope value) {
- this.scope = value;
- }
-
- /**
- * Gets the value of the 'fields' field.
- * One or more dataset schema fields that are targeted by this assertion */
- public java.util.List getFields() {
- return fields;
- }
-
- /**
- * Sets the value of the 'fields' field.
- * One or more dataset schema fields that are targeted by this assertion * @param value the value to set.
- */
- public void setFields(java.util.List value) {
- this.fields = value;
- }
-
- /**
- * Gets the value of the 'aggregation' field.
- * Standardized assertion operator */
- public com.linkedin.pegasus2avro.assertion.AssertionStdAggregation getAggregation() {
- return aggregation;
- }
-
- /**
- * Sets the value of the 'aggregation' field.
- * Standardized assertion operator * @param value the value to set.
- */
- public void setAggregation(com.linkedin.pegasus2avro.assertion.AssertionStdAggregation value) {
- this.aggregation = value;
- }
-
- /**
- * Gets the value of the 'operator' field.
- * Standardized assertion operator */
- public com.linkedin.pegasus2avro.assertion.AssertionStdOperator getOperator() {
- return operator;
- }
-
- /**
- * Sets the value of the 'operator' field.
- * Standardized assertion operator * @param value the value to set.
- */
- public void setOperator(com.linkedin.pegasus2avro.assertion.AssertionStdOperator value) {
- this.operator = value;
- }
-
- /**
- * Gets the value of the 'parameters' field.
- * Standard parameters required for the assertion. e.g. min_value, max_value, value, columns */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameters getParameters() {
- return parameters;
- }
-
- /**
- * Sets the value of the 'parameters' field.
- * Standard parameters required for the assertion. e.g. min_value, max_value, value, columns * @param value the value to set.
- */
- public void setParameters(com.linkedin.pegasus2avro.assertion.AssertionStdParameters value) {
- this.parameters = value;
- }
-
- /**
- * Gets the value of the 'nativeType' field.
- * Native assertion type */
- public java.lang.String getNativeType() {
- return nativeType;
- }
-
- /**
- * Sets the value of the 'nativeType' field.
- * Native assertion type * @param value the value to set.
- */
- public void setNativeType(java.lang.String value) {
- this.nativeType = value;
- }
-
- /**
- * Gets the value of the 'nativeParameters' field.
- * Native parameters required for the assertion. */
- public java.util.Map getNativeParameters() {
- return nativeParameters;
- }
-
- /**
- * Sets the value of the 'nativeParameters' field.
- * Native parameters required for the assertion. * @param value the value to set.
- */
- public void setNativeParameters(java.util.Map value) {
- this.nativeParameters = value;
- }
-
- /**
- * Gets the value of the 'logic' field.
- */
- public java.lang.String getLogic() {
- return logic;
- }
-
- /**
- * Sets the value of the 'logic' field.
- * @param value the value to set.
- */
- public void setLogic(java.lang.String value) {
- this.logic = value;
- }
-
- /** Creates a new DatasetAssertionInfo RecordBuilder */
- public static com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder();
- }
-
- /** Creates a new DatasetAssertionInfo RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder newBuilder(com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder other) {
- return new com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder(other);
- }
-
- /** Creates a new DatasetAssertionInfo RecordBuilder by copying an existing DatasetAssertionInfo instance */
- public static com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder newBuilder(com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo other) {
- return new com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder(other);
- }
-
- /**
- * RecordBuilder for DatasetAssertionInfo instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String dataset;
- private com.linkedin.pegasus2avro.assertion.DatasetAssertionScope scope;
- private java.util.List fields;
- private com.linkedin.pegasus2avro.assertion.AssertionStdAggregation aggregation;
- private com.linkedin.pegasus2avro.assertion.AssertionStdOperator operator;
- private com.linkedin.pegasus2avro.assertion.AssertionStdParameters parameters;
- private java.lang.String nativeType;
- private java.util.Map nativeParameters;
- private java.lang.String logic;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.dataset)) {
- this.dataset = data().deepCopy(fields()[0].schema(), other.dataset);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.scope)) {
- this.scope = data().deepCopy(fields()[1].schema(), other.scope);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.fields)) {
- this.fields = data().deepCopy(fields()[2].schema(), other.fields);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.aggregation)) {
- this.aggregation = data().deepCopy(fields()[3].schema(), other.aggregation);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.operator)) {
- this.operator = data().deepCopy(fields()[4].schema(), other.operator);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.parameters)) {
- this.parameters = data().deepCopy(fields()[5].schema(), other.parameters);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.nativeType)) {
- this.nativeType = data().deepCopy(fields()[6].schema(), other.nativeType);
- fieldSetFlags()[6] = true;
- }
- if (isValidValue(fields()[7], other.nativeParameters)) {
- this.nativeParameters = data().deepCopy(fields()[7].schema(), other.nativeParameters);
- fieldSetFlags()[7] = true;
- }
- if (isValidValue(fields()[8], other.logic)) {
- this.logic = data().deepCopy(fields()[8].schema(), other.logic);
- fieldSetFlags()[8] = true;
- }
- }
-
- /** Creates a Builder by copying an existing DatasetAssertionInfo instance */
- private Builder(com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo other) {
- super(com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.SCHEMA$);
- if (isValidValue(fields()[0], other.dataset)) {
- this.dataset = data().deepCopy(fields()[0].schema(), other.dataset);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.scope)) {
- this.scope = data().deepCopy(fields()[1].schema(), other.scope);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.fields)) {
- this.fields = data().deepCopy(fields()[2].schema(), other.fields);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.aggregation)) {
- this.aggregation = data().deepCopy(fields()[3].schema(), other.aggregation);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.operator)) {
- this.operator = data().deepCopy(fields()[4].schema(), other.operator);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.parameters)) {
- this.parameters = data().deepCopy(fields()[5].schema(), other.parameters);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.nativeType)) {
- this.nativeType = data().deepCopy(fields()[6].schema(), other.nativeType);
- fieldSetFlags()[6] = true;
- }
- if (isValidValue(fields()[7], other.nativeParameters)) {
- this.nativeParameters = data().deepCopy(fields()[7].schema(), other.nativeParameters);
- fieldSetFlags()[7] = true;
- }
- if (isValidValue(fields()[8], other.logic)) {
- this.logic = data().deepCopy(fields()[8].schema(), other.logic);
- fieldSetFlags()[8] = true;
- }
- }
-
- /** Gets the value of the 'dataset' field */
- public java.lang.String getDataset() {
- return dataset;
- }
-
- /** Sets the value of the 'dataset' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder setDataset(java.lang.String value) {
- validate(fields()[0], value);
- this.dataset = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'dataset' field has been set */
- public boolean hasDataset() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'dataset' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder clearDataset() {
- dataset = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'scope' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionScope getScope() {
- return scope;
- }
-
- /** Sets the value of the 'scope' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder setScope(com.linkedin.pegasus2avro.assertion.DatasetAssertionScope value) {
- validate(fields()[1], value);
- this.scope = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'scope' field has been set */
- public boolean hasScope() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'scope' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder clearScope() {
- scope = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'fields' field */
- public java.util.List getFields() {
- return fields;
- }
-
- /** Sets the value of the 'fields' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder setFields(java.util.List value) {
- validate(fields()[2], value);
- this.fields = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'fields' field has been set */
- public boolean hasFields() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'fields' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder clearFields() {
- fields = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'aggregation' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdAggregation getAggregation() {
- return aggregation;
- }
-
- /** Sets the value of the 'aggregation' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder setAggregation(com.linkedin.pegasus2avro.assertion.AssertionStdAggregation value) {
- validate(fields()[3], value);
- this.aggregation = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'aggregation' field has been set */
- public boolean hasAggregation() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'aggregation' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder clearAggregation() {
- aggregation = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- /** Gets the value of the 'operator' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdOperator getOperator() {
- return operator;
- }
-
- /** Sets the value of the 'operator' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder setOperator(com.linkedin.pegasus2avro.assertion.AssertionStdOperator value) {
- validate(fields()[4], value);
- this.operator = value;
- fieldSetFlags()[4] = true;
- return this;
- }
-
- /** Checks whether the 'operator' field has been set */
- public boolean hasOperator() {
- return fieldSetFlags()[4];
- }
-
- /** Clears the value of the 'operator' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder clearOperator() {
- operator = null;
- fieldSetFlags()[4] = false;
- return this;
- }
-
- /** Gets the value of the 'parameters' field */
- public com.linkedin.pegasus2avro.assertion.AssertionStdParameters getParameters() {
- return parameters;
- }
-
- /** Sets the value of the 'parameters' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder setParameters(com.linkedin.pegasus2avro.assertion.AssertionStdParameters value) {
- validate(fields()[5], value);
- this.parameters = value;
- fieldSetFlags()[5] = true;
- return this;
- }
-
- /** Checks whether the 'parameters' field has been set */
- public boolean hasParameters() {
- return fieldSetFlags()[5];
- }
-
- /** Clears the value of the 'parameters' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder clearParameters() {
- parameters = null;
- fieldSetFlags()[5] = false;
- return this;
- }
-
- /** Gets the value of the 'nativeType' field */
- public java.lang.String getNativeType() {
- return nativeType;
- }
-
- /** Sets the value of the 'nativeType' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder setNativeType(java.lang.String value) {
- validate(fields()[6], value);
- this.nativeType = value;
- fieldSetFlags()[6] = true;
- return this;
- }
-
- /** Checks whether the 'nativeType' field has been set */
- public boolean hasNativeType() {
- return fieldSetFlags()[6];
- }
-
- /** Clears the value of the 'nativeType' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder clearNativeType() {
- nativeType = null;
- fieldSetFlags()[6] = false;
- return this;
- }
-
- /** Gets the value of the 'nativeParameters' field */
- public java.util.Map getNativeParameters() {
- return nativeParameters;
- }
-
- /** Sets the value of the 'nativeParameters' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder setNativeParameters(java.util.Map value) {
- validate(fields()[7], value);
- this.nativeParameters = value;
- fieldSetFlags()[7] = true;
- return this;
- }
-
- /** Checks whether the 'nativeParameters' field has been set */
- public boolean hasNativeParameters() {
- return fieldSetFlags()[7];
- }
-
- /** Clears the value of the 'nativeParameters' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder clearNativeParameters() {
- nativeParameters = null;
- fieldSetFlags()[7] = false;
- return this;
- }
-
- /** Gets the value of the 'logic' field */
- public java.lang.String getLogic() {
- return logic;
- }
-
- /** Sets the value of the 'logic' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder setLogic(java.lang.String value) {
- validate(fields()[8], value);
- this.logic = value;
- fieldSetFlags()[8] = true;
- return this;
- }
-
- /** Checks whether the 'logic' field has been set */
- public boolean hasLogic() {
- return fieldSetFlags()[8];
- }
-
- /** Clears the value of the 'logic' field */
- public com.linkedin.pegasus2avro.assertion.DatasetAssertionInfo.Builder clearLogic() {
- logic = null;
- fieldSetFlags()[8] = false;
- return this;
- }
-
- @Override
- public DatasetAssertionInfo build() {
- try {
- DatasetAssertionInfo record = new DatasetAssertionInfo();
- record.dataset = fieldSetFlags()[0] ? this.dataset : (java.lang.String) defaultValue(fields()[0]);
- record.scope = fieldSetFlags()[1] ? this.scope : (com.linkedin.pegasus2avro.assertion.DatasetAssertionScope) defaultValue(fields()[1]);
- record.fields = fieldSetFlags()[2] ? this.fields : (java.util.List) defaultValue(fields()[2]);
- record.aggregation = fieldSetFlags()[3] ? this.aggregation : (com.linkedin.pegasus2avro.assertion.AssertionStdAggregation) defaultValue(fields()[3]);
- record.operator = fieldSetFlags()[4] ? this.operator : (com.linkedin.pegasus2avro.assertion.AssertionStdOperator) defaultValue(fields()[4]);
- record.parameters = fieldSetFlags()[5] ? this.parameters : (com.linkedin.pegasus2avro.assertion.AssertionStdParameters) defaultValue(fields()[5]);
- record.nativeType = fieldSetFlags()[6] ? this.nativeType : (java.lang.String) defaultValue(fields()[6]);
- record.nativeParameters = fieldSetFlags()[7] ? this.nativeParameters : (java.util.Map) defaultValue(fields()[7]);
- record.logic = fieldSetFlags()[8] ? this.logic : (java.lang.String) defaultValue(fields()[8]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/DatasetAssertionScope.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/DatasetAssertionScope.java
deleted file mode 100644
index b2d6bdd4fead72..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/assertion/DatasetAssertionScope.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.assertion;
-@SuppressWarnings("all")
-@org.apache.avro.specific.AvroGenerated
-public enum DatasetAssertionScope {
- DATASET_COLUMN, DATASET_ROWS, DATASET_SCHEMA, UNKNOWN ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"DatasetAssertionScope\",\"namespace\":\"com.linkedin.pegasus2avro.assertion\",\"symbols\":[\"DATASET_COLUMN\",\"DATASET_ROWS\",\"DATASET_SCHEMA\",\"UNKNOWN\"],\"symbolDocs\":{\"DATASET_COLUMN\":\"This assertion applies to dataset columns\",\"DATASET_ROWS\":\"This assertion applies to entire rows of the dataset\",\"DATASET_SCHEMA\":\"This assertion applies to the schema of the dataset\",\"UNKNOWN\":\"The scope of the assertion is unknown\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartInfo.java
deleted file mode 100644
index 3e267a4a260156..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartInfo.java
+++ /dev/null
@@ -1,697 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.chart;
-@SuppressWarnings("all")
-/** Information about a chart */
-@org.apache.avro.specific.AvroGenerated
-public class ChartInfo extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"ChartInfo\",\"namespace\":\"com.linkedin.pegasus2avro.chart\",\"doc\":\"Information about a chart\",\"fields\":[{\"name\":\"customProperties\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"},\"doc\":\"Custom property bag.\",\"default\":{},\"Searchable\":{\"/*\":{\"queryByDefault\":true}}},{\"name\":\"externalUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"URL where the reference exist\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"title\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Title of the chart\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Detailed description about the chart\",\"Searchable\":{}},{\"name\":\"lastModified\",\"type\":{\"type\":\"record\",\"name\":\"ChangeAuditStamps\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into various lifecycle stages, and who acted to move it into those lifecycle stages. The recommended best practice is to include this record in your record schema, and annotate its fields as @readOnly in your resource. See https://github.com/linkedin/rest.li/wiki/Validation-in-Rest.li#restli-validation-annotations\",\"fields\":[{\"name\":\"created\",\"type\":{\"type\":\"record\",\"name\":\"AuditStamp\",\"doc\":\"Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into a particular lifecycle stage, and who acted to move it into that specific lifecycle stage.\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent.\"},{\"name\":\"actor\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"impersonator\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"message\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually.\",\"default\":null}]},\"doc\":\"An AuditStamp corresponding to the creation of this resource/association/sub-resource. A value of 0 for time indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"An AuditStamp corresponding to the last modification of this resource/association/sub-resource. If no modification has happened since creation, lastModified should be the same as created. A value of 0 for time indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"deleted\",\"type\":[\"null\",\"AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the deletion of this resource/association/sub-resource. Logically, deleted MUST have a later timestamp than creation. It may or may not have the same time as lastModified depending upon the resource/association/sub-resource semantics.\",\"default\":null}]},\"doc\":\"Captures information about who created/last modified/deleted this chart and when\"},{\"name\":\"chartUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"URL for the chart. This could be used as an external link on DataHub to allow users access/view the chart\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"inputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":[{\"type\":\"string\",\"avro.java.string\":\"String\"}]}],\"doc\":\"Data sources for the chart\\nDeprecated! Use inputEdges instead.\",\"default\":null,\"Relationship\":{\"/*/string\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"deprecated\":true},{\"name\":\"inputEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Edge\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Information about a relatonship edge.\",\"fields\":[{\"name\":\"sourceUrn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the source of this relationship edge.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"destinationUrn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the destination of this relationship edge.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"created\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who created this relationship edge and when\"},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who last modified this relationship edge and when\"},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"A generic properties bag that allows us to store specific information on this graph edge.\",\"default\":null}]}}],\"doc\":\"Data sources for the chart\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputEdges/*/created/actor\",\"createdOn\":\"inputEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"inputEdges/*/properties\",\"updatedActor\":\"inputEdges/*/lastModified/actor\",\"updatedOn\":\"inputEdges/*/lastModified/time\"}}},{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"ChartType\",\"doc\":\"The various types of charts\",\"symbols\":[\"BAR\",\"PIE\",\"SCATTER\",\"TABLE\",\"TEXT\",\"LINE\",\"AREA\",\"HISTOGRAM\",\"BOX_PLOT\",\"WORD_CLOUD\",\"COHORT\"],\"symbolDocs\":{\"BAR\":\"Chart showing a Bar chart\",\"PIE\":\"Chart showing a Pie chart\",\"SCATTER\":\"Chart showing a Scatter plot\",\"TABLE\":\"Chart showing a table\",\"TEXT\":\"Chart showing Markdown formatted text\"}}],\"doc\":\"Type of the chart\",\"default\":null,\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"KEYWORD\",\"filterNameOverride\":\"Chart Type\"}},{\"name\":\"access\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"AccessLevel\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The various access levels\",\"symbols\":[\"PUBLIC\",\"PRIVATE\"],\"symbolDocs\":{\"PRIVATE\":\"Private availability to certain set of users\",\"PUBLIC\":\"Publicly available access level\"}}],\"doc\":\"Access level for the chart\",\"default\":null,\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"KEYWORD\",\"filterNameOverride\":\"Access Level\"}},{\"name\":\"lastRefreshed\",\"type\":[\"null\",\"long\"],\"doc\":\"The time when this chart last refreshed\",\"default\":null}],\"Aspect\":{\"name\":\"chartInfo\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** Custom property bag. */
- @Deprecated public java.util.Map customProperties;
- /** URL where the reference exist */
- @Deprecated public java.lang.String externalUrl;
- /** Title of the chart */
- @Deprecated public java.lang.String title;
- /** Detailed description about the chart */
- @Deprecated public java.lang.String description;
- /** Captures information about who created/last modified/deleted this chart and when */
- @Deprecated public com.linkedin.pegasus2avro.common.ChangeAuditStamps lastModified;
- /** URL for the chart. This could be used as an external link on DataHub to allow users access/view the chart */
- @Deprecated public java.lang.String chartUrl;
- /** Data sources for the chart
-Deprecated! Use inputEdges instead. */
- @Deprecated public java.util.List inputs;
- /** Data sources for the chart */
- @Deprecated public java.util.List inputEdges;
- /** Type of the chart */
- @Deprecated public com.linkedin.pegasus2avro.chart.ChartType type;
- /** Access level for the chart */
- @Deprecated public com.linkedin.pegasus2avro.common.AccessLevel access;
- /** The time when this chart last refreshed */
- @Deprecated public java.lang.Long lastRefreshed;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public ChartInfo() {}
-
- /**
- * All-args constructor.
- */
- public ChartInfo(java.util.Map customProperties, java.lang.String externalUrl, java.lang.String title, java.lang.String description, com.linkedin.pegasus2avro.common.ChangeAuditStamps lastModified, java.lang.String chartUrl, java.util.List inputs, java.util.List inputEdges, com.linkedin.pegasus2avro.chart.ChartType type, com.linkedin.pegasus2avro.common.AccessLevel access, java.lang.Long lastRefreshed) {
- this.customProperties = customProperties;
- this.externalUrl = externalUrl;
- this.title = title;
- this.description = description;
- this.lastModified = lastModified;
- this.chartUrl = chartUrl;
- this.inputs = inputs;
- this.inputEdges = inputEdges;
- this.type = type;
- this.access = access;
- this.lastRefreshed = lastRefreshed;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return customProperties;
- case 1: return externalUrl;
- case 2: return title;
- case 3: return description;
- case 4: return lastModified;
- case 5: return chartUrl;
- case 6: return inputs;
- case 7: return inputEdges;
- case 8: return type;
- case 9: return access;
- case 10: return lastRefreshed;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: customProperties = (java.util.Map)value$; break;
- case 1: externalUrl = (java.lang.String)value$; break;
- case 2: title = (java.lang.String)value$; break;
- case 3: description = (java.lang.String)value$; break;
- case 4: lastModified = (com.linkedin.pegasus2avro.common.ChangeAuditStamps)value$; break;
- case 5: chartUrl = (java.lang.String)value$; break;
- case 6: inputs = (java.util.List)value$; break;
- case 7: inputEdges = (java.util.List)value$; break;
- case 8: type = (com.linkedin.pegasus2avro.chart.ChartType)value$; break;
- case 9: access = (com.linkedin.pegasus2avro.common.AccessLevel)value$; break;
- case 10: lastRefreshed = (java.lang.Long)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'customProperties' field.
- * Custom property bag. */
- public java.util.Map getCustomProperties() {
- return customProperties;
- }
-
- /**
- * Sets the value of the 'customProperties' field.
- * Custom property bag. * @param value the value to set.
- */
- public void setCustomProperties(java.util.Map value) {
- this.customProperties = value;
- }
-
- /**
- * Gets the value of the 'externalUrl' field.
- * URL where the reference exist */
- public java.lang.String getExternalUrl() {
- return externalUrl;
- }
-
- /**
- * Sets the value of the 'externalUrl' field.
- * URL where the reference exist * @param value the value to set.
- */
- public void setExternalUrl(java.lang.String value) {
- this.externalUrl = value;
- }
-
- /**
- * Gets the value of the 'title' field.
- * Title of the chart */
- public java.lang.String getTitle() {
- return title;
- }
-
- /**
- * Sets the value of the 'title' field.
- * Title of the chart * @param value the value to set.
- */
- public void setTitle(java.lang.String value) {
- this.title = value;
- }
-
- /**
- * Gets the value of the 'description' field.
- * Detailed description about the chart */
- public java.lang.String getDescription() {
- return description;
- }
-
- /**
- * Sets the value of the 'description' field.
- * Detailed description about the chart * @param value the value to set.
- */
- public void setDescription(java.lang.String value) {
- this.description = value;
- }
-
- /**
- * Gets the value of the 'lastModified' field.
- * Captures information about who created/last modified/deleted this chart and when */
- public com.linkedin.pegasus2avro.common.ChangeAuditStamps getLastModified() {
- return lastModified;
- }
-
- /**
- * Sets the value of the 'lastModified' field.
- * Captures information about who created/last modified/deleted this chart and when * @param value the value to set.
- */
- public void setLastModified(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) {
- this.lastModified = value;
- }
-
- /**
- * Gets the value of the 'chartUrl' field.
- * URL for the chart. This could be used as an external link on DataHub to allow users access/view the chart */
- public java.lang.String getChartUrl() {
- return chartUrl;
- }
-
- /**
- * Sets the value of the 'chartUrl' field.
- * URL for the chart. This could be used as an external link on DataHub to allow users access/view the chart * @param value the value to set.
- */
- public void setChartUrl(java.lang.String value) {
- this.chartUrl = value;
- }
-
- /**
- * Gets the value of the 'inputs' field.
- * Data sources for the chart
-Deprecated! Use inputEdges instead. */
- public java.util.List getInputs() {
- return inputs;
- }
-
- /**
- * Sets the value of the 'inputs' field.
- * Data sources for the chart
-Deprecated! Use inputEdges instead. * @param value the value to set.
- */
- public void setInputs(java.util.List value) {
- this.inputs = value;
- }
-
- /**
- * Gets the value of the 'inputEdges' field.
- * Data sources for the chart */
- public java.util.List getInputEdges() {
- return inputEdges;
- }
-
- /**
- * Sets the value of the 'inputEdges' field.
- * Data sources for the chart * @param value the value to set.
- */
- public void setInputEdges(java.util.List value) {
- this.inputEdges = value;
- }
-
- /**
- * Gets the value of the 'type' field.
- * Type of the chart */
- public com.linkedin.pegasus2avro.chart.ChartType getType() {
- return type;
- }
-
- /**
- * Sets the value of the 'type' field.
- * Type of the chart * @param value the value to set.
- */
- public void setType(com.linkedin.pegasus2avro.chart.ChartType value) {
- this.type = value;
- }
-
- /**
- * Gets the value of the 'access' field.
- * Access level for the chart */
- public com.linkedin.pegasus2avro.common.AccessLevel getAccess() {
- return access;
- }
-
- /**
- * Sets the value of the 'access' field.
- * Access level for the chart * @param value the value to set.
- */
- public void setAccess(com.linkedin.pegasus2avro.common.AccessLevel value) {
- this.access = value;
- }
-
- /**
- * Gets the value of the 'lastRefreshed' field.
- * The time when this chart last refreshed */
- public java.lang.Long getLastRefreshed() {
- return lastRefreshed;
- }
-
- /**
- * Sets the value of the 'lastRefreshed' field.
- * The time when this chart last refreshed * @param value the value to set.
- */
- public void setLastRefreshed(java.lang.Long value) {
- this.lastRefreshed = value;
- }
-
- /** Creates a new ChartInfo RecordBuilder */
- public static com.linkedin.pegasus2avro.chart.ChartInfo.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.chart.ChartInfo.Builder();
- }
-
- /** Creates a new ChartInfo RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.chart.ChartInfo.Builder newBuilder(com.linkedin.pegasus2avro.chart.ChartInfo.Builder other) {
- return new com.linkedin.pegasus2avro.chart.ChartInfo.Builder(other);
- }
-
- /** Creates a new ChartInfo RecordBuilder by copying an existing ChartInfo instance */
- public static com.linkedin.pegasus2avro.chart.ChartInfo.Builder newBuilder(com.linkedin.pegasus2avro.chart.ChartInfo other) {
- return new com.linkedin.pegasus2avro.chart.ChartInfo.Builder(other);
- }
-
- /**
- * RecordBuilder for ChartInfo instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.util.Map customProperties;
- private java.lang.String externalUrl;
- private java.lang.String title;
- private java.lang.String description;
- private com.linkedin.pegasus2avro.common.ChangeAuditStamps lastModified;
- private java.lang.String chartUrl;
- private java.util.List inputs;
- private java.util.List inputEdges;
- private com.linkedin.pegasus2avro.chart.ChartType type;
- private com.linkedin.pegasus2avro.common.AccessLevel access;
- private java.lang.Long lastRefreshed;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.chart.ChartInfo.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.chart.ChartInfo.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.customProperties)) {
- this.customProperties = data().deepCopy(fields()[0].schema(), other.customProperties);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.externalUrl)) {
- this.externalUrl = data().deepCopy(fields()[1].schema(), other.externalUrl);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.title)) {
- this.title = data().deepCopy(fields()[2].schema(), other.title);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.description)) {
- this.description = data().deepCopy(fields()[3].schema(), other.description);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.lastModified)) {
- this.lastModified = data().deepCopy(fields()[4].schema(), other.lastModified);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.chartUrl)) {
- this.chartUrl = data().deepCopy(fields()[5].schema(), other.chartUrl);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.inputs)) {
- this.inputs = data().deepCopy(fields()[6].schema(), other.inputs);
- fieldSetFlags()[6] = true;
- }
- if (isValidValue(fields()[7], other.inputEdges)) {
- this.inputEdges = data().deepCopy(fields()[7].schema(), other.inputEdges);
- fieldSetFlags()[7] = true;
- }
- if (isValidValue(fields()[8], other.type)) {
- this.type = data().deepCopy(fields()[8].schema(), other.type);
- fieldSetFlags()[8] = true;
- }
- if (isValidValue(fields()[9], other.access)) {
- this.access = data().deepCopy(fields()[9].schema(), other.access);
- fieldSetFlags()[9] = true;
- }
- if (isValidValue(fields()[10], other.lastRefreshed)) {
- this.lastRefreshed = data().deepCopy(fields()[10].schema(), other.lastRefreshed);
- fieldSetFlags()[10] = true;
- }
- }
-
- /** Creates a Builder by copying an existing ChartInfo instance */
- private Builder(com.linkedin.pegasus2avro.chart.ChartInfo other) {
- super(com.linkedin.pegasus2avro.chart.ChartInfo.SCHEMA$);
- if (isValidValue(fields()[0], other.customProperties)) {
- this.customProperties = data().deepCopy(fields()[0].schema(), other.customProperties);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.externalUrl)) {
- this.externalUrl = data().deepCopy(fields()[1].schema(), other.externalUrl);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.title)) {
- this.title = data().deepCopy(fields()[2].schema(), other.title);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.description)) {
- this.description = data().deepCopy(fields()[3].schema(), other.description);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.lastModified)) {
- this.lastModified = data().deepCopy(fields()[4].schema(), other.lastModified);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.chartUrl)) {
- this.chartUrl = data().deepCopy(fields()[5].schema(), other.chartUrl);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.inputs)) {
- this.inputs = data().deepCopy(fields()[6].schema(), other.inputs);
- fieldSetFlags()[6] = true;
- }
- if (isValidValue(fields()[7], other.inputEdges)) {
- this.inputEdges = data().deepCopy(fields()[7].schema(), other.inputEdges);
- fieldSetFlags()[7] = true;
- }
- if (isValidValue(fields()[8], other.type)) {
- this.type = data().deepCopy(fields()[8].schema(), other.type);
- fieldSetFlags()[8] = true;
- }
- if (isValidValue(fields()[9], other.access)) {
- this.access = data().deepCopy(fields()[9].schema(), other.access);
- fieldSetFlags()[9] = true;
- }
- if (isValidValue(fields()[10], other.lastRefreshed)) {
- this.lastRefreshed = data().deepCopy(fields()[10].schema(), other.lastRefreshed);
- fieldSetFlags()[10] = true;
- }
- }
-
- /** Gets the value of the 'customProperties' field */
- public java.util.Map getCustomProperties() {
- return customProperties;
- }
-
- /** Sets the value of the 'customProperties' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder setCustomProperties(java.util.Map value) {
- validate(fields()[0], value);
- this.customProperties = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'customProperties' field has been set */
- public boolean hasCustomProperties() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'customProperties' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder clearCustomProperties() {
- customProperties = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'externalUrl' field */
- public java.lang.String getExternalUrl() {
- return externalUrl;
- }
-
- /** Sets the value of the 'externalUrl' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder setExternalUrl(java.lang.String value) {
- validate(fields()[1], value);
- this.externalUrl = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'externalUrl' field has been set */
- public boolean hasExternalUrl() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'externalUrl' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder clearExternalUrl() {
- externalUrl = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'title' field */
- public java.lang.String getTitle() {
- return title;
- }
-
- /** Sets the value of the 'title' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder setTitle(java.lang.String value) {
- validate(fields()[2], value);
- this.title = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'title' field has been set */
- public boolean hasTitle() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'title' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder clearTitle() {
- title = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'description' field */
- public java.lang.String getDescription() {
- return description;
- }
-
- /** Sets the value of the 'description' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder setDescription(java.lang.String value) {
- validate(fields()[3], value);
- this.description = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'description' field has been set */
- public boolean hasDescription() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'description' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder clearDescription() {
- description = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- /** Gets the value of the 'lastModified' field */
- public com.linkedin.pegasus2avro.common.ChangeAuditStamps getLastModified() {
- return lastModified;
- }
-
- /** Sets the value of the 'lastModified' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder setLastModified(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) {
- validate(fields()[4], value);
- this.lastModified = value;
- fieldSetFlags()[4] = true;
- return this;
- }
-
- /** Checks whether the 'lastModified' field has been set */
- public boolean hasLastModified() {
- return fieldSetFlags()[4];
- }
-
- /** Clears the value of the 'lastModified' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder clearLastModified() {
- lastModified = null;
- fieldSetFlags()[4] = false;
- return this;
- }
-
- /** Gets the value of the 'chartUrl' field */
- public java.lang.String getChartUrl() {
- return chartUrl;
- }
-
- /** Sets the value of the 'chartUrl' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder setChartUrl(java.lang.String value) {
- validate(fields()[5], value);
- this.chartUrl = value;
- fieldSetFlags()[5] = true;
- return this;
- }
-
- /** Checks whether the 'chartUrl' field has been set */
- public boolean hasChartUrl() {
- return fieldSetFlags()[5];
- }
-
- /** Clears the value of the 'chartUrl' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder clearChartUrl() {
- chartUrl = null;
- fieldSetFlags()[5] = false;
- return this;
- }
-
- /** Gets the value of the 'inputs' field */
- public java.util.List getInputs() {
- return inputs;
- }
-
- /** Sets the value of the 'inputs' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder setInputs(java.util.List value) {
- validate(fields()[6], value);
- this.inputs = value;
- fieldSetFlags()[6] = true;
- return this;
- }
-
- /** Checks whether the 'inputs' field has been set */
- public boolean hasInputs() {
- return fieldSetFlags()[6];
- }
-
- /** Clears the value of the 'inputs' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder clearInputs() {
- inputs = null;
- fieldSetFlags()[6] = false;
- return this;
- }
-
- /** Gets the value of the 'inputEdges' field */
- public java.util.List getInputEdges() {
- return inputEdges;
- }
-
- /** Sets the value of the 'inputEdges' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder setInputEdges(java.util.List value) {
- validate(fields()[7], value);
- this.inputEdges = value;
- fieldSetFlags()[7] = true;
- return this;
- }
-
- /** Checks whether the 'inputEdges' field has been set */
- public boolean hasInputEdges() {
- return fieldSetFlags()[7];
- }
-
- /** Clears the value of the 'inputEdges' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder clearInputEdges() {
- inputEdges = null;
- fieldSetFlags()[7] = false;
- return this;
- }
-
- /** Gets the value of the 'type' field */
- public com.linkedin.pegasus2avro.chart.ChartType getType() {
- return type;
- }
-
- /** Sets the value of the 'type' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder setType(com.linkedin.pegasus2avro.chart.ChartType value) {
- validate(fields()[8], value);
- this.type = value;
- fieldSetFlags()[8] = true;
- return this;
- }
-
- /** Checks whether the 'type' field has been set */
- public boolean hasType() {
- return fieldSetFlags()[8];
- }
-
- /** Clears the value of the 'type' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder clearType() {
- type = null;
- fieldSetFlags()[8] = false;
- return this;
- }
-
- /** Gets the value of the 'access' field */
- public com.linkedin.pegasus2avro.common.AccessLevel getAccess() {
- return access;
- }
-
- /** Sets the value of the 'access' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder setAccess(com.linkedin.pegasus2avro.common.AccessLevel value) {
- validate(fields()[9], value);
- this.access = value;
- fieldSetFlags()[9] = true;
- return this;
- }
-
- /** Checks whether the 'access' field has been set */
- public boolean hasAccess() {
- return fieldSetFlags()[9];
- }
-
- /** Clears the value of the 'access' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder clearAccess() {
- access = null;
- fieldSetFlags()[9] = false;
- return this;
- }
-
- /** Gets the value of the 'lastRefreshed' field */
- public java.lang.Long getLastRefreshed() {
- return lastRefreshed;
- }
-
- /** Sets the value of the 'lastRefreshed' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder setLastRefreshed(java.lang.Long value) {
- validate(fields()[10], value);
- this.lastRefreshed = value;
- fieldSetFlags()[10] = true;
- return this;
- }
-
- /** Checks whether the 'lastRefreshed' field has been set */
- public boolean hasLastRefreshed() {
- return fieldSetFlags()[10];
- }
-
- /** Clears the value of the 'lastRefreshed' field */
- public com.linkedin.pegasus2avro.chart.ChartInfo.Builder clearLastRefreshed() {
- lastRefreshed = null;
- fieldSetFlags()[10] = false;
- return this;
- }
-
- @Override
- public ChartInfo build() {
- try {
- ChartInfo record = new ChartInfo();
- record.customProperties = fieldSetFlags()[0] ? this.customProperties : (java.util.Map) defaultValue(fields()[0]);
- record.externalUrl = fieldSetFlags()[1] ? this.externalUrl : (java.lang.String) defaultValue(fields()[1]);
- record.title = fieldSetFlags()[2] ? this.title : (java.lang.String) defaultValue(fields()[2]);
- record.description = fieldSetFlags()[3] ? this.description : (java.lang.String) defaultValue(fields()[3]);
- record.lastModified = fieldSetFlags()[4] ? this.lastModified : (com.linkedin.pegasus2avro.common.ChangeAuditStamps) defaultValue(fields()[4]);
- record.chartUrl = fieldSetFlags()[5] ? this.chartUrl : (java.lang.String) defaultValue(fields()[5]);
- record.inputs = fieldSetFlags()[6] ? this.inputs : (java.util.List) defaultValue(fields()[6]);
- record.inputEdges = fieldSetFlags()[7] ? this.inputEdges : (java.util.List) defaultValue(fields()[7]);
- record.type = fieldSetFlags()[8] ? this.type : (com.linkedin.pegasus2avro.chart.ChartType) defaultValue(fields()[8]);
- record.access = fieldSetFlags()[9] ? this.access : (com.linkedin.pegasus2avro.common.AccessLevel) defaultValue(fields()[9]);
- record.lastRefreshed = fieldSetFlags()[10] ? this.lastRefreshed : (java.lang.Long) defaultValue(fields()[10]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartQuery.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartQuery.java
deleted file mode 100644
index 361a1edf61e277..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartQuery.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.chart;
-@SuppressWarnings("all")
-/** Information for chart query which is used for getting data of the chart */
-@org.apache.avro.specific.AvroGenerated
-public class ChartQuery extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"ChartQuery\",\"namespace\":\"com.linkedin.pegasus2avro.chart\",\"doc\":\"Information for chart query which is used for getting data of the chart\",\"fields\":[{\"name\":\"rawQuery\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Raw query to build a chart from input datasets\"},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"ChartQueryType\",\"symbols\":[\"LOOKML\",\"SQL\"],\"symbolDocs\":{\"LOOKML\":\"LookML queries\",\"SQL\":\"SQL type queries\"}},\"doc\":\"Chart query type\",\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"queryType\",\"fieldType\":\"KEYWORD\",\"filterNameOverride\":\"Query Type\"}}],\"Aspect\":{\"name\":\"chartQuery\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** Raw query to build a chart from input datasets */
- @Deprecated public java.lang.String rawQuery;
- /** Chart query type */
- @Deprecated public com.linkedin.pegasus2avro.chart.ChartQueryType type;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public ChartQuery() {}
-
- /**
- * All-args constructor.
- */
- public ChartQuery(java.lang.String rawQuery, com.linkedin.pegasus2avro.chart.ChartQueryType type) {
- this.rawQuery = rawQuery;
- this.type = type;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return rawQuery;
- case 1: return type;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: rawQuery = (java.lang.String)value$; break;
- case 1: type = (com.linkedin.pegasus2avro.chart.ChartQueryType)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'rawQuery' field.
- * Raw query to build a chart from input datasets */
- public java.lang.String getRawQuery() {
- return rawQuery;
- }
-
- /**
- * Sets the value of the 'rawQuery' field.
- * Raw query to build a chart from input datasets * @param value the value to set.
- */
- public void setRawQuery(java.lang.String value) {
- this.rawQuery = value;
- }
-
- /**
- * Gets the value of the 'type' field.
- * Chart query type */
- public com.linkedin.pegasus2avro.chart.ChartQueryType getType() {
- return type;
- }
-
- /**
- * Sets the value of the 'type' field.
- * Chart query type * @param value the value to set.
- */
- public void setType(com.linkedin.pegasus2avro.chart.ChartQueryType value) {
- this.type = value;
- }
-
- /** Creates a new ChartQuery RecordBuilder */
- public static com.linkedin.pegasus2avro.chart.ChartQuery.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.chart.ChartQuery.Builder();
- }
-
- /** Creates a new ChartQuery RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.chart.ChartQuery.Builder newBuilder(com.linkedin.pegasus2avro.chart.ChartQuery.Builder other) {
- return new com.linkedin.pegasus2avro.chart.ChartQuery.Builder(other);
- }
-
- /** Creates a new ChartQuery RecordBuilder by copying an existing ChartQuery instance */
- public static com.linkedin.pegasus2avro.chart.ChartQuery.Builder newBuilder(com.linkedin.pegasus2avro.chart.ChartQuery other) {
- return new com.linkedin.pegasus2avro.chart.ChartQuery.Builder(other);
- }
-
- /**
- * RecordBuilder for ChartQuery instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String rawQuery;
- private com.linkedin.pegasus2avro.chart.ChartQueryType type;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.chart.ChartQuery.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.chart.ChartQuery.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.rawQuery)) {
- this.rawQuery = data().deepCopy(fields()[0].schema(), other.rawQuery);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = true;
- }
- }
-
- /** Creates a Builder by copying an existing ChartQuery instance */
- private Builder(com.linkedin.pegasus2avro.chart.ChartQuery other) {
- super(com.linkedin.pegasus2avro.chart.ChartQuery.SCHEMA$);
- if (isValidValue(fields()[0], other.rawQuery)) {
- this.rawQuery = data().deepCopy(fields()[0].schema(), other.rawQuery);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = true;
- }
- }
-
- /** Gets the value of the 'rawQuery' field */
- public java.lang.String getRawQuery() {
- return rawQuery;
- }
-
- /** Sets the value of the 'rawQuery' field */
- public com.linkedin.pegasus2avro.chart.ChartQuery.Builder setRawQuery(java.lang.String value) {
- validate(fields()[0], value);
- this.rawQuery = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'rawQuery' field has been set */
- public boolean hasRawQuery() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'rawQuery' field */
- public com.linkedin.pegasus2avro.chart.ChartQuery.Builder clearRawQuery() {
- rawQuery = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'type' field */
- public com.linkedin.pegasus2avro.chart.ChartQueryType getType() {
- return type;
- }
-
- /** Sets the value of the 'type' field */
- public com.linkedin.pegasus2avro.chart.ChartQuery.Builder setType(com.linkedin.pegasus2avro.chart.ChartQueryType value) {
- validate(fields()[1], value);
- this.type = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'type' field has been set */
- public boolean hasType() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'type' field */
- public com.linkedin.pegasus2avro.chart.ChartQuery.Builder clearType() {
- type = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- @Override
- public ChartQuery build() {
- try {
- ChartQuery record = new ChartQuery();
- record.rawQuery = fieldSetFlags()[0] ? this.rawQuery : (java.lang.String) defaultValue(fields()[0]);
- record.type = fieldSetFlags()[1] ? this.type : (com.linkedin.pegasus2avro.chart.ChartQueryType) defaultValue(fields()[1]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartQueryType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartQueryType.java
deleted file mode 100644
index 81608106d8f91f..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartQueryType.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.chart;
-@SuppressWarnings("all")
-@org.apache.avro.specific.AvroGenerated
-public enum ChartQueryType {
- LOOKML, SQL ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"ChartQueryType\",\"namespace\":\"com.linkedin.pegasus2avro.chart\",\"symbols\":[\"LOOKML\",\"SQL\"],\"symbolDocs\":{\"LOOKML\":\"LookML queries\",\"SQL\":\"SQL type queries\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartType.java
deleted file mode 100644
index ba8162ba88361b..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartType.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.chart;
-@SuppressWarnings("all")
-/** The various types of charts */
-@org.apache.avro.specific.AvroGenerated
-public enum ChartType {
- BAR, PIE, SCATTER, TABLE, TEXT, LINE, AREA, HISTOGRAM, BOX_PLOT, WORD_CLOUD, COHORT ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"ChartType\",\"namespace\":\"com.linkedin.pegasus2avro.chart\",\"doc\":\"The various types of charts\",\"symbols\":[\"BAR\",\"PIE\",\"SCATTER\",\"TABLE\",\"TEXT\",\"LINE\",\"AREA\",\"HISTOGRAM\",\"BOX_PLOT\",\"WORD_CLOUD\",\"COHORT\"],\"symbolDocs\":{\"BAR\":\"Chart showing a Bar chart\",\"PIE\":\"Chart showing a Pie chart\",\"SCATTER\":\"Chart showing a Scatter plot\",\"TABLE\":\"Chart showing a table\",\"TEXT\":\"Chart showing Markdown formatted text\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartUsageStatistics.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartUsageStatistics.java
deleted file mode 100644
index 4328685c051926..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartUsageStatistics.java
+++ /dev/null
@@ -1,476 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.chart;
-@SuppressWarnings("all")
-/** Experimental (Subject to breaking change) -- Stats corresponding to chart's usage.
-
-If this aspect represents the latest snapshot of the statistics about a Chart, the eventGranularity field should be null.
-If this aspect represents a bucketed window of usage statistics (e.g. over a day), then the eventGranularity field should be set accordingly. */
-@org.apache.avro.specific.AvroGenerated
-public class ChartUsageStatistics extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"ChartUsageStatistics\",\"namespace\":\"com.linkedin.pegasus2avro.chart\",\"doc\":\"Experimental (Subject to breaking change) -- Stats corresponding to chart's usage.\\n\\nIf this aspect represents the latest snapshot of the statistics about a Chart, the eventGranularity field should be null.\\nIf this aspect represents a bucketed window of usage statistics (e.g. over a day), then the eventGranularity field should be set accordingly.\",\"fields\":[{\"name\":\"timestampMillis\",\"type\":\"long\",\"doc\":\"The event timestamp field as epoch at UTC in milli seconds.\"},{\"name\":\"eventGranularity\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeWindowSize\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"doc\":\"Defines the size of a time window.\",\"fields\":[{\"name\":\"unit\",\"type\":{\"type\":\"enum\",\"name\":\"CalendarInterval\",\"symbols\":[\"SECOND\",\"MINUTE\",\"HOUR\",\"DAY\",\"WEEK\",\"MONTH\",\"QUARTER\",\"YEAR\"]},\"doc\":\"Interval unit such as minute/hour/day etc.\"},{\"name\":\"multiple\",\"type\":\"int\",\"doc\":\"How many units. Defaults to 1.\",\"default\":1}]}],\"doc\":\"Granularity of the event if applicable\",\"default\":null},{\"name\":\"partitionSpec\",\"type\":[{\"type\":\"record\",\"name\":\"PartitionSpec\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"doc\":\"Defines how the data is partitioned\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"PartitionType\",\"symbols\":[\"FULL_TABLE\",\"QUERY\",\"PARTITION\"]},\"default\":\"PARTITION\"},{\"name\":\"partition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"String representation of the partition\",\"TimeseriesField\":{}},{\"name\":\"timePartition\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeWindow\",\"fields\":[{\"name\":\"startTimeMillis\",\"type\":\"long\",\"doc\":\"Start time as epoch at UTC.\"},{\"name\":\"length\",\"type\":\"TimeWindowSize\",\"doc\":\"The length of the window.\"}]}],\"doc\":\"Time window of the partition if applicable\",\"default\":null}]},\"null\"],\"doc\":\"The optional partition specification.\",\"default\":{\"partition\":\"FULL_TABLE_SNAPSHOT\",\"type\":\"FULL_TABLE\",\"timePartition\":null}},{\"name\":\"messageId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The optional messageId, if provided serves as a custom user-defined unique identifier for an aspect value.\",\"default\":null},{\"name\":\"viewsCount\",\"type\":[\"null\",\"int\"],\"doc\":\"The total number of times chart has been viewed\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"uniqueUserCount\",\"type\":[\"null\",\"int\"],\"doc\":\"Unique user count\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"userCounts\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ChartUserUsageCounts\",\"doc\":\"Records a single user's usage counts for a given resource\",\"fields\":[{\"name\":\"user\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The unique id of the user.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"viewsCount\",\"type\":[\"null\",\"int\"],\"doc\":\"The number of times the user has viewed the chart\",\"default\":null,\"TimeseriesField\":{}}]}}],\"doc\":\"Users within this bucket, with frequency counts\",\"default\":null,\"TimeseriesFieldCollection\":{\"key\":\"user\"}}],\"Aspect\":{\"name\":\"chartUsageStatistics\",\"type\":\"timeseries\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** The event timestamp field as epoch at UTC in milli seconds. */
- @Deprecated public long timestampMillis;
- /** Granularity of the event if applicable */
- @Deprecated public com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity;
- /** The optional partition specification. */
- @Deprecated public com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec;
- /** The optional messageId, if provided serves as a custom user-defined unique identifier for an aspect value. */
- @Deprecated public java.lang.String messageId;
- /** The total number of times chart has been viewed */
- @Deprecated public java.lang.Integer viewsCount;
- /** Unique user count */
- @Deprecated public java.lang.Integer uniqueUserCount;
- /** Users within this bucket, with frequency counts */
- @Deprecated public java.util.List userCounts;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public ChartUsageStatistics() {}
-
- /**
- * All-args constructor.
- */
- public ChartUsageStatistics(java.lang.Long timestampMillis, com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity, com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec, java.lang.String messageId, java.lang.Integer viewsCount, java.lang.Integer uniqueUserCount, java.util.List userCounts) {
- this.timestampMillis = timestampMillis;
- this.eventGranularity = eventGranularity;
- this.partitionSpec = partitionSpec;
- this.messageId = messageId;
- this.viewsCount = viewsCount;
- this.uniqueUserCount = uniqueUserCount;
- this.userCounts = userCounts;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return timestampMillis;
- case 1: return eventGranularity;
- case 2: return partitionSpec;
- case 3: return messageId;
- case 4: return viewsCount;
- case 5: return uniqueUserCount;
- case 6: return userCounts;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: timestampMillis = (java.lang.Long)value$; break;
- case 1: eventGranularity = (com.linkedin.pegasus2avro.timeseries.TimeWindowSize)value$; break;
- case 2: partitionSpec = (com.linkedin.pegasus2avro.timeseries.PartitionSpec)value$; break;
- case 3: messageId = (java.lang.String)value$; break;
- case 4: viewsCount = (java.lang.Integer)value$; break;
- case 5: uniqueUserCount = (java.lang.Integer)value$; break;
- case 6: userCounts = (java.util.List)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'timestampMillis' field.
- * The event timestamp field as epoch at UTC in milli seconds. */
- public java.lang.Long getTimestampMillis() {
- return timestampMillis;
- }
-
- /**
- * Sets the value of the 'timestampMillis' field.
- * The event timestamp field as epoch at UTC in milli seconds. * @param value the value to set.
- */
- public void setTimestampMillis(java.lang.Long value) {
- this.timestampMillis = value;
- }
-
- /**
- * Gets the value of the 'eventGranularity' field.
- * Granularity of the event if applicable */
- public com.linkedin.pegasus2avro.timeseries.TimeWindowSize getEventGranularity() {
- return eventGranularity;
- }
-
- /**
- * Sets the value of the 'eventGranularity' field.
- * Granularity of the event if applicable * @param value the value to set.
- */
- public void setEventGranularity(com.linkedin.pegasus2avro.timeseries.TimeWindowSize value) {
- this.eventGranularity = value;
- }
-
- /**
- * Gets the value of the 'partitionSpec' field.
- * The optional partition specification. */
- public com.linkedin.pegasus2avro.timeseries.PartitionSpec getPartitionSpec() {
- return partitionSpec;
- }
-
- /**
- * Sets the value of the 'partitionSpec' field.
- * The optional partition specification. * @param value the value to set.
- */
- public void setPartitionSpec(com.linkedin.pegasus2avro.timeseries.PartitionSpec value) {
- this.partitionSpec = value;
- }
-
- /**
- * Gets the value of the 'messageId' field.
- * The optional messageId, if provided serves as a custom user-defined unique identifier for an aspect value. */
- public java.lang.String getMessageId() {
- return messageId;
- }
-
- /**
- * Sets the value of the 'messageId' field.
- * The optional messageId, if provided serves as a custom user-defined unique identifier for an aspect value. * @param value the value to set.
- */
- public void setMessageId(java.lang.String value) {
- this.messageId = value;
- }
-
- /**
- * Gets the value of the 'viewsCount' field.
- * The total number of times chart has been viewed */
- public java.lang.Integer getViewsCount() {
- return viewsCount;
- }
-
- /**
- * Sets the value of the 'viewsCount' field.
- * The total number of times chart has been viewed * @param value the value to set.
- */
- public void setViewsCount(java.lang.Integer value) {
- this.viewsCount = value;
- }
-
- /**
- * Gets the value of the 'uniqueUserCount' field.
- * Unique user count */
- public java.lang.Integer getUniqueUserCount() {
- return uniqueUserCount;
- }
-
- /**
- * Sets the value of the 'uniqueUserCount' field.
- * Unique user count * @param value the value to set.
- */
- public void setUniqueUserCount(java.lang.Integer value) {
- this.uniqueUserCount = value;
- }
-
- /**
- * Gets the value of the 'userCounts' field.
- * Users within this bucket, with frequency counts */
- public java.util.List getUserCounts() {
- return userCounts;
- }
-
- /**
- * Sets the value of the 'userCounts' field.
- * Users within this bucket, with frequency counts * @param value the value to set.
- */
- public void setUserCounts(java.util.List value) {
- this.userCounts = value;
- }
-
- /** Creates a new ChartUsageStatistics RecordBuilder */
- public static com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder();
- }
-
- /** Creates a new ChartUsageStatistics RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder newBuilder(com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder other) {
- return new com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder(other);
- }
-
- /** Creates a new ChartUsageStatistics RecordBuilder by copying an existing ChartUsageStatistics instance */
- public static com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder newBuilder(com.linkedin.pegasus2avro.chart.ChartUsageStatistics other) {
- return new com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder(other);
- }
-
- /**
- * RecordBuilder for ChartUsageStatistics instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private long timestampMillis;
- private com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity;
- private com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec;
- private java.lang.String messageId;
- private java.lang.Integer viewsCount;
- private java.lang.Integer uniqueUserCount;
- private java.util.List userCounts;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.chart.ChartUsageStatistics.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.timestampMillis)) {
- this.timestampMillis = data().deepCopy(fields()[0].schema(), other.timestampMillis);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.eventGranularity)) {
- this.eventGranularity = data().deepCopy(fields()[1].schema(), other.eventGranularity);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.partitionSpec)) {
- this.partitionSpec = data().deepCopy(fields()[2].schema(), other.partitionSpec);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.messageId)) {
- this.messageId = data().deepCopy(fields()[3].schema(), other.messageId);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.viewsCount)) {
- this.viewsCount = data().deepCopy(fields()[4].schema(), other.viewsCount);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.uniqueUserCount)) {
- this.uniqueUserCount = data().deepCopy(fields()[5].schema(), other.uniqueUserCount);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.userCounts)) {
- this.userCounts = data().deepCopy(fields()[6].schema(), other.userCounts);
- fieldSetFlags()[6] = true;
- }
- }
-
- /** Creates a Builder by copying an existing ChartUsageStatistics instance */
- private Builder(com.linkedin.pegasus2avro.chart.ChartUsageStatistics other) {
- super(com.linkedin.pegasus2avro.chart.ChartUsageStatistics.SCHEMA$);
- if (isValidValue(fields()[0], other.timestampMillis)) {
- this.timestampMillis = data().deepCopy(fields()[0].schema(), other.timestampMillis);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.eventGranularity)) {
- this.eventGranularity = data().deepCopy(fields()[1].schema(), other.eventGranularity);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.partitionSpec)) {
- this.partitionSpec = data().deepCopy(fields()[2].schema(), other.partitionSpec);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.messageId)) {
- this.messageId = data().deepCopy(fields()[3].schema(), other.messageId);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.viewsCount)) {
- this.viewsCount = data().deepCopy(fields()[4].schema(), other.viewsCount);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.uniqueUserCount)) {
- this.uniqueUserCount = data().deepCopy(fields()[5].schema(), other.uniqueUserCount);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.userCounts)) {
- this.userCounts = data().deepCopy(fields()[6].schema(), other.userCounts);
- fieldSetFlags()[6] = true;
- }
- }
-
- /** Gets the value of the 'timestampMillis' field */
- public java.lang.Long getTimestampMillis() {
- return timestampMillis;
- }
-
- /** Sets the value of the 'timestampMillis' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder setTimestampMillis(long value) {
- validate(fields()[0], value);
- this.timestampMillis = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'timestampMillis' field has been set */
- public boolean hasTimestampMillis() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'timestampMillis' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder clearTimestampMillis() {
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'eventGranularity' field */
- public com.linkedin.pegasus2avro.timeseries.TimeWindowSize getEventGranularity() {
- return eventGranularity;
- }
-
- /** Sets the value of the 'eventGranularity' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder setEventGranularity(com.linkedin.pegasus2avro.timeseries.TimeWindowSize value) {
- validate(fields()[1], value);
- this.eventGranularity = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'eventGranularity' field has been set */
- public boolean hasEventGranularity() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'eventGranularity' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder clearEventGranularity() {
- eventGranularity = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'partitionSpec' field */
- public com.linkedin.pegasus2avro.timeseries.PartitionSpec getPartitionSpec() {
- return partitionSpec;
- }
-
- /** Sets the value of the 'partitionSpec' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder setPartitionSpec(com.linkedin.pegasus2avro.timeseries.PartitionSpec value) {
- validate(fields()[2], value);
- this.partitionSpec = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'partitionSpec' field has been set */
- public boolean hasPartitionSpec() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'partitionSpec' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder clearPartitionSpec() {
- partitionSpec = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'messageId' field */
- public java.lang.String getMessageId() {
- return messageId;
- }
-
- /** Sets the value of the 'messageId' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder setMessageId(java.lang.String value) {
- validate(fields()[3], value);
- this.messageId = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'messageId' field has been set */
- public boolean hasMessageId() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'messageId' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder clearMessageId() {
- messageId = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- /** Gets the value of the 'viewsCount' field */
- public java.lang.Integer getViewsCount() {
- return viewsCount;
- }
-
- /** Sets the value of the 'viewsCount' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder setViewsCount(java.lang.Integer value) {
- validate(fields()[4], value);
- this.viewsCount = value;
- fieldSetFlags()[4] = true;
- return this;
- }
-
- /** Checks whether the 'viewsCount' field has been set */
- public boolean hasViewsCount() {
- return fieldSetFlags()[4];
- }
-
- /** Clears the value of the 'viewsCount' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder clearViewsCount() {
- viewsCount = null;
- fieldSetFlags()[4] = false;
- return this;
- }
-
- /** Gets the value of the 'uniqueUserCount' field */
- public java.lang.Integer getUniqueUserCount() {
- return uniqueUserCount;
- }
-
- /** Sets the value of the 'uniqueUserCount' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder setUniqueUserCount(java.lang.Integer value) {
- validate(fields()[5], value);
- this.uniqueUserCount = value;
- fieldSetFlags()[5] = true;
- return this;
- }
-
- /** Checks whether the 'uniqueUserCount' field has been set */
- public boolean hasUniqueUserCount() {
- return fieldSetFlags()[5];
- }
-
- /** Clears the value of the 'uniqueUserCount' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder clearUniqueUserCount() {
- uniqueUserCount = null;
- fieldSetFlags()[5] = false;
- return this;
- }
-
- /** Gets the value of the 'userCounts' field */
- public java.util.List getUserCounts() {
- return userCounts;
- }
-
- /** Sets the value of the 'userCounts' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder setUserCounts(java.util.List value) {
- validate(fields()[6], value);
- this.userCounts = value;
- fieldSetFlags()[6] = true;
- return this;
- }
-
- /** Checks whether the 'userCounts' field has been set */
- public boolean hasUserCounts() {
- return fieldSetFlags()[6];
- }
-
- /** Clears the value of the 'userCounts' field */
- public com.linkedin.pegasus2avro.chart.ChartUsageStatistics.Builder clearUserCounts() {
- userCounts = null;
- fieldSetFlags()[6] = false;
- return this;
- }
-
- @Override
- public ChartUsageStatistics build() {
- try {
- ChartUsageStatistics record = new ChartUsageStatistics();
- record.timestampMillis = fieldSetFlags()[0] ? this.timestampMillis : (java.lang.Long) defaultValue(fields()[0]);
- record.eventGranularity = fieldSetFlags()[1] ? this.eventGranularity : (com.linkedin.pegasus2avro.timeseries.TimeWindowSize) defaultValue(fields()[1]);
- record.partitionSpec = fieldSetFlags()[2] ? this.partitionSpec : (com.linkedin.pegasus2avro.timeseries.PartitionSpec) defaultValue(fields()[2]);
- record.messageId = fieldSetFlags()[3] ? this.messageId : (java.lang.String) defaultValue(fields()[3]);
- record.viewsCount = fieldSetFlags()[4] ? this.viewsCount : (java.lang.Integer) defaultValue(fields()[4]);
- record.uniqueUserCount = fieldSetFlags()[5] ? this.uniqueUserCount : (java.lang.Integer) defaultValue(fields()[5]);
- record.userCounts = fieldSetFlags()[6] ? this.userCounts : (java.util.List) defaultValue(fields()[6]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartUserUsageCounts.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartUserUsageCounts.java
deleted file mode 100644
index 1a2d710e0264b0..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/ChartUserUsageCounts.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.chart;
-@SuppressWarnings("all")
-/** Records a single user's usage counts for a given resource */
-@org.apache.avro.specific.AvroGenerated
-public class ChartUserUsageCounts extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"ChartUserUsageCounts\",\"namespace\":\"com.linkedin.pegasus2avro.chart\",\"doc\":\"Records a single user's usage counts for a given resource\",\"fields\":[{\"name\":\"user\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The unique id of the user.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"viewsCount\",\"type\":[\"null\",\"int\"],\"doc\":\"The number of times the user has viewed the chart\",\"default\":null,\"TimeseriesField\":{}}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** The unique id of the user. */
- @Deprecated public java.lang.String user;
- /** The number of times the user has viewed the chart */
- @Deprecated public java.lang.Integer viewsCount;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public ChartUserUsageCounts() {}
-
- /**
- * All-args constructor.
- */
- public ChartUserUsageCounts(java.lang.String user, java.lang.Integer viewsCount) {
- this.user = user;
- this.viewsCount = viewsCount;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return user;
- case 1: return viewsCount;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: user = (java.lang.String)value$; break;
- case 1: viewsCount = (java.lang.Integer)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'user' field.
- * The unique id of the user. */
- public java.lang.String getUser() {
- return user;
- }
-
- /**
- * Sets the value of the 'user' field.
- * The unique id of the user. * @param value the value to set.
- */
- public void setUser(java.lang.String value) {
- this.user = value;
- }
-
- /**
- * Gets the value of the 'viewsCount' field.
- * The number of times the user has viewed the chart */
- public java.lang.Integer getViewsCount() {
- return viewsCount;
- }
-
- /**
- * Sets the value of the 'viewsCount' field.
- * The number of times the user has viewed the chart * @param value the value to set.
- */
- public void setViewsCount(java.lang.Integer value) {
- this.viewsCount = value;
- }
-
- /** Creates a new ChartUserUsageCounts RecordBuilder */
- public static com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.Builder();
- }
-
- /** Creates a new ChartUserUsageCounts RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.Builder newBuilder(com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.Builder other) {
- return new com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.Builder(other);
- }
-
- /** Creates a new ChartUserUsageCounts RecordBuilder by copying an existing ChartUserUsageCounts instance */
- public static com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.Builder newBuilder(com.linkedin.pegasus2avro.chart.ChartUserUsageCounts other) {
- return new com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.Builder(other);
- }
-
- /**
- * RecordBuilder for ChartUserUsageCounts instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String user;
- private java.lang.Integer viewsCount;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.user)) {
- this.user = data().deepCopy(fields()[0].schema(), other.user);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.viewsCount)) {
- this.viewsCount = data().deepCopy(fields()[1].schema(), other.viewsCount);
- fieldSetFlags()[1] = true;
- }
- }
-
- /** Creates a Builder by copying an existing ChartUserUsageCounts instance */
- private Builder(com.linkedin.pegasus2avro.chart.ChartUserUsageCounts other) {
- super(com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.SCHEMA$);
- if (isValidValue(fields()[0], other.user)) {
- this.user = data().deepCopy(fields()[0].schema(), other.user);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.viewsCount)) {
- this.viewsCount = data().deepCopy(fields()[1].schema(), other.viewsCount);
- fieldSetFlags()[1] = true;
- }
- }
-
- /** Gets the value of the 'user' field */
- public java.lang.String getUser() {
- return user;
- }
-
- /** Sets the value of the 'user' field */
- public com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.Builder setUser(java.lang.String value) {
- validate(fields()[0], value);
- this.user = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'user' field has been set */
- public boolean hasUser() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'user' field */
- public com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.Builder clearUser() {
- user = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'viewsCount' field */
- public java.lang.Integer getViewsCount() {
- return viewsCount;
- }
-
- /** Sets the value of the 'viewsCount' field */
- public com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.Builder setViewsCount(java.lang.Integer value) {
- validate(fields()[1], value);
- this.viewsCount = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'viewsCount' field has been set */
- public boolean hasViewsCount() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'viewsCount' field */
- public com.linkedin.pegasus2avro.chart.ChartUserUsageCounts.Builder clearViewsCount() {
- viewsCount = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- @Override
- public ChartUserUsageCounts build() {
- try {
- ChartUserUsageCounts record = new ChartUserUsageCounts();
- record.user = fieldSetFlags()[0] ? this.user : (java.lang.String) defaultValue(fields()[0]);
- record.viewsCount = fieldSetFlags()[1] ? this.viewsCount : (java.lang.Integer) defaultValue(fields()[1]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/EditableChartProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/EditableChartProperties.java
deleted file mode 100644
index c74538dcfb51b5..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/chart/EditableChartProperties.java
+++ /dev/null
@@ -1,310 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.chart;
-@SuppressWarnings("all")
-/** Stores editable changes made to properties. This separates changes made from
-ingestion pipelines and edits in the UI to avoid accidental overwrites of user-provided data by ingestion pipelines */
-@org.apache.avro.specific.AvroGenerated
-public class EditableChartProperties extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"EditableChartProperties\",\"namespace\":\"com.linkedin.pegasus2avro.chart\",\"doc\":\"Stores editable changes made to properties. This separates changes made from\\ningestion pipelines and edits in the UI to avoid accidental overwrites of user-provided data by ingestion pipelines\",\"fields\":[{\"name\":\"created\",\"type\":{\"type\":\"record\",\"name\":\"AuditStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into a particular lifecycle stage, and who acted to move it into that specific lifecycle stage.\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent.\"},{\"name\":\"actor\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"impersonator\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"message\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually.\",\"default\":null}]},\"doc\":\"An AuditStamp corresponding to the creation of this resource/association/sub-resource. A value of 0 for time indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"An AuditStamp corresponding to the last modification of this resource/association/sub-resource. If no modification has happened since creation, lastModified should be the same as created. A value of 0 for time indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"deleted\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the deletion of this resource/association/sub-resource. Logically, deleted MUST have a later timestamp than creation. It may or may not have the same time as lastModified depending upon the resource/association/sub-resource semantics.\",\"default\":null},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Edited documentation of the chart \",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableChartProperties\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** An AuditStamp corresponding to the creation of this resource/association/sub-resource. A value of 0 for time indicates missing data. */
- @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created;
- /** An AuditStamp corresponding to the last modification of this resource/association/sub-resource. If no modification has happened since creation, lastModified should be the same as created. A value of 0 for time indicates missing data. */
- @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp lastModified;
- /** An AuditStamp corresponding to the deletion of this resource/association/sub-resource. Logically, deleted MUST have a later timestamp than creation. It may or may not have the same time as lastModified depending upon the resource/association/sub-resource semantics. */
- @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp deleted;
- /** Edited documentation of the chart */
- @Deprecated public java.lang.String description;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public EditableChartProperties() {}
-
- /**
- * All-args constructor.
- */
- public EditableChartProperties(com.linkedin.pegasus2avro.common.AuditStamp created, com.linkedin.pegasus2avro.common.AuditStamp lastModified, com.linkedin.pegasus2avro.common.AuditStamp deleted, java.lang.String description) {
- this.created = created;
- this.lastModified = lastModified;
- this.deleted = deleted;
- this.description = description;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return created;
- case 1: return lastModified;
- case 2: return deleted;
- case 3: return description;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break;
- case 1: lastModified = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break;
- case 2: deleted = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break;
- case 3: description = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'created' field.
- * An AuditStamp corresponding to the creation of this resource/association/sub-resource. A value of 0 for time indicates missing data. */
- public com.linkedin.pegasus2avro.common.AuditStamp getCreated() {
- return created;
- }
-
- /**
- * Sets the value of the 'created' field.
- * An AuditStamp corresponding to the creation of this resource/association/sub-resource. A value of 0 for time indicates missing data. * @param value the value to set.
- */
- public void setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) {
- this.created = value;
- }
-
- /**
- * Gets the value of the 'lastModified' field.
- * An AuditStamp corresponding to the last modification of this resource/association/sub-resource. If no modification has happened since creation, lastModified should be the same as created. A value of 0 for time indicates missing data. */
- public com.linkedin.pegasus2avro.common.AuditStamp getLastModified() {
- return lastModified;
- }
-
- /**
- * Sets the value of the 'lastModified' field.
- * An AuditStamp corresponding to the last modification of this resource/association/sub-resource. If no modification has happened since creation, lastModified should be the same as created. A value of 0 for time indicates missing data. * @param value the value to set.
- */
- public void setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) {
- this.lastModified = value;
- }
-
- /**
- * Gets the value of the 'deleted' field.
- * An AuditStamp corresponding to the deletion of this resource/association/sub-resource. Logically, deleted MUST have a later timestamp than creation. It may or may not have the same time as lastModified depending upon the resource/association/sub-resource semantics. */
- public com.linkedin.pegasus2avro.common.AuditStamp getDeleted() {
- return deleted;
- }
-
- /**
- * Sets the value of the 'deleted' field.
- * An AuditStamp corresponding to the deletion of this resource/association/sub-resource. Logically, deleted MUST have a later timestamp than creation. It may or may not have the same time as lastModified depending upon the resource/association/sub-resource semantics. * @param value the value to set.
- */
- public void setDeleted(com.linkedin.pegasus2avro.common.AuditStamp value) {
- this.deleted = value;
- }
-
- /**
- * Gets the value of the 'description' field.
- * Edited documentation of the chart */
- public java.lang.String getDescription() {
- return description;
- }
-
- /**
- * Sets the value of the 'description' field.
- * Edited documentation of the chart * @param value the value to set.
- */
- public void setDescription(java.lang.String value) {
- this.description = value;
- }
-
- /** Creates a new EditableChartProperties RecordBuilder */
- public static com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder();
- }
-
- /** Creates a new EditableChartProperties RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder newBuilder(com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder other) {
- return new com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder(other);
- }
-
- /** Creates a new EditableChartProperties RecordBuilder by copying an existing EditableChartProperties instance */
- public static com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder newBuilder(com.linkedin.pegasus2avro.chart.EditableChartProperties other) {
- return new com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder(other);
- }
-
- /**
- * RecordBuilder for EditableChartProperties instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private com.linkedin.pegasus2avro.common.AuditStamp created;
- private com.linkedin.pegasus2avro.common.AuditStamp lastModified;
- private com.linkedin.pegasus2avro.common.AuditStamp deleted;
- private java.lang.String description;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.chart.EditableChartProperties.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.created)) {
- this.created = data().deepCopy(fields()[0].schema(), other.created);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.lastModified)) {
- this.lastModified = data().deepCopy(fields()[1].schema(), other.lastModified);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.deleted)) {
- this.deleted = data().deepCopy(fields()[2].schema(), other.deleted);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.description)) {
- this.description = data().deepCopy(fields()[3].schema(), other.description);
- fieldSetFlags()[3] = true;
- }
- }
-
- /** Creates a Builder by copying an existing EditableChartProperties instance */
- private Builder(com.linkedin.pegasus2avro.chart.EditableChartProperties other) {
- super(com.linkedin.pegasus2avro.chart.EditableChartProperties.SCHEMA$);
- if (isValidValue(fields()[0], other.created)) {
- this.created = data().deepCopy(fields()[0].schema(), other.created);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.lastModified)) {
- this.lastModified = data().deepCopy(fields()[1].schema(), other.lastModified);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.deleted)) {
- this.deleted = data().deepCopy(fields()[2].schema(), other.deleted);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.description)) {
- this.description = data().deepCopy(fields()[3].schema(), other.description);
- fieldSetFlags()[3] = true;
- }
- }
-
- /** Gets the value of the 'created' field */
- public com.linkedin.pegasus2avro.common.AuditStamp getCreated() {
- return created;
- }
-
- /** Sets the value of the 'created' field */
- public com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) {
- validate(fields()[0], value);
- this.created = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'created' field has been set */
- public boolean hasCreated() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'created' field */
- public com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder clearCreated() {
- created = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'lastModified' field */
- public com.linkedin.pegasus2avro.common.AuditStamp getLastModified() {
- return lastModified;
- }
-
- /** Sets the value of the 'lastModified' field */
- public com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) {
- validate(fields()[1], value);
- this.lastModified = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'lastModified' field has been set */
- public boolean hasLastModified() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'lastModified' field */
- public com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder clearLastModified() {
- lastModified = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'deleted' field */
- public com.linkedin.pegasus2avro.common.AuditStamp getDeleted() {
- return deleted;
- }
-
- /** Sets the value of the 'deleted' field */
- public com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder setDeleted(com.linkedin.pegasus2avro.common.AuditStamp value) {
- validate(fields()[2], value);
- this.deleted = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'deleted' field has been set */
- public boolean hasDeleted() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'deleted' field */
- public com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder clearDeleted() {
- deleted = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'description' field */
- public java.lang.String getDescription() {
- return description;
- }
-
- /** Sets the value of the 'description' field */
- public com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder setDescription(java.lang.String value) {
- validate(fields()[3], value);
- this.description = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'description' field has been set */
- public boolean hasDescription() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'description' field */
- public com.linkedin.pegasus2avro.chart.EditableChartProperties.Builder clearDescription() {
- description = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- @Override
- public EditableChartProperties build() {
- try {
- EditableChartProperties record = new EditableChartProperties();
- record.created = fieldSetFlags()[0] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[0]);
- record.lastModified = fieldSetFlags()[1] ? this.lastModified : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[1]);
- record.deleted = fieldSetFlags()[2] ? this.deleted : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[2]);
- record.description = fieldSetFlags()[3] ? this.description : (java.lang.String) defaultValue(fields()[3]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/AccessLevel.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/AccessLevel.java
deleted file mode 100644
index e7ba9fd968479e..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/AccessLevel.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-/** The various access levels */
-@org.apache.avro.specific.AvroGenerated
-public enum AccessLevel {
- PUBLIC, PRIVATE ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"AccessLevel\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The various access levels\",\"symbols\":[\"PUBLIC\",\"PRIVATE\"],\"symbolDocs\":{\"PRIVATE\":\"Private availability to certain set of users\",\"PUBLIC\":\"Publicly available access level\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/AuditStamp.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/AuditStamp.java
deleted file mode 100644
index d9c7b0775cf2fa..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/AuditStamp.java
+++ /dev/null
@@ -1,308 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-/** Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into a particular lifecycle stage, and who acted to move it into that specific lifecycle stage. */
-@org.apache.avro.specific.AvroGenerated
-public class AuditStamp extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AuditStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into a particular lifecycle stage, and who acted to move it into that specific lifecycle stage.\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent.\"},{\"name\":\"actor\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"impersonator\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"message\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually.\",\"default\":null}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent. */
- @Deprecated public long time;
- /** The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change. */
- @Deprecated public java.lang.String actor;
- /** The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor. */
- @Deprecated public java.lang.String impersonator;
- /** Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually. */
- @Deprecated public java.lang.String message;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public AuditStamp() {}
-
- /**
- * All-args constructor.
- */
- public AuditStamp(java.lang.Long time, java.lang.String actor, java.lang.String impersonator, java.lang.String message) {
- this.time = time;
- this.actor = actor;
- this.impersonator = impersonator;
- this.message = message;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return time;
- case 1: return actor;
- case 2: return impersonator;
- case 3: return message;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: time = (java.lang.Long)value$; break;
- case 1: actor = (java.lang.String)value$; break;
- case 2: impersonator = (java.lang.String)value$; break;
- case 3: message = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'time' field.
- * When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent. */
- public java.lang.Long getTime() {
- return time;
- }
-
- /**
- * Sets the value of the 'time' field.
- * When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent. * @param value the value to set.
- */
- public void setTime(java.lang.Long value) {
- this.time = value;
- }
-
- /**
- * Gets the value of the 'actor' field.
- * The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change. */
- public java.lang.String getActor() {
- return actor;
- }
-
- /**
- * Sets the value of the 'actor' field.
- * The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change. * @param value the value to set.
- */
- public void setActor(java.lang.String value) {
- this.actor = value;
- }
-
- /**
- * Gets the value of the 'impersonator' field.
- * The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor. */
- public java.lang.String getImpersonator() {
- return impersonator;
- }
-
- /**
- * Sets the value of the 'impersonator' field.
- * The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor. * @param value the value to set.
- */
- public void setImpersonator(java.lang.String value) {
- this.impersonator = value;
- }
-
- /**
- * Gets the value of the 'message' field.
- * Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually. */
- public java.lang.String getMessage() {
- return message;
- }
-
- /**
- * Sets the value of the 'message' field.
- * Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually. * @param value the value to set.
- */
- public void setMessage(java.lang.String value) {
- this.message = value;
- }
-
- /** Creates a new AuditStamp RecordBuilder */
- public static com.linkedin.pegasus2avro.common.AuditStamp.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.common.AuditStamp.Builder();
- }
-
- /** Creates a new AuditStamp RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.common.AuditStamp.Builder newBuilder(com.linkedin.pegasus2avro.common.AuditStamp.Builder other) {
- return new com.linkedin.pegasus2avro.common.AuditStamp.Builder(other);
- }
-
- /** Creates a new AuditStamp RecordBuilder by copying an existing AuditStamp instance */
- public static com.linkedin.pegasus2avro.common.AuditStamp.Builder newBuilder(com.linkedin.pegasus2avro.common.AuditStamp other) {
- return new com.linkedin.pegasus2avro.common.AuditStamp.Builder(other);
- }
-
- /**
- * RecordBuilder for AuditStamp instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private long time;
- private java.lang.String actor;
- private java.lang.String impersonator;
- private java.lang.String message;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.common.AuditStamp.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.common.AuditStamp.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.time)) {
- this.time = data().deepCopy(fields()[0].schema(), other.time);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.actor)) {
- this.actor = data().deepCopy(fields()[1].schema(), other.actor);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.impersonator)) {
- this.impersonator = data().deepCopy(fields()[2].schema(), other.impersonator);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.message)) {
- this.message = data().deepCopy(fields()[3].schema(), other.message);
- fieldSetFlags()[3] = true;
- }
- }
-
- /** Creates a Builder by copying an existing AuditStamp instance */
- private Builder(com.linkedin.pegasus2avro.common.AuditStamp other) {
- super(com.linkedin.pegasus2avro.common.AuditStamp.SCHEMA$);
- if (isValidValue(fields()[0], other.time)) {
- this.time = data().deepCopy(fields()[0].schema(), other.time);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.actor)) {
- this.actor = data().deepCopy(fields()[1].schema(), other.actor);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.impersonator)) {
- this.impersonator = data().deepCopy(fields()[2].schema(), other.impersonator);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.message)) {
- this.message = data().deepCopy(fields()[3].schema(), other.message);
- fieldSetFlags()[3] = true;
- }
- }
-
- /** Gets the value of the 'time' field */
- public java.lang.Long getTime() {
- return time;
- }
-
- /** Sets the value of the 'time' field */
- public com.linkedin.pegasus2avro.common.AuditStamp.Builder setTime(long value) {
- validate(fields()[0], value);
- this.time = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'time' field has been set */
- public boolean hasTime() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'time' field */
- public com.linkedin.pegasus2avro.common.AuditStamp.Builder clearTime() {
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'actor' field */
- public java.lang.String getActor() {
- return actor;
- }
-
- /** Sets the value of the 'actor' field */
- public com.linkedin.pegasus2avro.common.AuditStamp.Builder setActor(java.lang.String value) {
- validate(fields()[1], value);
- this.actor = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'actor' field has been set */
- public boolean hasActor() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'actor' field */
- public com.linkedin.pegasus2avro.common.AuditStamp.Builder clearActor() {
- actor = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'impersonator' field */
- public java.lang.String getImpersonator() {
- return impersonator;
- }
-
- /** Sets the value of the 'impersonator' field */
- public com.linkedin.pegasus2avro.common.AuditStamp.Builder setImpersonator(java.lang.String value) {
- validate(fields()[2], value);
- this.impersonator = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'impersonator' field has been set */
- public boolean hasImpersonator() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'impersonator' field */
- public com.linkedin.pegasus2avro.common.AuditStamp.Builder clearImpersonator() {
- impersonator = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'message' field */
- public java.lang.String getMessage() {
- return message;
- }
-
- /** Sets the value of the 'message' field */
- public com.linkedin.pegasus2avro.common.AuditStamp.Builder setMessage(java.lang.String value) {
- validate(fields()[3], value);
- this.message = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'message' field has been set */
- public boolean hasMessage() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'message' field */
- public com.linkedin.pegasus2avro.common.AuditStamp.Builder clearMessage() {
- message = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- @Override
- public AuditStamp build() {
- try {
- AuditStamp record = new AuditStamp();
- record.time = fieldSetFlags()[0] ? this.time : (java.lang.Long) defaultValue(fields()[0]);
- record.actor = fieldSetFlags()[1] ? this.actor : (java.lang.String) defaultValue(fields()[1]);
- record.impersonator = fieldSetFlags()[2] ? this.impersonator : (java.lang.String) defaultValue(fields()[2]);
- record.message = fieldSetFlags()[3] ? this.message : (java.lang.String) defaultValue(fields()[3]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/BaseFieldMapping.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/BaseFieldMapping.java
deleted file mode 100644
index 97c906198e61a8..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/BaseFieldMapping.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-/** Base model representing field mappings */
-@org.apache.avro.specific.AvroGenerated
-public class BaseFieldMapping extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BaseFieldMapping\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Base model representing field mappings\",\"fields\":[{\"name\":\"created\",\"type\":{\"type\":\"record\",\"name\":\"AuditStamp\",\"doc\":\"Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into a particular lifecycle stage, and who acted to move it into that specific lifecycle stage.\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent.\"},{\"name\":\"actor\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"impersonator\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"message\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually.\",\"default\":null}]},\"doc\":\"Audit stamp containing who reported the field mapping and when\"},{\"name\":\"transformation\",\"type\":[{\"type\":\"enum\",\"name\":\"TransformationType\",\"namespace\":\"com.linkedin.pegasus2avro.common.fieldtransformer\",\"doc\":\"Type of the transformation involved in generating destination fields from source fields.\",\"symbols\":[\"BLACKBOX\",\"IDENTITY\"],\"symbolDocs\":{\"BLACKBOX\":\"Field transformation expressed as unknown black box function.\",\"IDENTITY\":\"Field transformation expressed as Identity function.\"}},{\"type\":\"record\",\"name\":\"UDFTransformer\",\"namespace\":\"com.linkedin.pegasus2avro.common.fieldtransformer\",\"doc\":\"Field transformation expressed in UDF\",\"fields\":[{\"name\":\"udf\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A UDF mentioning how the source fields got transformed to destination field. This is the FQCN(Fully Qualified Class Name) of the udf.\"}]}],\"doc\":\"Transfomration function between the fields involved\"}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** Audit stamp containing who reported the field mapping and when */
- @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created;
- /** Transfomration function between the fields involved */
- @Deprecated public java.lang.Object transformation;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public BaseFieldMapping() {}
-
- /**
- * All-args constructor.
- */
- public BaseFieldMapping(com.linkedin.pegasus2avro.common.AuditStamp created, java.lang.Object transformation) {
- this.created = created;
- this.transformation = transformation;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return created;
- case 1: return transformation;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break;
- case 1: transformation = (java.lang.Object)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'created' field.
- * Audit stamp containing who reported the field mapping and when */
- public com.linkedin.pegasus2avro.common.AuditStamp getCreated() {
- return created;
- }
-
- /**
- * Sets the value of the 'created' field.
- * Audit stamp containing who reported the field mapping and when * @param value the value to set.
- */
- public void setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) {
- this.created = value;
- }
-
- /**
- * Gets the value of the 'transformation' field.
- * Transfomration function between the fields involved */
- public java.lang.Object getTransformation() {
- return transformation;
- }
-
- /**
- * Sets the value of the 'transformation' field.
- * Transfomration function between the fields involved * @param value the value to set.
- */
- public void setTransformation(java.lang.Object value) {
- this.transformation = value;
- }
-
- /** Creates a new BaseFieldMapping RecordBuilder */
- public static com.linkedin.pegasus2avro.common.BaseFieldMapping.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.common.BaseFieldMapping.Builder();
- }
-
- /** Creates a new BaseFieldMapping RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.common.BaseFieldMapping.Builder newBuilder(com.linkedin.pegasus2avro.common.BaseFieldMapping.Builder other) {
- return new com.linkedin.pegasus2avro.common.BaseFieldMapping.Builder(other);
- }
-
- /** Creates a new BaseFieldMapping RecordBuilder by copying an existing BaseFieldMapping instance */
- public static com.linkedin.pegasus2avro.common.BaseFieldMapping.Builder newBuilder(com.linkedin.pegasus2avro.common.BaseFieldMapping other) {
- return new com.linkedin.pegasus2avro.common.BaseFieldMapping.Builder(other);
- }
-
- /**
- * RecordBuilder for BaseFieldMapping instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private com.linkedin.pegasus2avro.common.AuditStamp created;
- private java.lang.Object transformation;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.common.BaseFieldMapping.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.common.BaseFieldMapping.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.created)) {
- this.created = data().deepCopy(fields()[0].schema(), other.created);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.transformation)) {
- this.transformation = data().deepCopy(fields()[1].schema(), other.transformation);
- fieldSetFlags()[1] = true;
- }
- }
-
- /** Creates a Builder by copying an existing BaseFieldMapping instance */
- private Builder(com.linkedin.pegasus2avro.common.BaseFieldMapping other) {
- super(com.linkedin.pegasus2avro.common.BaseFieldMapping.SCHEMA$);
- if (isValidValue(fields()[0], other.created)) {
- this.created = data().deepCopy(fields()[0].schema(), other.created);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.transformation)) {
- this.transformation = data().deepCopy(fields()[1].schema(), other.transformation);
- fieldSetFlags()[1] = true;
- }
- }
-
- /** Gets the value of the 'created' field */
- public com.linkedin.pegasus2avro.common.AuditStamp getCreated() {
- return created;
- }
-
- /** Sets the value of the 'created' field */
- public com.linkedin.pegasus2avro.common.BaseFieldMapping.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) {
- validate(fields()[0], value);
- this.created = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'created' field has been set */
- public boolean hasCreated() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'created' field */
- public com.linkedin.pegasus2avro.common.BaseFieldMapping.Builder clearCreated() {
- created = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'transformation' field */
- public java.lang.Object getTransformation() {
- return transformation;
- }
-
- /** Sets the value of the 'transformation' field */
- public com.linkedin.pegasus2avro.common.BaseFieldMapping.Builder setTransformation(java.lang.Object value) {
- validate(fields()[1], value);
- this.transformation = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'transformation' field has been set */
- public boolean hasTransformation() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'transformation' field */
- public com.linkedin.pegasus2avro.common.BaseFieldMapping.Builder clearTransformation() {
- transformation = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- @Override
- public BaseFieldMapping build() {
- try {
- BaseFieldMapping record = new BaseFieldMapping();
- record.created = fieldSetFlags()[0] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[0]);
- record.transformation = fieldSetFlags()[1] ? this.transformation : (java.lang.Object) defaultValue(fields()[1]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/BrowsePath.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/BrowsePath.java
deleted file mode 100644
index 38b37cdd9bd658..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/BrowsePath.java
+++ /dev/null
@@ -1,143 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-@org.apache.avro.specific.AvroGenerated
-public class BrowsePath extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BrowsePath\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"fields\":[{\"name\":\"path\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"An array of strings comprising the path\"}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** An array of strings comprising the path */
- @Deprecated public java.util.List path;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public BrowsePath() {}
-
- /**
- * All-args constructor.
- */
- public BrowsePath(java.util.List path) {
- this.path = path;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return path;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: path = (java.util.List)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'path' field.
- * An array of strings comprising the path */
- public java.util.List getPath() {
- return path;
- }
-
- /**
- * Sets the value of the 'path' field.
- * An array of strings comprising the path * @param value the value to set.
- */
- public void setPath(java.util.List value) {
- this.path = value;
- }
-
- /** Creates a new BrowsePath RecordBuilder */
- public static com.linkedin.pegasus2avro.common.BrowsePath.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.common.BrowsePath.Builder();
- }
-
- /** Creates a new BrowsePath RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.common.BrowsePath.Builder newBuilder(com.linkedin.pegasus2avro.common.BrowsePath.Builder other) {
- return new com.linkedin.pegasus2avro.common.BrowsePath.Builder(other);
- }
-
- /** Creates a new BrowsePath RecordBuilder by copying an existing BrowsePath instance */
- public static com.linkedin.pegasus2avro.common.BrowsePath.Builder newBuilder(com.linkedin.pegasus2avro.common.BrowsePath other) {
- return new com.linkedin.pegasus2avro.common.BrowsePath.Builder(other);
- }
-
- /**
- * RecordBuilder for BrowsePath instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.util.List path;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.common.BrowsePath.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.common.BrowsePath.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.path)) {
- this.path = data().deepCopy(fields()[0].schema(), other.path);
- fieldSetFlags()[0] = true;
- }
- }
-
- /** Creates a Builder by copying an existing BrowsePath instance */
- private Builder(com.linkedin.pegasus2avro.common.BrowsePath other) {
- super(com.linkedin.pegasus2avro.common.BrowsePath.SCHEMA$);
- if (isValidValue(fields()[0], other.path)) {
- this.path = data().deepCopy(fields()[0].schema(), other.path);
- fieldSetFlags()[0] = true;
- }
- }
-
- /** Gets the value of the 'path' field */
- public java.util.List getPath() {
- return path;
- }
-
- /** Sets the value of the 'path' field */
- public com.linkedin.pegasus2avro.common.BrowsePath.Builder setPath(java.util.List value) {
- validate(fields()[0], value);
- this.path = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'path' field has been set */
- public boolean hasPath() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'path' field */
- public com.linkedin.pegasus2avro.common.BrowsePath.Builder clearPath() {
- path = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- @Override
- public BrowsePath build() {
- try {
- BrowsePath record = new BrowsePath();
- record.path = fieldSetFlags()[0] ? this.path : (java.util.List) defaultValue(fields()[0]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/BrowsePaths.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/BrowsePaths.java
deleted file mode 100644
index 149fc44c23288e..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/BrowsePaths.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-/** Shared aspect containing Browse Paths to be indexed for an entity. */
-@org.apache.avro.specific.AvroGenerated
-public class BrowsePaths extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BrowsePaths\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Shared aspect containing Browse Paths to be indexed for an entity.\",\"fields\":[{\"name\":\"paths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"A list of valid browse paths for the entity.\\n\\nBrowse paths are expected to be forward slash-separated strings. For example: 'prod/snowflake/datasetName'\",\"Searchable\":{\"/*\":{\"fieldName\":\"browsePaths\",\"fieldType\":\"BROWSE_PATH\"}}}],\"Aspect\":{\"name\":\"browsePaths\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** A list of valid browse paths for the entity.
-
-Browse paths are expected to be forward slash-separated strings. For example: 'prod/snowflake/datasetName' */
- @Deprecated public java.util.List paths;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public BrowsePaths() {}
-
- /**
- * All-args constructor.
- */
- public BrowsePaths(java.util.List paths) {
- this.paths = paths;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return paths;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: paths = (java.util.List)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'paths' field.
- * A list of valid browse paths for the entity.
-
-Browse paths are expected to be forward slash-separated strings. For example: 'prod/snowflake/datasetName' */
- public java.util.List getPaths() {
- return paths;
- }
-
- /**
- * Sets the value of the 'paths' field.
- * A list of valid browse paths for the entity.
-
-Browse paths are expected to be forward slash-separated strings. For example: 'prod/snowflake/datasetName' * @param value the value to set.
- */
- public void setPaths(java.util.List value) {
- this.paths = value;
- }
-
- /** Creates a new BrowsePaths RecordBuilder */
- public static com.linkedin.pegasus2avro.common.BrowsePaths.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.common.BrowsePaths.Builder();
- }
-
- /** Creates a new BrowsePaths RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.common.BrowsePaths.Builder newBuilder(com.linkedin.pegasus2avro.common.BrowsePaths.Builder other) {
- return new com.linkedin.pegasus2avro.common.BrowsePaths.Builder(other);
- }
-
- /** Creates a new BrowsePaths RecordBuilder by copying an existing BrowsePaths instance */
- public static com.linkedin.pegasus2avro.common.BrowsePaths.Builder newBuilder(com.linkedin.pegasus2avro.common.BrowsePaths other) {
- return new com.linkedin.pegasus2avro.common.BrowsePaths.Builder(other);
- }
-
- /**
- * RecordBuilder for BrowsePaths instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.util.List paths;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.common.BrowsePaths.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.common.BrowsePaths.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.paths)) {
- this.paths = data().deepCopy(fields()[0].schema(), other.paths);
- fieldSetFlags()[0] = true;
- }
- }
-
- /** Creates a Builder by copying an existing BrowsePaths instance */
- private Builder(com.linkedin.pegasus2avro.common.BrowsePaths other) {
- super(com.linkedin.pegasus2avro.common.BrowsePaths.SCHEMA$);
- if (isValidValue(fields()[0], other.paths)) {
- this.paths = data().deepCopy(fields()[0].schema(), other.paths);
- fieldSetFlags()[0] = true;
- }
- }
-
- /** Gets the value of the 'paths' field */
- public java.util.List getPaths() {
- return paths;
- }
-
- /** Sets the value of the 'paths' field */
- public com.linkedin.pegasus2avro.common.BrowsePaths.Builder setPaths(java.util.List value) {
- validate(fields()[0], value);
- this.paths = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'paths' field has been set */
- public boolean hasPaths() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'paths' field */
- public com.linkedin.pegasus2avro.common.BrowsePaths.Builder clearPaths() {
- paths = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- @Override
- public BrowsePaths build() {
- try {
- BrowsePaths record = new BrowsePaths();
- record.paths = fieldSetFlags()[0] ? this.paths : (java.util.List) defaultValue(fields()[0]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/ChangeAuditStamps.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/ChangeAuditStamps.java
deleted file mode 100644
index 4bbef828f43b0d..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/ChangeAuditStamps.java
+++ /dev/null
@@ -1,254 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-/** Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into various lifecycle stages, and who acted to move it into those lifecycle stages. The recommended best practice is to include this record in your record schema, and annotate its fields as @readOnly in your resource. See https://github.com/linkedin/rest.li/wiki/Validation-in-Rest.li#restli-validation-annotations */
-@org.apache.avro.specific.AvroGenerated
-public class ChangeAuditStamps extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"ChangeAuditStamps\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into various lifecycle stages, and who acted to move it into those lifecycle stages. The recommended best practice is to include this record in your record schema, and annotate its fields as @readOnly in your resource. See https://github.com/linkedin/rest.li/wiki/Validation-in-Rest.li#restli-validation-annotations\",\"fields\":[{\"name\":\"created\",\"type\":{\"type\":\"record\",\"name\":\"AuditStamp\",\"doc\":\"Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into a particular lifecycle stage, and who acted to move it into that specific lifecycle stage.\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent.\"},{\"name\":\"actor\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"impersonator\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"message\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually.\",\"default\":null}]},\"doc\":\"An AuditStamp corresponding to the creation of this resource/association/sub-resource. A value of 0 for time indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"An AuditStamp corresponding to the last modification of this resource/association/sub-resource. If no modification has happened since creation, lastModified should be the same as created. A value of 0 for time indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"deleted\",\"type\":[\"null\",\"AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the deletion of this resource/association/sub-resource. Logically, deleted MUST have a later timestamp than creation. It may or may not have the same time as lastModified depending upon the resource/association/sub-resource semantics.\",\"default\":null}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** An AuditStamp corresponding to the creation of this resource/association/sub-resource. A value of 0 for time indicates missing data. */
- @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created;
- /** An AuditStamp corresponding to the last modification of this resource/association/sub-resource. If no modification has happened since creation, lastModified should be the same as created. A value of 0 for time indicates missing data. */
- @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp lastModified;
- /** An AuditStamp corresponding to the deletion of this resource/association/sub-resource. Logically, deleted MUST have a later timestamp than creation. It may or may not have the same time as lastModified depending upon the resource/association/sub-resource semantics. */
- @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp deleted;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public ChangeAuditStamps() {}
-
- /**
- * All-args constructor.
- */
- public ChangeAuditStamps(com.linkedin.pegasus2avro.common.AuditStamp created, com.linkedin.pegasus2avro.common.AuditStamp lastModified, com.linkedin.pegasus2avro.common.AuditStamp deleted) {
- this.created = created;
- this.lastModified = lastModified;
- this.deleted = deleted;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return created;
- case 1: return lastModified;
- case 2: return deleted;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break;
- case 1: lastModified = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break;
- case 2: deleted = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'created' field.
- * An AuditStamp corresponding to the creation of this resource/association/sub-resource. A value of 0 for time indicates missing data. */
- public com.linkedin.pegasus2avro.common.AuditStamp getCreated() {
- return created;
- }
-
- /**
- * Sets the value of the 'created' field.
- * An AuditStamp corresponding to the creation of this resource/association/sub-resource. A value of 0 for time indicates missing data. * @param value the value to set.
- */
- public void setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) {
- this.created = value;
- }
-
- /**
- * Gets the value of the 'lastModified' field.
- * An AuditStamp corresponding to the last modification of this resource/association/sub-resource. If no modification has happened since creation, lastModified should be the same as created. A value of 0 for time indicates missing data. */
- public com.linkedin.pegasus2avro.common.AuditStamp getLastModified() {
- return lastModified;
- }
-
- /**
- * Sets the value of the 'lastModified' field.
- * An AuditStamp corresponding to the last modification of this resource/association/sub-resource. If no modification has happened since creation, lastModified should be the same as created. A value of 0 for time indicates missing data. * @param value the value to set.
- */
- public void setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) {
- this.lastModified = value;
- }
-
- /**
- * Gets the value of the 'deleted' field.
- * An AuditStamp corresponding to the deletion of this resource/association/sub-resource. Logically, deleted MUST have a later timestamp than creation. It may or may not have the same time as lastModified depending upon the resource/association/sub-resource semantics. */
- public com.linkedin.pegasus2avro.common.AuditStamp getDeleted() {
- return deleted;
- }
-
- /**
- * Sets the value of the 'deleted' field.
- * An AuditStamp corresponding to the deletion of this resource/association/sub-resource. Logically, deleted MUST have a later timestamp than creation. It may or may not have the same time as lastModified depending upon the resource/association/sub-resource semantics. * @param value the value to set.
- */
- public void setDeleted(com.linkedin.pegasus2avro.common.AuditStamp value) {
- this.deleted = value;
- }
-
- /** Creates a new ChangeAuditStamps RecordBuilder */
- public static com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder();
- }
-
- /** Creates a new ChangeAuditStamps RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder newBuilder(com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder other) {
- return new com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder(other);
- }
-
- /** Creates a new ChangeAuditStamps RecordBuilder by copying an existing ChangeAuditStamps instance */
- public static com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder newBuilder(com.linkedin.pegasus2avro.common.ChangeAuditStamps other) {
- return new com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder(other);
- }
-
- /**
- * RecordBuilder for ChangeAuditStamps instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private com.linkedin.pegasus2avro.common.AuditStamp created;
- private com.linkedin.pegasus2avro.common.AuditStamp lastModified;
- private com.linkedin.pegasus2avro.common.AuditStamp deleted;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.common.ChangeAuditStamps.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.created)) {
- this.created = data().deepCopy(fields()[0].schema(), other.created);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.lastModified)) {
- this.lastModified = data().deepCopy(fields()[1].schema(), other.lastModified);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.deleted)) {
- this.deleted = data().deepCopy(fields()[2].schema(), other.deleted);
- fieldSetFlags()[2] = true;
- }
- }
-
- /** Creates a Builder by copying an existing ChangeAuditStamps instance */
- private Builder(com.linkedin.pegasus2avro.common.ChangeAuditStamps other) {
- super(com.linkedin.pegasus2avro.common.ChangeAuditStamps.SCHEMA$);
- if (isValidValue(fields()[0], other.created)) {
- this.created = data().deepCopy(fields()[0].schema(), other.created);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.lastModified)) {
- this.lastModified = data().deepCopy(fields()[1].schema(), other.lastModified);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.deleted)) {
- this.deleted = data().deepCopy(fields()[2].schema(), other.deleted);
- fieldSetFlags()[2] = true;
- }
- }
-
- /** Gets the value of the 'created' field */
- public com.linkedin.pegasus2avro.common.AuditStamp getCreated() {
- return created;
- }
-
- /** Sets the value of the 'created' field */
- public com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) {
- validate(fields()[0], value);
- this.created = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'created' field has been set */
- public boolean hasCreated() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'created' field */
- public com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder clearCreated() {
- created = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'lastModified' field */
- public com.linkedin.pegasus2avro.common.AuditStamp getLastModified() {
- return lastModified;
- }
-
- /** Sets the value of the 'lastModified' field */
- public com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) {
- validate(fields()[1], value);
- this.lastModified = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'lastModified' field has been set */
- public boolean hasLastModified() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'lastModified' field */
- public com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder clearLastModified() {
- lastModified = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'deleted' field */
- public com.linkedin.pegasus2avro.common.AuditStamp getDeleted() {
- return deleted;
- }
-
- /** Sets the value of the 'deleted' field */
- public com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder setDeleted(com.linkedin.pegasus2avro.common.AuditStamp value) {
- validate(fields()[2], value);
- this.deleted = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'deleted' field has been set */
- public boolean hasDeleted() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'deleted' field */
- public com.linkedin.pegasus2avro.common.ChangeAuditStamps.Builder clearDeleted() {
- deleted = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- @Override
- public ChangeAuditStamps build() {
- try {
- ChangeAuditStamps record = new ChangeAuditStamps();
- record.created = fieldSetFlags()[0] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[0]);
- record.lastModified = fieldSetFlags()[1] ? this.lastModified : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[1]);
- record.deleted = fieldSetFlags()[2] ? this.deleted : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[2]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Cost.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Cost.java
deleted file mode 100644
index e203dec4dd1b16..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Cost.java
+++ /dev/null
@@ -1,196 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-@org.apache.avro.specific.AvroGenerated
-public class Cost extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Cost\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"fields\":[{\"name\":\"costType\",\"type\":{\"type\":\"enum\",\"name\":\"CostType\",\"doc\":\"Type of Cost Code\",\"symbols\":[\"ORG_COST_TYPE\"],\"symbolDocs\":{\"ORG_COST_TYPE\":\"Org Cost Type to which the Cost of this entity should be attributed to\"}}},{\"name\":\"cost\",\"type\":{\"type\":\"record\",\"name\":\"CostCost\",\"fields\":[{\"name\":\"costId\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"costCode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"fieldDiscriminator\",\"type\":{\"type\":\"enum\",\"name\":\"CostCostDiscriminator\",\"symbols\":[\"costId\",\"costCode\"]},\"doc\":\"Contains the name of the field that has its value set.\"}]}}],\"Aspect\":{\"name\":\"cost\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- @Deprecated public com.linkedin.pegasus2avro.common.CostType costType;
- @Deprecated public com.linkedin.pegasus2avro.common.CostCost cost;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public Cost() {}
-
- /**
- * All-args constructor.
- */
- public Cost(com.linkedin.pegasus2avro.common.CostType costType, com.linkedin.pegasus2avro.common.CostCost cost) {
- this.costType = costType;
- this.cost = cost;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return costType;
- case 1: return cost;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: costType = (com.linkedin.pegasus2avro.common.CostType)value$; break;
- case 1: cost = (com.linkedin.pegasus2avro.common.CostCost)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'costType' field.
- */
- public com.linkedin.pegasus2avro.common.CostType getCostType() {
- return costType;
- }
-
- /**
- * Sets the value of the 'costType' field.
- * @param value the value to set.
- */
- public void setCostType(com.linkedin.pegasus2avro.common.CostType value) {
- this.costType = value;
- }
-
- /**
- * Gets the value of the 'cost' field.
- */
- public com.linkedin.pegasus2avro.common.CostCost getCost() {
- return cost;
- }
-
- /**
- * Sets the value of the 'cost' field.
- * @param value the value to set.
- */
- public void setCost(com.linkedin.pegasus2avro.common.CostCost value) {
- this.cost = value;
- }
-
- /** Creates a new Cost RecordBuilder */
- public static com.linkedin.pegasus2avro.common.Cost.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.common.Cost.Builder();
- }
-
- /** Creates a new Cost RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.common.Cost.Builder newBuilder(com.linkedin.pegasus2avro.common.Cost.Builder other) {
- return new com.linkedin.pegasus2avro.common.Cost.Builder(other);
- }
-
- /** Creates a new Cost RecordBuilder by copying an existing Cost instance */
- public static com.linkedin.pegasus2avro.common.Cost.Builder newBuilder(com.linkedin.pegasus2avro.common.Cost other) {
- return new com.linkedin.pegasus2avro.common.Cost.Builder(other);
- }
-
- /**
- * RecordBuilder for Cost instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private com.linkedin.pegasus2avro.common.CostType costType;
- private com.linkedin.pegasus2avro.common.CostCost cost;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.common.Cost.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.common.Cost.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.costType)) {
- this.costType = data().deepCopy(fields()[0].schema(), other.costType);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.cost)) {
- this.cost = data().deepCopy(fields()[1].schema(), other.cost);
- fieldSetFlags()[1] = true;
- }
- }
-
- /** Creates a Builder by copying an existing Cost instance */
- private Builder(com.linkedin.pegasus2avro.common.Cost other) {
- super(com.linkedin.pegasus2avro.common.Cost.SCHEMA$);
- if (isValidValue(fields()[0], other.costType)) {
- this.costType = data().deepCopy(fields()[0].schema(), other.costType);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.cost)) {
- this.cost = data().deepCopy(fields()[1].schema(), other.cost);
- fieldSetFlags()[1] = true;
- }
- }
-
- /** Gets the value of the 'costType' field */
- public com.linkedin.pegasus2avro.common.CostType getCostType() {
- return costType;
- }
-
- /** Sets the value of the 'costType' field */
- public com.linkedin.pegasus2avro.common.Cost.Builder setCostType(com.linkedin.pegasus2avro.common.CostType value) {
- validate(fields()[0], value);
- this.costType = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'costType' field has been set */
- public boolean hasCostType() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'costType' field */
- public com.linkedin.pegasus2avro.common.Cost.Builder clearCostType() {
- costType = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'cost' field */
- public com.linkedin.pegasus2avro.common.CostCost getCost() {
- return cost;
- }
-
- /** Sets the value of the 'cost' field */
- public com.linkedin.pegasus2avro.common.Cost.Builder setCost(com.linkedin.pegasus2avro.common.CostCost value) {
- validate(fields()[1], value);
- this.cost = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'cost' field has been set */
- public boolean hasCost() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'cost' field */
- public com.linkedin.pegasus2avro.common.Cost.Builder clearCost() {
- cost = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- @Override
- public Cost build() {
- try {
- Cost record = new Cost();
- record.costType = fieldSetFlags()[0] ? this.costType : (com.linkedin.pegasus2avro.common.CostType) defaultValue(fields()[0]);
- record.cost = fieldSetFlags()[1] ? this.cost : (com.linkedin.pegasus2avro.common.CostCost) defaultValue(fields()[1]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/CostCost.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/CostCost.java
deleted file mode 100644
index 3153965fe244bb..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/CostCost.java
+++ /dev/null
@@ -1,251 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-@org.apache.avro.specific.AvroGenerated
-public class CostCost extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"CostCost\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"fields\":[{\"name\":\"costId\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"costCode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"fieldDiscriminator\",\"type\":{\"type\":\"enum\",\"name\":\"CostCostDiscriminator\",\"symbols\":[\"costId\",\"costCode\"]},\"doc\":\"Contains the name of the field that has its value set.\"}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- @Deprecated public java.lang.Double costId;
- @Deprecated public java.lang.String costCode;
- /** Contains the name of the field that has its value set. */
- @Deprecated public com.linkedin.pegasus2avro.common.CostCostDiscriminator fieldDiscriminator;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public CostCost() {}
-
- /**
- * All-args constructor.
- */
- public CostCost(java.lang.Double costId, java.lang.String costCode, com.linkedin.pegasus2avro.common.CostCostDiscriminator fieldDiscriminator) {
- this.costId = costId;
- this.costCode = costCode;
- this.fieldDiscriminator = fieldDiscriminator;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return costId;
- case 1: return costCode;
- case 2: return fieldDiscriminator;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: costId = (java.lang.Double)value$; break;
- case 1: costCode = (java.lang.String)value$; break;
- case 2: fieldDiscriminator = (com.linkedin.pegasus2avro.common.CostCostDiscriminator)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'costId' field.
- */
- public java.lang.Double getCostId() {
- return costId;
- }
-
- /**
- * Sets the value of the 'costId' field.
- * @param value the value to set.
- */
- public void setCostId(java.lang.Double value) {
- this.costId = value;
- }
-
- /**
- * Gets the value of the 'costCode' field.
- */
- public java.lang.String getCostCode() {
- return costCode;
- }
-
- /**
- * Sets the value of the 'costCode' field.
- * @param value the value to set.
- */
- public void setCostCode(java.lang.String value) {
- this.costCode = value;
- }
-
- /**
- * Gets the value of the 'fieldDiscriminator' field.
- * Contains the name of the field that has its value set. */
- public com.linkedin.pegasus2avro.common.CostCostDiscriminator getFieldDiscriminator() {
- return fieldDiscriminator;
- }
-
- /**
- * Sets the value of the 'fieldDiscriminator' field.
- * Contains the name of the field that has its value set. * @param value the value to set.
- */
- public void setFieldDiscriminator(com.linkedin.pegasus2avro.common.CostCostDiscriminator value) {
- this.fieldDiscriminator = value;
- }
-
- /** Creates a new CostCost RecordBuilder */
- public static com.linkedin.pegasus2avro.common.CostCost.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.common.CostCost.Builder();
- }
-
- /** Creates a new CostCost RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.common.CostCost.Builder newBuilder(com.linkedin.pegasus2avro.common.CostCost.Builder other) {
- return new com.linkedin.pegasus2avro.common.CostCost.Builder(other);
- }
-
- /** Creates a new CostCost RecordBuilder by copying an existing CostCost instance */
- public static com.linkedin.pegasus2avro.common.CostCost.Builder newBuilder(com.linkedin.pegasus2avro.common.CostCost other) {
- return new com.linkedin.pegasus2avro.common.CostCost.Builder(other);
- }
-
- /**
- * RecordBuilder for CostCost instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.Double costId;
- private java.lang.String costCode;
- private com.linkedin.pegasus2avro.common.CostCostDiscriminator fieldDiscriminator;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.common.CostCost.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.common.CostCost.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.costId)) {
- this.costId = data().deepCopy(fields()[0].schema(), other.costId);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.costCode)) {
- this.costCode = data().deepCopy(fields()[1].schema(), other.costCode);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.fieldDiscriminator)) {
- this.fieldDiscriminator = data().deepCopy(fields()[2].schema(), other.fieldDiscriminator);
- fieldSetFlags()[2] = true;
- }
- }
-
- /** Creates a Builder by copying an existing CostCost instance */
- private Builder(com.linkedin.pegasus2avro.common.CostCost other) {
- super(com.linkedin.pegasus2avro.common.CostCost.SCHEMA$);
- if (isValidValue(fields()[0], other.costId)) {
- this.costId = data().deepCopy(fields()[0].schema(), other.costId);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.costCode)) {
- this.costCode = data().deepCopy(fields()[1].schema(), other.costCode);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.fieldDiscriminator)) {
- this.fieldDiscriminator = data().deepCopy(fields()[2].schema(), other.fieldDiscriminator);
- fieldSetFlags()[2] = true;
- }
- }
-
- /** Gets the value of the 'costId' field */
- public java.lang.Double getCostId() {
- return costId;
- }
-
- /** Sets the value of the 'costId' field */
- public com.linkedin.pegasus2avro.common.CostCost.Builder setCostId(java.lang.Double value) {
- validate(fields()[0], value);
- this.costId = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'costId' field has been set */
- public boolean hasCostId() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'costId' field */
- public com.linkedin.pegasus2avro.common.CostCost.Builder clearCostId() {
- costId = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'costCode' field */
- public java.lang.String getCostCode() {
- return costCode;
- }
-
- /** Sets the value of the 'costCode' field */
- public com.linkedin.pegasus2avro.common.CostCost.Builder setCostCode(java.lang.String value) {
- validate(fields()[1], value);
- this.costCode = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'costCode' field has been set */
- public boolean hasCostCode() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'costCode' field */
- public com.linkedin.pegasus2avro.common.CostCost.Builder clearCostCode() {
- costCode = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'fieldDiscriminator' field */
- public com.linkedin.pegasus2avro.common.CostCostDiscriminator getFieldDiscriminator() {
- return fieldDiscriminator;
- }
-
- /** Sets the value of the 'fieldDiscriminator' field */
- public com.linkedin.pegasus2avro.common.CostCost.Builder setFieldDiscriminator(com.linkedin.pegasus2avro.common.CostCostDiscriminator value) {
- validate(fields()[2], value);
- this.fieldDiscriminator = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'fieldDiscriminator' field has been set */
- public boolean hasFieldDiscriminator() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'fieldDiscriminator' field */
- public com.linkedin.pegasus2avro.common.CostCost.Builder clearFieldDiscriminator() {
- fieldDiscriminator = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- @Override
- public CostCost build() {
- try {
- CostCost record = new CostCost();
- record.costId = fieldSetFlags()[0] ? this.costId : (java.lang.Double) defaultValue(fields()[0]);
- record.costCode = fieldSetFlags()[1] ? this.costCode : (java.lang.String) defaultValue(fields()[1]);
- record.fieldDiscriminator = fieldSetFlags()[2] ? this.fieldDiscriminator : (com.linkedin.pegasus2avro.common.CostCostDiscriminator) defaultValue(fields()[2]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/CostCostDiscriminator.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/CostCostDiscriminator.java
deleted file mode 100644
index 5d1b514bf8f171..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/CostCostDiscriminator.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-@org.apache.avro.specific.AvroGenerated
-public enum CostCostDiscriminator {
- costId, costCode ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"CostCostDiscriminator\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"symbols\":[\"costId\",\"costCode\"]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/CostType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/CostType.java
deleted file mode 100644
index 770e0453869006..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/CostType.java
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-/** Type of Cost Code */
-@org.apache.avro.specific.AvroGenerated
-public enum CostType {
- ORG_COST_TYPE ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"CostType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Type of Cost Code\",\"symbols\":[\"ORG_COST_TYPE\"],\"symbolDocs\":{\"ORG_COST_TYPE\":\"Org Cost Type to which the Cost of this entity should be attributed to\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/CustomProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/CustomProperties.java
deleted file mode 100644
index ee7d1819d78919..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/CustomProperties.java
+++ /dev/null
@@ -1,144 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-/** Misc. properties about an entity. */
-@org.apache.avro.specific.AvroGenerated
-public class CustomProperties extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"CustomProperties\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Misc. properties about an entity.\",\"fields\":[{\"name\":\"customProperties\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"},\"doc\":\"Custom property bag.\",\"default\":{},\"Searchable\":{\"/*\":{\"queryByDefault\":true}}}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** Custom property bag. */
- @Deprecated public java.util.Map customProperties;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public CustomProperties() {}
-
- /**
- * All-args constructor.
- */
- public CustomProperties(java.util.Map customProperties) {
- this.customProperties = customProperties;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return customProperties;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: customProperties = (java.util.Map)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'customProperties' field.
- * Custom property bag. */
- public java.util.Map getCustomProperties() {
- return customProperties;
- }
-
- /**
- * Sets the value of the 'customProperties' field.
- * Custom property bag. * @param value the value to set.
- */
- public void setCustomProperties(java.util.Map value) {
- this.customProperties = value;
- }
-
- /** Creates a new CustomProperties RecordBuilder */
- public static com.linkedin.pegasus2avro.common.CustomProperties.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.common.CustomProperties.Builder();
- }
-
- /** Creates a new CustomProperties RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.common.CustomProperties.Builder newBuilder(com.linkedin.pegasus2avro.common.CustomProperties.Builder other) {
- return new com.linkedin.pegasus2avro.common.CustomProperties.Builder(other);
- }
-
- /** Creates a new CustomProperties RecordBuilder by copying an existing CustomProperties instance */
- public static com.linkedin.pegasus2avro.common.CustomProperties.Builder newBuilder(com.linkedin.pegasus2avro.common.CustomProperties other) {
- return new com.linkedin.pegasus2avro.common.CustomProperties.Builder(other);
- }
-
- /**
- * RecordBuilder for CustomProperties instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.util.Map customProperties;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.common.CustomProperties.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.common.CustomProperties.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.customProperties)) {
- this.customProperties = data().deepCopy(fields()[0].schema(), other.customProperties);
- fieldSetFlags()[0] = true;
- }
- }
-
- /** Creates a Builder by copying an existing CustomProperties instance */
- private Builder(com.linkedin.pegasus2avro.common.CustomProperties other) {
- super(com.linkedin.pegasus2avro.common.CustomProperties.SCHEMA$);
- if (isValidValue(fields()[0], other.customProperties)) {
- this.customProperties = data().deepCopy(fields()[0].schema(), other.customProperties);
- fieldSetFlags()[0] = true;
- }
- }
-
- /** Gets the value of the 'customProperties' field */
- public java.util.Map getCustomProperties() {
- return customProperties;
- }
-
- /** Sets the value of the 'customProperties' field */
- public com.linkedin.pegasus2avro.common.CustomProperties.Builder setCustomProperties(java.util.Map value) {
- validate(fields()[0], value);
- this.customProperties = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'customProperties' field has been set */
- public boolean hasCustomProperties() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'customProperties' field */
- public com.linkedin.pegasus2avro.common.CustomProperties.Builder clearCustomProperties() {
- customProperties = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- @Override
- public CustomProperties build() {
- try {
- CustomProperties record = new CustomProperties();
- record.customProperties = fieldSetFlags()[0] ? this.customProperties : (java.util.Map) defaultValue(fields()[0]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/DataPlatformInstance.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/DataPlatformInstance.java
deleted file mode 100644
index 32fc91954a8220..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/DataPlatformInstance.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-/** The specific instance of the data platform that this entity belongs to */
-@org.apache.avro.specific.AvroGenerated
-public class DataPlatformInstance extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"DataPlatformInstance\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The specific instance of the data platform that this entity belongs to\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data Platform\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"URN\",\"filterNameOverride\":\"Platform\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"instance\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Instance of the data platform (e.g. db instance)\",\"default\":null,\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"platformInstance\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Platform Instance\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}],\"Aspect\":{\"name\":\"dataPlatformInstance\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** Data Platform */
- @Deprecated public java.lang.String platform;
- /** Instance of the data platform (e.g. db instance) */
- @Deprecated public java.lang.String instance;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public DataPlatformInstance() {}
-
- /**
- * All-args constructor.
- */
- public DataPlatformInstance(java.lang.String platform, java.lang.String instance) {
- this.platform = platform;
- this.instance = instance;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return platform;
- case 1: return instance;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: platform = (java.lang.String)value$; break;
- case 1: instance = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'platform' field.
- * Data Platform */
- public java.lang.String getPlatform() {
- return platform;
- }
-
- /**
- * Sets the value of the 'platform' field.
- * Data Platform * @param value the value to set.
- */
- public void setPlatform(java.lang.String value) {
- this.platform = value;
- }
-
- /**
- * Gets the value of the 'instance' field.
- * Instance of the data platform (e.g. db instance) */
- public java.lang.String getInstance() {
- return instance;
- }
-
- /**
- * Sets the value of the 'instance' field.
- * Instance of the data platform (e.g. db instance) * @param value the value to set.
- */
- public void setInstance(java.lang.String value) {
- this.instance = value;
- }
-
- /** Creates a new DataPlatformInstance RecordBuilder */
- public static com.linkedin.pegasus2avro.common.DataPlatformInstance.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.common.DataPlatformInstance.Builder();
- }
-
- /** Creates a new DataPlatformInstance RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.common.DataPlatformInstance.Builder newBuilder(com.linkedin.pegasus2avro.common.DataPlatformInstance.Builder other) {
- return new com.linkedin.pegasus2avro.common.DataPlatformInstance.Builder(other);
- }
-
- /** Creates a new DataPlatformInstance RecordBuilder by copying an existing DataPlatformInstance instance */
- public static com.linkedin.pegasus2avro.common.DataPlatformInstance.Builder newBuilder(com.linkedin.pegasus2avro.common.DataPlatformInstance other) {
- return new com.linkedin.pegasus2avro.common.DataPlatformInstance.Builder(other);
- }
-
- /**
- * RecordBuilder for DataPlatformInstance instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String platform;
- private java.lang.String instance;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.common.DataPlatformInstance.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.common.DataPlatformInstance.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.platform)) {
- this.platform = data().deepCopy(fields()[0].schema(), other.platform);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.instance)) {
- this.instance = data().deepCopy(fields()[1].schema(), other.instance);
- fieldSetFlags()[1] = true;
- }
- }
-
- /** Creates a Builder by copying an existing DataPlatformInstance instance */
- private Builder(com.linkedin.pegasus2avro.common.DataPlatformInstance other) {
- super(com.linkedin.pegasus2avro.common.DataPlatformInstance.SCHEMA$);
- if (isValidValue(fields()[0], other.platform)) {
- this.platform = data().deepCopy(fields()[0].schema(), other.platform);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.instance)) {
- this.instance = data().deepCopy(fields()[1].schema(), other.instance);
- fieldSetFlags()[1] = true;
- }
- }
-
- /** Gets the value of the 'platform' field */
- public java.lang.String getPlatform() {
- return platform;
- }
-
- /** Sets the value of the 'platform' field */
- public com.linkedin.pegasus2avro.common.DataPlatformInstance.Builder setPlatform(java.lang.String value) {
- validate(fields()[0], value);
- this.platform = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'platform' field has been set */
- public boolean hasPlatform() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'platform' field */
- public com.linkedin.pegasus2avro.common.DataPlatformInstance.Builder clearPlatform() {
- platform = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'instance' field */
- public java.lang.String getInstance() {
- return instance;
- }
-
- /** Sets the value of the 'instance' field */
- public com.linkedin.pegasus2avro.common.DataPlatformInstance.Builder setInstance(java.lang.String value) {
- validate(fields()[1], value);
- this.instance = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'instance' field has been set */
- public boolean hasInstance() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'instance' field */
- public com.linkedin.pegasus2avro.common.DataPlatformInstance.Builder clearInstance() {
- instance = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- @Override
- public DataPlatformInstance build() {
- try {
- DataPlatformInstance record = new DataPlatformInstance();
- record.platform = fieldSetFlags()[0] ? this.platform : (java.lang.String) defaultValue(fields()[0]);
- record.instance = fieldSetFlags()[1] ? this.instance : (java.lang.String) defaultValue(fields()[1]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Deprecation.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Deprecation.java
deleted file mode 100644
index 2819913a9a53f1..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Deprecation.java
+++ /dev/null
@@ -1,308 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-/** Deprecation status of an entity */
-@org.apache.avro.specific.AvroGenerated
-public class Deprecation extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Deprecation\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Deprecation status of an entity\",\"fields\":[{\"name\":\"deprecated\",\"type\":\"boolean\",\"doc\":\"Whether the entity is deprecated.\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"decommissionTime\",\"type\":[\"null\",\"long\"],\"doc\":\"The time user plan to decommission this entity.\",\"default\":null},{\"name\":\"note\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Additional information about the entity deprecation plan, such as the wiki, doc, RB.\"},{\"name\":\"actor\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The user URN which will be credited for modifying this deprecation content.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}],\"Aspect\":{\"name\":\"deprecation\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** Whether the entity is deprecated. */
- @Deprecated public boolean deprecated;
- /** The time user plan to decommission this entity. */
- @Deprecated public java.lang.Long decommissionTime;
- /** Additional information about the entity deprecation plan, such as the wiki, doc, RB. */
- @Deprecated public java.lang.String note;
- /** The user URN which will be credited for modifying this deprecation content. */
- @Deprecated public java.lang.String actor;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public Deprecation() {}
-
- /**
- * All-args constructor.
- */
- public Deprecation(java.lang.Boolean deprecated, java.lang.Long decommissionTime, java.lang.String note, java.lang.String actor) {
- this.deprecated = deprecated;
- this.decommissionTime = decommissionTime;
- this.note = note;
- this.actor = actor;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return deprecated;
- case 1: return decommissionTime;
- case 2: return note;
- case 3: return actor;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: deprecated = (java.lang.Boolean)value$; break;
- case 1: decommissionTime = (java.lang.Long)value$; break;
- case 2: note = (java.lang.String)value$; break;
- case 3: actor = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'deprecated' field.
- * Whether the entity is deprecated. */
- public java.lang.Boolean getDeprecated() {
- return deprecated;
- }
-
- /**
- * Sets the value of the 'deprecated' field.
- * Whether the entity is deprecated. * @param value the value to set.
- */
- public void setDeprecated(java.lang.Boolean value) {
- this.deprecated = value;
- }
-
- /**
- * Gets the value of the 'decommissionTime' field.
- * The time user plan to decommission this entity. */
- public java.lang.Long getDecommissionTime() {
- return decommissionTime;
- }
-
- /**
- * Sets the value of the 'decommissionTime' field.
- * The time user plan to decommission this entity. * @param value the value to set.
- */
- public void setDecommissionTime(java.lang.Long value) {
- this.decommissionTime = value;
- }
-
- /**
- * Gets the value of the 'note' field.
- * Additional information about the entity deprecation plan, such as the wiki, doc, RB. */
- public java.lang.String getNote() {
- return note;
- }
-
- /**
- * Sets the value of the 'note' field.
- * Additional information about the entity deprecation plan, such as the wiki, doc, RB. * @param value the value to set.
- */
- public void setNote(java.lang.String value) {
- this.note = value;
- }
-
- /**
- * Gets the value of the 'actor' field.
- * The user URN which will be credited for modifying this deprecation content. */
- public java.lang.String getActor() {
- return actor;
- }
-
- /**
- * Sets the value of the 'actor' field.
- * The user URN which will be credited for modifying this deprecation content. * @param value the value to set.
- */
- public void setActor(java.lang.String value) {
- this.actor = value;
- }
-
- /** Creates a new Deprecation RecordBuilder */
- public static com.linkedin.pegasus2avro.common.Deprecation.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.common.Deprecation.Builder();
- }
-
- /** Creates a new Deprecation RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.common.Deprecation.Builder newBuilder(com.linkedin.pegasus2avro.common.Deprecation.Builder other) {
- return new com.linkedin.pegasus2avro.common.Deprecation.Builder(other);
- }
-
- /** Creates a new Deprecation RecordBuilder by copying an existing Deprecation instance */
- public static com.linkedin.pegasus2avro.common.Deprecation.Builder newBuilder(com.linkedin.pegasus2avro.common.Deprecation other) {
- return new com.linkedin.pegasus2avro.common.Deprecation.Builder(other);
- }
-
- /**
- * RecordBuilder for Deprecation instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private boolean deprecated;
- private java.lang.Long decommissionTime;
- private java.lang.String note;
- private java.lang.String actor;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.common.Deprecation.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.common.Deprecation.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.deprecated)) {
- this.deprecated = data().deepCopy(fields()[0].schema(), other.deprecated);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.decommissionTime)) {
- this.decommissionTime = data().deepCopy(fields()[1].schema(), other.decommissionTime);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.note)) {
- this.note = data().deepCopy(fields()[2].schema(), other.note);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.actor)) {
- this.actor = data().deepCopy(fields()[3].schema(), other.actor);
- fieldSetFlags()[3] = true;
- }
- }
-
- /** Creates a Builder by copying an existing Deprecation instance */
- private Builder(com.linkedin.pegasus2avro.common.Deprecation other) {
- super(com.linkedin.pegasus2avro.common.Deprecation.SCHEMA$);
- if (isValidValue(fields()[0], other.deprecated)) {
- this.deprecated = data().deepCopy(fields()[0].schema(), other.deprecated);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.decommissionTime)) {
- this.decommissionTime = data().deepCopy(fields()[1].schema(), other.decommissionTime);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.note)) {
- this.note = data().deepCopy(fields()[2].schema(), other.note);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.actor)) {
- this.actor = data().deepCopy(fields()[3].schema(), other.actor);
- fieldSetFlags()[3] = true;
- }
- }
-
- /** Gets the value of the 'deprecated' field */
- public java.lang.Boolean getDeprecated() {
- return deprecated;
- }
-
- /** Sets the value of the 'deprecated' field */
- public com.linkedin.pegasus2avro.common.Deprecation.Builder setDeprecated(boolean value) {
- validate(fields()[0], value);
- this.deprecated = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'deprecated' field has been set */
- public boolean hasDeprecated() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'deprecated' field */
- public com.linkedin.pegasus2avro.common.Deprecation.Builder clearDeprecated() {
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'decommissionTime' field */
- public java.lang.Long getDecommissionTime() {
- return decommissionTime;
- }
-
- /** Sets the value of the 'decommissionTime' field */
- public com.linkedin.pegasus2avro.common.Deprecation.Builder setDecommissionTime(java.lang.Long value) {
- validate(fields()[1], value);
- this.decommissionTime = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'decommissionTime' field has been set */
- public boolean hasDecommissionTime() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'decommissionTime' field */
- public com.linkedin.pegasus2avro.common.Deprecation.Builder clearDecommissionTime() {
- decommissionTime = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'note' field */
- public java.lang.String getNote() {
- return note;
- }
-
- /** Sets the value of the 'note' field */
- public com.linkedin.pegasus2avro.common.Deprecation.Builder setNote(java.lang.String value) {
- validate(fields()[2], value);
- this.note = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'note' field has been set */
- public boolean hasNote() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'note' field */
- public com.linkedin.pegasus2avro.common.Deprecation.Builder clearNote() {
- note = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'actor' field */
- public java.lang.String getActor() {
- return actor;
- }
-
- /** Sets the value of the 'actor' field */
- public com.linkedin.pegasus2avro.common.Deprecation.Builder setActor(java.lang.String value) {
- validate(fields()[3], value);
- this.actor = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'actor' field has been set */
- public boolean hasActor() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'actor' field */
- public com.linkedin.pegasus2avro.common.Deprecation.Builder clearActor() {
- actor = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- @Override
- public Deprecation build() {
- try {
- Deprecation record = new Deprecation();
- record.deprecated = fieldSetFlags()[0] ? this.deprecated : (java.lang.Boolean) defaultValue(fields()[0]);
- record.decommissionTime = fieldSetFlags()[1] ? this.decommissionTime : (java.lang.Long) defaultValue(fields()[1]);
- record.note = fieldSetFlags()[2] ? this.note : (java.lang.String) defaultValue(fields()[2]);
- record.actor = fieldSetFlags()[3] ? this.actor : (java.lang.String) defaultValue(fields()[3]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Edge.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Edge.java
deleted file mode 100644
index 543cf8b34bb963..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Edge.java
+++ /dev/null
@@ -1,364 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-/** Information about a relatonship edge. */
-@org.apache.avro.specific.AvroGenerated
-public class Edge extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Edge\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Information about a relatonship edge.\",\"fields\":[{\"name\":\"sourceUrn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the source of this relationship edge.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"destinationUrn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the destination of this relationship edge.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"created\",\"type\":{\"type\":\"record\",\"name\":\"AuditStamp\",\"doc\":\"Data captured on a resource/association/sub-resource level giving insight into when that resource/association/sub-resource moved into a particular lifecycle stage, and who acted to move it into that specific lifecycle stage.\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the resource/association/sub-resource move into the specific lifecycle stage represented by this AuditEvent.\"},{\"name\":\"actor\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The entity (e.g. a member URN) which will be credited for moving the resource/association/sub-resource into the specific lifecycle stage. It is also the one used to authorize the change.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"impersonator\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The entity (e.g. a service URN) which performs the change on behalf of the Actor and must be authorized to act as the Actor.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"message\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context around how DataHub was informed of the particular change. For example: was the change created by an automated process, or manually.\",\"default\":null}]},\"doc\":\"Audit stamp containing who created this relationship edge and when\"},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who last modified this relationship edge and when\"},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"A generic properties bag that allows us to store specific information on this graph edge.\",\"default\":null}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** Urn of the source of this relationship edge. */
- @Deprecated public java.lang.String sourceUrn;
- /** Urn of the destination of this relationship edge. */
- @Deprecated public java.lang.String destinationUrn;
- /** Audit stamp containing who created this relationship edge and when */
- @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created;
- /** Audit stamp containing who last modified this relationship edge and when */
- @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp lastModified;
- /** A generic properties bag that allows us to store specific information on this graph edge. */
- @Deprecated public java.util.Map properties;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public Edge() {}
-
- /**
- * All-args constructor.
- */
- public Edge(java.lang.String sourceUrn, java.lang.String destinationUrn, com.linkedin.pegasus2avro.common.AuditStamp created, com.linkedin.pegasus2avro.common.AuditStamp lastModified, java.util.Map properties) {
- this.sourceUrn = sourceUrn;
- this.destinationUrn = destinationUrn;
- this.created = created;
- this.lastModified = lastModified;
- this.properties = properties;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return sourceUrn;
- case 1: return destinationUrn;
- case 2: return created;
- case 3: return lastModified;
- case 4: return properties;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: sourceUrn = (java.lang.String)value$; break;
- case 1: destinationUrn = (java.lang.String)value$; break;
- case 2: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break;
- case 3: lastModified = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break;
- case 4: properties = (java.util.Map)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'sourceUrn' field.
- * Urn of the source of this relationship edge. */
- public java.lang.String getSourceUrn() {
- return sourceUrn;
- }
-
- /**
- * Sets the value of the 'sourceUrn' field.
- * Urn of the source of this relationship edge. * @param value the value to set.
- */
- public void setSourceUrn(java.lang.String value) {
- this.sourceUrn = value;
- }
-
- /**
- * Gets the value of the 'destinationUrn' field.
- * Urn of the destination of this relationship edge. */
- public java.lang.String getDestinationUrn() {
- return destinationUrn;
- }
-
- /**
- * Sets the value of the 'destinationUrn' field.
- * Urn of the destination of this relationship edge. * @param value the value to set.
- */
- public void setDestinationUrn(java.lang.String value) {
- this.destinationUrn = value;
- }
-
- /**
- * Gets the value of the 'created' field.
- * Audit stamp containing who created this relationship edge and when */
- public com.linkedin.pegasus2avro.common.AuditStamp getCreated() {
- return created;
- }
-
- /**
- * Sets the value of the 'created' field.
- * Audit stamp containing who created this relationship edge and when * @param value the value to set.
- */
- public void setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) {
- this.created = value;
- }
-
- /**
- * Gets the value of the 'lastModified' field.
- * Audit stamp containing who last modified this relationship edge and when */
- public com.linkedin.pegasus2avro.common.AuditStamp getLastModified() {
- return lastModified;
- }
-
- /**
- * Sets the value of the 'lastModified' field.
- * Audit stamp containing who last modified this relationship edge and when * @param value the value to set.
- */
- public void setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) {
- this.lastModified = value;
- }
-
- /**
- * Gets the value of the 'properties' field.
- * A generic properties bag that allows us to store specific information on this graph edge. */
- public java.util.Map getProperties() {
- return properties;
- }
-
- /**
- * Sets the value of the 'properties' field.
- * A generic properties bag that allows us to store specific information on this graph edge. * @param value the value to set.
- */
- public void setProperties(java.util.Map value) {
- this.properties = value;
- }
-
- /** Creates a new Edge RecordBuilder */
- public static com.linkedin.pegasus2avro.common.Edge.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.common.Edge.Builder();
- }
-
- /** Creates a new Edge RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.common.Edge.Builder newBuilder(com.linkedin.pegasus2avro.common.Edge.Builder other) {
- return new com.linkedin.pegasus2avro.common.Edge.Builder(other);
- }
-
- /** Creates a new Edge RecordBuilder by copying an existing Edge instance */
- public static com.linkedin.pegasus2avro.common.Edge.Builder newBuilder(com.linkedin.pegasus2avro.common.Edge other) {
- return new com.linkedin.pegasus2avro.common.Edge.Builder(other);
- }
-
- /**
- * RecordBuilder for Edge instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String sourceUrn;
- private java.lang.String destinationUrn;
- private com.linkedin.pegasus2avro.common.AuditStamp created;
- private com.linkedin.pegasus2avro.common.AuditStamp lastModified;
- private java.util.Map properties;
-
- /** Creates a new Builder */
- private Builder() {
- super(com.linkedin.pegasus2avro.common.Edge.SCHEMA$);
- }
-
- /** Creates a Builder by copying an existing Builder */
- private Builder(com.linkedin.pegasus2avro.common.Edge.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.sourceUrn)) {
- this.sourceUrn = data().deepCopy(fields()[0].schema(), other.sourceUrn);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.destinationUrn)) {
- this.destinationUrn = data().deepCopy(fields()[1].schema(), other.destinationUrn);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.created)) {
- this.created = data().deepCopy(fields()[2].schema(), other.created);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.lastModified)) {
- this.lastModified = data().deepCopy(fields()[3].schema(), other.lastModified);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.properties)) {
- this.properties = data().deepCopy(fields()[4].schema(), other.properties);
- fieldSetFlags()[4] = true;
- }
- }
-
- /** Creates a Builder by copying an existing Edge instance */
- private Builder(com.linkedin.pegasus2avro.common.Edge other) {
- super(com.linkedin.pegasus2avro.common.Edge.SCHEMA$);
- if (isValidValue(fields()[0], other.sourceUrn)) {
- this.sourceUrn = data().deepCopy(fields()[0].schema(), other.sourceUrn);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.destinationUrn)) {
- this.destinationUrn = data().deepCopy(fields()[1].schema(), other.destinationUrn);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.created)) {
- this.created = data().deepCopy(fields()[2].schema(), other.created);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.lastModified)) {
- this.lastModified = data().deepCopy(fields()[3].schema(), other.lastModified);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.properties)) {
- this.properties = data().deepCopy(fields()[4].schema(), other.properties);
- fieldSetFlags()[4] = true;
- }
- }
-
- /** Gets the value of the 'sourceUrn' field */
- public java.lang.String getSourceUrn() {
- return sourceUrn;
- }
-
- /** Sets the value of the 'sourceUrn' field */
- public com.linkedin.pegasus2avro.common.Edge.Builder setSourceUrn(java.lang.String value) {
- validate(fields()[0], value);
- this.sourceUrn = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /** Checks whether the 'sourceUrn' field has been set */
- public boolean hasSourceUrn() {
- return fieldSetFlags()[0];
- }
-
- /** Clears the value of the 'sourceUrn' field */
- public com.linkedin.pegasus2avro.common.Edge.Builder clearSourceUrn() {
- sourceUrn = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /** Gets the value of the 'destinationUrn' field */
- public java.lang.String getDestinationUrn() {
- return destinationUrn;
- }
-
- /** Sets the value of the 'destinationUrn' field */
- public com.linkedin.pegasus2avro.common.Edge.Builder setDestinationUrn(java.lang.String value) {
- validate(fields()[1], value);
- this.destinationUrn = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /** Checks whether the 'destinationUrn' field has been set */
- public boolean hasDestinationUrn() {
- return fieldSetFlags()[1];
- }
-
- /** Clears the value of the 'destinationUrn' field */
- public com.linkedin.pegasus2avro.common.Edge.Builder clearDestinationUrn() {
- destinationUrn = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /** Gets the value of the 'created' field */
- public com.linkedin.pegasus2avro.common.AuditStamp getCreated() {
- return created;
- }
-
- /** Sets the value of the 'created' field */
- public com.linkedin.pegasus2avro.common.Edge.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) {
- validate(fields()[2], value);
- this.created = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /** Checks whether the 'created' field has been set */
- public boolean hasCreated() {
- return fieldSetFlags()[2];
- }
-
- /** Clears the value of the 'created' field */
- public com.linkedin.pegasus2avro.common.Edge.Builder clearCreated() {
- created = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /** Gets the value of the 'lastModified' field */
- public com.linkedin.pegasus2avro.common.AuditStamp getLastModified() {
- return lastModified;
- }
-
- /** Sets the value of the 'lastModified' field */
- public com.linkedin.pegasus2avro.common.Edge.Builder setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) {
- validate(fields()[3], value);
- this.lastModified = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /** Checks whether the 'lastModified' field has been set */
- public boolean hasLastModified() {
- return fieldSetFlags()[3];
- }
-
- /** Clears the value of the 'lastModified' field */
- public com.linkedin.pegasus2avro.common.Edge.Builder clearLastModified() {
- lastModified = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- /** Gets the value of the 'properties' field */
- public java.util.Map getProperties() {
- return properties;
- }
-
- /** Sets the value of the 'properties' field */
- public com.linkedin.pegasus2avro.common.Edge.Builder setProperties(java.util.Map value) {
- validate(fields()[4], value);
- this.properties = value;
- fieldSetFlags()[4] = true;
- return this;
- }
-
- /** Checks whether the 'properties' field has been set */
- public boolean hasProperties() {
- return fieldSetFlags()[4];
- }
-
- /** Clears the value of the 'properties' field */
- public com.linkedin.pegasus2avro.common.Edge.Builder clearProperties() {
- properties = null;
- fieldSetFlags()[4] = false;
- return this;
- }
-
- @Override
- public Edge build() {
- try {
- Edge record = new Edge();
- record.sourceUrn = fieldSetFlags()[0] ? this.sourceUrn : (java.lang.String) defaultValue(fields()[0]);
- record.destinationUrn = fieldSetFlags()[1] ? this.destinationUrn : (java.lang.String) defaultValue(fields()[1]);
- record.created = fieldSetFlags()[2] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[2]);
- record.lastModified = fieldSetFlags()[3] ? this.lastModified : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[3]);
- record.properties = fieldSetFlags()[4] ? this.properties : (java.util.Map) defaultValue(fields()[4]);
- return record;
- } catch (Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-}
diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Embed.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Embed.java
deleted file mode 100644
index 781d11b8ba88fb..00000000000000
--- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Embed.java
+++ /dev/null
@@ -1,144 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package com.linkedin.pegasus2avro.common;
-@SuppressWarnings("all")
-/** Information regarding rendering an embed for an asset. */
-@org.apache.avro.specific.AvroGenerated
-public class Embed extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Embed\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Information regarding rendering an embed for an asset.\",\"fields\":[{\"name\":\"renderUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"An embed URL to be rendered inside of an iframe.\",\"default\":null}],\"Aspect\":{\"name\":\"embed\"}}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- /** An embed URL to be rendered inside of an iframe. */
- @Deprecated public java.lang.String renderUrl;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public Embed() {}
-
- /**
- * All-args constructor.
- */
- public Embed(java.lang.String renderUrl) {
- this.renderUrl = renderUrl;
- }
-
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return renderUrl;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: renderUrl = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'renderUrl' field.
- * An embed URL to be rendered inside of an iframe. */
- public java.lang.String getRenderUrl() {
- return renderUrl;
- }
-
- /**
- * Sets the value of the 'renderUrl' field.
- * An embed URL to be rendered inside of an iframe. * @param value the value to set.
- */
- public void setRenderUrl(java.lang.String value) {
- this.renderUrl = value;
- }
-
- /** Creates a new Embed RecordBuilder */
- public static com.linkedin.pegasus2avro.common.Embed.Builder newBuilder() {
- return new com.linkedin.pegasus2avro.common.Embed.Builder();
- }
-
- /** Creates a new Embed RecordBuilder by copying an existing Builder */
- public static com.linkedin.pegasus2avro.common.Embed.Builder newBuilder(com.linkedin.pegasus2avro.common.Embed.Builder other) {
- return new com.linkedin.pegasus2avro.common.Embed.Builder(other);
- }
-
- /** Creates a new Embed RecordBuilder by copying an existing Embed instance */
- public static com.linkedin.pegasus2avro.common.Embed.Builder newBuilder(com.linkedin.pegasus2avro.common.Embed other) {
- return new com.linkedin.pegasus2avro.common.Embed.Builder(other);
- }
-
- /**
- * RecordBuilder for Embed instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase