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 3fbcfa9cc7f8f..0000000000000 --- 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 65d841736d0b4..0000000000000 --- 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 0120dfdbaae52..0000000000000 --- 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 054e63196cc6b..0000000000000 --- 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 fca90aee7728f..0000000000000 --- 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 eae5216441eeb..0000000000000 --- 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 13617d32d6a1b..0000000000000 --- 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 de31419230a2f..0000000000000 --- 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 5494c2ab738f8..0000000000000 --- 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 d640b9dcc3693..0000000000000 --- 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 070ded2c80b7f..0000000000000 --- 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 fb1e7b4123878..0000000000000 --- 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 f33135bc8daf4..0000000000000 --- 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 5cb4c86504d06..0000000000000 --- 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 017e84803801a..0000000000000 --- 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 3c740466125b0..0000000000000 --- 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 b2d6bdd4fead7..0000000000000 --- 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 3e267a4a26015..0000000000000 --- 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 361a1edf61e27..0000000000000 --- 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 81608106d8f91..0000000000000 --- 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 ba8162ba88361..0000000000000 --- 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 4328685c05192..0000000000000 --- 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 1a2d710e0264b..0000000000000 --- 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 c74538dcfb51b..0000000000000 --- 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 e7ba9fd968479..0000000000000 --- 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 d9c7b0775cf2f..0000000000000 --- 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 97c906198e61a..0000000000000 --- 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 38b37cdd9bd65..0000000000000 --- 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 149fc44c23288..0000000000000 --- 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 4bbef828f43b0..0000000000000 --- 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 e203dec4dd1b1..0000000000000 --- 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 3153965fe244b..0000000000000 --- 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 5d1b514bf8f17..0000000000000 --- 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 770e045386900..0000000000000 --- 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 ee7d1819d7891..0000000000000 --- 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 32fc91954a822..0000000000000 --- 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 2819913a9a53f..0000000000000 --- 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 543cf8b34bb96..0000000000000 --- 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 781d11b8ba88f..0000000000000 --- 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 - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String renderUrl; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.Embed.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.Embed.Builder other) { - super(other); - if (isValidValue(fields()[0], other.renderUrl)) { - this.renderUrl = data().deepCopy(fields()[0].schema(), other.renderUrl); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing Embed instance */ - private Builder(com.linkedin.pegasus2avro.common.Embed other) { - super(com.linkedin.pegasus2avro.common.Embed.SCHEMA$); - if (isValidValue(fields()[0], other.renderUrl)) { - this.renderUrl = data().deepCopy(fields()[0].schema(), other.renderUrl); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'renderUrl' field */ - public java.lang.String getRenderUrl() { - return renderUrl; - } - - /** Sets the value of the 'renderUrl' field */ - public com.linkedin.pegasus2avro.common.Embed.Builder setRenderUrl(java.lang.String value) { - validate(fields()[0], value); - this.renderUrl = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'renderUrl' field has been set */ - public boolean hasRenderUrl() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'renderUrl' field */ - public com.linkedin.pegasus2avro.common.Embed.Builder clearRenderUrl() { - renderUrl = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public Embed build() { - try { - Embed record = new Embed(); - record.renderUrl = fieldSetFlags()[0] ? this.renderUrl : (java.lang.String) 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/EntityRelationship.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/EntityRelationship.java deleted file mode 100644 index 9ef3a229fb244..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/EntityRelationship.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Downstream lineage information about a dataset including the source reporting the lineage */ -@org.apache.avro.specific.AvroGenerated -public class EntityRelationship 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\":\"EntityRelationship\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Downstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"created\",\"type\":[\"null\",{\"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 lineage and when\",\"default\":null},{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The downstream dataset the lineage points to\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of the relationship\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Audit stamp containing who reported the lineage and when */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created; - /** The downstream dataset the lineage points to */ - @Deprecated public java.lang.String entity; - /** The type of the relationship */ - @Deprecated public java.lang.String 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 EntityRelationship() {} - - /** - * All-args constructor. - */ - public EntityRelationship(com.linkedin.pegasus2avro.common.AuditStamp created, java.lang.String entity, java.lang.String type) { - this.created = created; - this.entity = entity; - 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 created; - case 1: return entity; - case 2: 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: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 1: entity = (java.lang.String)value$; break; - case 2: type = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'created' field. - * Audit stamp containing who reported the lineage and when */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * Audit stamp containing who reported the lineage 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 'entity' field. - * The downstream dataset the lineage points to */ - public java.lang.String getEntity() { - return entity; - } - - /** - * Sets the value of the 'entity' field. - * The downstream dataset the lineage points to * @param value the value to set. - */ - public void setEntity(java.lang.String value) { - this.entity = value; - } - - /** - * Gets the value of the 'type' field. - * The type of the relationship */ - public java.lang.String getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of the relationship * @param value the value to set. - */ - public void setType(java.lang.String value) { - this.type = value; - } - - /** Creates a new EntityRelationship RecordBuilder */ - public static com.linkedin.pegasus2avro.common.EntityRelationship.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.EntityRelationship.Builder(); - } - - /** Creates a new EntityRelationship RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.EntityRelationship.Builder newBuilder(com.linkedin.pegasus2avro.common.EntityRelationship.Builder other) { - return new com.linkedin.pegasus2avro.common.EntityRelationship.Builder(other); - } - - /** Creates a new EntityRelationship RecordBuilder by copying an existing EntityRelationship instance */ - public static com.linkedin.pegasus2avro.common.EntityRelationship.Builder newBuilder(com.linkedin.pegasus2avro.common.EntityRelationship other) { - return new com.linkedin.pegasus2avro.common.EntityRelationship.Builder(other); - } - - /** - * RecordBuilder for EntityRelationship 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.String entity; - private java.lang.String type; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.EntityRelationship.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.EntityRelationship.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.entity)) { - this.entity = data().deepCopy(fields()[1].schema(), other.entity); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.type)) { - this.type = data().deepCopy(fields()[2].schema(), other.type); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing EntityRelationship instance */ - private Builder(com.linkedin.pegasus2avro.common.EntityRelationship other) { - super(com.linkedin.pegasus2avro.common.EntityRelationship.SCHEMA$); - if (isValidValue(fields()[0], other.created)) { - this.created = data().deepCopy(fields()[0].schema(), other.created); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entity)) { - this.entity = data().deepCopy(fields()[1].schema(), other.entity); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.type)) { - this.type = data().deepCopy(fields()[2].schema(), other.type); - 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.EntityRelationship.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.EntityRelationship.Builder clearCreated() { - created = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'entity' field */ - public java.lang.String getEntity() { - return entity; - } - - /** Sets the value of the 'entity' field */ - public com.linkedin.pegasus2avro.common.EntityRelationship.Builder setEntity(java.lang.String value) { - validate(fields()[1], value); - this.entity = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'entity' field has been set */ - public boolean hasEntity() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'entity' field */ - public com.linkedin.pegasus2avro.common.EntityRelationship.Builder clearEntity() { - entity = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public java.lang.String getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.common.EntityRelationship.Builder setType(java.lang.String 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.common.EntityRelationship.Builder clearType() { - type = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public EntityRelationship build() { - try { - EntityRelationship record = new EntityRelationship(); - record.created = fieldSetFlags()[0] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[0]); - record.entity = fieldSetFlags()[1] ? this.entity : (java.lang.String) defaultValue(fields()[1]); - record.type = fieldSetFlags()[2] ? this.type : (java.lang.String) 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/EntityRelationships.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/EntityRelationships.java deleted file mode 100644 index 3f574299cab77..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/EntityRelationships.java +++ /dev/null @@ -1,306 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Downstream lineage of a dataset */ -@org.apache.avro.specific.AvroGenerated -public class EntityRelationships 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\":\"EntityRelationships\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Downstream lineage of a dataset\",\"fields\":[{\"name\":\"relationships\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"EntityRelationship\",\"doc\":\"Downstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"created\",\"type\":[\"null\",{\"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 lineage and when\",\"default\":null},{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The downstream dataset the lineage points to\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of the relationship\"}]}},\"doc\":\"List of related entities\"},{\"name\":\"start\",\"type\":\"int\",\"doc\":\"The start of the result set\"},{\"name\":\"count\",\"type\":\"int\",\"doc\":\"The start of the result set\"},{\"name\":\"total\",\"type\":\"int\",\"doc\":\"Total number of edges found.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** List of related entities */ - @Deprecated public java.util.List relationships; - /** The start of the result set */ - @Deprecated public int start; - /** The start of the result set */ - @Deprecated public int count; - /** Total number of edges found. */ - @Deprecated public int total; - - /** - * 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 EntityRelationships() {} - - /** - * All-args constructor. - */ - public EntityRelationships(java.util.List relationships, java.lang.Integer start, java.lang.Integer count, java.lang.Integer total) { - this.relationships = relationships; - this.start = start; - this.count = count; - this.total = total; - } - - 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 relationships; - case 1: return start; - case 2: return count; - case 3: return total; - 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: relationships = (java.util.List)value$; break; - case 1: start = (java.lang.Integer)value$; break; - case 2: count = (java.lang.Integer)value$; break; - case 3: total = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'relationships' field. - * List of related entities */ - public java.util.List getRelationships() { - return relationships; - } - - /** - * Sets the value of the 'relationships' field. - * List of related entities * @param value the value to set. - */ - public void setRelationships(java.util.List value) { - this.relationships = value; - } - - /** - * Gets the value of the 'start' field. - * The start of the result set */ - public java.lang.Integer getStart() { - return start; - } - - /** - * Sets the value of the 'start' field. - * The start of the result set * @param value the value to set. - */ - public void setStart(java.lang.Integer value) { - this.start = value; - } - - /** - * Gets the value of the 'count' field. - * The start of the result set */ - public java.lang.Integer getCount() { - return count; - } - - /** - * Sets the value of the 'count' field. - * The start of the result set * @param value the value to set. - */ - public void setCount(java.lang.Integer value) { - this.count = value; - } - - /** - * Gets the value of the 'total' field. - * Total number of edges found. */ - public java.lang.Integer getTotal() { - return total; - } - - /** - * Sets the value of the 'total' field. - * Total number of edges found. * @param value the value to set. - */ - public void setTotal(java.lang.Integer value) { - this.total = value; - } - - /** Creates a new EntityRelationships RecordBuilder */ - public static com.linkedin.pegasus2avro.common.EntityRelationships.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.EntityRelationships.Builder(); - } - - /** Creates a new EntityRelationships RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.EntityRelationships.Builder newBuilder(com.linkedin.pegasus2avro.common.EntityRelationships.Builder other) { - return new com.linkedin.pegasus2avro.common.EntityRelationships.Builder(other); - } - - /** Creates a new EntityRelationships RecordBuilder by copying an existing EntityRelationships instance */ - public static com.linkedin.pegasus2avro.common.EntityRelationships.Builder newBuilder(com.linkedin.pegasus2avro.common.EntityRelationships other) { - return new com.linkedin.pegasus2avro.common.EntityRelationships.Builder(other); - } - - /** - * RecordBuilder for EntityRelationships instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List relationships; - private int start; - private int count; - private int total; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.EntityRelationships.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.EntityRelationships.Builder other) { - super(other); - if (isValidValue(fields()[0], other.relationships)) { - this.relationships = data().deepCopy(fields()[0].schema(), other.relationships); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.start)) { - this.start = data().deepCopy(fields()[1].schema(), other.start); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.count)) { - this.count = data().deepCopy(fields()[2].schema(), other.count); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.total)) { - this.total = data().deepCopy(fields()[3].schema(), other.total); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing EntityRelationships instance */ - private Builder(com.linkedin.pegasus2avro.common.EntityRelationships other) { - super(com.linkedin.pegasus2avro.common.EntityRelationships.SCHEMA$); - if (isValidValue(fields()[0], other.relationships)) { - this.relationships = data().deepCopy(fields()[0].schema(), other.relationships); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.start)) { - this.start = data().deepCopy(fields()[1].schema(), other.start); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.count)) { - this.count = data().deepCopy(fields()[2].schema(), other.count); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.total)) { - this.total = data().deepCopy(fields()[3].schema(), other.total); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'relationships' field */ - public java.util.List getRelationships() { - return relationships; - } - - /** Sets the value of the 'relationships' field */ - public com.linkedin.pegasus2avro.common.EntityRelationships.Builder setRelationships(java.util.List value) { - validate(fields()[0], value); - this.relationships = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'relationships' field has been set */ - public boolean hasRelationships() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'relationships' field */ - public com.linkedin.pegasus2avro.common.EntityRelationships.Builder clearRelationships() { - relationships = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'start' field */ - public java.lang.Integer getStart() { - return start; - } - - /** Sets the value of the 'start' field */ - public com.linkedin.pegasus2avro.common.EntityRelationships.Builder setStart(int value) { - validate(fields()[1], value); - this.start = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'start' field has been set */ - public boolean hasStart() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'start' field */ - public com.linkedin.pegasus2avro.common.EntityRelationships.Builder clearStart() { - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'count' field */ - public java.lang.Integer getCount() { - return count; - } - - /** Sets the value of the 'count' field */ - public com.linkedin.pegasus2avro.common.EntityRelationships.Builder setCount(int value) { - validate(fields()[2], value); - this.count = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'count' field has been set */ - public boolean hasCount() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'count' field */ - public com.linkedin.pegasus2avro.common.EntityRelationships.Builder clearCount() { - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'total' field */ - public java.lang.Integer getTotal() { - return total; - } - - /** Sets the value of the 'total' field */ - public com.linkedin.pegasus2avro.common.EntityRelationships.Builder setTotal(int value) { - validate(fields()[3], value); - this.total = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'total' field has been set */ - public boolean hasTotal() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'total' field */ - public com.linkedin.pegasus2avro.common.EntityRelationships.Builder clearTotal() { - fieldSetFlags()[3] = false; - return this; - } - - @Override - public EntityRelationships build() { - try { - EntityRelationships record = new EntityRelationships(); - record.relationships = fieldSetFlags()[0] ? this.relationships : (java.util.List) defaultValue(fields()[0]); - record.start = fieldSetFlags()[1] ? this.start : (java.lang.Integer) defaultValue(fields()[1]); - record.count = fieldSetFlags()[2] ? this.count : (java.lang.Integer) defaultValue(fields()[2]); - record.total = fieldSetFlags()[3] ? this.total : (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/common/ExternalReference.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/ExternalReference.java deleted file mode 100644 index 8b0b23b0c6929..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/ExternalReference.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** A reference to an external platform. */ -@org.apache.avro.specific.AvroGenerated -public class ExternalReference 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\":\"ExternalReference\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A reference to an external platform.\",\"fields\":[{\"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\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URL where the reference exist */ - @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 ExternalReference() {} - - /** - * All-args constructor. - */ - public ExternalReference(java.lang.String externalUrl) { - 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 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: externalUrl = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * 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; - } - - /** Creates a new ExternalReference RecordBuilder */ - public static com.linkedin.pegasus2avro.common.ExternalReference.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.ExternalReference.Builder(); - } - - /** Creates a new ExternalReference RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.ExternalReference.Builder newBuilder(com.linkedin.pegasus2avro.common.ExternalReference.Builder other) { - return new com.linkedin.pegasus2avro.common.ExternalReference.Builder(other); - } - - /** Creates a new ExternalReference RecordBuilder by copying an existing ExternalReference instance */ - public static com.linkedin.pegasus2avro.common.ExternalReference.Builder newBuilder(com.linkedin.pegasus2avro.common.ExternalReference other) { - return new com.linkedin.pegasus2avro.common.ExternalReference.Builder(other); - } - - /** - * RecordBuilder for ExternalReference instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String externalUrl; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.ExternalReference.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.ExternalReference.Builder other) { - super(other); - if (isValidValue(fields()[0], other.externalUrl)) { - this.externalUrl = data().deepCopy(fields()[0].schema(), other.externalUrl); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing ExternalReference instance */ - private Builder(com.linkedin.pegasus2avro.common.ExternalReference other) { - super(com.linkedin.pegasus2avro.common.ExternalReference.SCHEMA$); - if (isValidValue(fields()[0], other.externalUrl)) { - this.externalUrl = data().deepCopy(fields()[0].schema(), other.externalUrl); - fieldSetFlags()[0] = true; - } - } - - /** 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.common.ExternalReference.Builder setExternalUrl(java.lang.String value) { - validate(fields()[0], value); - this.externalUrl = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'externalUrl' field has been set */ - public boolean hasExternalUrl() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'externalUrl' field */ - public com.linkedin.pegasus2avro.common.ExternalReference.Builder clearExternalUrl() { - externalUrl = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public ExternalReference build() { - try { - ExternalReference record = new ExternalReference(); - record.externalUrl = fieldSetFlags()[0] ? this.externalUrl : (java.lang.String) 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/FabricType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/FabricType.java deleted file mode 100644 index 257ab4f43a813..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/FabricType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Fabric group type */ -@org.apache.avro.specific.AvroGenerated -public enum FabricType { - DEV, TEST, QA, UAT, EI, PRE, STG, NON_PROD, PROD, CORP ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}}"); - 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/GlobalTags.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/GlobalTags.java deleted file mode 100644 index 128a3f44203db..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/GlobalTags.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Tag aspect used for applying tags to an entity */ -@org.apache.avro.specific.AvroGenerated -public class GlobalTags 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\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Tags associated with a given entity */ - @Deprecated public java.util.List tags; - - /** - * 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 GlobalTags() {} - - /** - * All-args constructor. - */ - public GlobalTags(java.util.List tags) { - this.tags = tags; - } - - 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 tags; - 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: tags = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'tags' field. - * Tags associated with a given entity */ - public java.util.List getTags() { - return tags; - } - - /** - * Sets the value of the 'tags' field. - * Tags associated with a given entity * @param value the value to set. - */ - public void setTags(java.util.List value) { - this.tags = value; - } - - /** Creates a new GlobalTags RecordBuilder */ - public static com.linkedin.pegasus2avro.common.GlobalTags.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.GlobalTags.Builder(); - } - - /** Creates a new GlobalTags RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.GlobalTags.Builder newBuilder(com.linkedin.pegasus2avro.common.GlobalTags.Builder other) { - return new com.linkedin.pegasus2avro.common.GlobalTags.Builder(other); - } - - /** Creates a new GlobalTags RecordBuilder by copying an existing GlobalTags instance */ - public static com.linkedin.pegasus2avro.common.GlobalTags.Builder newBuilder(com.linkedin.pegasus2avro.common.GlobalTags other) { - return new com.linkedin.pegasus2avro.common.GlobalTags.Builder(other); - } - - /** - * RecordBuilder for GlobalTags instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List tags; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.GlobalTags.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.GlobalTags.Builder other) { - super(other); - if (isValidValue(fields()[0], other.tags)) { - this.tags = data().deepCopy(fields()[0].schema(), other.tags); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing GlobalTags instance */ - private Builder(com.linkedin.pegasus2avro.common.GlobalTags other) { - super(com.linkedin.pegasus2avro.common.GlobalTags.SCHEMA$); - if (isValidValue(fields()[0], other.tags)) { - this.tags = data().deepCopy(fields()[0].schema(), other.tags); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'tags' field */ - public java.util.List getTags() { - return tags; - } - - /** Sets the value of the 'tags' field */ - public com.linkedin.pegasus2avro.common.GlobalTags.Builder setTags(java.util.List value) { - validate(fields()[0], value); - this.tags = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'tags' field has been set */ - public boolean hasTags() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'tags' field */ - public com.linkedin.pegasus2avro.common.GlobalTags.Builder clearTags() { - tags = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public GlobalTags build() { - try { - GlobalTags record = new GlobalTags(); - record.tags = fieldSetFlags()[0] ? this.tags : (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/GlossaryTermAssociation.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/GlossaryTermAssociation.java deleted file mode 100644 index da570ff20be9b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/GlossaryTermAssociation.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Properties of an applied glossary term. */ -@org.apache.avro.specific.AvroGenerated -public class GlossaryTermAssociation 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\":\"GlossaryTermAssociation\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Urn of the applied glossary term */ - @Deprecated public java.lang.String urn; - /** Additional context about the association */ - @Deprecated public java.lang.String context; - - /** - * 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 GlossaryTermAssociation() {} - - /** - * All-args constructor. - */ - public GlossaryTermAssociation(java.lang.String urn, java.lang.String context) { - this.urn = urn; - this.context = context; - } - - 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 urn; - case 1: return context; - 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: urn = (java.lang.String)value$; break; - case 1: context = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * Urn of the applied glossary term */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * Urn of the applied glossary term * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'context' field. - * Additional context about the association */ - public java.lang.String getContext() { - return context; - } - - /** - * Sets the value of the 'context' field. - * Additional context about the association * @param value the value to set. - */ - public void setContext(java.lang.String value) { - this.context = value; - } - - /** Creates a new GlossaryTermAssociation RecordBuilder */ - public static com.linkedin.pegasus2avro.common.GlossaryTermAssociation.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.GlossaryTermAssociation.Builder(); - } - - /** Creates a new GlossaryTermAssociation RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.GlossaryTermAssociation.Builder newBuilder(com.linkedin.pegasus2avro.common.GlossaryTermAssociation.Builder other) { - return new com.linkedin.pegasus2avro.common.GlossaryTermAssociation.Builder(other); - } - - /** Creates a new GlossaryTermAssociation RecordBuilder by copying an existing GlossaryTermAssociation instance */ - public static com.linkedin.pegasus2avro.common.GlossaryTermAssociation.Builder newBuilder(com.linkedin.pegasus2avro.common.GlossaryTermAssociation other) { - return new com.linkedin.pegasus2avro.common.GlossaryTermAssociation.Builder(other); - } - - /** - * RecordBuilder for GlossaryTermAssociation instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.lang.String context; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.GlossaryTermAssociation.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.GlossaryTermAssociation.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.context)) { - this.context = data().deepCopy(fields()[1].schema(), other.context); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing GlossaryTermAssociation instance */ - private Builder(com.linkedin.pegasus2avro.common.GlossaryTermAssociation other) { - super(com.linkedin.pegasus2avro.common.GlossaryTermAssociation.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.context)) { - this.context = data().deepCopy(fields()[1].schema(), other.context); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.common.GlossaryTermAssociation.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.common.GlossaryTermAssociation.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'context' field */ - public java.lang.String getContext() { - return context; - } - - /** Sets the value of the 'context' field */ - public com.linkedin.pegasus2avro.common.GlossaryTermAssociation.Builder setContext(java.lang.String value) { - validate(fields()[1], value); - this.context = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'context' field has been set */ - public boolean hasContext() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'context' field */ - public com.linkedin.pegasus2avro.common.GlossaryTermAssociation.Builder clearContext() { - context = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public GlossaryTermAssociation build() { - try { - GlossaryTermAssociation record = new GlossaryTermAssociation(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.context = fieldSetFlags()[1] ? this.context : (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/GlossaryTerms.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/GlossaryTerms.java deleted file mode 100644 index 72f0c9e1c5b1a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/GlossaryTerms.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Related business terms information */ -@org.apache.avro.specific.AvroGenerated -public class GlossaryTerms 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\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"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 related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The related business terms */ - @Deprecated public java.util.List terms; - /** Audit stamp containing who reported the related business term */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp auditStamp; - - /** - * 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 GlossaryTerms() {} - - /** - * All-args constructor. - */ - public GlossaryTerms(java.util.List terms, com.linkedin.pegasus2avro.common.AuditStamp auditStamp) { - this.terms = terms; - this.auditStamp = auditStamp; - } - - 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 terms; - case 1: return auditStamp; - 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: terms = (java.util.List)value$; break; - case 1: auditStamp = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'terms' field. - * The related business terms */ - public java.util.List getTerms() { - return terms; - } - - /** - * Sets the value of the 'terms' field. - * The related business terms * @param value the value to set. - */ - public void setTerms(java.util.List value) { - this.terms = value; - } - - /** - * Gets the value of the 'auditStamp' field. - * Audit stamp containing who reported the related business term */ - public com.linkedin.pegasus2avro.common.AuditStamp getAuditStamp() { - return auditStamp; - } - - /** - * Sets the value of the 'auditStamp' field. - * Audit stamp containing who reported the related business term * @param value the value to set. - */ - public void setAuditStamp(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.auditStamp = value; - } - - /** Creates a new GlossaryTerms RecordBuilder */ - public static com.linkedin.pegasus2avro.common.GlossaryTerms.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.GlossaryTerms.Builder(); - } - - /** Creates a new GlossaryTerms RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.GlossaryTerms.Builder newBuilder(com.linkedin.pegasus2avro.common.GlossaryTerms.Builder other) { - return new com.linkedin.pegasus2avro.common.GlossaryTerms.Builder(other); - } - - /** Creates a new GlossaryTerms RecordBuilder by copying an existing GlossaryTerms instance */ - public static com.linkedin.pegasus2avro.common.GlossaryTerms.Builder newBuilder(com.linkedin.pegasus2avro.common.GlossaryTerms other) { - return new com.linkedin.pegasus2avro.common.GlossaryTerms.Builder(other); - } - - /** - * RecordBuilder for GlossaryTerms instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List terms; - private com.linkedin.pegasus2avro.common.AuditStamp auditStamp; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.GlossaryTerms.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.GlossaryTerms.Builder other) { - super(other); - if (isValidValue(fields()[0], other.terms)) { - this.terms = data().deepCopy(fields()[0].schema(), other.terms); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.auditStamp)) { - this.auditStamp = data().deepCopy(fields()[1].schema(), other.auditStamp); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing GlossaryTerms instance */ - private Builder(com.linkedin.pegasus2avro.common.GlossaryTerms other) { - super(com.linkedin.pegasus2avro.common.GlossaryTerms.SCHEMA$); - if (isValidValue(fields()[0], other.terms)) { - this.terms = data().deepCopy(fields()[0].schema(), other.terms); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.auditStamp)) { - this.auditStamp = data().deepCopy(fields()[1].schema(), other.auditStamp); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'terms' field */ - public java.util.List getTerms() { - return terms; - } - - /** Sets the value of the 'terms' field */ - public com.linkedin.pegasus2avro.common.GlossaryTerms.Builder setTerms(java.util.List value) { - validate(fields()[0], value); - this.terms = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'terms' field has been set */ - public boolean hasTerms() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'terms' field */ - public com.linkedin.pegasus2avro.common.GlossaryTerms.Builder clearTerms() { - terms = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'auditStamp' field */ - public com.linkedin.pegasus2avro.common.AuditStamp getAuditStamp() { - return auditStamp; - } - - /** Sets the value of the 'auditStamp' field */ - public com.linkedin.pegasus2avro.common.GlossaryTerms.Builder setAuditStamp(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[1], value); - this.auditStamp = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'auditStamp' field has been set */ - public boolean hasAuditStamp() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'auditStamp' field */ - public com.linkedin.pegasus2avro.common.GlossaryTerms.Builder clearAuditStamp() { - auditStamp = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public GlossaryTerms build() { - try { - GlossaryTerms record = new GlossaryTerms(); - record.terms = fieldSetFlags()[0] ? this.terms : (java.util.List) defaultValue(fields()[0]); - record.auditStamp = fieldSetFlags()[1] ? this.auditStamp : (com.linkedin.pegasus2avro.common.AuditStamp) 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/InputField.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/InputField.java deleted file mode 100644 index c84ff77c095bb..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/InputField.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Information about a field a chart or dashboard references */ -@org.apache.avro.specific.AvroGenerated -public class InputField 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\":\"InputField\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Information about a field a chart or dashboard references\",\"fields\":[{\"name\":\"schemaFieldUrn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the schema being referenced for lineage purposes\",\"Relationship\":{\"entityTypes\":[\"schemaField\"],\"name\":\"consumesField\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"schemaField\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SchemaField\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flattened name of the field. Field is computed from jsonPath field.\",\"Searchable\":{\"fieldName\":\"fieldPaths\",\"fieldType\":\"TEXT\"}},{\"name\":\"jsonPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flattened name of a field in JSON Path notation.\",\"default\":null,\"Deprecated\":true},{\"name\":\"nullable\",\"type\":\"boolean\",\"doc\":\"Indicates if this field is optional or nullable\",\"default\":false},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"fieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"label\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Label of the field. Provides a more human-readable name for the field than field path. Some sources will\\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\\na field in a source, that is most likely a description.\",\"default\":null,\"Searchable\":{\"boostScore\":0.2,\"fieldName\":\"fieldLabels\",\"fieldType\":\"TEXT\"}},{\"name\":\"created\",\"type\":[\"null\",{\"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 schema field.\",\"default\":null},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the last modification of this schema field.\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"record\",\"name\":\"SchemaFieldDataType\",\"doc\":\"Schema field data types\",\"fields\":[{\"name\":\"type\",\"type\":[{\"type\":\"record\",\"name\":\"BooleanType\",\"doc\":\"Boolean field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"FixedType\",\"doc\":\"Fixed field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"StringType\",\"doc\":\"String field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"BytesType\",\"doc\":\"Bytes field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NumberType\",\"doc\":\"Number data type: long, integer, short, etc..\",\"fields\":[]},{\"type\":\"record\",\"name\":\"DateType\",\"doc\":\"Date field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"TimeType\",\"doc\":\"Time field type. This should also be used for datetimes.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"EnumType\",\"doc\":\"Enum field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NullType\",\"doc\":\"Null field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"MapType\",\"doc\":\"Map field type.\",\"fields\":[{\"name\":\"keyType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Key type in a map\",\"default\":null},{\"name\":\"valueType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of the value in a map\",\"default\":null}]},{\"type\":\"record\",\"name\":\"ArrayType\",\"doc\":\"Array field type.\",\"fields\":[{\"name\":\"nestedType\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types this array holds.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"UnionType\",\"doc\":\"Union field type.\",\"fields\":[{\"name\":\"nestedTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types in union type.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"RecordType\",\"doc\":\"Record field type.\",\"fields\":[]}],\"doc\":\"Data platform specific types\"}]},\"doc\":\"Platform independent field type of the field.\"},{\"name\":\"nativeDataType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native type of the field in the dataset's platform as declared by platform schema.\"},{\"name\":\"recursive\",\"type\":\"boolean\",\"doc\":\"There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.\",\"default\":false},{\"name\":\"globalTags\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}}],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"SchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"fieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}}],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relati","onship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"SchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"fieldGlossaryTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"isPartOfKey\",\"type\":\"boolean\",\"doc\":\"For schema fields that are part of complex keys, set this field to true\\nWe do this to easily distinguish between value and key fields\",\"default\":false},{\"name\":\"isPartitioningKey\",\"type\":[\"null\",\"boolean\"],\"doc\":\"For Datasets which are partitioned, this determines the partitioning key.\",\"default\":null},{\"name\":\"jsonProps\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"For schema fields that have other properties that are not modeled explicitly,\\nuse this field to serialize those properties into a JSON string\",\"default\":null}]}],\"doc\":\"Copied version of the referenced schema field object for indexing purposes\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Urn of the schema being referenced for lineage purposes */ - @Deprecated public java.lang.String schemaFieldUrn; - /** Copied version of the referenced schema field object for indexing purposes */ - @Deprecated public com.linkedin.pegasus2avro.schema.SchemaField schemaField; - - /** - * 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 InputField() {} - - /** - * All-args constructor. - */ - public InputField(java.lang.String schemaFieldUrn, com.linkedin.pegasus2avro.schema.SchemaField schemaField) { - this.schemaFieldUrn = schemaFieldUrn; - this.schemaField = schemaField; - } - - 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 schemaFieldUrn; - case 1: return schemaField; - 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: schemaFieldUrn = (java.lang.String)value$; break; - case 1: schemaField = (com.linkedin.pegasus2avro.schema.SchemaField)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'schemaFieldUrn' field. - * Urn of the schema being referenced for lineage purposes */ - public java.lang.String getSchemaFieldUrn() { - return schemaFieldUrn; - } - - /** - * Sets the value of the 'schemaFieldUrn' field. - * Urn of the schema being referenced for lineage purposes * @param value the value to set. - */ - public void setSchemaFieldUrn(java.lang.String value) { - this.schemaFieldUrn = value; - } - - /** - * Gets the value of the 'schemaField' field. - * Copied version of the referenced schema field object for indexing purposes */ - public com.linkedin.pegasus2avro.schema.SchemaField getSchemaField() { - return schemaField; - } - - /** - * Sets the value of the 'schemaField' field. - * Copied version of the referenced schema field object for indexing purposes * @param value the value to set. - */ - public void setSchemaField(com.linkedin.pegasus2avro.schema.SchemaField value) { - this.schemaField = value; - } - - /** Creates a new InputField RecordBuilder */ - public static com.linkedin.pegasus2avro.common.InputField.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.InputField.Builder(); - } - - /** Creates a new InputField RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.InputField.Builder newBuilder(com.linkedin.pegasus2avro.common.InputField.Builder other) { - return new com.linkedin.pegasus2avro.common.InputField.Builder(other); - } - - /** Creates a new InputField RecordBuilder by copying an existing InputField instance */ - public static com.linkedin.pegasus2avro.common.InputField.Builder newBuilder(com.linkedin.pegasus2avro.common.InputField other) { - return new com.linkedin.pegasus2avro.common.InputField.Builder(other); - } - - /** - * RecordBuilder for InputField instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String schemaFieldUrn; - private com.linkedin.pegasus2avro.schema.SchemaField schemaField; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.InputField.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.InputField.Builder other) { - super(other); - if (isValidValue(fields()[0], other.schemaFieldUrn)) { - this.schemaFieldUrn = data().deepCopy(fields()[0].schema(), other.schemaFieldUrn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.schemaField)) { - this.schemaField = data().deepCopy(fields()[1].schema(), other.schemaField); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing InputField instance */ - private Builder(com.linkedin.pegasus2avro.common.InputField other) { - super(com.linkedin.pegasus2avro.common.InputField.SCHEMA$); - if (isValidValue(fields()[0], other.schemaFieldUrn)) { - this.schemaFieldUrn = data().deepCopy(fields()[0].schema(), other.schemaFieldUrn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.schemaField)) { - this.schemaField = data().deepCopy(fields()[1].schema(), other.schemaField); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'schemaFieldUrn' field */ - public java.lang.String getSchemaFieldUrn() { - return schemaFieldUrn; - } - - /** Sets the value of the 'schemaFieldUrn' field */ - public com.linkedin.pegasus2avro.common.InputField.Builder setSchemaFieldUrn(java.lang.String value) { - validate(fields()[0], value); - this.schemaFieldUrn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'schemaFieldUrn' field has been set */ - public boolean hasSchemaFieldUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'schemaFieldUrn' field */ - public com.linkedin.pegasus2avro.common.InputField.Builder clearSchemaFieldUrn() { - schemaFieldUrn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'schemaField' field */ - public com.linkedin.pegasus2avro.schema.SchemaField getSchemaField() { - return schemaField; - } - - /** Sets the value of the 'schemaField' field */ - public com.linkedin.pegasus2avro.common.InputField.Builder setSchemaField(com.linkedin.pegasus2avro.schema.SchemaField value) { - validate(fields()[1], value); - this.schemaField = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'schemaField' field has been set */ - public boolean hasSchemaField() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'schemaField' field */ - public com.linkedin.pegasus2avro.common.InputField.Builder clearSchemaField() { - schemaField = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public InputField build() { - try { - InputField record = new InputField(); - record.schemaFieldUrn = fieldSetFlags()[0] ? this.schemaFieldUrn : (java.lang.String) defaultValue(fields()[0]); - record.schemaField = fieldSetFlags()[1] ? this.schemaField : (com.linkedin.pegasus2avro.schema.SchemaField) 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/InputFields.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/InputFields.java deleted file mode 100644 index 35dad4d737c74..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/InputFields.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Information about the fields a chart or dashboard references */ -@org.apache.avro.specific.AvroGenerated -public class InputFields 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\":\"InputFields\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Information about the fields a chart or dashboard references\",\"fields\":[{\"name\":\"fields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InputField\",\"doc\":\"Information about a field a chart or dashboard references\",\"fields\":[{\"name\":\"schemaFieldUrn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the schema being referenced for lineage purposes\",\"Relationship\":{\"entityTypes\":[\"schemaField\"],\"name\":\"consumesField\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"schemaField\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SchemaField\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flattened name of the field. Field is computed from jsonPath field.\",\"Searchable\":{\"fieldName\":\"fieldPaths\",\"fieldType\":\"TEXT\"}},{\"name\":\"jsonPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flattened name of a field in JSON Path notation.\",\"default\":null,\"Deprecated\":true},{\"name\":\"nullable\",\"type\":\"boolean\",\"doc\":\"Indicates if this field is optional or nullable\",\"default\":false},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"fieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"label\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Label of the field. Provides a more human-readable name for the field than field path. Some sources will\\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\\na field in a source, that is most likely a description.\",\"default\":null,\"Searchable\":{\"boostScore\":0.2,\"fieldName\":\"fieldLabels\",\"fieldType\":\"TEXT\"}},{\"name\":\"created\",\"type\":[\"null\",{\"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 schema field.\",\"default\":null},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the last modification of this schema field.\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"record\",\"name\":\"SchemaFieldDataType\",\"doc\":\"Schema field data types\",\"fields\":[{\"name\":\"type\",\"type\":[{\"type\":\"record\",\"name\":\"BooleanType\",\"doc\":\"Boolean field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"FixedType\",\"doc\":\"Fixed field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"StringType\",\"doc\":\"String field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"BytesType\",\"doc\":\"Bytes field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NumberType\",\"doc\":\"Number data type: long, integer, short, etc..\",\"fields\":[]},{\"type\":\"record\",\"name\":\"DateType\",\"doc\":\"Date field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"TimeType\",\"doc\":\"Time field type. This should also be used for datetimes.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"EnumType\",\"doc\":\"Enum field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NullType\",\"doc\":\"Null field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"MapType\",\"doc\":\"Map field type.\",\"fields\":[{\"name\":\"keyType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Key type in a map\",\"default\":null},{\"name\":\"valueType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of the value in a map\",\"default\":null}]},{\"type\":\"record\",\"name\":\"ArrayType\",\"doc\":\"Array field type.\",\"fields\":[{\"name\":\"nestedType\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types this array holds.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"UnionType\",\"doc\":\"Union field type.\",\"fields\":[{\"name\":\"nestedTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types in union type.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"RecordType\",\"doc\":\"Record field type.\",\"fields\":[]}],\"doc\":\"Data platform specific types\"}]},\"doc\":\"Platform independent field type of the field.\"},{\"name\":\"nativeDataType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native type of the field in the dataset's platform as declared by platform schema.\"},{\"name\":\"recursive\",\"type\":\"boolean\",\"doc\":\"There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.\",\"default\":false},{\"name\":\"globalTags\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}}],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"SchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"fieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit s","tamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}}],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"SchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"fieldGlossaryTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"isPartOfKey\",\"type\":\"boolean\",\"doc\":\"For schema fields that are part of complex keys, set this field to true\\nWe do this to easily distinguish between value and key fields\",\"default\":false},{\"name\":\"isPartitioningKey\",\"type\":[\"null\",\"boolean\"],\"doc\":\"For Datasets which are partitioned, this determines the partitioning key.\",\"default\":null},{\"name\":\"jsonProps\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"For schema fields that have other properties that are not modeled explicitly,\\nuse this field to serialize those properties into a JSON string\",\"default\":null}]}],\"doc\":\"Copied version of the referenced schema field object for indexing purposes\",\"default\":null}]}},\"doc\":\"List of fields being referenced\"}],\"Aspect\":{\"name\":\"inputFields\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** List of fields being referenced */ - @Deprecated public java.util.List fields; - - /** - * 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 InputFields() {} - - /** - * All-args constructor. - */ - public InputFields(java.util.List fields) { - this.fields = fields; - } - - 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 fields; - 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: fields = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'fields' field. - * List of fields being referenced */ - public java.util.List getFields() { - return fields; - } - - /** - * Sets the value of the 'fields' field. - * List of fields being referenced * @param value the value to set. - */ - public void setFields(java.util.List value) { - this.fields = value; - } - - /** Creates a new InputFields RecordBuilder */ - public static com.linkedin.pegasus2avro.common.InputFields.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.InputFields.Builder(); - } - - /** Creates a new InputFields RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.InputFields.Builder newBuilder(com.linkedin.pegasus2avro.common.InputFields.Builder other) { - return new com.linkedin.pegasus2avro.common.InputFields.Builder(other); - } - - /** Creates a new InputFields RecordBuilder by copying an existing InputFields instance */ - public static com.linkedin.pegasus2avro.common.InputFields.Builder newBuilder(com.linkedin.pegasus2avro.common.InputFields other) { - return new com.linkedin.pegasus2avro.common.InputFields.Builder(other); - } - - /** - * RecordBuilder for InputFields instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List fields; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.InputFields.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.InputFields.Builder other) { - super(other); - if (isValidValue(fields()[0], other.fields)) { - this.fields = data().deepCopy(fields()[0].schema(), other.fields); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing InputFields instance */ - private Builder(com.linkedin.pegasus2avro.common.InputFields other) { - super(com.linkedin.pegasus2avro.common.InputFields.SCHEMA$); - if (isValidValue(fields()[0], other.fields)) { - this.fields = data().deepCopy(fields()[0].schema(), other.fields); - fieldSetFlags()[0] = true; - } - } - - /** 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.common.InputFields.Builder setFields(java.util.List value) { - validate(fields()[0], value); - this.fields = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'fields' field has been set */ - public boolean hasFields() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'fields' field */ - public com.linkedin.pegasus2avro.common.InputFields.Builder clearFields() { - fields = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public InputFields build() { - try { - InputFields record = new InputFields(); - record.fields = fieldSetFlags()[0] ? this.fields : (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/InstitutionalMemory.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/InstitutionalMemory.java deleted file mode 100644 index eb930ddd34f1f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/InstitutionalMemory.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity. */ -@org.apache.avro.specific.AvroGenerated -public class InstitutionalMemory 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\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"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 associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record. */ - @Deprecated public java.util.List elements; - - /** - * 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 InstitutionalMemory() {} - - /** - * All-args constructor. - */ - public InstitutionalMemory(java.util.List elements) { - this.elements = elements; - } - - 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 elements; - 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: elements = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'elements' field. - * List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record. */ - public java.util.List getElements() { - return elements; - } - - /** - * Sets the value of the 'elements' field. - * List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record. * @param value the value to set. - */ - public void setElements(java.util.List value) { - this.elements = value; - } - - /** Creates a new InstitutionalMemory RecordBuilder */ - public static com.linkedin.pegasus2avro.common.InstitutionalMemory.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.InstitutionalMemory.Builder(); - } - - /** Creates a new InstitutionalMemory RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.InstitutionalMemory.Builder newBuilder(com.linkedin.pegasus2avro.common.InstitutionalMemory.Builder other) { - return new com.linkedin.pegasus2avro.common.InstitutionalMemory.Builder(other); - } - - /** Creates a new InstitutionalMemory RecordBuilder by copying an existing InstitutionalMemory instance */ - public static com.linkedin.pegasus2avro.common.InstitutionalMemory.Builder newBuilder(com.linkedin.pegasus2avro.common.InstitutionalMemory other) { - return new com.linkedin.pegasus2avro.common.InstitutionalMemory.Builder(other); - } - - /** - * RecordBuilder for InstitutionalMemory instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List elements; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.InstitutionalMemory.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.InstitutionalMemory.Builder other) { - super(other); - if (isValidValue(fields()[0], other.elements)) { - this.elements = data().deepCopy(fields()[0].schema(), other.elements); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing InstitutionalMemory instance */ - private Builder(com.linkedin.pegasus2avro.common.InstitutionalMemory other) { - super(com.linkedin.pegasus2avro.common.InstitutionalMemory.SCHEMA$); - if (isValidValue(fields()[0], other.elements)) { - this.elements = data().deepCopy(fields()[0].schema(), other.elements); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'elements' field */ - public java.util.List getElements() { - return elements; - } - - /** Sets the value of the 'elements' field */ - public com.linkedin.pegasus2avro.common.InstitutionalMemory.Builder setElements(java.util.List value) { - validate(fields()[0], value); - this.elements = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'elements' field has been set */ - public boolean hasElements() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'elements' field */ - public com.linkedin.pegasus2avro.common.InstitutionalMemory.Builder clearElements() { - elements = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public InstitutionalMemory build() { - try { - InstitutionalMemory record = new InstitutionalMemory(); - record.elements = fieldSetFlags()[0] ? this.elements : (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/InstitutionalMemoryMetadata.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/InstitutionalMemoryMetadata.java deleted file mode 100644 index 2fe793988def5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/InstitutionalMemoryMetadata.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Metadata corresponding to a record of institutional memory. */ -@org.apache.avro.specific.AvroGenerated -public class InstitutionalMemoryMetadata 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\":\"InstitutionalMemoryMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"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 associated with creation of this record\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Link to an engineering design document or a wiki page. */ - @Deprecated public java.lang.String url; - /** Description of the link. */ - @Deprecated public java.lang.String description; - /** Audit stamp associated with creation of this record */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp createStamp; - - /** - * 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 InstitutionalMemoryMetadata() {} - - /** - * All-args constructor. - */ - public InstitutionalMemoryMetadata(java.lang.String url, java.lang.String description, com.linkedin.pegasus2avro.common.AuditStamp createStamp) { - this.url = url; - this.description = description; - this.createStamp = createStamp; - } - - 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 url; - case 1: return description; - case 2: return createStamp; - 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: url = (java.lang.String)value$; break; - case 1: description = (java.lang.String)value$; break; - case 2: createStamp = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'url' field. - * Link to an engineering design document or a wiki page. */ - public java.lang.String getUrl() { - return url; - } - - /** - * Sets the value of the 'url' field. - * Link to an engineering design document or a wiki page. * @param value the value to set. - */ - public void setUrl(java.lang.String value) { - this.url = value; - } - - /** - * Gets the value of the 'description' field. - * Description of the link. */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Description of the link. * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'createStamp' field. - * Audit stamp associated with creation of this record */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreateStamp() { - return createStamp; - } - - /** - * Sets the value of the 'createStamp' field. - * Audit stamp associated with creation of this record * @param value the value to set. - */ - public void setCreateStamp(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.createStamp = value; - } - - /** Creates a new InstitutionalMemoryMetadata RecordBuilder */ - public static com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder(); - } - - /** Creates a new InstitutionalMemoryMetadata RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder newBuilder(com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder other) { - return new com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder(other); - } - - /** Creates a new InstitutionalMemoryMetadata RecordBuilder by copying an existing InstitutionalMemoryMetadata instance */ - public static com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder newBuilder(com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata other) { - return new com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder(other); - } - - /** - * RecordBuilder for InstitutionalMemoryMetadata instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String url; - private java.lang.String description; - private com.linkedin.pegasus2avro.common.AuditStamp createStamp; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder other) { - super(other); - if (isValidValue(fields()[0], other.url)) { - this.url = data().deepCopy(fields()[0].schema(), other.url); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.createStamp)) { - this.createStamp = data().deepCopy(fields()[2].schema(), other.createStamp); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing InstitutionalMemoryMetadata instance */ - private Builder(com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata other) { - super(com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.SCHEMA$); - if (isValidValue(fields()[0], other.url)) { - this.url = data().deepCopy(fields()[0].schema(), other.url); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.createStamp)) { - this.createStamp = data().deepCopy(fields()[2].schema(), other.createStamp); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'url' field */ - public java.lang.String getUrl() { - return url; - } - - /** Sets the value of the 'url' field */ - public com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder setUrl(java.lang.String value) { - validate(fields()[0], value); - this.url = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'url' field has been set */ - public boolean hasUrl() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'url' field */ - public com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder clearUrl() { - url = null; - fieldSetFlags()[0] = 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.common.InstitutionalMemoryMetadata.Builder setDescription(java.lang.String value) { - validate(fields()[1], value); - this.description = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder clearDescription() { - description = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'createStamp' field */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreateStamp() { - return createStamp; - } - - /** Sets the value of the 'createStamp' field */ - public com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder setCreateStamp(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[2], value); - this.createStamp = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'createStamp' field has been set */ - public boolean hasCreateStamp() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'createStamp' field */ - public com.linkedin.pegasus2avro.common.InstitutionalMemoryMetadata.Builder clearCreateStamp() { - createStamp = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public InstitutionalMemoryMetadata build() { - try { - InstitutionalMemoryMetadata record = new InstitutionalMemoryMetadata(); - record.url = fieldSetFlags()[0] ? this.url : (java.lang.String) defaultValue(fields()[0]); - record.description = fieldSetFlags()[1] ? this.description : (java.lang.String) defaultValue(fields()[1]); - record.createStamp = fieldSetFlags()[2] ? this.createStamp : (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/MLFeatureDataType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/MLFeatureDataType.java deleted file mode 100644 index 015d9c67b21f1..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/MLFeatureDataType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** MLFeature Data Type */ -@org.apache.avro.specific.AvroGenerated -public enum MLFeatureDataType { - USELESS, NOMINAL, ORDINAL, BINARY, COUNT, TIME, INTERVAL, IMAGE, VIDEO, AUDIO, TEXT, MAP, SEQUENCE, SET, CONTINUOUS, BYTE, UNKNOWN ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"MLFeatureDataType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"MLFeature Data Type\",\"symbols\":[\"USELESS\",\"NOMINAL\",\"ORDINAL\",\"BINARY\",\"COUNT\",\"TIME\",\"INTERVAL\",\"IMAGE\",\"VIDEO\",\"AUDIO\",\"TEXT\",\"MAP\",\"SEQUENCE\",\"SET\",\"CONTINUOUS\",\"BYTE\",\"UNKNOWN\"],\"symbolDocs\":{\"AUDIO\":\"Audio Data\",\"BINARY\":\"Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc\",\"BYTE\":\"Bytes data are binary-encoded values that can represent complex objects.\",\"CONTINUOUS\":\"Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.\",\"COUNT\":\"Count data is discrete whole number data - no negative numbers here.\\nCount data often has many small values, such as zero and one.\",\"IMAGE\":\"Image Data\",\"INTERVAL\":\"Interval data has equal spaces between the numbers and does not represent a temporal pattern.\\nExamples include percentages, temperatures, and income.\",\"MAP\":\"Mapping Data Type ex: dict, map\",\"NOMINAL\":\"Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.\",\"ORDINAL\":\"Ordinal data are discrete integers that can be ranked or sorted.\\nFor example, the distance between first and second may not be the same as the distance between second and third.\",\"SEQUENCE\":\"Sequence Data Type ex: list, tuple, range\",\"SET\":\"Set Data Type ex: set, frozenset\",\"TEXT\":\"Text Data\",\"TIME\":\"Time data is a cyclical, repeating continuous form of data.\\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.\",\"UNKNOWN\":\"Unknown data are data that we don't know the type for.\",\"USELESS\":\"Useless data is unique, discrete data with no potential relationship with the outcome variable.\\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.\",\"VIDEO\":\"Video Data\"}}"); - 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/Media.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Media.java deleted file mode 100644 index 5cdc1b7f43d8c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Media.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Carries information about which roles a user is assigned to. */ -@org.apache.avro.specific.AvroGenerated -public class Media 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\":\"Media\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Carries information about which roles a user is assigned to.\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"MediaType\",\"doc\":\"Enum defining the type of content a Media object holds.\",\"symbols\":[\"IMAGE\"],\"symbolDocs\":{\"IMAGE\":\"The Media holds an image.\"}},\"doc\":\"Type of content the Media is storing, e.g. image, video, etc.\"},{\"name\":\"location\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Where the media content is stored.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Type of content the Media is storing, e.g. image, video, etc. */ - @Deprecated public com.linkedin.pegasus2avro.common.MediaType type; - /** Where the media content is stored. */ - @Deprecated public java.lang.String location; - - /** - * 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 Media() {} - - /** - * All-args constructor. - */ - public Media(com.linkedin.pegasus2avro.common.MediaType type, java.lang.String location) { - this.type = type; - this.location = location; - } - - 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 location; - 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.common.MediaType)value$; break; - case 1: location = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * Type of content the Media is storing, e.g. image, video, etc. */ - public com.linkedin.pegasus2avro.common.MediaType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Type of content the Media is storing, e.g. image, video, etc. * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.common.MediaType value) { - this.type = value; - } - - /** - * Gets the value of the 'location' field. - * Where the media content is stored. */ - public java.lang.String getLocation() { - return location; - } - - /** - * Sets the value of the 'location' field. - * Where the media content is stored. * @param value the value to set. - */ - public void setLocation(java.lang.String value) { - this.location = value; - } - - /** Creates a new Media RecordBuilder */ - public static com.linkedin.pegasus2avro.common.Media.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.Media.Builder(); - } - - /** Creates a new Media RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.Media.Builder newBuilder(com.linkedin.pegasus2avro.common.Media.Builder other) { - return new com.linkedin.pegasus2avro.common.Media.Builder(other); - } - - /** Creates a new Media RecordBuilder by copying an existing Media instance */ - public static com.linkedin.pegasus2avro.common.Media.Builder newBuilder(com.linkedin.pegasus2avro.common.Media other) { - return new com.linkedin.pegasus2avro.common.Media.Builder(other); - } - - /** - * RecordBuilder for Media instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.common.MediaType type; - private java.lang.String location; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.Media.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.Media.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.location)) { - this.location = data().deepCopy(fields()[1].schema(), other.location); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing Media instance */ - private Builder(com.linkedin.pegasus2avro.common.Media other) { - super(com.linkedin.pegasus2avro.common.Media.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.location)) { - this.location = data().deepCopy(fields()[1].schema(), other.location); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.common.MediaType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.common.Media.Builder setType(com.linkedin.pegasus2avro.common.MediaType 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.common.Media.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'location' field */ - public java.lang.String getLocation() { - return location; - } - - /** Sets the value of the 'location' field */ - public com.linkedin.pegasus2avro.common.Media.Builder setLocation(java.lang.String value) { - validate(fields()[1], value); - this.location = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'location' field has been set */ - public boolean hasLocation() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'location' field */ - public com.linkedin.pegasus2avro.common.Media.Builder clearLocation() { - location = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public Media build() { - try { - Media record = new Media(); - record.type = fieldSetFlags()[0] ? this.type : (com.linkedin.pegasus2avro.common.MediaType) defaultValue(fields()[0]); - record.location = fieldSetFlags()[1] ? this.location : (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/MediaType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/MediaType.java deleted file mode 100644 index 52d758cf3f87c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/MediaType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Enum defining the type of content a Media object holds. */ -@org.apache.avro.specific.AvroGenerated -public enum MediaType { - IMAGE ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"MediaType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Enum defining the type of content a Media object holds.\",\"symbols\":[\"IMAGE\"],\"symbolDocs\":{\"IMAGE\":\"The Media holds an image.\"}}"); - 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/Operation.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Operation.java deleted file mode 100644 index 9e5d18099868e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Operation.java +++ /dev/null @@ -1,747 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Operational info for an entity. */ -@org.apache.avro.specific.AvroGenerated -public class Operation 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\":\"Operation\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Operational info for an entity.\",\"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\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Actor who issued this operation.\",\"default\":null,\"TimeseriesField\":{},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"operationType\",\"type\":{\"type\":\"enum\",\"name\":\"OperationType\",\"doc\":\"Enum to define the operation type when an entity changes.\",\"symbols\":[\"INSERT\",\"UPDATE\",\"DELETE\",\"CREATE\",\"ALTER\",\"DROP\",\"CUSTOM\",\"UNKNOWN\"],\"symbolDocs\":{\"ALTER\":\"Asset was altered\",\"CREATE\":\"Asset was created\",\"CUSTOM\":\"Custom asset operation\",\"DELETE\":\"Rows were deleted\",\"DROP\":\"Asset was dropped\",\"INSERT\":\"Rows were inserted\",\"UPDATE\":\"Rows were updated\"}},\"doc\":\"Operation type of change.\",\"TimeseriesField\":{}},{\"name\":\"customOperationType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A custom type of operation. Required if operationType is CUSTOM.\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"numAffectedRows\",\"type\":[\"null\",\"long\"],\"doc\":\"How many rows were affected by this operation.\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"affectedDatasets\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Which other datasets were affected by this operation.\",\"default\":null,\"TimeseriesFieldCollection\":{\"key\":\"datasetName\"}},{\"name\":\"sourceType\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"OperationSourceType\",\"doc\":\"The source of an operation\",\"symbols\":[\"DATA_PROCESS\",\"DATA_PLATFORM\"],\"symbolDocs\":{\"DATA_PLATFORM\":\"Rows were updated\",\"DATA_PROCESS\":\"Provided by a Data Process\"}}],\"doc\":\"Source Type\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"customProperties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Custom properties\",\"default\":null},{\"name\":\"lastUpdatedTimestamp\",\"type\":\"long\",\"doc\":\"The time at which the operation occurred. Would be better named 'operationTime'\",\"Searchable\":{\"fieldName\":\"lastOperationTime\",\"fieldType\":\"DATETIME\"},\"TimeseriesField\":{}}],\"Aspect\":{\"name\":\"operation\",\"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; - /** Actor who issued this operation. */ - @Deprecated public java.lang.String actor; - /** Operation type of change. */ - @Deprecated public com.linkedin.pegasus2avro.common.OperationType operationType; - /** A custom type of operation. Required if operationType is CUSTOM. */ - @Deprecated public java.lang.String customOperationType; - /** How many rows were affected by this operation. */ - @Deprecated public java.lang.Long numAffectedRows; - /** Which other datasets were affected by this operation. */ - @Deprecated public java.util.List affectedDatasets; - /** Source Type */ - @Deprecated public com.linkedin.pegasus2avro.common.OperationSourceType sourceType; - /** Custom properties */ - @Deprecated public java.util.Map customProperties; - /** The time at which the operation occurred. Would be better named 'operationTime' */ - @Deprecated public long lastUpdatedTimestamp; - - /** - * 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 Operation() {} - - /** - * All-args constructor. - */ - public Operation(java.lang.Long timestampMillis, com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity, com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec, java.lang.String messageId, java.lang.String actor, com.linkedin.pegasus2avro.common.OperationType operationType, java.lang.String customOperationType, java.lang.Long numAffectedRows, java.util.List affectedDatasets, com.linkedin.pegasus2avro.common.OperationSourceType sourceType, java.util.Map customProperties, java.lang.Long lastUpdatedTimestamp) { - this.timestampMillis = timestampMillis; - this.eventGranularity = eventGranularity; - this.partitionSpec = partitionSpec; - this.messageId = messageId; - this.actor = actor; - this.operationType = operationType; - this.customOperationType = customOperationType; - this.numAffectedRows = numAffectedRows; - this.affectedDatasets = affectedDatasets; - this.sourceType = sourceType; - this.customProperties = customProperties; - this.lastUpdatedTimestamp = lastUpdatedTimestamp; - } - - 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 actor; - case 5: return operationType; - case 6: return customOperationType; - case 7: return numAffectedRows; - case 8: return affectedDatasets; - case 9: return sourceType; - case 10: return customProperties; - case 11: return lastUpdatedTimestamp; - 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: actor = (java.lang.String)value$; break; - case 5: operationType = (com.linkedin.pegasus2avro.common.OperationType)value$; break; - case 6: customOperationType = (java.lang.String)value$; break; - case 7: numAffectedRows = (java.lang.Long)value$; break; - case 8: affectedDatasets = (java.util.List)value$; break; - case 9: sourceType = (com.linkedin.pegasus2avro.common.OperationSourceType)value$; break; - case 10: customProperties = (java.util.Map)value$; break; - case 11: lastUpdatedTimestamp = (java.lang.Long)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 'actor' field. - * Actor who issued this operation. */ - public java.lang.String getActor() { - return actor; - } - - /** - * Sets the value of the 'actor' field. - * Actor who issued this operation. * @param value the value to set. - */ - public void setActor(java.lang.String value) { - this.actor = value; - } - - /** - * Gets the value of the 'operationType' field. - * Operation type of change. */ - public com.linkedin.pegasus2avro.common.OperationType getOperationType() { - return operationType; - } - - /** - * Sets the value of the 'operationType' field. - * Operation type of change. * @param value the value to set. - */ - public void setOperationType(com.linkedin.pegasus2avro.common.OperationType value) { - this.operationType = value; - } - - /** - * Gets the value of the 'customOperationType' field. - * A custom type of operation. Required if operationType is CUSTOM. */ - public java.lang.String getCustomOperationType() { - return customOperationType; - } - - /** - * Sets the value of the 'customOperationType' field. - * A custom type of operation. Required if operationType is CUSTOM. * @param value the value to set. - */ - public void setCustomOperationType(java.lang.String value) { - this.customOperationType = value; - } - - /** - * Gets the value of the 'numAffectedRows' field. - * How many rows were affected by this operation. */ - public java.lang.Long getNumAffectedRows() { - return numAffectedRows; - } - - /** - * Sets the value of the 'numAffectedRows' field. - * How many rows were affected by this operation. * @param value the value to set. - */ - public void setNumAffectedRows(java.lang.Long value) { - this.numAffectedRows = value; - } - - /** - * Gets the value of the 'affectedDatasets' field. - * Which other datasets were affected by this operation. */ - public java.util.List getAffectedDatasets() { - return affectedDatasets; - } - - /** - * Sets the value of the 'affectedDatasets' field. - * Which other datasets were affected by this operation. * @param value the value to set. - */ - public void setAffectedDatasets(java.util.List value) { - this.affectedDatasets = value; - } - - /** - * Gets the value of the 'sourceType' field. - * Source Type */ - public com.linkedin.pegasus2avro.common.OperationSourceType getSourceType() { - return sourceType; - } - - /** - * Sets the value of the 'sourceType' field. - * Source Type * @param value the value to set. - */ - public void setSourceType(com.linkedin.pegasus2avro.common.OperationSourceType value) { - this.sourceType = value; - } - - /** - * Gets the value of the 'customProperties' field. - * Custom properties */ - public java.util.Map getCustomProperties() { - return customProperties; - } - - /** - * Sets the value of the 'customProperties' field. - * Custom properties * @param value the value to set. - */ - public void setCustomProperties(java.util.Map value) { - this.customProperties = value; - } - - /** - * Gets the value of the 'lastUpdatedTimestamp' field. - * The time at which the operation occurred. Would be better named 'operationTime' */ - public java.lang.Long getLastUpdatedTimestamp() { - return lastUpdatedTimestamp; - } - - /** - * Sets the value of the 'lastUpdatedTimestamp' field. - * The time at which the operation occurred. Would be better named 'operationTime' * @param value the value to set. - */ - public void setLastUpdatedTimestamp(java.lang.Long value) { - this.lastUpdatedTimestamp = value; - } - - /** Creates a new Operation RecordBuilder */ - public static com.linkedin.pegasus2avro.common.Operation.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.Operation.Builder(); - } - - /** Creates a new Operation RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.Operation.Builder newBuilder(com.linkedin.pegasus2avro.common.Operation.Builder other) { - return new com.linkedin.pegasus2avro.common.Operation.Builder(other); - } - - /** Creates a new Operation RecordBuilder by copying an existing Operation instance */ - public static com.linkedin.pegasus2avro.common.Operation.Builder newBuilder(com.linkedin.pegasus2avro.common.Operation other) { - return new com.linkedin.pegasus2avro.common.Operation.Builder(other); - } - - /** - * RecordBuilder for Operation 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 actor; - private com.linkedin.pegasus2avro.common.OperationType operationType; - private java.lang.String customOperationType; - private java.lang.Long numAffectedRows; - private java.util.List affectedDatasets; - private com.linkedin.pegasus2avro.common.OperationSourceType sourceType; - private java.util.Map customProperties; - private long lastUpdatedTimestamp; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.Operation.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.Operation.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.actor)) { - this.actor = data().deepCopy(fields()[4].schema(), other.actor); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.operationType)) { - this.operationType = data().deepCopy(fields()[5].schema(), other.operationType); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.customOperationType)) { - this.customOperationType = data().deepCopy(fields()[6].schema(), other.customOperationType); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.numAffectedRows)) { - this.numAffectedRows = data().deepCopy(fields()[7].schema(), other.numAffectedRows); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.affectedDatasets)) { - this.affectedDatasets = data().deepCopy(fields()[8].schema(), other.affectedDatasets); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.sourceType)) { - this.sourceType = data().deepCopy(fields()[9].schema(), other.sourceType); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.customProperties)) { - this.customProperties = data().deepCopy(fields()[10].schema(), other.customProperties); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.lastUpdatedTimestamp)) { - this.lastUpdatedTimestamp = data().deepCopy(fields()[11].schema(), other.lastUpdatedTimestamp); - fieldSetFlags()[11] = true; - } - } - - /** Creates a Builder by copying an existing Operation instance */ - private Builder(com.linkedin.pegasus2avro.common.Operation other) { - super(com.linkedin.pegasus2avro.common.Operation.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.actor)) { - this.actor = data().deepCopy(fields()[4].schema(), other.actor); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.operationType)) { - this.operationType = data().deepCopy(fields()[5].schema(), other.operationType); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.customOperationType)) { - this.customOperationType = data().deepCopy(fields()[6].schema(), other.customOperationType); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.numAffectedRows)) { - this.numAffectedRows = data().deepCopy(fields()[7].schema(), other.numAffectedRows); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.affectedDatasets)) { - this.affectedDatasets = data().deepCopy(fields()[8].schema(), other.affectedDatasets); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.sourceType)) { - this.sourceType = data().deepCopy(fields()[9].schema(), other.sourceType); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.customProperties)) { - this.customProperties = data().deepCopy(fields()[10].schema(), other.customProperties); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.lastUpdatedTimestamp)) { - this.lastUpdatedTimestamp = data().deepCopy(fields()[11].schema(), other.lastUpdatedTimestamp); - fieldSetFlags()[11] = 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.common.Operation.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.common.Operation.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.common.Operation.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.common.Operation.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.common.Operation.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.common.Operation.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.common.Operation.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.common.Operation.Builder clearMessageId() { - messageId = null; - fieldSetFlags()[3] = 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.Operation.Builder setActor(java.lang.String value) { - validate(fields()[4], value); - this.actor = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'actor' field has been set */ - public boolean hasActor() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'actor' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder clearActor() { - actor = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'operationType' field */ - public com.linkedin.pegasus2avro.common.OperationType getOperationType() { - return operationType; - } - - /** Sets the value of the 'operationType' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder setOperationType(com.linkedin.pegasus2avro.common.OperationType value) { - validate(fields()[5], value); - this.operationType = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'operationType' field has been set */ - public boolean hasOperationType() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'operationType' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder clearOperationType() { - operationType = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'customOperationType' field */ - public java.lang.String getCustomOperationType() { - return customOperationType; - } - - /** Sets the value of the 'customOperationType' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder setCustomOperationType(java.lang.String value) { - validate(fields()[6], value); - this.customOperationType = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'customOperationType' field has been set */ - public boolean hasCustomOperationType() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'customOperationType' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder clearCustomOperationType() { - customOperationType = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'numAffectedRows' field */ - public java.lang.Long getNumAffectedRows() { - return numAffectedRows; - } - - /** Sets the value of the 'numAffectedRows' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder setNumAffectedRows(java.lang.Long value) { - validate(fields()[7], value); - this.numAffectedRows = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'numAffectedRows' field has been set */ - public boolean hasNumAffectedRows() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'numAffectedRows' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder clearNumAffectedRows() { - numAffectedRows = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'affectedDatasets' field */ - public java.util.List getAffectedDatasets() { - return affectedDatasets; - } - - /** Sets the value of the 'affectedDatasets' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder setAffectedDatasets(java.util.List value) { - validate(fields()[8], value); - this.affectedDatasets = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'affectedDatasets' field has been set */ - public boolean hasAffectedDatasets() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'affectedDatasets' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder clearAffectedDatasets() { - affectedDatasets = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'sourceType' field */ - public com.linkedin.pegasus2avro.common.OperationSourceType getSourceType() { - return sourceType; - } - - /** Sets the value of the 'sourceType' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder setSourceType(com.linkedin.pegasus2avro.common.OperationSourceType value) { - validate(fields()[9], value); - this.sourceType = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'sourceType' field has been set */ - public boolean hasSourceType() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'sourceType' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder clearSourceType() { - sourceType = null; - fieldSetFlags()[9] = false; - return this; - } - - /** 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.Operation.Builder setCustomProperties(java.util.Map value) { - validate(fields()[10], value); - this.customProperties = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'customProperties' field has been set */ - public boolean hasCustomProperties() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'customProperties' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder clearCustomProperties() { - customProperties = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'lastUpdatedTimestamp' field */ - public java.lang.Long getLastUpdatedTimestamp() { - return lastUpdatedTimestamp; - } - - /** Sets the value of the 'lastUpdatedTimestamp' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder setLastUpdatedTimestamp(long value) { - validate(fields()[11], value); - this.lastUpdatedTimestamp = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'lastUpdatedTimestamp' field has been set */ - public boolean hasLastUpdatedTimestamp() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'lastUpdatedTimestamp' field */ - public com.linkedin.pegasus2avro.common.Operation.Builder clearLastUpdatedTimestamp() { - fieldSetFlags()[11] = false; - return this; - } - - @Override - public Operation build() { - try { - Operation record = new Operation(); - 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.actor = fieldSetFlags()[4] ? this.actor : (java.lang.String) defaultValue(fields()[4]); - record.operationType = fieldSetFlags()[5] ? this.operationType : (com.linkedin.pegasus2avro.common.OperationType) defaultValue(fields()[5]); - record.customOperationType = fieldSetFlags()[6] ? this.customOperationType : (java.lang.String) defaultValue(fields()[6]); - record.numAffectedRows = fieldSetFlags()[7] ? this.numAffectedRows : (java.lang.Long) defaultValue(fields()[7]); - record.affectedDatasets = fieldSetFlags()[8] ? this.affectedDatasets : (java.util.List) defaultValue(fields()[8]); - record.sourceType = fieldSetFlags()[9] ? this.sourceType : (com.linkedin.pegasus2avro.common.OperationSourceType) defaultValue(fields()[9]); - record.customProperties = fieldSetFlags()[10] ? this.customProperties : (java.util.Map) defaultValue(fields()[10]); - record.lastUpdatedTimestamp = fieldSetFlags()[11] ? this.lastUpdatedTimestamp : (java.lang.Long) defaultValue(fields()[11]); - 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/OperationSourceType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OperationSourceType.java deleted file mode 100644 index ec389a2dc8f47..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OperationSourceType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** The source of an operation */ -@org.apache.avro.specific.AvroGenerated -public enum OperationSourceType { - DATA_PROCESS, DATA_PLATFORM ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"OperationSourceType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The source of an operation\",\"symbols\":[\"DATA_PROCESS\",\"DATA_PLATFORM\"],\"symbolDocs\":{\"DATA_PLATFORM\":\"Rows were updated\",\"DATA_PROCESS\":\"Provided by a Data Process\"}}"); - 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/OperationType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OperationType.java deleted file mode 100644 index 026e75a18dc95..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OperationType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Enum to define the operation type when an entity changes. */ -@org.apache.avro.specific.AvroGenerated -public enum OperationType { - INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, CUSTOM, UNKNOWN ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"OperationType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Enum to define the operation type when an entity changes.\",\"symbols\":[\"INSERT\",\"UPDATE\",\"DELETE\",\"CREATE\",\"ALTER\",\"DROP\",\"CUSTOM\",\"UNKNOWN\"],\"symbolDocs\":{\"ALTER\":\"Asset was altered\",\"CREATE\":\"Asset was created\",\"CUSTOM\":\"Custom asset operation\",\"DELETE\":\"Rows were deleted\",\"DROP\":\"Asset was dropped\",\"INSERT\":\"Rows were inserted\",\"UPDATE\":\"Rows were updated\"}}"); - 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/Origin.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Origin.java deleted file mode 100644 index 3d4fc4225319b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Origin.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Carries information about where an entity originated from. */ -@org.apache.avro.specific.AvroGenerated -public class Origin 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\":\"Origin\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Carries information about where an entity originated from.\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OriginType\",\"doc\":\"Enum to define where an entity originated from.\",\"symbols\":[\"NATIVE\",\"EXTERNAL\"],\"symbolDocs\":{\"EXTERNAL\":\"The entity is external to DataHub.\",\"NATIVE\":\"The entity is native to DataHub.\"}},\"doc\":\"Where an entity originated from. Either NATIVE or EXTERNAL.\"},{\"name\":\"externalType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Only populated if type is EXTERNAL. The externalType of the entity, such as the name of the identity provider.\",\"default\":null}],\"Aspect\":{\"name\":\"origin\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Where an entity originated from. Either NATIVE or EXTERNAL. */ - @Deprecated public com.linkedin.pegasus2avro.common.OriginType type; - /** Only populated if type is EXTERNAL. The externalType of the entity, such as the name of the identity provider. */ - @Deprecated public java.lang.String externalType; - - /** - * 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 Origin() {} - - /** - * All-args constructor. - */ - public Origin(com.linkedin.pegasus2avro.common.OriginType type, java.lang.String externalType) { - this.type = type; - this.externalType = externalType; - } - - 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 externalType; - 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.common.OriginType)value$; break; - case 1: externalType = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * Where an entity originated from. Either NATIVE or EXTERNAL. */ - public com.linkedin.pegasus2avro.common.OriginType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Where an entity originated from. Either NATIVE or EXTERNAL. * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.common.OriginType value) { - this.type = value; - } - - /** - * Gets the value of the 'externalType' field. - * Only populated if type is EXTERNAL. The externalType of the entity, such as the name of the identity provider. */ - public java.lang.String getExternalType() { - return externalType; - } - - /** - * Sets the value of the 'externalType' field. - * Only populated if type is EXTERNAL. The externalType of the entity, such as the name of the identity provider. * @param value the value to set. - */ - public void setExternalType(java.lang.String value) { - this.externalType = value; - } - - /** Creates a new Origin RecordBuilder */ - public static com.linkedin.pegasus2avro.common.Origin.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.Origin.Builder(); - } - - /** Creates a new Origin RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.Origin.Builder newBuilder(com.linkedin.pegasus2avro.common.Origin.Builder other) { - return new com.linkedin.pegasus2avro.common.Origin.Builder(other); - } - - /** Creates a new Origin RecordBuilder by copying an existing Origin instance */ - public static com.linkedin.pegasus2avro.common.Origin.Builder newBuilder(com.linkedin.pegasus2avro.common.Origin other) { - return new com.linkedin.pegasus2avro.common.Origin.Builder(other); - } - - /** - * RecordBuilder for Origin instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.common.OriginType type; - private java.lang.String externalType; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.Origin.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.Origin.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.externalType)) { - this.externalType = data().deepCopy(fields()[1].schema(), other.externalType); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing Origin instance */ - private Builder(com.linkedin.pegasus2avro.common.Origin other) { - super(com.linkedin.pegasus2avro.common.Origin.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.externalType)) { - this.externalType = data().deepCopy(fields()[1].schema(), other.externalType); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.common.OriginType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.common.Origin.Builder setType(com.linkedin.pegasus2avro.common.OriginType 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.common.Origin.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'externalType' field */ - public java.lang.String getExternalType() { - return externalType; - } - - /** Sets the value of the 'externalType' field */ - public com.linkedin.pegasus2avro.common.Origin.Builder setExternalType(java.lang.String value) { - validate(fields()[1], value); - this.externalType = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'externalType' field has been set */ - public boolean hasExternalType() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'externalType' field */ - public com.linkedin.pegasus2avro.common.Origin.Builder clearExternalType() { - externalType = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public Origin build() { - try { - Origin record = new Origin(); - record.type = fieldSetFlags()[0] ? this.type : (com.linkedin.pegasus2avro.common.OriginType) defaultValue(fields()[0]); - record.externalType = fieldSetFlags()[1] ? this.externalType : (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/OriginType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OriginType.java deleted file mode 100644 index e02cde4dc6667..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OriginType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Enum to define where an entity originated from. */ -@org.apache.avro.specific.AvroGenerated -public enum OriginType { - NATIVE, EXTERNAL ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"OriginType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Enum to define where an entity originated from.\",\"symbols\":[\"NATIVE\",\"EXTERNAL\"],\"symbolDocs\":{\"EXTERNAL\":\"The entity is external to DataHub.\",\"NATIVE\":\"The entity is native to DataHub.\"}}"); - 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/Owner.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Owner.java deleted file mode 100644 index cd0d37f9488fb..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Owner.java +++ /dev/null @@ -1,257 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Ownership information */ -@org.apache.avro.specific.AvroGenerated -public class Owner 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\":\"Owner\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name -(Caveat: only corpuser is currently supported in the frontend.) */ - @Deprecated public java.lang.String owner; - /** The type of the ownership */ - @Deprecated public com.linkedin.pegasus2avro.common.OwnershipType type; - /** Source information for the ownership */ - @Deprecated public com.linkedin.pegasus2avro.common.OwnershipSource source; - - /** - * 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 Owner() {} - - /** - * All-args constructor. - */ - public Owner(java.lang.String owner, com.linkedin.pegasus2avro.common.OwnershipType type, com.linkedin.pegasus2avro.common.OwnershipSource source) { - this.owner = owner; - this.type = type; - this.source = source; - } - - 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 owner; - case 1: return type; - case 2: return source; - 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: owner = (java.lang.String)value$; break; - case 1: type = (com.linkedin.pegasus2avro.common.OwnershipType)value$; break; - case 2: source = (com.linkedin.pegasus2avro.common.OwnershipSource)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'owner' field. - * Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name -(Caveat: only corpuser is currently supported in the frontend.) */ - public java.lang.String getOwner() { - return owner; - } - - /** - * Sets the value of the 'owner' field. - * Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name -(Caveat: only corpuser is currently supported in the frontend.) * @param value the value to set. - */ - public void setOwner(java.lang.String value) { - this.owner = value; - } - - /** - * Gets the value of the 'type' field. - * The type of the ownership */ - public com.linkedin.pegasus2avro.common.OwnershipType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of the ownership * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.common.OwnershipType value) { - this.type = value; - } - - /** - * Gets the value of the 'source' field. - * Source information for the ownership */ - public com.linkedin.pegasus2avro.common.OwnershipSource getSource() { - return source; - } - - /** - * Sets the value of the 'source' field. - * Source information for the ownership * @param value the value to set. - */ - public void setSource(com.linkedin.pegasus2avro.common.OwnershipSource value) { - this.source = value; - } - - /** Creates a new Owner RecordBuilder */ - public static com.linkedin.pegasus2avro.common.Owner.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.Owner.Builder(); - } - - /** Creates a new Owner RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.Owner.Builder newBuilder(com.linkedin.pegasus2avro.common.Owner.Builder other) { - return new com.linkedin.pegasus2avro.common.Owner.Builder(other); - } - - /** Creates a new Owner RecordBuilder by copying an existing Owner instance */ - public static com.linkedin.pegasus2avro.common.Owner.Builder newBuilder(com.linkedin.pegasus2avro.common.Owner other) { - return new com.linkedin.pegasus2avro.common.Owner.Builder(other); - } - - /** - * RecordBuilder for Owner instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String owner; - private com.linkedin.pegasus2avro.common.OwnershipType type; - private com.linkedin.pegasus2avro.common.OwnershipSource source; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.Owner.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.Owner.Builder other) { - super(other); - if (isValidValue(fields()[0], other.owner)) { - this.owner = data().deepCopy(fields()[0].schema(), other.owner); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.type)) { - this.type = data().deepCopy(fields()[1].schema(), other.type); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.source)) { - this.source = data().deepCopy(fields()[2].schema(), other.source); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing Owner instance */ - private Builder(com.linkedin.pegasus2avro.common.Owner other) { - super(com.linkedin.pegasus2avro.common.Owner.SCHEMA$); - if (isValidValue(fields()[0], other.owner)) { - this.owner = data().deepCopy(fields()[0].schema(), other.owner); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.type)) { - this.type = data().deepCopy(fields()[1].schema(), other.type); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.source)) { - this.source = data().deepCopy(fields()[2].schema(), other.source); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'owner' field */ - public java.lang.String getOwner() { - return owner; - } - - /** Sets the value of the 'owner' field */ - public com.linkedin.pegasus2avro.common.Owner.Builder setOwner(java.lang.String value) { - validate(fields()[0], value); - this.owner = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'owner' field has been set */ - public boolean hasOwner() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'owner' field */ - public com.linkedin.pegasus2avro.common.Owner.Builder clearOwner() { - owner = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.common.OwnershipType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.common.Owner.Builder setType(com.linkedin.pegasus2avro.common.OwnershipType 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.common.Owner.Builder clearType() { - type = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'source' field */ - public com.linkedin.pegasus2avro.common.OwnershipSource getSource() { - return source; - } - - /** Sets the value of the 'source' field */ - public com.linkedin.pegasus2avro.common.Owner.Builder setSource(com.linkedin.pegasus2avro.common.OwnershipSource value) { - validate(fields()[2], value); - this.source = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'source' field has been set */ - public boolean hasSource() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'source' field */ - public com.linkedin.pegasus2avro.common.Owner.Builder clearSource() { - source = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public Owner build() { - try { - Owner record = new Owner(); - record.owner = fieldSetFlags()[0] ? this.owner : (java.lang.String) defaultValue(fields()[0]); - record.type = fieldSetFlags()[1] ? this.type : (com.linkedin.pegasus2avro.common.OwnershipType) defaultValue(fields()[1]); - record.source = fieldSetFlags()[2] ? this.source : (com.linkedin.pegasus2avro.common.OwnershipSource) 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/Ownership.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Ownership.java deleted file mode 100644 index a07a529050e28..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Ownership.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Ownership information of an entity. */ -@org.apache.avro.specific.AvroGenerated -public class Ownership 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\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"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 last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** List of owners of the entity. */ - @Deprecated public java.util.List owners; - /** Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data. */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp lastModified; - - /** - * 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 Ownership() {} - - /** - * All-args constructor. - */ - public Ownership(java.util.List owners, com.linkedin.pegasus2avro.common.AuditStamp lastModified) { - this.owners = owners; - this.lastModified = lastModified; - } - - 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 owners; - case 1: return lastModified; - 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: owners = (java.util.List)value$; break; - case 1: lastModified = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'owners' field. - * List of owners of the entity. */ - public java.util.List getOwners() { - return owners; - } - - /** - * Sets the value of the 'owners' field. - * List of owners of the entity. * @param value the value to set. - */ - public void setOwners(java.util.List value) { - this.owners = value; - } - - /** - * Gets the value of the 'lastModified' field. - * Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data. */ - public com.linkedin.pegasus2avro.common.AuditStamp getLastModified() { - return lastModified; - } - - /** - * Sets the value of the 'lastModified' field. - * Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data. * @param value the value to set. - */ - public void setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.lastModified = value; - } - - /** Creates a new Ownership RecordBuilder */ - public static com.linkedin.pegasus2avro.common.Ownership.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.Ownership.Builder(); - } - - /** Creates a new Ownership RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.Ownership.Builder newBuilder(com.linkedin.pegasus2avro.common.Ownership.Builder other) { - return new com.linkedin.pegasus2avro.common.Ownership.Builder(other); - } - - /** Creates a new Ownership RecordBuilder by copying an existing Ownership instance */ - public static com.linkedin.pegasus2avro.common.Ownership.Builder newBuilder(com.linkedin.pegasus2avro.common.Ownership other) { - return new com.linkedin.pegasus2avro.common.Ownership.Builder(other); - } - - /** - * RecordBuilder for Ownership instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List owners; - private com.linkedin.pegasus2avro.common.AuditStamp lastModified; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.Ownership.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.Ownership.Builder other) { - super(other); - if (isValidValue(fields()[0], other.owners)) { - this.owners = data().deepCopy(fields()[0].schema(), other.owners); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[1].schema(), other.lastModified); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing Ownership instance */ - private Builder(com.linkedin.pegasus2avro.common.Ownership other) { - super(com.linkedin.pegasus2avro.common.Ownership.SCHEMA$); - if (isValidValue(fields()[0], other.owners)) { - this.owners = data().deepCopy(fields()[0].schema(), other.owners); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[1].schema(), other.lastModified); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'owners' field */ - public java.util.List getOwners() { - return owners; - } - - /** Sets the value of the 'owners' field */ - public com.linkedin.pegasus2avro.common.Ownership.Builder setOwners(java.util.List value) { - validate(fields()[0], value); - this.owners = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'owners' field has been set */ - public boolean hasOwners() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'owners' field */ - public com.linkedin.pegasus2avro.common.Ownership.Builder clearOwners() { - owners = 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.Ownership.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.Ownership.Builder clearLastModified() { - lastModified = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public Ownership build() { - try { - Ownership record = new Ownership(); - record.owners = fieldSetFlags()[0] ? this.owners : (java.util.List) defaultValue(fields()[0]); - record.lastModified = fieldSetFlags()[1] ? this.lastModified : (com.linkedin.pegasus2avro.common.AuditStamp) 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/OwnershipSource.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OwnershipSource.java deleted file mode 100644 index 9c7d3e2e56e9b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OwnershipSource.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Source/provider of the ownership information */ -@org.apache.avro.specific.AvroGenerated -public class OwnershipSource 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\":\"OwnershipSource\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The type of the source */ - @Deprecated public com.linkedin.pegasus2avro.common.OwnershipSourceType type; - /** A reference URL for the source */ - @Deprecated public java.lang.String url; - - /** - * 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 OwnershipSource() {} - - /** - * All-args constructor. - */ - public OwnershipSource(com.linkedin.pegasus2avro.common.OwnershipSourceType type, java.lang.String url) { - this.type = type; - this.url = url; - } - - 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 url; - 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.common.OwnershipSourceType)value$; break; - case 1: url = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * The type of the source */ - public com.linkedin.pegasus2avro.common.OwnershipSourceType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of the source * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.common.OwnershipSourceType value) { - this.type = value; - } - - /** - * Gets the value of the 'url' field. - * A reference URL for the source */ - public java.lang.String getUrl() { - return url; - } - - /** - * Sets the value of the 'url' field. - * A reference URL for the source * @param value the value to set. - */ - public void setUrl(java.lang.String value) { - this.url = value; - } - - /** Creates a new OwnershipSource RecordBuilder */ - public static com.linkedin.pegasus2avro.common.OwnershipSource.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.OwnershipSource.Builder(); - } - - /** Creates a new OwnershipSource RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.OwnershipSource.Builder newBuilder(com.linkedin.pegasus2avro.common.OwnershipSource.Builder other) { - return new com.linkedin.pegasus2avro.common.OwnershipSource.Builder(other); - } - - /** Creates a new OwnershipSource RecordBuilder by copying an existing OwnershipSource instance */ - public static com.linkedin.pegasus2avro.common.OwnershipSource.Builder newBuilder(com.linkedin.pegasus2avro.common.OwnershipSource other) { - return new com.linkedin.pegasus2avro.common.OwnershipSource.Builder(other); - } - - /** - * RecordBuilder for OwnershipSource instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.common.OwnershipSourceType type; - private java.lang.String url; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.OwnershipSource.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.OwnershipSource.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.url)) { - this.url = data().deepCopy(fields()[1].schema(), other.url); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing OwnershipSource instance */ - private Builder(com.linkedin.pegasus2avro.common.OwnershipSource other) { - super(com.linkedin.pegasus2avro.common.OwnershipSource.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.url)) { - this.url = data().deepCopy(fields()[1].schema(), other.url); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.common.OwnershipSourceType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.common.OwnershipSource.Builder setType(com.linkedin.pegasus2avro.common.OwnershipSourceType 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.common.OwnershipSource.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'url' field */ - public java.lang.String getUrl() { - return url; - } - - /** Sets the value of the 'url' field */ - public com.linkedin.pegasus2avro.common.OwnershipSource.Builder setUrl(java.lang.String value) { - validate(fields()[1], value); - this.url = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'url' field has been set */ - public boolean hasUrl() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'url' field */ - public com.linkedin.pegasus2avro.common.OwnershipSource.Builder clearUrl() { - url = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public OwnershipSource build() { - try { - OwnershipSource record = new OwnershipSource(); - record.type = fieldSetFlags()[0] ? this.type : (com.linkedin.pegasus2avro.common.OwnershipSourceType) defaultValue(fields()[0]); - record.url = fieldSetFlags()[1] ? this.url : (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/OwnershipSourceType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OwnershipSourceType.java deleted file mode 100644 index a5d848c53e2c2..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OwnershipSourceType.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 OwnershipSourceType { - AUDIT, DATABASE, FILE_SYSTEM, ISSUE_TRACKING_SYSTEM, MANUAL, SERVICE, SOURCE_CONTROL, OTHER ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}}"); - 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/OwnershipSuggestion.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OwnershipSuggestion.java deleted file mode 100644 index 363b37a393f16..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OwnershipSuggestion.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Ownership information of an entity, suggested by source system or other services. */ -@org.apache.avro.specific.AvroGenerated -public class OwnershipSuggestion 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\":\"OwnershipSuggestion\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity, suggested by source system or other services.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** List of owners of the entity. */ - @Deprecated public java.util.List owners; - - /** - * 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 OwnershipSuggestion() {} - - /** - * All-args constructor. - */ - public OwnershipSuggestion(java.util.List owners) { - this.owners = owners; - } - - 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 owners; - 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: owners = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'owners' field. - * List of owners of the entity. */ - public java.util.List getOwners() { - return owners; - } - - /** - * Sets the value of the 'owners' field. - * List of owners of the entity. * @param value the value to set. - */ - public void setOwners(java.util.List value) { - this.owners = value; - } - - /** Creates a new OwnershipSuggestion RecordBuilder */ - public static com.linkedin.pegasus2avro.common.OwnershipSuggestion.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.OwnershipSuggestion.Builder(); - } - - /** Creates a new OwnershipSuggestion RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.OwnershipSuggestion.Builder newBuilder(com.linkedin.pegasus2avro.common.OwnershipSuggestion.Builder other) { - return new com.linkedin.pegasus2avro.common.OwnershipSuggestion.Builder(other); - } - - /** Creates a new OwnershipSuggestion RecordBuilder by copying an existing OwnershipSuggestion instance */ - public static com.linkedin.pegasus2avro.common.OwnershipSuggestion.Builder newBuilder(com.linkedin.pegasus2avro.common.OwnershipSuggestion other) { - return new com.linkedin.pegasus2avro.common.OwnershipSuggestion.Builder(other); - } - - /** - * RecordBuilder for OwnershipSuggestion instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List owners; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.OwnershipSuggestion.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.OwnershipSuggestion.Builder other) { - super(other); - if (isValidValue(fields()[0], other.owners)) { - this.owners = data().deepCopy(fields()[0].schema(), other.owners); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing OwnershipSuggestion instance */ - private Builder(com.linkedin.pegasus2avro.common.OwnershipSuggestion other) { - super(com.linkedin.pegasus2avro.common.OwnershipSuggestion.SCHEMA$); - if (isValidValue(fields()[0], other.owners)) { - this.owners = data().deepCopy(fields()[0].schema(), other.owners); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'owners' field */ - public java.util.List getOwners() { - return owners; - } - - /** Sets the value of the 'owners' field */ - public com.linkedin.pegasus2avro.common.OwnershipSuggestion.Builder setOwners(java.util.List value) { - validate(fields()[0], value); - this.owners = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'owners' field has been set */ - public boolean hasOwners() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'owners' field */ - public com.linkedin.pegasus2avro.common.OwnershipSuggestion.Builder clearOwners() { - owners = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public OwnershipSuggestion build() { - try { - OwnershipSuggestion record = new OwnershipSuggestion(); - record.owners = fieldSetFlags()[0] ? this.owners : (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/OwnershipType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OwnershipType.java deleted file mode 100644 index 6dcab331bcb1f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/OwnershipType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Asset owner types */ -@org.apache.avro.specific.AvroGenerated -public enum OwnershipType { - TECHNICAL_OWNER, BUSINESS_OWNER, DATA_STEWARD, NONE, DEVELOPER, DATAOWNER, DELEGATE, PRODUCER, CONSUMER, STAKEHOLDER ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"OwnershipType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}}"); - 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/Siblings.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Siblings.java deleted file mode 100644 index 532710875d663..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Siblings.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Siblings information of an entity. */ -@org.apache.avro.specific.AvroGenerated -public class Siblings 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\":\"Siblings\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Siblings information of an entity.\",\"fields\":[{\"name\":\"siblings\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of sibling entities\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"name\":\"SiblingOf\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"siblings\",\"fieldType\":\"URN\",\"queryByDefault\":false}}},{\"name\":\"primary\",\"type\":\"boolean\",\"doc\":\"If this is the leader entity of the set of siblings\"}],\"Aspect\":{\"name\":\"siblings\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** List of sibling entities */ - @Deprecated public java.util.List siblings; - /** If this is the leader entity of the set of siblings */ - @Deprecated public boolean primary; - - /** - * 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 Siblings() {} - - /** - * All-args constructor. - */ - public Siblings(java.util.List siblings, java.lang.Boolean primary) { - this.siblings = siblings; - this.primary = primary; - } - - 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 siblings; - case 1: return primary; - 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: siblings = (java.util.List)value$; break; - case 1: primary = (java.lang.Boolean)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'siblings' field. - * List of sibling entities */ - public java.util.List getSiblings() { - return siblings; - } - - /** - * Sets the value of the 'siblings' field. - * List of sibling entities * @param value the value to set. - */ - public void setSiblings(java.util.List value) { - this.siblings = value; - } - - /** - * Gets the value of the 'primary' field. - * If this is the leader entity of the set of siblings */ - public java.lang.Boolean getPrimary() { - return primary; - } - - /** - * Sets the value of the 'primary' field. - * If this is the leader entity of the set of siblings * @param value the value to set. - */ - public void setPrimary(java.lang.Boolean value) { - this.primary = value; - } - - /** Creates a new Siblings RecordBuilder */ - public static com.linkedin.pegasus2avro.common.Siblings.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.Siblings.Builder(); - } - - /** Creates a new Siblings RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.Siblings.Builder newBuilder(com.linkedin.pegasus2avro.common.Siblings.Builder other) { - return new com.linkedin.pegasus2avro.common.Siblings.Builder(other); - } - - /** Creates a new Siblings RecordBuilder by copying an existing Siblings instance */ - public static com.linkedin.pegasus2avro.common.Siblings.Builder newBuilder(com.linkedin.pegasus2avro.common.Siblings other) { - return new com.linkedin.pegasus2avro.common.Siblings.Builder(other); - } - - /** - * RecordBuilder for Siblings instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List siblings; - private boolean primary; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.Siblings.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.Siblings.Builder other) { - super(other); - if (isValidValue(fields()[0], other.siblings)) { - this.siblings = data().deepCopy(fields()[0].schema(), other.siblings); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.primary)) { - this.primary = data().deepCopy(fields()[1].schema(), other.primary); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing Siblings instance */ - private Builder(com.linkedin.pegasus2avro.common.Siblings other) { - super(com.linkedin.pegasus2avro.common.Siblings.SCHEMA$); - if (isValidValue(fields()[0], other.siblings)) { - this.siblings = data().deepCopy(fields()[0].schema(), other.siblings); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.primary)) { - this.primary = data().deepCopy(fields()[1].schema(), other.primary); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'siblings' field */ - public java.util.List getSiblings() { - return siblings; - } - - /** Sets the value of the 'siblings' field */ - public com.linkedin.pegasus2avro.common.Siblings.Builder setSiblings(java.util.List value) { - validate(fields()[0], value); - this.siblings = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'siblings' field has been set */ - public boolean hasSiblings() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'siblings' field */ - public com.linkedin.pegasus2avro.common.Siblings.Builder clearSiblings() { - siblings = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'primary' field */ - public java.lang.Boolean getPrimary() { - return primary; - } - - /** Sets the value of the 'primary' field */ - public com.linkedin.pegasus2avro.common.Siblings.Builder setPrimary(boolean value) { - validate(fields()[1], value); - this.primary = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'primary' field has been set */ - public boolean hasPrimary() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'primary' field */ - public com.linkedin.pegasus2avro.common.Siblings.Builder clearPrimary() { - fieldSetFlags()[1] = false; - return this; - } - - @Override - public Siblings build() { - try { - Siblings record = new Siblings(); - record.siblings = fieldSetFlags()[0] ? this.siblings : (java.util.List) defaultValue(fields()[0]); - record.primary = fieldSetFlags()[1] ? this.primary : (java.lang.Boolean) 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/Status.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Status.java deleted file mode 100644 index cbdf711fbd966..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/Status.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc. -This aspect is used to represent soft deletes conventionally. */ -@org.apache.avro.specific.AvroGenerated -public class Status 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\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Whether the entity has been removed (soft-deleted). */ - @Deprecated public boolean removed; - - /** - * 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 Status() {} - - /** - * All-args constructor. - */ - public Status(java.lang.Boolean removed) { - this.removed = removed; - } - - 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 removed; - 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: removed = (java.lang.Boolean)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'removed' field. - * Whether the entity has been removed (soft-deleted). */ - public java.lang.Boolean getRemoved() { - return removed; - } - - /** - * Sets the value of the 'removed' field. - * Whether the entity has been removed (soft-deleted). * @param value the value to set. - */ - public void setRemoved(java.lang.Boolean value) { - this.removed = value; - } - - /** Creates a new Status RecordBuilder */ - public static com.linkedin.pegasus2avro.common.Status.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.Status.Builder(); - } - - /** Creates a new Status RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.Status.Builder newBuilder(com.linkedin.pegasus2avro.common.Status.Builder other) { - return new com.linkedin.pegasus2avro.common.Status.Builder(other); - } - - /** Creates a new Status RecordBuilder by copying an existing Status instance */ - public static com.linkedin.pegasus2avro.common.Status.Builder newBuilder(com.linkedin.pegasus2avro.common.Status other) { - return new com.linkedin.pegasus2avro.common.Status.Builder(other); - } - - /** - * RecordBuilder for Status instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private boolean removed; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.Status.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.Status.Builder other) { - super(other); - if (isValidValue(fields()[0], other.removed)) { - this.removed = data().deepCopy(fields()[0].schema(), other.removed); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing Status instance */ - private Builder(com.linkedin.pegasus2avro.common.Status other) { - super(com.linkedin.pegasus2avro.common.Status.SCHEMA$); - if (isValidValue(fields()[0], other.removed)) { - this.removed = data().deepCopy(fields()[0].schema(), other.removed); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'removed' field */ - public java.lang.Boolean getRemoved() { - return removed; - } - - /** Sets the value of the 'removed' field */ - public com.linkedin.pegasus2avro.common.Status.Builder setRemoved(boolean value) { - validate(fields()[0], value); - this.removed = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'removed' field has been set */ - public boolean hasRemoved() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'removed' field */ - public com.linkedin.pegasus2avro.common.Status.Builder clearRemoved() { - fieldSetFlags()[0] = false; - return this; - } - - @Override - public Status build() { - try { - Status record = new Status(); - record.removed = fieldSetFlags()[0] ? this.removed : (java.lang.Boolean) 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/SubTypes.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/SubTypes.java deleted file mode 100644 index ec14d4beb88ff..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/SubTypes.java +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Sub Types. Use this aspect to specialize a generic Entity -e.g. Making a Dataset also be a View or also be a LookerExplore */ -@org.apache.avro.specific.AvroGenerated -public class SubTypes 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\":\"SubTypes\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Sub Types. Use this aspect to specialize a generic Entity\\ne.g. Making a Dataset also be a View or also be a LookerExplore\",\"fields\":[{\"name\":\"typeNames\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"The names of the specific types.\",\"Searchable\":{\"/*\":{\"addToFilters\":true,\"fieldType\":\"KEYWORD\",\"filterNameOverride\":\"Sub Type\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"subTypes\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The names of the specific types. */ - @Deprecated public java.util.List typeNames; - - /** - * 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 SubTypes() {} - - /** - * All-args constructor. - */ - public SubTypes(java.util.List typeNames) { - this.typeNames = typeNames; - } - - 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 typeNames; - 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: typeNames = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'typeNames' field. - * The names of the specific types. */ - public java.util.List getTypeNames() { - return typeNames; - } - - /** - * Sets the value of the 'typeNames' field. - * The names of the specific types. * @param value the value to set. - */ - public void setTypeNames(java.util.List value) { - this.typeNames = value; - } - - /** Creates a new SubTypes RecordBuilder */ - public static com.linkedin.pegasus2avro.common.SubTypes.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.SubTypes.Builder(); - } - - /** Creates a new SubTypes RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.SubTypes.Builder newBuilder(com.linkedin.pegasus2avro.common.SubTypes.Builder other) { - return new com.linkedin.pegasus2avro.common.SubTypes.Builder(other); - } - - /** Creates a new SubTypes RecordBuilder by copying an existing SubTypes instance */ - public static com.linkedin.pegasus2avro.common.SubTypes.Builder newBuilder(com.linkedin.pegasus2avro.common.SubTypes other) { - return new com.linkedin.pegasus2avro.common.SubTypes.Builder(other); - } - - /** - * RecordBuilder for SubTypes instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List typeNames; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.SubTypes.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.SubTypes.Builder other) { - super(other); - if (isValidValue(fields()[0], other.typeNames)) { - this.typeNames = data().deepCopy(fields()[0].schema(), other.typeNames); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing SubTypes instance */ - private Builder(com.linkedin.pegasus2avro.common.SubTypes other) { - super(com.linkedin.pegasus2avro.common.SubTypes.SCHEMA$); - if (isValidValue(fields()[0], other.typeNames)) { - this.typeNames = data().deepCopy(fields()[0].schema(), other.typeNames); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'typeNames' field */ - public java.util.List getTypeNames() { - return typeNames; - } - - /** Sets the value of the 'typeNames' field */ - public com.linkedin.pegasus2avro.common.SubTypes.Builder setTypeNames(java.util.List value) { - validate(fields()[0], value); - this.typeNames = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'typeNames' field has been set */ - public boolean hasTypeNames() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'typeNames' field */ - public com.linkedin.pegasus2avro.common.SubTypes.Builder clearTypeNames() { - typeNames = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public SubTypes build() { - try { - SubTypes record = new SubTypes(); - record.typeNames = fieldSetFlags()[0] ? this.typeNames : (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/TagAssociation.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/TagAssociation.java deleted file mode 100644 index 202b11e15a462..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/TagAssociation.java +++ /dev/null @@ -1,200 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g. -propagation parameters. */ -@org.apache.avro.specific.AvroGenerated -public class TagAssociation 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\":\"TagAssociation\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Urn of the applied tag */ - @Deprecated public java.lang.String tag; - /** Additional context about the association */ - @Deprecated public java.lang.String context; - - /** - * 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 TagAssociation() {} - - /** - * All-args constructor. - */ - public TagAssociation(java.lang.String tag, java.lang.String context) { - this.tag = tag; - this.context = context; - } - - 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 tag; - case 1: return context; - 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: tag = (java.lang.String)value$; break; - case 1: context = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'tag' field. - * Urn of the applied tag */ - public java.lang.String getTag() { - return tag; - } - - /** - * Sets the value of the 'tag' field. - * Urn of the applied tag * @param value the value to set. - */ - public void setTag(java.lang.String value) { - this.tag = value; - } - - /** - * Gets the value of the 'context' field. - * Additional context about the association */ - public java.lang.String getContext() { - return context; - } - - /** - * Sets the value of the 'context' field. - * Additional context about the association * @param value the value to set. - */ - public void setContext(java.lang.String value) { - this.context = value; - } - - /** Creates a new TagAssociation RecordBuilder */ - public static com.linkedin.pegasus2avro.common.TagAssociation.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.TagAssociation.Builder(); - } - - /** Creates a new TagAssociation RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.TagAssociation.Builder newBuilder(com.linkedin.pegasus2avro.common.TagAssociation.Builder other) { - return new com.linkedin.pegasus2avro.common.TagAssociation.Builder(other); - } - - /** Creates a new TagAssociation RecordBuilder by copying an existing TagAssociation instance */ - public static com.linkedin.pegasus2avro.common.TagAssociation.Builder newBuilder(com.linkedin.pegasus2avro.common.TagAssociation other) { - return new com.linkedin.pegasus2avro.common.TagAssociation.Builder(other); - } - - /** - * RecordBuilder for TagAssociation instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String tag; - private java.lang.String context; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.TagAssociation.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.TagAssociation.Builder other) { - super(other); - if (isValidValue(fields()[0], other.tag)) { - this.tag = data().deepCopy(fields()[0].schema(), other.tag); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.context)) { - this.context = data().deepCopy(fields()[1].schema(), other.context); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing TagAssociation instance */ - private Builder(com.linkedin.pegasus2avro.common.TagAssociation other) { - super(com.linkedin.pegasus2avro.common.TagAssociation.SCHEMA$); - if (isValidValue(fields()[0], other.tag)) { - this.tag = data().deepCopy(fields()[0].schema(), other.tag); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.context)) { - this.context = data().deepCopy(fields()[1].schema(), other.context); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'tag' field */ - public java.lang.String getTag() { - return tag; - } - - /** Sets the value of the 'tag' field */ - public com.linkedin.pegasus2avro.common.TagAssociation.Builder setTag(java.lang.String value) { - validate(fields()[0], value); - this.tag = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'tag' field has been set */ - public boolean hasTag() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'tag' field */ - public com.linkedin.pegasus2avro.common.TagAssociation.Builder clearTag() { - tag = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'context' field */ - public java.lang.String getContext() { - return context; - } - - /** Sets the value of the 'context' field */ - public com.linkedin.pegasus2avro.common.TagAssociation.Builder setContext(java.lang.String value) { - validate(fields()[1], value); - this.context = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'context' field has been set */ - public boolean hasContext() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'context' field */ - public com.linkedin.pegasus2avro.common.TagAssociation.Builder clearContext() { - context = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public TagAssociation build() { - try { - TagAssociation record = new TagAssociation(); - record.tag = fieldSetFlags()[0] ? this.tag : (java.lang.String) defaultValue(fields()[0]); - record.context = fieldSetFlags()[1] ? this.context : (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/TimeStamp.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/TimeStamp.java deleted file mode 100644 index c00cc8da969c1..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/TimeStamp.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** A standard event timestamp */ -@org.apache.avro.specific.AvroGenerated -public class TimeStamp 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\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event timestamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** When did the event occur */ - @Deprecated public long time; - /** Optional: The actor urn involved in the event. */ - @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 TimeStamp() {} - - /** - * All-args constructor. - */ - public TimeStamp(java.lang.Long time, java.lang.String actor) { - this.time = time; - 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 time; - case 1: 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: time = (java.lang.Long)value$; break; - case 1: actor = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'time' field. - * When did the event occur */ - public java.lang.Long getTime() { - return time; - } - - /** - * Sets the value of the 'time' field. - * When did the event occur * @param value the value to set. - */ - public void setTime(java.lang.Long value) { - this.time = value; - } - - /** - * Gets the value of the 'actor' field. - * Optional: The actor urn involved in the event. */ - public java.lang.String getActor() { - return actor; - } - - /** - * Sets the value of the 'actor' field. - * Optional: The actor urn involved in the event. * @param value the value to set. - */ - public void setActor(java.lang.String value) { - this.actor = value; - } - - /** Creates a new TimeStamp RecordBuilder */ - public static com.linkedin.pegasus2avro.common.TimeStamp.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.TimeStamp.Builder(); - } - - /** Creates a new TimeStamp RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.TimeStamp.Builder newBuilder(com.linkedin.pegasus2avro.common.TimeStamp.Builder other) { - return new com.linkedin.pegasus2avro.common.TimeStamp.Builder(other); - } - - /** Creates a new TimeStamp RecordBuilder by copying an existing TimeStamp instance */ - public static com.linkedin.pegasus2avro.common.TimeStamp.Builder newBuilder(com.linkedin.pegasus2avro.common.TimeStamp other) { - return new com.linkedin.pegasus2avro.common.TimeStamp.Builder(other); - } - - /** - * RecordBuilder for TimeStamp 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; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.TimeStamp.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.TimeStamp.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; - } - } - - /** Creates a Builder by copying an existing TimeStamp instance */ - private Builder(com.linkedin.pegasus2avro.common.TimeStamp other) { - super(com.linkedin.pegasus2avro.common.TimeStamp.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; - } - } - - /** 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.TimeStamp.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.TimeStamp.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.TimeStamp.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.TimeStamp.Builder clearActor() { - actor = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public TimeStamp build() { - try { - TimeStamp record = new TimeStamp(); - record.time = fieldSetFlags()[0] ? this.time : (java.lang.Long) defaultValue(fields()[0]); - record.actor = fieldSetFlags()[1] ? this.actor : (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/VersionTag.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/VersionTag.java deleted file mode 100644 index 3ced5418327ff..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/VersionTag.java +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** A resource-defined string representing the resource state for the purpose of concurrency control */ -@org.apache.avro.specific.AvroGenerated -public class VersionTag 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\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.String versionTag; - - /** - * 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 VersionTag() {} - - /** - * All-args constructor. - */ - public VersionTag(java.lang.String versionTag) { - this.versionTag = versionTag; - } - - 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 versionTag; - 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: versionTag = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'versionTag' field. - */ - public java.lang.String getVersionTag() { - return versionTag; - } - - /** - * Sets the value of the 'versionTag' field. - * @param value the value to set. - */ - public void setVersionTag(java.lang.String value) { - this.versionTag = value; - } - - /** Creates a new VersionTag RecordBuilder */ - public static com.linkedin.pegasus2avro.common.VersionTag.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.VersionTag.Builder(); - } - - /** Creates a new VersionTag RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.VersionTag.Builder newBuilder(com.linkedin.pegasus2avro.common.VersionTag.Builder other) { - return new com.linkedin.pegasus2avro.common.VersionTag.Builder(other); - } - - /** Creates a new VersionTag RecordBuilder by copying an existing VersionTag instance */ - public static com.linkedin.pegasus2avro.common.VersionTag.Builder newBuilder(com.linkedin.pegasus2avro.common.VersionTag other) { - return new com.linkedin.pegasus2avro.common.VersionTag.Builder(other); - } - - /** - * RecordBuilder for VersionTag instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String versionTag; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.VersionTag.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.VersionTag.Builder other) { - super(other); - if (isValidValue(fields()[0], other.versionTag)) { - this.versionTag = data().deepCopy(fields()[0].schema(), other.versionTag); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing VersionTag instance */ - private Builder(com.linkedin.pegasus2avro.common.VersionTag other) { - super(com.linkedin.pegasus2avro.common.VersionTag.SCHEMA$); - if (isValidValue(fields()[0], other.versionTag)) { - this.versionTag = data().deepCopy(fields()[0].schema(), other.versionTag); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'versionTag' field */ - public java.lang.String getVersionTag() { - return versionTag; - } - - /** Sets the value of the 'versionTag' field */ - public com.linkedin.pegasus2avro.common.VersionTag.Builder setVersionTag(java.lang.String value) { - validate(fields()[0], value); - this.versionTag = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'versionTag' field has been set */ - public boolean hasVersionTag() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'versionTag' field */ - public com.linkedin.pegasus2avro.common.VersionTag.Builder clearVersionTag() { - versionTag = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public VersionTag build() { - try { - VersionTag record = new VersionTag(); - record.versionTag = fieldSetFlags()[0] ? this.versionTag : (java.lang.String) 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/VersionedUrn.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/VersionedUrn.java deleted file mode 100644 index b9c4830c3f67d..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/VersionedUrn.java +++ /dev/null @@ -1,200 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** An urn combined with a versionStamp, versionStamp can be empty indicating latest for all aspects. Represents a state in time -of an entity */ -@org.apache.avro.specific.AvroGenerated -public class VersionedUrn 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\":\"VersionedUrn\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"An urn combined with a versionStamp, versionStamp can be empty indicating latest for all aspects. Represents a state in time\\nof an entity\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn indicating which entity this represents\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"versionStamp\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"String indicating the stamped version of aspects present at a point in time\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Urn indicating which entity this represents */ - @Deprecated public java.lang.String urn; - /** String indicating the stamped version of aspects present at a point in time */ - @Deprecated public java.lang.String versionStamp; - - /** - * 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 VersionedUrn() {} - - /** - * All-args constructor. - */ - public VersionedUrn(java.lang.String urn, java.lang.String versionStamp) { - this.urn = urn; - this.versionStamp = versionStamp; - } - - 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 urn; - case 1: return versionStamp; - 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: urn = (java.lang.String)value$; break; - case 1: versionStamp = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * Urn indicating which entity this represents */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * Urn indicating which entity this represents * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'versionStamp' field. - * String indicating the stamped version of aspects present at a point in time */ - public java.lang.String getVersionStamp() { - return versionStamp; - } - - /** - * Sets the value of the 'versionStamp' field. - * String indicating the stamped version of aspects present at a point in time * @param value the value to set. - */ - public void setVersionStamp(java.lang.String value) { - this.versionStamp = value; - } - - /** Creates a new VersionedUrn RecordBuilder */ - public static com.linkedin.pegasus2avro.common.VersionedUrn.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.VersionedUrn.Builder(); - } - - /** Creates a new VersionedUrn RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.VersionedUrn.Builder newBuilder(com.linkedin.pegasus2avro.common.VersionedUrn.Builder other) { - return new com.linkedin.pegasus2avro.common.VersionedUrn.Builder(other); - } - - /** Creates a new VersionedUrn RecordBuilder by copying an existing VersionedUrn instance */ - public static com.linkedin.pegasus2avro.common.VersionedUrn.Builder newBuilder(com.linkedin.pegasus2avro.common.VersionedUrn other) { - return new com.linkedin.pegasus2avro.common.VersionedUrn.Builder(other); - } - - /** - * RecordBuilder for VersionedUrn instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.lang.String versionStamp; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.VersionedUrn.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.VersionedUrn.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.versionStamp)) { - this.versionStamp = data().deepCopy(fields()[1].schema(), other.versionStamp); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing VersionedUrn instance */ - private Builder(com.linkedin.pegasus2avro.common.VersionedUrn other) { - super(com.linkedin.pegasus2avro.common.VersionedUrn.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.versionStamp)) { - this.versionStamp = data().deepCopy(fields()[1].schema(), other.versionStamp); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.common.VersionedUrn.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.common.VersionedUrn.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'versionStamp' field */ - public java.lang.String getVersionStamp() { - return versionStamp; - } - - /** Sets the value of the 'versionStamp' field */ - public com.linkedin.pegasus2avro.common.VersionedUrn.Builder setVersionStamp(java.lang.String value) { - validate(fields()[1], value); - this.versionStamp = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'versionStamp' field has been set */ - public boolean hasVersionStamp() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'versionStamp' field */ - public com.linkedin.pegasus2avro.common.VersionedUrn.Builder clearVersionStamp() { - versionStamp = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public VersionedUrn build() { - try { - VersionedUrn record = new VersionedUrn(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.versionStamp = fieldSetFlags()[1] ? this.versionStamp : (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/WindowDuration.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/WindowDuration.java deleted file mode 100644 index 31d13b8969555..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/WindowDuration.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common; -@SuppressWarnings("all") -/** Enum to define the length of a bucket when doing aggregations */ -@org.apache.avro.specific.AvroGenerated -public enum WindowDuration { - YEAR, MONTH, WEEK, DAY, HOUR ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"WindowDuration\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Enum to define the length of a bucket when doing aggregations\",\"symbols\":[\"YEAR\",\"MONTH\",\"WEEK\",\"DAY\",\"HOUR\"]}"); - 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/fieldtransformer/TransformationType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/fieldtransformer/TransformationType.java deleted file mode 100644 index d6a38d47b34b9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/fieldtransformer/TransformationType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common.fieldtransformer; -@SuppressWarnings("all") -/** Type of the transformation involved in generating destination fields from source fields. */ -@org.apache.avro.specific.AvroGenerated -public enum TransformationType { - BLACKBOX, IDENTITY ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"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.\"}}"); - 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/fieldtransformer/UDFTransformer.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/fieldtransformer/UDFTransformer.java deleted file mode 100644 index ea7ef6b7643a7..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/common/fieldtransformer/UDFTransformer.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.common.fieldtransformer; -@SuppressWarnings("all") -/** Field transformation expressed in UDF */ -@org.apache.avro.specific.AvroGenerated -public class UDFTransformer 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\":\"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.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A UDF mentioning how the source fields got transformed to destination field. This is the FQCN(Fully Qualified Class Name) of the udf. */ - @Deprecated public java.lang.String udf; - - /** - * 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 UDFTransformer() {} - - /** - * All-args constructor. - */ - public UDFTransformer(java.lang.String udf) { - this.udf = udf; - } - - 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 udf; - 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: udf = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'udf' field. - * A UDF mentioning how the source fields got transformed to destination field. This is the FQCN(Fully Qualified Class Name) of the udf. */ - public java.lang.String getUdf() { - return udf; - } - - /** - * Sets the value of the 'udf' field. - * A UDF mentioning how the source fields got transformed to destination field. This is the FQCN(Fully Qualified Class Name) of the udf. * @param value the value to set. - */ - public void setUdf(java.lang.String value) { - this.udf = value; - } - - /** Creates a new UDFTransformer RecordBuilder */ - public static com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer.Builder newBuilder() { - return new com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer.Builder(); - } - - /** Creates a new UDFTransformer RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer.Builder newBuilder(com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer.Builder other) { - return new com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer.Builder(other); - } - - /** Creates a new UDFTransformer RecordBuilder by copying an existing UDFTransformer instance */ - public static com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer.Builder newBuilder(com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer other) { - return new com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer.Builder(other); - } - - /** - * RecordBuilder for UDFTransformer instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String udf; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer.Builder other) { - super(other); - if (isValidValue(fields()[0], other.udf)) { - this.udf = data().deepCopy(fields()[0].schema(), other.udf); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing UDFTransformer instance */ - private Builder(com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer other) { - super(com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer.SCHEMA$); - if (isValidValue(fields()[0], other.udf)) { - this.udf = data().deepCopy(fields()[0].schema(), other.udf); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'udf' field */ - public java.lang.String getUdf() { - return udf; - } - - /** Sets the value of the 'udf' field */ - public com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer.Builder setUdf(java.lang.String value) { - validate(fields()[0], value); - this.udf = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'udf' field has been set */ - public boolean hasUdf() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'udf' field */ - public com.linkedin.pegasus2avro.common.fieldtransformer.UDFTransformer.Builder clearUdf() { - udf = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public UDFTransformer build() { - try { - UDFTransformer record = new UDFTransformer(); - record.udf = fieldSetFlags()[0] ? this.udf : (java.lang.String) 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/container/Container.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/container/Container.java deleted file mode 100644 index 985a6c48e7ae9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/container/Container.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.container; -@SuppressWarnings("all") -/** Link from an asset to its parent container */ -@org.apache.avro.specific.AvroGenerated -public class Container 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\":\"Container\",\"namespace\":\"com.linkedin.pegasus2avro.container\",\"doc\":\"Link from an asset to its parent container\",\"fields\":[{\"name\":\"container\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The parent container of an asset\",\"Relationship\":{\"entityTypes\":[\"container\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"container\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Container\",\"hasValuesFieldName\":\"hasContainer\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}],\"Aspect\":{\"name\":\"container\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The parent container of an asset */ - @Deprecated public java.lang.String container; - - /** - * 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 Container() {} - - /** - * All-args constructor. - */ - public Container(java.lang.String container) { - this.container = container; - } - - 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 container; - 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: container = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'container' field. - * The parent container of an asset */ - public java.lang.String getContainer() { - return container; - } - - /** - * Sets the value of the 'container' field. - * The parent container of an asset * @param value the value to set. - */ - public void setContainer(java.lang.String value) { - this.container = value; - } - - /** Creates a new Container RecordBuilder */ - public static com.linkedin.pegasus2avro.container.Container.Builder newBuilder() { - return new com.linkedin.pegasus2avro.container.Container.Builder(); - } - - /** Creates a new Container RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.container.Container.Builder newBuilder(com.linkedin.pegasus2avro.container.Container.Builder other) { - return new com.linkedin.pegasus2avro.container.Container.Builder(other); - } - - /** Creates a new Container RecordBuilder by copying an existing Container instance */ - public static com.linkedin.pegasus2avro.container.Container.Builder newBuilder(com.linkedin.pegasus2avro.container.Container other) { - return new com.linkedin.pegasus2avro.container.Container.Builder(other); - } - - /** - * RecordBuilder for Container instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String container; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.container.Container.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.container.Container.Builder other) { - super(other); - if (isValidValue(fields()[0], other.container)) { - this.container = data().deepCopy(fields()[0].schema(), other.container); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing Container instance */ - private Builder(com.linkedin.pegasus2avro.container.Container other) { - super(com.linkedin.pegasus2avro.container.Container.SCHEMA$); - if (isValidValue(fields()[0], other.container)) { - this.container = data().deepCopy(fields()[0].schema(), other.container); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'container' field */ - public java.lang.String getContainer() { - return container; - } - - /** Sets the value of the 'container' field */ - public com.linkedin.pegasus2avro.container.Container.Builder setContainer(java.lang.String value) { - validate(fields()[0], value); - this.container = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'container' field has been set */ - public boolean hasContainer() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'container' field */ - public com.linkedin.pegasus2avro.container.Container.Builder clearContainer() { - container = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public Container build() { - try { - Container record = new Container(); - record.container = fieldSetFlags()[0] ? this.container : (java.lang.String) 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/container/ContainerProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/container/ContainerProperties.java deleted file mode 100644 index 26d8c0f07b002..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/container/ContainerProperties.java +++ /dev/null @@ -1,474 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.container; -@SuppressWarnings("all") -/** Information about a Asset Container as received from a 3rd party source system */ -@org.apache.avro.specific.AvroGenerated -public class ContainerProperties 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\":\"ContainerProperties\",\"namespace\":\"com.linkedin.pegasus2avro.container\",\"doc\":\"Information about a Asset Container as received from a 3rd party source system\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the Asset Container\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"qualifiedName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Fully-qualified name of the Container\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description of the Asset Container as it exists inside a source system\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"created\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event timestamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"name\":\"containerProperties\"}}"); - 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; - /** Display name of the Asset Container */ - @Deprecated public java.lang.String name; - /** Fully-qualified name of the Container */ - @Deprecated public java.lang.String qualifiedName; - /** Description of the Asset Container as it exists inside a source system */ - @Deprecated public java.lang.String description; - /** A timestamp documenting when the asset was created in the source Data Platform (not on DataHub) */ - @Deprecated public com.linkedin.pegasus2avro.common.TimeStamp created; - /** A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub) */ - @Deprecated public com.linkedin.pegasus2avro.common.TimeStamp lastModified; - - /** - * 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 ContainerProperties() {} - - /** - * All-args constructor. - */ - public ContainerProperties(java.util.Map customProperties, java.lang.String externalUrl, java.lang.String name, java.lang.String qualifiedName, java.lang.String description, com.linkedin.pegasus2avro.common.TimeStamp created, com.linkedin.pegasus2avro.common.TimeStamp lastModified) { - this.customProperties = customProperties; - this.externalUrl = externalUrl; - this.name = name; - this.qualifiedName = qualifiedName; - this.description = description; - this.created = created; - this.lastModified = lastModified; - } - - 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 name; - case 3: return qualifiedName; - case 4: return description; - case 5: return created; - case 6: return lastModified; - 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: name = (java.lang.String)value$; break; - case 3: qualifiedName = (java.lang.String)value$; break; - case 4: description = (java.lang.String)value$; break; - case 5: created = (com.linkedin.pegasus2avro.common.TimeStamp)value$; break; - case 6: lastModified = (com.linkedin.pegasus2avro.common.TimeStamp)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 'name' field. - * Display name of the Asset Container */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Display name of the Asset Container * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'qualifiedName' field. - * Fully-qualified name of the Container */ - public java.lang.String getQualifiedName() { - return qualifiedName; - } - - /** - * Sets the value of the 'qualifiedName' field. - * Fully-qualified name of the Container * @param value the value to set. - */ - public void setQualifiedName(java.lang.String value) { - this.qualifiedName = value; - } - - /** - * Gets the value of the 'description' field. - * Description of the Asset Container as it exists inside a source system */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Description of the Asset Container as it exists inside a source system * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'created' field. - * A timestamp documenting when the asset was created in the source Data Platform (not on DataHub) */ - public com.linkedin.pegasus2avro.common.TimeStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * A timestamp documenting when the asset was created in the source Data Platform (not on DataHub) * @param value the value to set. - */ - public void setCreated(com.linkedin.pegasus2avro.common.TimeStamp value) { - this.created = value; - } - - /** - * Gets the value of the 'lastModified' field. - * A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub) */ - public com.linkedin.pegasus2avro.common.TimeStamp getLastModified() { - return lastModified; - } - - /** - * Sets the value of the 'lastModified' field. - * A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub) * @param value the value to set. - */ - public void setLastModified(com.linkedin.pegasus2avro.common.TimeStamp value) { - this.lastModified = value; - } - - /** Creates a new ContainerProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.container.ContainerProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.container.ContainerProperties.Builder(); - } - - /** Creates a new ContainerProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.container.ContainerProperties.Builder newBuilder(com.linkedin.pegasus2avro.container.ContainerProperties.Builder other) { - return new com.linkedin.pegasus2avro.container.ContainerProperties.Builder(other); - } - - /** Creates a new ContainerProperties RecordBuilder by copying an existing ContainerProperties instance */ - public static com.linkedin.pegasus2avro.container.ContainerProperties.Builder newBuilder(com.linkedin.pegasus2avro.container.ContainerProperties other) { - return new com.linkedin.pegasus2avro.container.ContainerProperties.Builder(other); - } - - /** - * RecordBuilder for ContainerProperties 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 name; - private java.lang.String qualifiedName; - private java.lang.String description; - private com.linkedin.pegasus2avro.common.TimeStamp created; - private com.linkedin.pegasus2avro.common.TimeStamp lastModified; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.container.ContainerProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.container.ContainerProperties.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.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.qualifiedName)) { - this.qualifiedName = data().deepCopy(fields()[3].schema(), other.qualifiedName); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.description)) { - this.description = data().deepCopy(fields()[4].schema(), other.description); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.created)) { - this.created = data().deepCopy(fields()[5].schema(), other.created); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[6].schema(), other.lastModified); - fieldSetFlags()[6] = true; - } - } - - /** Creates a Builder by copying an existing ContainerProperties instance */ - private Builder(com.linkedin.pegasus2avro.container.ContainerProperties other) { - super(com.linkedin.pegasus2avro.container.ContainerProperties.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.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.qualifiedName)) { - this.qualifiedName = data().deepCopy(fields()[3].schema(), other.qualifiedName); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.description)) { - this.description = data().deepCopy(fields()[4].schema(), other.description); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.created)) { - this.created = data().deepCopy(fields()[5].schema(), other.created); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[6].schema(), other.lastModified); - fieldSetFlags()[6] = 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.container.ContainerProperties.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.container.ContainerProperties.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.container.ContainerProperties.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.container.ContainerProperties.Builder clearExternalUrl() { - externalUrl = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.container.ContainerProperties.Builder setName(java.lang.String value) { - validate(fields()[2], value); - this.name = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.container.ContainerProperties.Builder clearName() { - name = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'qualifiedName' field */ - public java.lang.String getQualifiedName() { - return qualifiedName; - } - - /** Sets the value of the 'qualifiedName' field */ - public com.linkedin.pegasus2avro.container.ContainerProperties.Builder setQualifiedName(java.lang.String value) { - validate(fields()[3], value); - this.qualifiedName = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'qualifiedName' field has been set */ - public boolean hasQualifiedName() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'qualifiedName' field */ - public com.linkedin.pegasus2avro.container.ContainerProperties.Builder clearQualifiedName() { - qualifiedName = null; - fieldSetFlags()[3] = 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.container.ContainerProperties.Builder setDescription(java.lang.String value) { - validate(fields()[4], value); - this.description = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.container.ContainerProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'created' field */ - public com.linkedin.pegasus2avro.common.TimeStamp getCreated() { - return created; - } - - /** Sets the value of the 'created' field */ - public com.linkedin.pegasus2avro.container.ContainerProperties.Builder setCreated(com.linkedin.pegasus2avro.common.TimeStamp value) { - validate(fields()[5], value); - this.created = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.container.ContainerProperties.Builder clearCreated() { - created = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.common.TimeStamp getLastModified() { - return lastModified; - } - - /** Sets the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.container.ContainerProperties.Builder setLastModified(com.linkedin.pegasus2avro.common.TimeStamp value) { - validate(fields()[6], value); - this.lastModified = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'lastModified' field has been set */ - public boolean hasLastModified() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.container.ContainerProperties.Builder clearLastModified() { - lastModified = null; - fieldSetFlags()[6] = false; - return this; - } - - @Override - public ContainerProperties build() { - try { - ContainerProperties record = new ContainerProperties(); - 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.name = fieldSetFlags()[2] ? this.name : (java.lang.String) defaultValue(fields()[2]); - record.qualifiedName = fieldSetFlags()[3] ? this.qualifiedName : (java.lang.String) defaultValue(fields()[3]); - record.description = fieldSetFlags()[4] ? this.description : (java.lang.String) defaultValue(fields()[4]); - record.created = fieldSetFlags()[5] ? this.created : (com.linkedin.pegasus2avro.common.TimeStamp) defaultValue(fields()[5]); - record.lastModified = fieldSetFlags()[6] ? this.lastModified : (com.linkedin.pegasus2avro.common.TimeStamp) 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/container/EditableContainerProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/container/EditableContainerProperties.java deleted file mode 100644 index 17c870cbe2370..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/container/EditableContainerProperties.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.container; -@SuppressWarnings("all") -/** Editable information about an Asset Container as defined on the DataHub Platform */ -@org.apache.avro.specific.AvroGenerated -public class EditableContainerProperties 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\":\"EditableContainerProperties\",\"namespace\":\"com.linkedin.pegasus2avro.container\",\"doc\":\"Editable information about an Asset Container as defined on the DataHub Platform\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description of the Asset Container as its received on the DataHub Platform\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableContainerProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Description of the Asset Container as its received on the DataHub Platform */ - @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 EditableContainerProperties() {} - - /** - * All-args constructor. - */ - public EditableContainerProperties(java.lang.String description) { - 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 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: description = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'description' field. - * Description of the Asset Container as its received on the DataHub Platform */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Description of the Asset Container as its received on the DataHub Platform * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** Creates a new EditableContainerProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.container.EditableContainerProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.container.EditableContainerProperties.Builder(); - } - - /** Creates a new EditableContainerProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.container.EditableContainerProperties.Builder newBuilder(com.linkedin.pegasus2avro.container.EditableContainerProperties.Builder other) { - return new com.linkedin.pegasus2avro.container.EditableContainerProperties.Builder(other); - } - - /** Creates a new EditableContainerProperties RecordBuilder by copying an existing EditableContainerProperties instance */ - public static com.linkedin.pegasus2avro.container.EditableContainerProperties.Builder newBuilder(com.linkedin.pegasus2avro.container.EditableContainerProperties other) { - return new com.linkedin.pegasus2avro.container.EditableContainerProperties.Builder(other); - } - - /** - * RecordBuilder for EditableContainerProperties instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String description; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.container.EditableContainerProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.container.EditableContainerProperties.Builder other) { - super(other); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing EditableContainerProperties instance */ - private Builder(com.linkedin.pegasus2avro.container.EditableContainerProperties other) { - super(com.linkedin.pegasus2avro.container.EditableContainerProperties.SCHEMA$); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - } - - /** 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.container.EditableContainerProperties.Builder setDescription(java.lang.String value) { - validate(fields()[0], value); - this.description = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.container.EditableContainerProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public EditableContainerProperties build() { - try { - EditableContainerProperties record = new EditableContainerProperties(); - record.description = fieldSetFlags()[0] ? this.description : (java.lang.String) 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/dashboard/DashboardInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dashboard/DashboardInfo.java deleted file mode 100644 index 8e1d56fb11e88..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dashboard/DashboardInfo.java +++ /dev/null @@ -1,755 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dashboard; -@SuppressWarnings("all") -/** Information about a dashboard */ -@org.apache.avro.specific.AvroGenerated -public class DashboardInfo 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\":\"DashboardInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"doc\":\"Information about a dashboard\",\"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 dashboard\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Detailed description about the dashboard\",\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"charts\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Charts in a dashboard\\nDeprecated! Use chartEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\"}},\"deprecated\":true},{\"name\":\"chartEdges\",\"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\":{\"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}]}}],\"doc\":\"Charts in a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"chartEdges/*/created/actor\",\"createdOn\":\"chartEdges/*/created/time\",\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\",\"properties\":\"chartEdges/*/properties\",\"updatedActor\":\"chartEdges/*/lastModified/actor\",\"updatedOn\":\"chartEdges/*/lastModified/time\"}}},{\"name\":\"datasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Datasets consumed by a dashboard\\nDeprecated! Use datasetEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"deprecated\":true},{\"name\":\"datasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Datasets consumed by a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"datasetEdges/*/created/actor\",\"createdOn\":\"datasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"datasetEdges/*/properties\",\"updatedActor\":\"datasetEdges/*/lastModified/actor\",\"updatedOn\":\"datasetEdges/*/lastModified/time\"}}},{\"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\":\"AuditStamp\",\"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 dashboard and when\"},{\"name\":\"dashboardUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"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 dashboard\",\"default\":null,\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"KEYWORD\",\"filterNameOverride\":\"Access Level\"}},{\"name\":\"lastRefreshed\",\"type\":[\"null\",\"long\"],\"doc\":\"The time when this dashboard last refreshed\",\"default\":null}],\"Aspect\":{\"name\":\"dashboardInfo\"}}"); - 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 dashboard */ - @Deprecated public java.lang.String title; - /** Detailed description about the dashboard */ - @Deprecated public java.lang.String description; - /** Charts in a dashboard -Deprecated! Use chartEdges instead. */ - @Deprecated public java.util.List charts; - /** Charts in a dashboard */ - @Deprecated public java.util.List chartEdges; - /** Datasets consumed by a dashboard -Deprecated! Use datasetEdges instead. */ - @Deprecated public java.util.List datasets; - /** Datasets consumed by a dashboard */ - @Deprecated public java.util.List datasetEdges; - /** Captures information about who created/last modified/deleted this dashboard and when */ - @Deprecated public com.linkedin.pegasus2avro.common.ChangeAuditStamps lastModified; - /** URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard */ - @Deprecated public java.lang.String dashboardUrl; - /** Access level for the dashboard */ - @Deprecated public com.linkedin.pegasus2avro.common.AccessLevel access; - /** The time when this dashboard 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 DashboardInfo() {} - - /** - * All-args constructor. - */ - public DashboardInfo(java.util.Map customProperties, java.lang.String externalUrl, java.lang.String title, java.lang.String description, java.util.List charts, java.util.List chartEdges, java.util.List datasets, java.util.List datasetEdges, com.linkedin.pegasus2avro.common.ChangeAuditStamps lastModified, java.lang.String dashboardUrl, com.linkedin.pegasus2avro.common.AccessLevel access, java.lang.Long lastRefreshed) { - this.customProperties = customProperties; - this.externalUrl = externalUrl; - this.title = title; - this.description = description; - this.charts = charts; - this.chartEdges = chartEdges; - this.datasets = datasets; - this.datasetEdges = datasetEdges; - this.lastModified = lastModified; - this.dashboardUrl = dashboardUrl; - 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 charts; - case 5: return chartEdges; - case 6: return datasets; - case 7: return datasetEdges; - case 8: return lastModified; - case 9: return dashboardUrl; - case 10: return access; - case 11: 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: charts = (java.util.List)value$; break; - case 5: chartEdges = (java.util.List)value$; break; - case 6: datasets = (java.util.List)value$; break; - case 7: datasetEdges = (java.util.List)value$; break; - case 8: lastModified = (com.linkedin.pegasus2avro.common.ChangeAuditStamps)value$; break; - case 9: dashboardUrl = (java.lang.String)value$; break; - case 10: access = (com.linkedin.pegasus2avro.common.AccessLevel)value$; break; - case 11: 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 dashboard */ - public java.lang.String getTitle() { - return title; - } - - /** - * Sets the value of the 'title' field. - * Title of the dashboard * @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 dashboard */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Detailed description about the dashboard * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'charts' field. - * Charts in a dashboard -Deprecated! Use chartEdges instead. */ - public java.util.List getCharts() { - return charts; - } - - /** - * Sets the value of the 'charts' field. - * Charts in a dashboard -Deprecated! Use chartEdges instead. * @param value the value to set. - */ - public void setCharts(java.util.List value) { - this.charts = value; - } - - /** - * Gets the value of the 'chartEdges' field. - * Charts in a dashboard */ - public java.util.List getChartEdges() { - return chartEdges; - } - - /** - * Sets the value of the 'chartEdges' field. - * Charts in a dashboard * @param value the value to set. - */ - public void setChartEdges(java.util.List value) { - this.chartEdges = value; - } - - /** - * Gets the value of the 'datasets' field. - * Datasets consumed by a dashboard -Deprecated! Use datasetEdges instead. */ - public java.util.List getDatasets() { - return datasets; - } - - /** - * Sets the value of the 'datasets' field. - * Datasets consumed by a dashboard -Deprecated! Use datasetEdges instead. * @param value the value to set. - */ - public void setDatasets(java.util.List value) { - this.datasets = value; - } - - /** - * Gets the value of the 'datasetEdges' field. - * Datasets consumed by a dashboard */ - public java.util.List getDatasetEdges() { - return datasetEdges; - } - - /** - * Sets the value of the 'datasetEdges' field. - * Datasets consumed by a dashboard * @param value the value to set. - */ - public void setDatasetEdges(java.util.List value) { - this.datasetEdges = value; - } - - /** - * Gets the value of the 'lastModified' field. - * Captures information about who created/last modified/deleted this dashboard 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 dashboard 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 'dashboardUrl' field. - * URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard */ - public java.lang.String getDashboardUrl() { - return dashboardUrl; - } - - /** - * Sets the value of the 'dashboardUrl' field. - * URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard * @param value the value to set. - */ - public void setDashboardUrl(java.lang.String value) { - this.dashboardUrl = value; - } - - /** - * Gets the value of the 'access' field. - * Access level for the dashboard */ - public com.linkedin.pegasus2avro.common.AccessLevel getAccess() { - return access; - } - - /** - * Sets the value of the 'access' field. - * Access level for the dashboard * @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 dashboard last refreshed */ - public java.lang.Long getLastRefreshed() { - return lastRefreshed; - } - - /** - * Sets the value of the 'lastRefreshed' field. - * The time when this dashboard last refreshed * @param value the value to set. - */ - public void setLastRefreshed(java.lang.Long value) { - this.lastRefreshed = value; - } - - /** Creates a new DashboardInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder(); - } - - /** Creates a new DashboardInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder newBuilder(com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder other) { - return new com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder(other); - } - - /** Creates a new DashboardInfo RecordBuilder by copying an existing DashboardInfo instance */ - public static com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder newBuilder(com.linkedin.pegasus2avro.dashboard.DashboardInfo other) { - return new com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder(other); - } - - /** - * RecordBuilder for DashboardInfo 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 java.util.List charts; - private java.util.List chartEdges; - private java.util.List datasets; - private java.util.List datasetEdges; - private com.linkedin.pegasus2avro.common.ChangeAuditStamps lastModified; - private java.lang.String dashboardUrl; - private com.linkedin.pegasus2avro.common.AccessLevel access; - private java.lang.Long lastRefreshed; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dashboard.DashboardInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dashboard.DashboardInfo.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.charts)) { - this.charts = data().deepCopy(fields()[4].schema(), other.charts); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.chartEdges)) { - this.chartEdges = data().deepCopy(fields()[5].schema(), other.chartEdges); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.datasets)) { - this.datasets = data().deepCopy(fields()[6].schema(), other.datasets); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.datasetEdges)) { - this.datasetEdges = data().deepCopy(fields()[7].schema(), other.datasetEdges); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[8].schema(), other.lastModified); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.dashboardUrl)) { - this.dashboardUrl = data().deepCopy(fields()[9].schema(), other.dashboardUrl); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.access)) { - this.access = data().deepCopy(fields()[10].schema(), other.access); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.lastRefreshed)) { - this.lastRefreshed = data().deepCopy(fields()[11].schema(), other.lastRefreshed); - fieldSetFlags()[11] = true; - } - } - - /** Creates a Builder by copying an existing DashboardInfo instance */ - private Builder(com.linkedin.pegasus2avro.dashboard.DashboardInfo other) { - super(com.linkedin.pegasus2avro.dashboard.DashboardInfo.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.charts)) { - this.charts = data().deepCopy(fields()[4].schema(), other.charts); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.chartEdges)) { - this.chartEdges = data().deepCopy(fields()[5].schema(), other.chartEdges); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.datasets)) { - this.datasets = data().deepCopy(fields()[6].schema(), other.datasets); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.datasetEdges)) { - this.datasetEdges = data().deepCopy(fields()[7].schema(), other.datasetEdges); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[8].schema(), other.lastModified); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.dashboardUrl)) { - this.dashboardUrl = data().deepCopy(fields()[9].schema(), other.dashboardUrl); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.access)) { - this.access = data().deepCopy(fields()[10].schema(), other.access); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.lastRefreshed)) { - this.lastRefreshed = data().deepCopy(fields()[11].schema(), other.lastRefreshed); - fieldSetFlags()[11] = 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.dashboard.DashboardInfo.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.dashboard.DashboardInfo.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.dashboard.DashboardInfo.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.dashboard.DashboardInfo.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.dashboard.DashboardInfo.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.dashboard.DashboardInfo.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.dashboard.DashboardInfo.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.dashboard.DashboardInfo.Builder clearDescription() { - description = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'charts' field */ - public java.util.List getCharts() { - return charts; - } - - /** Sets the value of the 'charts' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder setCharts(java.util.List value) { - validate(fields()[4], value); - this.charts = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'charts' field has been set */ - public boolean hasCharts() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'charts' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder clearCharts() { - charts = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'chartEdges' field */ - public java.util.List getChartEdges() { - return chartEdges; - } - - /** Sets the value of the 'chartEdges' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder setChartEdges(java.util.List value) { - validate(fields()[5], value); - this.chartEdges = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'chartEdges' field has been set */ - public boolean hasChartEdges() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'chartEdges' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder clearChartEdges() { - chartEdges = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'datasets' field */ - public java.util.List getDatasets() { - return datasets; - } - - /** Sets the value of the 'datasets' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder setDatasets(java.util.List value) { - validate(fields()[6], value); - this.datasets = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'datasets' field has been set */ - public boolean hasDatasets() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'datasets' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder clearDatasets() { - datasets = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'datasetEdges' field */ - public java.util.List getDatasetEdges() { - return datasetEdges; - } - - /** Sets the value of the 'datasetEdges' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder setDatasetEdges(java.util.List value) { - validate(fields()[7], value); - this.datasetEdges = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'datasetEdges' field has been set */ - public boolean hasDatasetEdges() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'datasetEdges' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder clearDatasetEdges() { - datasetEdges = null; - fieldSetFlags()[7] = 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.dashboard.DashboardInfo.Builder setLastModified(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) { - validate(fields()[8], value); - this.lastModified = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'lastModified' field has been set */ - public boolean hasLastModified() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder clearLastModified() { - lastModified = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'dashboardUrl' field */ - public java.lang.String getDashboardUrl() { - return dashboardUrl; - } - - /** Sets the value of the 'dashboardUrl' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder setDashboardUrl(java.lang.String value) { - validate(fields()[9], value); - this.dashboardUrl = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'dashboardUrl' field has been set */ - public boolean hasDashboardUrl() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'dashboardUrl' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder clearDashboardUrl() { - dashboardUrl = null; - fieldSetFlags()[9] = 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.dashboard.DashboardInfo.Builder setAccess(com.linkedin.pegasus2avro.common.AccessLevel value) { - validate(fields()[10], value); - this.access = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'access' field has been set */ - public boolean hasAccess() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'access' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder clearAccess() { - access = null; - fieldSetFlags()[10] = 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.dashboard.DashboardInfo.Builder setLastRefreshed(java.lang.Long value) { - validate(fields()[11], value); - this.lastRefreshed = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'lastRefreshed' field has been set */ - public boolean hasLastRefreshed() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'lastRefreshed' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardInfo.Builder clearLastRefreshed() { - lastRefreshed = null; - fieldSetFlags()[11] = false; - return this; - } - - @Override - public DashboardInfo build() { - try { - DashboardInfo record = new DashboardInfo(); - 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.charts = fieldSetFlags()[4] ? this.charts : (java.util.List) defaultValue(fields()[4]); - record.chartEdges = fieldSetFlags()[5] ? this.chartEdges : (java.util.List) defaultValue(fields()[5]); - record.datasets = fieldSetFlags()[6] ? this.datasets : (java.util.List) defaultValue(fields()[6]); - record.datasetEdges = fieldSetFlags()[7] ? this.datasetEdges : (java.util.List) defaultValue(fields()[7]); - record.lastModified = fieldSetFlags()[8] ? this.lastModified : (com.linkedin.pegasus2avro.common.ChangeAuditStamps) defaultValue(fields()[8]); - record.dashboardUrl = fieldSetFlags()[9] ? this.dashboardUrl : (java.lang.String) defaultValue(fields()[9]); - record.access = fieldSetFlags()[10] ? this.access : (com.linkedin.pegasus2avro.common.AccessLevel) defaultValue(fields()[10]); - record.lastRefreshed = fieldSetFlags()[11] ? this.lastRefreshed : (java.lang.Long) defaultValue(fields()[11]); - 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/dashboard/DashboardUsageStatistics.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dashboard/DashboardUsageStatistics.java deleted file mode 100644 index 1cfe26c24edea..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dashboard/DashboardUsageStatistics.java +++ /dev/null @@ -1,647 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dashboard; -@SuppressWarnings("all") -/** Experimental (Subject to breaking change) -- Stats corresponding to dashboard's usage. - -If this aspect represents the latest snapshot of the statistics about a Dashboard, 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 DashboardUsageStatistics 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\":\"DashboardUsageStatistics\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"doc\":\"Experimental (Subject to breaking change) -- Stats corresponding to dashboard's usage.\\n\\nIf this aspect represents the latest snapshot of the statistics about a Dashboard, 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 dashboard has been viewed\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"executionsCount\",\"type\":[\"null\",\"int\"],\"doc\":\"The total number of dashboard executions (refreshes / syncs) \",\"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\":\"DashboardUserUsageCounts\",\"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 dashboard\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"executionsCount\",\"type\":[\"null\",\"int\"],\"doc\":\"The number of times the user has executed (refreshed) the dashboard\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"usageCount\",\"type\":[\"null\",\"int\"],\"doc\":\"Normalized numeric metric representing user's dashboard usage -- the number of times the user executed or viewed the dashboard. \",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"userEmail\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"If user_email is set, we attempt to resolve the user's urn upon ingest\",\"default\":null,\"TimeseriesField\":{}}]}}],\"doc\":\"Users within this bucket, with frequency counts\",\"default\":null,\"TimeseriesFieldCollection\":{\"key\":\"user\"}},{\"name\":\"favoritesCount\",\"type\":[\"null\",\"int\"],\"doc\":\"The total number of times that the dashboard has been favorited \",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"lastViewedAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Last viewed at\\n\\nThis should not be set in cases where statistics are windowed. \",\"default\":null,\"TimeseriesField\":{}}],\"Aspect\":{\"name\":\"dashboardUsageStatistics\",\"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 dashboard has been viewed */ - @Deprecated public java.lang.Integer viewsCount; - /** The total number of dashboard executions (refreshes / syncs) */ - @Deprecated public java.lang.Integer executionsCount; - /** Unique user count */ - @Deprecated public java.lang.Integer uniqueUserCount; - /** Users within this bucket, with frequency counts */ - @Deprecated public java.util.List userCounts; - /** The total number of times that the dashboard has been favorited */ - @Deprecated public java.lang.Integer favoritesCount; - /** Last viewed at - -This should not be set in cases where statistics are windowed. */ - @Deprecated public java.lang.Long lastViewedAt; - - /** - * 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 DashboardUsageStatistics() {} - - /** - * All-args constructor. - */ - public DashboardUsageStatistics(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 executionsCount, java.lang.Integer uniqueUserCount, java.util.List userCounts, java.lang.Integer favoritesCount, java.lang.Long lastViewedAt) { - this.timestampMillis = timestampMillis; - this.eventGranularity = eventGranularity; - this.partitionSpec = partitionSpec; - this.messageId = messageId; - this.viewsCount = viewsCount; - this.executionsCount = executionsCount; - this.uniqueUserCount = uniqueUserCount; - this.userCounts = userCounts; - this.favoritesCount = favoritesCount; - this.lastViewedAt = lastViewedAt; - } - - 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 executionsCount; - case 6: return uniqueUserCount; - case 7: return userCounts; - case 8: return favoritesCount; - case 9: return lastViewedAt; - 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: executionsCount = (java.lang.Integer)value$; break; - case 6: uniqueUserCount = (java.lang.Integer)value$; break; - case 7: userCounts = (java.util.List)value$; break; - case 8: favoritesCount = (java.lang.Integer)value$; break; - case 9: lastViewedAt = (java.lang.Long)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 dashboard has been viewed */ - public java.lang.Integer getViewsCount() { - return viewsCount; - } - - /** - * Sets the value of the 'viewsCount' field. - * The total number of times dashboard has been viewed * @param value the value to set. - */ - public void setViewsCount(java.lang.Integer value) { - this.viewsCount = value; - } - - /** - * Gets the value of the 'executionsCount' field. - * The total number of dashboard executions (refreshes / syncs) */ - public java.lang.Integer getExecutionsCount() { - return executionsCount; - } - - /** - * Sets the value of the 'executionsCount' field. - * The total number of dashboard executions (refreshes / syncs) * @param value the value to set. - */ - public void setExecutionsCount(java.lang.Integer value) { - this.executionsCount = 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; - } - - /** - * Gets the value of the 'favoritesCount' field. - * The total number of times that the dashboard has been favorited */ - public java.lang.Integer getFavoritesCount() { - return favoritesCount; - } - - /** - * Sets the value of the 'favoritesCount' field. - * The total number of times that the dashboard has been favorited * @param value the value to set. - */ - public void setFavoritesCount(java.lang.Integer value) { - this.favoritesCount = value; - } - - /** - * Gets the value of the 'lastViewedAt' field. - * Last viewed at - -This should not be set in cases where statistics are windowed. */ - public java.lang.Long getLastViewedAt() { - return lastViewedAt; - } - - /** - * Sets the value of the 'lastViewedAt' field. - * Last viewed at - -This should not be set in cases where statistics are windowed. * @param value the value to set. - */ - public void setLastViewedAt(java.lang.Long value) { - this.lastViewedAt = value; - } - - /** Creates a new DashboardUsageStatistics RecordBuilder */ - public static com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder(); - } - - /** Creates a new DashboardUsageStatistics RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder newBuilder(com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder other) { - return new com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder(other); - } - - /** Creates a new DashboardUsageStatistics RecordBuilder by copying an existing DashboardUsageStatistics instance */ - public static com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder newBuilder(com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics other) { - return new com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder(other); - } - - /** - * RecordBuilder for DashboardUsageStatistics 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 executionsCount; - private java.lang.Integer uniqueUserCount; - private java.util.List userCounts; - private java.lang.Integer favoritesCount; - private java.lang.Long lastViewedAt; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.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.executionsCount)) { - this.executionsCount = data().deepCopy(fields()[5].schema(), other.executionsCount); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.uniqueUserCount)) { - this.uniqueUserCount = data().deepCopy(fields()[6].schema(), other.uniqueUserCount); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.userCounts)) { - this.userCounts = data().deepCopy(fields()[7].schema(), other.userCounts); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.favoritesCount)) { - this.favoritesCount = data().deepCopy(fields()[8].schema(), other.favoritesCount); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.lastViewedAt)) { - this.lastViewedAt = data().deepCopy(fields()[9].schema(), other.lastViewedAt); - fieldSetFlags()[9] = true; - } - } - - /** Creates a Builder by copying an existing DashboardUsageStatistics instance */ - private Builder(com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics other) { - super(com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.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.executionsCount)) { - this.executionsCount = data().deepCopy(fields()[5].schema(), other.executionsCount); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.uniqueUserCount)) { - this.uniqueUserCount = data().deepCopy(fields()[6].schema(), other.uniqueUserCount); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.userCounts)) { - this.userCounts = data().deepCopy(fields()[7].schema(), other.userCounts); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.favoritesCount)) { - this.favoritesCount = data().deepCopy(fields()[8].schema(), other.favoritesCount); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.lastViewedAt)) { - this.lastViewedAt = data().deepCopy(fields()[9].schema(), other.lastViewedAt); - fieldSetFlags()[9] = 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.dashboard.DashboardUsageStatistics.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.dashboard.DashboardUsageStatistics.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.dashboard.DashboardUsageStatistics.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.dashboard.DashboardUsageStatistics.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.dashboard.DashboardUsageStatistics.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.dashboard.DashboardUsageStatistics.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.dashboard.DashboardUsageStatistics.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.dashboard.DashboardUsageStatistics.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.dashboard.DashboardUsageStatistics.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.dashboard.DashboardUsageStatistics.Builder clearViewsCount() { - viewsCount = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'executionsCount' field */ - public java.lang.Integer getExecutionsCount() { - return executionsCount; - } - - /** Sets the value of the 'executionsCount' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder setExecutionsCount(java.lang.Integer value) { - validate(fields()[5], value); - this.executionsCount = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'executionsCount' field has been set */ - public boolean hasExecutionsCount() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'executionsCount' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder clearExecutionsCount() { - executionsCount = null; - fieldSetFlags()[5] = 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.dashboard.DashboardUsageStatistics.Builder setUniqueUserCount(java.lang.Integer value) { - validate(fields()[6], value); - this.uniqueUserCount = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'uniqueUserCount' field has been set */ - public boolean hasUniqueUserCount() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'uniqueUserCount' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder clearUniqueUserCount() { - uniqueUserCount = null; - fieldSetFlags()[6] = 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.dashboard.DashboardUsageStatistics.Builder setUserCounts(java.util.List value) { - validate(fields()[7], value); - this.userCounts = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'userCounts' field has been set */ - public boolean hasUserCounts() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'userCounts' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder clearUserCounts() { - userCounts = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'favoritesCount' field */ - public java.lang.Integer getFavoritesCount() { - return favoritesCount; - } - - /** Sets the value of the 'favoritesCount' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder setFavoritesCount(java.lang.Integer value) { - validate(fields()[8], value); - this.favoritesCount = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'favoritesCount' field has been set */ - public boolean hasFavoritesCount() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'favoritesCount' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder clearFavoritesCount() { - favoritesCount = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'lastViewedAt' field */ - public java.lang.Long getLastViewedAt() { - return lastViewedAt; - } - - /** Sets the value of the 'lastViewedAt' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder setLastViewedAt(java.lang.Long value) { - validate(fields()[9], value); - this.lastViewedAt = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'lastViewedAt' field has been set */ - public boolean hasLastViewedAt() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'lastViewedAt' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUsageStatistics.Builder clearLastViewedAt() { - lastViewedAt = null; - fieldSetFlags()[9] = false; - return this; - } - - @Override - public DashboardUsageStatistics build() { - try { - DashboardUsageStatistics record = new DashboardUsageStatistics(); - 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.executionsCount = fieldSetFlags()[5] ? this.executionsCount : (java.lang.Integer) defaultValue(fields()[5]); - record.uniqueUserCount = fieldSetFlags()[6] ? this.uniqueUserCount : (java.lang.Integer) defaultValue(fields()[6]); - record.userCounts = fieldSetFlags()[7] ? this.userCounts : (java.util.List) defaultValue(fields()[7]); - record.favoritesCount = fieldSetFlags()[8] ? this.favoritesCount : (java.lang.Integer) defaultValue(fields()[8]); - record.lastViewedAt = fieldSetFlags()[9] ? this.lastViewedAt : (java.lang.Long) defaultValue(fields()[9]); - 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/dashboard/DashboardUserUsageCounts.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dashboard/DashboardUserUsageCounts.java deleted file mode 100644 index 2a7ce3491e10c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dashboard/DashboardUserUsageCounts.java +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dashboard; -@SuppressWarnings("all") -/** Records a single user's usage counts for a given resource */ -@org.apache.avro.specific.AvroGenerated -public class DashboardUserUsageCounts 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\":\"DashboardUserUsageCounts\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"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 dashboard\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"executionsCount\",\"type\":[\"null\",\"int\"],\"doc\":\"The number of times the user has executed (refreshed) the dashboard\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"usageCount\",\"type\":[\"null\",\"int\"],\"doc\":\"Normalized numeric metric representing user's dashboard usage -- the number of times the user executed or viewed the dashboard. \",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"userEmail\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"If user_email is set, we attempt to resolve the user's urn upon ingest\",\"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 dashboard */ - @Deprecated public java.lang.Integer viewsCount; - /** The number of times the user has executed (refreshed) the dashboard */ - @Deprecated public java.lang.Integer executionsCount; - /** Normalized numeric metric representing user's dashboard usage -- the number of times the user executed or viewed the dashboard. */ - @Deprecated public java.lang.Integer usageCount; - /** If user_email is set, we attempt to resolve the user's urn upon ingest */ - @Deprecated public java.lang.String userEmail; - - /** - * 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 DashboardUserUsageCounts() {} - - /** - * All-args constructor. - */ - public DashboardUserUsageCounts(java.lang.String user, java.lang.Integer viewsCount, java.lang.Integer executionsCount, java.lang.Integer usageCount, java.lang.String userEmail) { - this.user = user; - this.viewsCount = viewsCount; - this.executionsCount = executionsCount; - this.usageCount = usageCount; - this.userEmail = userEmail; - } - - 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; - case 2: return executionsCount; - case 3: return usageCount; - case 4: return userEmail; - 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; - case 2: executionsCount = (java.lang.Integer)value$; break; - case 3: usageCount = (java.lang.Integer)value$; break; - case 4: userEmail = (java.lang.String)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 dashboard */ - public java.lang.Integer getViewsCount() { - return viewsCount; - } - - /** - * Sets the value of the 'viewsCount' field. - * The number of times the user has viewed the dashboard * @param value the value to set. - */ - public void setViewsCount(java.lang.Integer value) { - this.viewsCount = value; - } - - /** - * Gets the value of the 'executionsCount' field. - * The number of times the user has executed (refreshed) the dashboard */ - public java.lang.Integer getExecutionsCount() { - return executionsCount; - } - - /** - * Sets the value of the 'executionsCount' field. - * The number of times the user has executed (refreshed) the dashboard * @param value the value to set. - */ - public void setExecutionsCount(java.lang.Integer value) { - this.executionsCount = value; - } - - /** - * Gets the value of the 'usageCount' field. - * Normalized numeric metric representing user's dashboard usage -- the number of times the user executed or viewed the dashboard. */ - public java.lang.Integer getUsageCount() { - return usageCount; - } - - /** - * Sets the value of the 'usageCount' field. - * Normalized numeric metric representing user's dashboard usage -- the number of times the user executed or viewed the dashboard. * @param value the value to set. - */ - public void setUsageCount(java.lang.Integer value) { - this.usageCount = value; - } - - /** - * Gets the value of the 'userEmail' field. - * If user_email is set, we attempt to resolve the user's urn upon ingest */ - public java.lang.String getUserEmail() { - return userEmail; - } - - /** - * Sets the value of the 'userEmail' field. - * If user_email is set, we attempt to resolve the user's urn upon ingest * @param value the value to set. - */ - public void setUserEmail(java.lang.String value) { - this.userEmail = value; - } - - /** Creates a new DashboardUserUsageCounts RecordBuilder */ - public static com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder(); - } - - /** Creates a new DashboardUserUsageCounts RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder newBuilder(com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder other) { - return new com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder(other); - } - - /** Creates a new DashboardUserUsageCounts RecordBuilder by copying an existing DashboardUserUsageCounts instance */ - public static com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder newBuilder(com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts other) { - return new com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder(other); - } - - /** - * RecordBuilder for DashboardUserUsageCounts 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; - private java.lang.Integer executionsCount; - private java.lang.Integer usageCount; - private java.lang.String userEmail; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.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; - } - if (isValidValue(fields()[2], other.executionsCount)) { - this.executionsCount = data().deepCopy(fields()[2].schema(), other.executionsCount); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.usageCount)) { - this.usageCount = data().deepCopy(fields()[3].schema(), other.usageCount); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.userEmail)) { - this.userEmail = data().deepCopy(fields()[4].schema(), other.userEmail); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing DashboardUserUsageCounts instance */ - private Builder(com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts other) { - super(com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.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; - } - if (isValidValue(fields()[2], other.executionsCount)) { - this.executionsCount = data().deepCopy(fields()[2].schema(), other.executionsCount); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.usageCount)) { - this.usageCount = data().deepCopy(fields()[3].schema(), other.usageCount); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.userEmail)) { - this.userEmail = data().deepCopy(fields()[4].schema(), other.userEmail); - fieldSetFlags()[4] = 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.dashboard.DashboardUserUsageCounts.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.dashboard.DashboardUserUsageCounts.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.dashboard.DashboardUserUsageCounts.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.dashboard.DashboardUserUsageCounts.Builder clearViewsCount() { - viewsCount = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'executionsCount' field */ - public java.lang.Integer getExecutionsCount() { - return executionsCount; - } - - /** Sets the value of the 'executionsCount' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder setExecutionsCount(java.lang.Integer value) { - validate(fields()[2], value); - this.executionsCount = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'executionsCount' field has been set */ - public boolean hasExecutionsCount() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'executionsCount' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder clearExecutionsCount() { - executionsCount = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'usageCount' field */ - public java.lang.Integer getUsageCount() { - return usageCount; - } - - /** Sets the value of the 'usageCount' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder setUsageCount(java.lang.Integer value) { - validate(fields()[3], value); - this.usageCount = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'usageCount' field has been set */ - public boolean hasUsageCount() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'usageCount' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder clearUsageCount() { - usageCount = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'userEmail' field */ - public java.lang.String getUserEmail() { - return userEmail; - } - - /** Sets the value of the 'userEmail' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder setUserEmail(java.lang.String value) { - validate(fields()[4], value); - this.userEmail = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'userEmail' field has been set */ - public boolean hasUserEmail() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'userEmail' field */ - public com.linkedin.pegasus2avro.dashboard.DashboardUserUsageCounts.Builder clearUserEmail() { - userEmail = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public DashboardUserUsageCounts build() { - try { - DashboardUserUsageCounts record = new DashboardUserUsageCounts(); - record.user = fieldSetFlags()[0] ? this.user : (java.lang.String) defaultValue(fields()[0]); - record.viewsCount = fieldSetFlags()[1] ? this.viewsCount : (java.lang.Integer) defaultValue(fields()[1]); - record.executionsCount = fieldSetFlags()[2] ? this.executionsCount : (java.lang.Integer) defaultValue(fields()[2]); - record.usageCount = fieldSetFlags()[3] ? this.usageCount : (java.lang.Integer) defaultValue(fields()[3]); - record.userEmail = fieldSetFlags()[4] ? this.userEmail : (java.lang.String) 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/dashboard/EditableDashboardProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dashboard/EditableDashboardProperties.java deleted file mode 100644 index b13be96bedaac..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dashboard/EditableDashboardProperties.java +++ /dev/null @@ -1,310 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dashboard; -@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 EditableDashboardProperties 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\":\"EditableDashboardProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"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 dashboard\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDashboardProperties\"}}"); - 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 dashboard */ - @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 EditableDashboardProperties() {} - - /** - * All-args constructor. - */ - public EditableDashboardProperties(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 dashboard */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Edited documentation of the dashboard * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** Creates a new EditableDashboardProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.dashboard.EditableDashboardProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dashboard.EditableDashboardProperties.Builder(); - } - - /** Creates a new EditableDashboardProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dashboard.EditableDashboardProperties.Builder newBuilder(com.linkedin.pegasus2avro.dashboard.EditableDashboardProperties.Builder other) { - return new com.linkedin.pegasus2avro.dashboard.EditableDashboardProperties.Builder(other); - } - - /** Creates a new EditableDashboardProperties RecordBuilder by copying an existing EditableDashboardProperties instance */ - public static com.linkedin.pegasus2avro.dashboard.EditableDashboardProperties.Builder newBuilder(com.linkedin.pegasus2avro.dashboard.EditableDashboardProperties other) { - return new com.linkedin.pegasus2avro.dashboard.EditableDashboardProperties.Builder(other); - } - - /** - * RecordBuilder for EditableDashboardProperties 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.dashboard.EditableDashboardProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dashboard.EditableDashboardProperties.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 EditableDashboardProperties instance */ - private Builder(com.linkedin.pegasus2avro.dashboard.EditableDashboardProperties other) { - super(com.linkedin.pegasus2avro.dashboard.EditableDashboardProperties.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.dashboard.EditableDashboardProperties.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.dashboard.EditableDashboardProperties.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.dashboard.EditableDashboardProperties.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.dashboard.EditableDashboardProperties.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.dashboard.EditableDashboardProperties.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.dashboard.EditableDashboardProperties.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.dashboard.EditableDashboardProperties.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.dashboard.EditableDashboardProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public EditableDashboardProperties build() { - try { - EditableDashboardProperties record = new EditableDashboardProperties(); - 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/datajob/DataFlowInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/DataFlowInfo.java deleted file mode 100644 index 4a87ecece7c7f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/DataFlowInfo.java +++ /dev/null @@ -1,474 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.datajob; -@SuppressWarnings("all") -/** Information about a Data processing flow */ -@org.apache.avro.specific.AvroGenerated -public class DataFlowInfo 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\":\"DataFlowInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing flow\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flow name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flow description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"project\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional project/namespace associated with the flow\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}},{\"name\":\"created\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event timestamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"name\":\"dataFlowInfo\"}}"); - 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; - /** Flow name */ - @Deprecated public java.lang.String name; - /** Flow description */ - @Deprecated public java.lang.String description; - /** Optional project/namespace associated with the flow */ - @Deprecated public java.lang.String project; - /** A timestamp documenting when the asset was created in the source Data Platform (not on DataHub) */ - @Deprecated public com.linkedin.pegasus2avro.common.TimeStamp created; - /** A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub) */ - @Deprecated public com.linkedin.pegasus2avro.common.TimeStamp lastModified; - - /** - * 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 DataFlowInfo() {} - - /** - * All-args constructor. - */ - public DataFlowInfo(java.util.Map customProperties, java.lang.String externalUrl, java.lang.String name, java.lang.String description, java.lang.String project, com.linkedin.pegasus2avro.common.TimeStamp created, com.linkedin.pegasus2avro.common.TimeStamp lastModified) { - this.customProperties = customProperties; - this.externalUrl = externalUrl; - this.name = name; - this.description = description; - this.project = project; - this.created = created; - this.lastModified = lastModified; - } - - 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 name; - case 3: return description; - case 4: return project; - case 5: return created; - case 6: return lastModified; - 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: name = (java.lang.String)value$; break; - case 3: description = (java.lang.String)value$; break; - case 4: project = (java.lang.String)value$; break; - case 5: created = (com.linkedin.pegasus2avro.common.TimeStamp)value$; break; - case 6: lastModified = (com.linkedin.pegasus2avro.common.TimeStamp)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 'name' field. - * Flow name */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Flow name * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'description' field. - * Flow description */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Flow description * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'project' field. - * Optional project/namespace associated with the flow */ - public java.lang.String getProject() { - return project; - } - - /** - * Sets the value of the 'project' field. - * Optional project/namespace associated with the flow * @param value the value to set. - */ - public void setProject(java.lang.String value) { - this.project = value; - } - - /** - * Gets the value of the 'created' field. - * A timestamp documenting when the asset was created in the source Data Platform (not on DataHub) */ - public com.linkedin.pegasus2avro.common.TimeStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * A timestamp documenting when the asset was created in the source Data Platform (not on DataHub) * @param value the value to set. - */ - public void setCreated(com.linkedin.pegasus2avro.common.TimeStamp value) { - this.created = value; - } - - /** - * Gets the value of the 'lastModified' field. - * A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub) */ - public com.linkedin.pegasus2avro.common.TimeStamp getLastModified() { - return lastModified; - } - - /** - * Sets the value of the 'lastModified' field. - * A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub) * @param value the value to set. - */ - public void setLastModified(com.linkedin.pegasus2avro.common.TimeStamp value) { - this.lastModified = value; - } - - /** Creates a new DataFlowInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder(); - } - - /** Creates a new DataFlowInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder newBuilder(com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder other) { - return new com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder(other); - } - - /** Creates a new DataFlowInfo RecordBuilder by copying an existing DataFlowInfo instance */ - public static com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder newBuilder(com.linkedin.pegasus2avro.datajob.DataFlowInfo other) { - return new com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder(other); - } - - /** - * RecordBuilder for DataFlowInfo 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 name; - private java.lang.String description; - private java.lang.String project; - private com.linkedin.pegasus2avro.common.TimeStamp created; - private com.linkedin.pegasus2avro.common.TimeStamp lastModified; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.datajob.DataFlowInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.datajob.DataFlowInfo.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.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - 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.project)) { - this.project = data().deepCopy(fields()[4].schema(), other.project); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.created)) { - this.created = data().deepCopy(fields()[5].schema(), other.created); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[6].schema(), other.lastModified); - fieldSetFlags()[6] = true; - } - } - - /** Creates a Builder by copying an existing DataFlowInfo instance */ - private Builder(com.linkedin.pegasus2avro.datajob.DataFlowInfo other) { - super(com.linkedin.pegasus2avro.datajob.DataFlowInfo.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.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - 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.project)) { - this.project = data().deepCopy(fields()[4].schema(), other.project); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.created)) { - this.created = data().deepCopy(fields()[5].schema(), other.created); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[6].schema(), other.lastModified); - fieldSetFlags()[6] = 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.datajob.DataFlowInfo.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.datajob.DataFlowInfo.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.datajob.DataFlowInfo.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.datajob.DataFlowInfo.Builder clearExternalUrl() { - externalUrl = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.datajob.DataFlowInfo.Builder setName(java.lang.String value) { - validate(fields()[2], value); - this.name = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder clearName() { - name = 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.datajob.DataFlowInfo.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.datajob.DataFlowInfo.Builder clearDescription() { - description = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'project' field */ - public java.lang.String getProject() { - return project; - } - - /** Sets the value of the 'project' field */ - public com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder setProject(java.lang.String value) { - validate(fields()[4], value); - this.project = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'project' field has been set */ - public boolean hasProject() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'project' field */ - public com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder clearProject() { - project = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'created' field */ - public com.linkedin.pegasus2avro.common.TimeStamp getCreated() { - return created; - } - - /** Sets the value of the 'created' field */ - public com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder setCreated(com.linkedin.pegasus2avro.common.TimeStamp value) { - validate(fields()[5], value); - this.created = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder clearCreated() { - created = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.common.TimeStamp getLastModified() { - return lastModified; - } - - /** Sets the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder setLastModified(com.linkedin.pegasus2avro.common.TimeStamp value) { - validate(fields()[6], value); - this.lastModified = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'lastModified' field has been set */ - public boolean hasLastModified() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.datajob.DataFlowInfo.Builder clearLastModified() { - lastModified = null; - fieldSetFlags()[6] = false; - return this; - } - - @Override - public DataFlowInfo build() { - try { - DataFlowInfo record = new DataFlowInfo(); - 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.name = fieldSetFlags()[2] ? this.name : (java.lang.String) defaultValue(fields()[2]); - record.description = fieldSetFlags()[3] ? this.description : (java.lang.String) defaultValue(fields()[3]); - record.project = fieldSetFlags()[4] ? this.project : (java.lang.String) defaultValue(fields()[4]); - record.created = fieldSetFlags()[5] ? this.created : (com.linkedin.pegasus2avro.common.TimeStamp) defaultValue(fields()[5]); - record.lastModified = fieldSetFlags()[6] ? this.lastModified : (com.linkedin.pegasus2avro.common.TimeStamp) 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/datajob/DataJobInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/DataJobInfo.java deleted file mode 100644 index ffe16b17109e7..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/DataJobInfo.java +++ /dev/null @@ -1,587 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.datajob; -@SuppressWarnings("all") -/** Information about a Data processing job */ -@org.apache.avro.specific.AvroGenerated -public class DataJobInfo 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\":\"DataJobInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing job\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Job name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Job description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"type\",\"type\":[{\"type\":\"enum\",\"name\":\"AzkabanJobType\",\"namespace\":\"com.linkedin.pegasus2avro.datajob.azkaban\",\"doc\":\"The various types of support azkaban jobs\",\"symbols\":[\"COMMAND\",\"HADOOP_JAVA\",\"HADOOP_SHELL\",\"HIVE\",\"PIG\",\"SQL\",\"GLUE\"],\"symbolDocs\":{\"COMMAND\":\"The command job type is one of the basic built-in types. It runs multiple UNIX commands using java processbuilder.\\nUpon execution, Azkaban spawns off a process to run the command.\",\"GLUE\":\"Glue type is for running AWS Glue job transforms.\",\"HADOOP_JAVA\":\"Runs a java program with ability to access Hadoop cluster.\\nhttps://azkaban.readthedocs.io/en/latest/jobTypes.html#java-job-type\",\"HADOOP_SHELL\":\"In large part, this is the same Command type. The difference is its ability to talk to a Hadoop cluster\\nsecurely, via Hadoop tokens.\",\"HIVE\":\"Hive type is for running Hive jobs.\",\"PIG\":\"Pig type is for running Pig jobs.\",\"SQL\":\"SQL is for running Presto, mysql queries etc\"}},{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Datajob type\\n*NOTE**: AzkabanJobType is deprecated. Please use strings instead.\"},{\"name\":\"flowUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataFlow urn that this job is part of\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataFlowUrn\"}},{\"name\":\"created\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event timestamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"JobStatus\",\"doc\":\"Job statuses\",\"symbols\":[\"STARTING\",\"IN_PROGRESS\",\"STOPPING\",\"STOPPED\",\"COMPLETED\",\"FAILED\",\"UNKNOWN\",\"SKIPPED\"],\"symbolDocs\":{\"COMPLETED\":\"Jobs with successful completion.\",\"FAILED\":\"Jobs that have failed.\",\"IN_PROGRESS\":\"Jobs currently running.\",\"SKIPPED\":\"Jobs that have been skipped.\",\"STARTING\":\"Jobs being initialized.\",\"STOPPED\":\"Jobs that have stopped.\",\"STOPPING\":\"Jobs being stopped.\",\"UNKNOWN\":\"Jobs with unknown status (either unmappable or unavailable)\"}}],\"doc\":\"Status of the job - Deprecated for Data Process Instance model.\",\"default\":null,\"deprecated\":\"Use Data Process Instance model, instead\"}],\"Aspect\":{\"name\":\"dataJobInfo\"}}"); - 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; - /** Job name */ - @Deprecated public java.lang.String name; - /** Job description */ - @Deprecated public java.lang.String description; - /** Datajob type -*NOTE**: AzkabanJobType is deprecated. Please use strings instead. */ - @Deprecated public java.lang.Object type; - /** DataFlow urn that this job is part of */ - @Deprecated public java.lang.String flowUrn; - /** A timestamp documenting when the asset was created in the source Data Platform (not on DataHub) */ - @Deprecated public com.linkedin.pegasus2avro.common.TimeStamp created; - /** A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub) */ - @Deprecated public com.linkedin.pegasus2avro.common.TimeStamp lastModified; - /** Status of the job - Deprecated for Data Process Instance model. */ - @Deprecated public com.linkedin.pegasus2avro.datajob.JobStatus status; - - /** - * 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 DataJobInfo() {} - - /** - * All-args constructor. - */ - public DataJobInfo(java.util.Map customProperties, java.lang.String externalUrl, java.lang.String name, java.lang.String description, java.lang.Object type, java.lang.String flowUrn, com.linkedin.pegasus2avro.common.TimeStamp created, com.linkedin.pegasus2avro.common.TimeStamp lastModified, com.linkedin.pegasus2avro.datajob.JobStatus status) { - this.customProperties = customProperties; - this.externalUrl = externalUrl; - this.name = name; - this.description = description; - this.type = type; - this.flowUrn = flowUrn; - this.created = created; - this.lastModified = lastModified; - this.status = status; - } - - 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 name; - case 3: return description; - case 4: return type; - case 5: return flowUrn; - case 6: return created; - case 7: return lastModified; - case 8: return status; - 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: name = (java.lang.String)value$; break; - case 3: description = (java.lang.String)value$; break; - case 4: type = (java.lang.Object)value$; break; - case 5: flowUrn = (java.lang.String)value$; break; - case 6: created = (com.linkedin.pegasus2avro.common.TimeStamp)value$; break; - case 7: lastModified = (com.linkedin.pegasus2avro.common.TimeStamp)value$; break; - case 8: status = (com.linkedin.pegasus2avro.datajob.JobStatus)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 'name' field. - * Job name */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Job name * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'description' field. - * Job description */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Job description * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'type' field. - * Datajob type -*NOTE**: AzkabanJobType is deprecated. Please use strings instead. */ - public java.lang.Object getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Datajob type -*NOTE**: AzkabanJobType is deprecated. Please use strings instead. * @param value the value to set. - */ - public void setType(java.lang.Object value) { - this.type = value; - } - - /** - * Gets the value of the 'flowUrn' field. - * DataFlow urn that this job is part of */ - public java.lang.String getFlowUrn() { - return flowUrn; - } - - /** - * Sets the value of the 'flowUrn' field. - * DataFlow urn that this job is part of * @param value the value to set. - */ - public void setFlowUrn(java.lang.String value) { - this.flowUrn = value; - } - - /** - * Gets the value of the 'created' field. - * A timestamp documenting when the asset was created in the source Data Platform (not on DataHub) */ - public com.linkedin.pegasus2avro.common.TimeStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * A timestamp documenting when the asset was created in the source Data Platform (not on DataHub) * @param value the value to set. - */ - public void setCreated(com.linkedin.pegasus2avro.common.TimeStamp value) { - this.created = value; - } - - /** - * Gets the value of the 'lastModified' field. - * A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub) */ - public com.linkedin.pegasus2avro.common.TimeStamp getLastModified() { - return lastModified; - } - - /** - * Sets the value of the 'lastModified' field. - * A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub) * @param value the value to set. - */ - public void setLastModified(com.linkedin.pegasus2avro.common.TimeStamp value) { - this.lastModified = value; - } - - /** - * Gets the value of the 'status' field. - * Status of the job - Deprecated for Data Process Instance model. */ - public com.linkedin.pegasus2avro.datajob.JobStatus getStatus() { - return status; - } - - /** - * Sets the value of the 'status' field. - * Status of the job - Deprecated for Data Process Instance model. * @param value the value to set. - */ - public void setStatus(com.linkedin.pegasus2avro.datajob.JobStatus value) { - this.status = value; - } - - /** Creates a new DataJobInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder(); - } - - /** Creates a new DataJobInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder newBuilder(com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder other) { - return new com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder(other); - } - - /** Creates a new DataJobInfo RecordBuilder by copying an existing DataJobInfo instance */ - public static com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder newBuilder(com.linkedin.pegasus2avro.datajob.DataJobInfo other) { - return new com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder(other); - } - - /** - * RecordBuilder for DataJobInfo 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 name; - private java.lang.String description; - private java.lang.Object type; - private java.lang.String flowUrn; - private com.linkedin.pegasus2avro.common.TimeStamp created; - private com.linkedin.pegasus2avro.common.TimeStamp lastModified; - private com.linkedin.pegasus2avro.datajob.JobStatus status; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.datajob.DataJobInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.datajob.DataJobInfo.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.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - 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.type)) { - this.type = data().deepCopy(fields()[4].schema(), other.type); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.flowUrn)) { - this.flowUrn = data().deepCopy(fields()[5].schema(), other.flowUrn); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.created)) { - this.created = data().deepCopy(fields()[6].schema(), other.created); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[7].schema(), other.lastModified); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.status)) { - this.status = data().deepCopy(fields()[8].schema(), other.status); - fieldSetFlags()[8] = true; - } - } - - /** Creates a Builder by copying an existing DataJobInfo instance */ - private Builder(com.linkedin.pegasus2avro.datajob.DataJobInfo other) { - super(com.linkedin.pegasus2avro.datajob.DataJobInfo.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.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - 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.type)) { - this.type = data().deepCopy(fields()[4].schema(), other.type); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.flowUrn)) { - this.flowUrn = data().deepCopy(fields()[5].schema(), other.flowUrn); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.created)) { - this.created = data().deepCopy(fields()[6].schema(), other.created); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[7].schema(), other.lastModified); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.status)) { - this.status = data().deepCopy(fields()[8].schema(), other.status); - fieldSetFlags()[8] = 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.datajob.DataJobInfo.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.datajob.DataJobInfo.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.datajob.DataJobInfo.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.datajob.DataJobInfo.Builder clearExternalUrl() { - externalUrl = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.datajob.DataJobInfo.Builder setName(java.lang.String value) { - validate(fields()[2], value); - this.name = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder clearName() { - name = 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.datajob.DataJobInfo.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.datajob.DataJobInfo.Builder clearDescription() { - description = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public java.lang.Object getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder setType(java.lang.Object value) { - validate(fields()[4], value); - this.type = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'type' field has been set */ - public boolean hasType() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'type' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder clearType() { - type = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'flowUrn' field */ - public java.lang.String getFlowUrn() { - return flowUrn; - } - - /** Sets the value of the 'flowUrn' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder setFlowUrn(java.lang.String value) { - validate(fields()[5], value); - this.flowUrn = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'flowUrn' field has been set */ - public boolean hasFlowUrn() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'flowUrn' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder clearFlowUrn() { - flowUrn = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'created' field */ - public com.linkedin.pegasus2avro.common.TimeStamp getCreated() { - return created; - } - - /** Sets the value of the 'created' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder setCreated(com.linkedin.pegasus2avro.common.TimeStamp value) { - validate(fields()[6], value); - this.created = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder clearCreated() { - created = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.common.TimeStamp getLastModified() { - return lastModified; - } - - /** Sets the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder setLastModified(com.linkedin.pegasus2avro.common.TimeStamp value) { - validate(fields()[7], value); - this.lastModified = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'lastModified' field has been set */ - public boolean hasLastModified() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder clearLastModified() { - lastModified = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'status' field */ - public com.linkedin.pegasus2avro.datajob.JobStatus getStatus() { - return status; - } - - /** Sets the value of the 'status' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInfo.Builder setStatus(com.linkedin.pegasus2avro.datajob.JobStatus 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.datajob.DataJobInfo.Builder clearStatus() { - status = null; - fieldSetFlags()[8] = false; - return this; - } - - @Override - public DataJobInfo build() { - try { - DataJobInfo record = new DataJobInfo(); - 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.name = fieldSetFlags()[2] ? this.name : (java.lang.String) defaultValue(fields()[2]); - record.description = fieldSetFlags()[3] ? this.description : (java.lang.String) defaultValue(fields()[3]); - record.type = fieldSetFlags()[4] ? this.type : (java.lang.Object) defaultValue(fields()[4]); - record.flowUrn = fieldSetFlags()[5] ? this.flowUrn : (java.lang.String) defaultValue(fields()[5]); - record.created = fieldSetFlags()[6] ? this.created : (com.linkedin.pegasus2avro.common.TimeStamp) defaultValue(fields()[6]); - record.lastModified = fieldSetFlags()[7] ? this.lastModified : (com.linkedin.pegasus2avro.common.TimeStamp) defaultValue(fields()[7]); - record.status = fieldSetFlags()[8] ? this.status : (com.linkedin.pegasus2avro.datajob.JobStatus) 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/datajob/DataJobInputOutput.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/DataJobInputOutput.java deleted file mode 100644 index 4281ab300179c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/DataJobInputOutput.java +++ /dev/null @@ -1,593 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.datajob; -@SuppressWarnings("all") -/** Information about the inputs and outputs of a Data processing job */ -@org.apache.avro.specific.AvroGenerated -public class DataJobInputOutput 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\":\"DataJobInputOutput\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about the inputs and outputs of a Data processing job\",\"fields\":[{\"name\":\"inputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Input datasets consumed by the data job during processing\\nDeprecated! Use inputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"inputDatasetEdges\",\"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\":{\"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}]}}],\"doc\":\"Input datasets consumed by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatasetEdges/*/created/actor\",\"createdOn\":\"inputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"inputDatasetEdges/*/properties\",\"updatedActor\":\"inputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"inputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Output datasets produced by the data job during processing\\nDeprecated! Use outputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"outputDatasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Output datasets produced by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"outputDatasetEdges/*/created/actor\",\"createdOn\":\"outputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\",\"properties\":\"outputDatasetEdges/*/properties\",\"updatedActor\":\"outputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"outputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"outputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}},{\"name\":\"inputDatajobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Input datajobs that this data job depends on\\nDeprecated! Use inputDatajobEdges instead.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\"}},\"deprecated\":true},{\"name\":\"inputDatajobEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Input datajobs that this data job depends on\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatajobEdges/*/created/actor\",\"createdOn\":\"inputDatajobEdges/*/created/time\",\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"inputDatajobEdges/*/properties\",\"updatedActor\":\"inputDatajobEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatajobEdges/*/lastModified/time\"}}},{\"name\":\"inputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the input datasets used by this job\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputFields\",\"queryByDefault\":false}}},{\"name\":\"outputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the output datasets this job writes to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputFields\",\"queryByDefault\":false}}},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FineGrainedLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"A fine-grained lineage from upstream fields/datasets to downstream field(s)\",\"fields\":[{\"name\":\"upstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageUpstreamType\",\"doc\":\"The type of upstream entity in a fine-grained lineage\",\"symbols\":[\"FIELD_SET\",\"DATASET\",\"NONE\"],\"symbolDocs\":{\"DATASET\":\" Indicates that this lineage is originating from upstream dataset(s)\",\"FIELD_SET\":\" Indicates that this lineage is originating from upstream field(s)\",\"NONE\":\" Indicates that there is no upstream lineage i.e. the downstream field is not a derived field\"}},\"doc\":\"The type of upstream entity\"},{\"name\":\"upstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Upstream entities in the lineage\",\"default\":null},{\"name\":\"downstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageDownstreamType\",\"doc\":\"The type of downstream field(s) in a fine-grained lineage\",\"symbols\":[\"FIELD\",\"FIELD_SET\"],\"symbolDocs\":{\"FIELD\":\" Indicates that the lineage is for a single, specific, downstream field\",\"FIELD_SET\":\" Indicates that the lineage is for a set of downstream fields\"}},\"doc\":\"The type of downstream field(s)\"},{\"name\":\"downstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Downstream fields in the lineage\",\"default\":null},{\"name\":\"transformOperation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The transform operation applied to the upstream entities to produce the downstream field(s)\",\"default\":null},{\"name\":\"confidenceScore\",\"type\":\"float\",\"doc\":\"The confidence in this lineage between 0"," (low confidence) and 1 (high confidence)\",\"default\":1.0}]}}],\"doc\":\"Fine-grained column-level lineages\",\"default\":null}],\"Aspect\":{\"name\":\"dataJobInputOutput\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Input datasets consumed by the data job during processing -Deprecated! Use inputDatasetEdges instead. */ - @Deprecated public java.util.List inputDatasets; - /** Input datasets consumed by the data job during processing */ - @Deprecated public java.util.List inputDatasetEdges; - /** Output datasets produced by the data job during processing -Deprecated! Use outputDatasetEdges instead. */ - @Deprecated public java.util.List outputDatasets; - /** Output datasets produced by the data job during processing */ - @Deprecated public java.util.List outputDatasetEdges; - /** Input datajobs that this data job depends on -Deprecated! Use inputDatajobEdges instead. */ - @Deprecated public java.util.List inputDatajobs; - /** Input datajobs that this data job depends on */ - @Deprecated public java.util.List inputDatajobEdges; - /** Fields of the input datasets used by this job */ - @Deprecated public java.util.List inputDatasetFields; - /** Fields of the output datasets this job writes to */ - @Deprecated public java.util.List outputDatasetFields; - /** Fine-grained column-level lineages */ - @Deprecated public java.util.List fineGrainedLineages; - - /** - * 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 DataJobInputOutput() {} - - /** - * All-args constructor. - */ - public DataJobInputOutput(java.util.List inputDatasets, java.util.List inputDatasetEdges, java.util.List outputDatasets, java.util.List outputDatasetEdges, java.util.List inputDatajobs, java.util.List inputDatajobEdges, java.util.List inputDatasetFields, java.util.List outputDatasetFields, java.util.List fineGrainedLineages) { - this.inputDatasets = inputDatasets; - this.inputDatasetEdges = inputDatasetEdges; - this.outputDatasets = outputDatasets; - this.outputDatasetEdges = outputDatasetEdges; - this.inputDatajobs = inputDatajobs; - this.inputDatajobEdges = inputDatajobEdges; - this.inputDatasetFields = inputDatasetFields; - this.outputDatasetFields = outputDatasetFields; - this.fineGrainedLineages = fineGrainedLineages; - } - - 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 inputDatasets; - case 1: return inputDatasetEdges; - case 2: return outputDatasets; - case 3: return outputDatasetEdges; - case 4: return inputDatajobs; - case 5: return inputDatajobEdges; - case 6: return inputDatasetFields; - case 7: return outputDatasetFields; - case 8: return fineGrainedLineages; - 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: inputDatasets = (java.util.List)value$; break; - case 1: inputDatasetEdges = (java.util.List)value$; break; - case 2: outputDatasets = (java.util.List)value$; break; - case 3: outputDatasetEdges = (java.util.List)value$; break; - case 4: inputDatajobs = (java.util.List)value$; break; - case 5: inputDatajobEdges = (java.util.List)value$; break; - case 6: inputDatasetFields = (java.util.List)value$; break; - case 7: outputDatasetFields = (java.util.List)value$; break; - case 8: fineGrainedLineages = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'inputDatasets' field. - * Input datasets consumed by the data job during processing -Deprecated! Use inputDatasetEdges instead. */ - public java.util.List getInputDatasets() { - return inputDatasets; - } - - /** - * Sets the value of the 'inputDatasets' field. - * Input datasets consumed by the data job during processing -Deprecated! Use inputDatasetEdges instead. * @param value the value to set. - */ - public void setInputDatasets(java.util.List value) { - this.inputDatasets = value; - } - - /** - * Gets the value of the 'inputDatasetEdges' field. - * Input datasets consumed by the data job during processing */ - public java.util.List getInputDatasetEdges() { - return inputDatasetEdges; - } - - /** - * Sets the value of the 'inputDatasetEdges' field. - * Input datasets consumed by the data job during processing * @param value the value to set. - */ - public void setInputDatasetEdges(java.util.List value) { - this.inputDatasetEdges = value; - } - - /** - * Gets the value of the 'outputDatasets' field. - * Output datasets produced by the data job during processing -Deprecated! Use outputDatasetEdges instead. */ - public java.util.List getOutputDatasets() { - return outputDatasets; - } - - /** - * Sets the value of the 'outputDatasets' field. - * Output datasets produced by the data job during processing -Deprecated! Use outputDatasetEdges instead. * @param value the value to set. - */ - public void setOutputDatasets(java.util.List value) { - this.outputDatasets = value; - } - - /** - * Gets the value of the 'outputDatasetEdges' field. - * Output datasets produced by the data job during processing */ - public java.util.List getOutputDatasetEdges() { - return outputDatasetEdges; - } - - /** - * Sets the value of the 'outputDatasetEdges' field. - * Output datasets produced by the data job during processing * @param value the value to set. - */ - public void setOutputDatasetEdges(java.util.List value) { - this.outputDatasetEdges = value; - } - - /** - * Gets the value of the 'inputDatajobs' field. - * Input datajobs that this data job depends on -Deprecated! Use inputDatajobEdges instead. */ - public java.util.List getInputDatajobs() { - return inputDatajobs; - } - - /** - * Sets the value of the 'inputDatajobs' field. - * Input datajobs that this data job depends on -Deprecated! Use inputDatajobEdges instead. * @param value the value to set. - */ - public void setInputDatajobs(java.util.List value) { - this.inputDatajobs = value; - } - - /** - * Gets the value of the 'inputDatajobEdges' field. - * Input datajobs that this data job depends on */ - public java.util.List getInputDatajobEdges() { - return inputDatajobEdges; - } - - /** - * Sets the value of the 'inputDatajobEdges' field. - * Input datajobs that this data job depends on * @param value the value to set. - */ - public void setInputDatajobEdges(java.util.List value) { - this.inputDatajobEdges = value; - } - - /** - * Gets the value of the 'inputDatasetFields' field. - * Fields of the input datasets used by this job */ - public java.util.List getInputDatasetFields() { - return inputDatasetFields; - } - - /** - * Sets the value of the 'inputDatasetFields' field. - * Fields of the input datasets used by this job * @param value the value to set. - */ - public void setInputDatasetFields(java.util.List value) { - this.inputDatasetFields = value; - } - - /** - * Gets the value of the 'outputDatasetFields' field. - * Fields of the output datasets this job writes to */ - public java.util.List getOutputDatasetFields() { - return outputDatasetFields; - } - - /** - * Sets the value of the 'outputDatasetFields' field. - * Fields of the output datasets this job writes to * @param value the value to set. - */ - public void setOutputDatasetFields(java.util.List value) { - this.outputDatasetFields = value; - } - - /** - * Gets the value of the 'fineGrainedLineages' field. - * Fine-grained column-level lineages */ - public java.util.List getFineGrainedLineages() { - return fineGrainedLineages; - } - - /** - * Sets the value of the 'fineGrainedLineages' field. - * Fine-grained column-level lineages * @param value the value to set. - */ - public void setFineGrainedLineages(java.util.List value) { - this.fineGrainedLineages = value; - } - - /** Creates a new DataJobInputOutput RecordBuilder */ - public static com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder newBuilder() { - return new com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder(); - } - - /** Creates a new DataJobInputOutput RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder newBuilder(com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder other) { - return new com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder(other); - } - - /** Creates a new DataJobInputOutput RecordBuilder by copying an existing DataJobInputOutput instance */ - public static com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder newBuilder(com.linkedin.pegasus2avro.datajob.DataJobInputOutput other) { - return new com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder(other); - } - - /** - * RecordBuilder for DataJobInputOutput instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List inputDatasets; - private java.util.List inputDatasetEdges; - private java.util.List outputDatasets; - private java.util.List outputDatasetEdges; - private java.util.List inputDatajobs; - private java.util.List inputDatajobEdges; - private java.util.List inputDatasetFields; - private java.util.List outputDatasetFields; - private java.util.List fineGrainedLineages; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.datajob.DataJobInputOutput.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder other) { - super(other); - if (isValidValue(fields()[0], other.inputDatasets)) { - this.inputDatasets = data().deepCopy(fields()[0].schema(), other.inputDatasets); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.inputDatasetEdges)) { - this.inputDatasetEdges = data().deepCopy(fields()[1].schema(), other.inputDatasetEdges); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.outputDatasets)) { - this.outputDatasets = data().deepCopy(fields()[2].schema(), other.outputDatasets); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.outputDatasetEdges)) { - this.outputDatasetEdges = data().deepCopy(fields()[3].schema(), other.outputDatasetEdges); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.inputDatajobs)) { - this.inputDatajobs = data().deepCopy(fields()[4].schema(), other.inputDatajobs); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.inputDatajobEdges)) { - this.inputDatajobEdges = data().deepCopy(fields()[5].schema(), other.inputDatajobEdges); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.inputDatasetFields)) { - this.inputDatasetFields = data().deepCopy(fields()[6].schema(), other.inputDatasetFields); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.outputDatasetFields)) { - this.outputDatasetFields = data().deepCopy(fields()[7].schema(), other.outputDatasetFields); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.fineGrainedLineages)) { - this.fineGrainedLineages = data().deepCopy(fields()[8].schema(), other.fineGrainedLineages); - fieldSetFlags()[8] = true; - } - } - - /** Creates a Builder by copying an existing DataJobInputOutput instance */ - private Builder(com.linkedin.pegasus2avro.datajob.DataJobInputOutput other) { - super(com.linkedin.pegasus2avro.datajob.DataJobInputOutput.SCHEMA$); - if (isValidValue(fields()[0], other.inputDatasets)) { - this.inputDatasets = data().deepCopy(fields()[0].schema(), other.inputDatasets); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.inputDatasetEdges)) { - this.inputDatasetEdges = data().deepCopy(fields()[1].schema(), other.inputDatasetEdges); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.outputDatasets)) { - this.outputDatasets = data().deepCopy(fields()[2].schema(), other.outputDatasets); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.outputDatasetEdges)) { - this.outputDatasetEdges = data().deepCopy(fields()[3].schema(), other.outputDatasetEdges); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.inputDatajobs)) { - this.inputDatajobs = data().deepCopy(fields()[4].schema(), other.inputDatajobs); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.inputDatajobEdges)) { - this.inputDatajobEdges = data().deepCopy(fields()[5].schema(), other.inputDatajobEdges); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.inputDatasetFields)) { - this.inputDatasetFields = data().deepCopy(fields()[6].schema(), other.inputDatasetFields); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.outputDatasetFields)) { - this.outputDatasetFields = data().deepCopy(fields()[7].schema(), other.outputDatasetFields); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.fineGrainedLineages)) { - this.fineGrainedLineages = data().deepCopy(fields()[8].schema(), other.fineGrainedLineages); - fieldSetFlags()[8] = true; - } - } - - /** Gets the value of the 'inputDatasets' field */ - public java.util.List getInputDatasets() { - return inputDatasets; - } - - /** Sets the value of the 'inputDatasets' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder setInputDatasets(java.util.List value) { - validate(fields()[0], value); - this.inputDatasets = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'inputDatasets' field has been set */ - public boolean hasInputDatasets() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'inputDatasets' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder clearInputDatasets() { - inputDatasets = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'inputDatasetEdges' field */ - public java.util.List getInputDatasetEdges() { - return inputDatasetEdges; - } - - /** Sets the value of the 'inputDatasetEdges' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder setInputDatasetEdges(java.util.List value) { - validate(fields()[1], value); - this.inputDatasetEdges = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'inputDatasetEdges' field has been set */ - public boolean hasInputDatasetEdges() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'inputDatasetEdges' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder clearInputDatasetEdges() { - inputDatasetEdges = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'outputDatasets' field */ - public java.util.List getOutputDatasets() { - return outputDatasets; - } - - /** Sets the value of the 'outputDatasets' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder setOutputDatasets(java.util.List value) { - validate(fields()[2], value); - this.outputDatasets = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'outputDatasets' field has been set */ - public boolean hasOutputDatasets() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'outputDatasets' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder clearOutputDatasets() { - outputDatasets = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'outputDatasetEdges' field */ - public java.util.List getOutputDatasetEdges() { - return outputDatasetEdges; - } - - /** Sets the value of the 'outputDatasetEdges' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder setOutputDatasetEdges(java.util.List value) { - validate(fields()[3], value); - this.outputDatasetEdges = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'outputDatasetEdges' field has been set */ - public boolean hasOutputDatasetEdges() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'outputDatasetEdges' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder clearOutputDatasetEdges() { - outputDatasetEdges = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'inputDatajobs' field */ - public java.util.List getInputDatajobs() { - return inputDatajobs; - } - - /** Sets the value of the 'inputDatajobs' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder setInputDatajobs(java.util.List value) { - validate(fields()[4], value); - this.inputDatajobs = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'inputDatajobs' field has been set */ - public boolean hasInputDatajobs() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'inputDatajobs' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder clearInputDatajobs() { - inputDatajobs = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'inputDatajobEdges' field */ - public java.util.List getInputDatajobEdges() { - return inputDatajobEdges; - } - - /** Sets the value of the 'inputDatajobEdges' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder setInputDatajobEdges(java.util.List value) { - validate(fields()[5], value); - this.inputDatajobEdges = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'inputDatajobEdges' field has been set */ - public boolean hasInputDatajobEdges() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'inputDatajobEdges' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder clearInputDatajobEdges() { - inputDatajobEdges = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'inputDatasetFields' field */ - public java.util.List getInputDatasetFields() { - return inputDatasetFields; - } - - /** Sets the value of the 'inputDatasetFields' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder setInputDatasetFields(java.util.List value) { - validate(fields()[6], value); - this.inputDatasetFields = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'inputDatasetFields' field has been set */ - public boolean hasInputDatasetFields() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'inputDatasetFields' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder clearInputDatasetFields() { - inputDatasetFields = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'outputDatasetFields' field */ - public java.util.List getOutputDatasetFields() { - return outputDatasetFields; - } - - /** Sets the value of the 'outputDatasetFields' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder setOutputDatasetFields(java.util.List value) { - validate(fields()[7], value); - this.outputDatasetFields = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'outputDatasetFields' field has been set */ - public boolean hasOutputDatasetFields() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'outputDatasetFields' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder clearOutputDatasetFields() { - outputDatasetFields = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'fineGrainedLineages' field */ - public java.util.List getFineGrainedLineages() { - return fineGrainedLineages; - } - - /** Sets the value of the 'fineGrainedLineages' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder setFineGrainedLineages(java.util.List value) { - validate(fields()[8], value); - this.fineGrainedLineages = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'fineGrainedLineages' field has been set */ - public boolean hasFineGrainedLineages() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'fineGrainedLineages' field */ - public com.linkedin.pegasus2avro.datajob.DataJobInputOutput.Builder clearFineGrainedLineages() { - fineGrainedLineages = null; - fieldSetFlags()[8] = false; - return this; - } - - @Override - public DataJobInputOutput build() { - try { - DataJobInputOutput record = new DataJobInputOutput(); - record.inputDatasets = fieldSetFlags()[0] ? this.inputDatasets : (java.util.List) defaultValue(fields()[0]); - record.inputDatasetEdges = fieldSetFlags()[1] ? this.inputDatasetEdges : (java.util.List) defaultValue(fields()[1]); - record.outputDatasets = fieldSetFlags()[2] ? this.outputDatasets : (java.util.List) defaultValue(fields()[2]); - record.outputDatasetEdges = fieldSetFlags()[3] ? this.outputDatasetEdges : (java.util.List) defaultValue(fields()[3]); - record.inputDatajobs = fieldSetFlags()[4] ? this.inputDatajobs : (java.util.List) defaultValue(fields()[4]); - record.inputDatajobEdges = fieldSetFlags()[5] ? this.inputDatajobEdges : (java.util.List) defaultValue(fields()[5]); - record.inputDatasetFields = fieldSetFlags()[6] ? this.inputDatasetFields : (java.util.List) defaultValue(fields()[6]); - record.outputDatasetFields = fieldSetFlags()[7] ? this.outputDatasetFields : (java.util.List) defaultValue(fields()[7]); - record.fineGrainedLineages = fieldSetFlags()[8] ? this.fineGrainedLineages : (java.util.List) 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/datajob/EditableDataFlowProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/EditableDataFlowProperties.java deleted file mode 100644 index 685699570babd..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/EditableDataFlowProperties.java +++ /dev/null @@ -1,310 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.datajob; -@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 EditableDataFlowProperties 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\":\"EditableDataFlowProperties\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"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 data flow\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDataFlowProperties\"}}"); - 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 data flow */ - @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 EditableDataFlowProperties() {} - - /** - * All-args constructor. - */ - public EditableDataFlowProperties(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 data flow */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Edited documentation of the data flow * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** Creates a new EditableDataFlowProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.datajob.EditableDataFlowProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.datajob.EditableDataFlowProperties.Builder(); - } - - /** Creates a new EditableDataFlowProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.datajob.EditableDataFlowProperties.Builder newBuilder(com.linkedin.pegasus2avro.datajob.EditableDataFlowProperties.Builder other) { - return new com.linkedin.pegasus2avro.datajob.EditableDataFlowProperties.Builder(other); - } - - /** Creates a new EditableDataFlowProperties RecordBuilder by copying an existing EditableDataFlowProperties instance */ - public static com.linkedin.pegasus2avro.datajob.EditableDataFlowProperties.Builder newBuilder(com.linkedin.pegasus2avro.datajob.EditableDataFlowProperties other) { - return new com.linkedin.pegasus2avro.datajob.EditableDataFlowProperties.Builder(other); - } - - /** - * RecordBuilder for EditableDataFlowProperties 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.datajob.EditableDataFlowProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.datajob.EditableDataFlowProperties.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 EditableDataFlowProperties instance */ - private Builder(com.linkedin.pegasus2avro.datajob.EditableDataFlowProperties other) { - super(com.linkedin.pegasus2avro.datajob.EditableDataFlowProperties.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.datajob.EditableDataFlowProperties.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.datajob.EditableDataFlowProperties.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.datajob.EditableDataFlowProperties.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.datajob.EditableDataFlowProperties.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.datajob.EditableDataFlowProperties.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.datajob.EditableDataFlowProperties.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.datajob.EditableDataFlowProperties.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.datajob.EditableDataFlowProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public EditableDataFlowProperties build() { - try { - EditableDataFlowProperties record = new EditableDataFlowProperties(); - 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/datajob/EditableDataJobProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/EditableDataJobProperties.java deleted file mode 100644 index 446c843ebfcb7..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/EditableDataJobProperties.java +++ /dev/null @@ -1,310 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.datajob; -@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 EditableDataJobProperties 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\":\"EditableDataJobProperties\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"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 data job \",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDataJobProperties\"}}"); - 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 data job */ - @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 EditableDataJobProperties() {} - - /** - * All-args constructor. - */ - public EditableDataJobProperties(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 data job */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Edited documentation of the data job * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** Creates a new EditableDataJobProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.datajob.EditableDataJobProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.datajob.EditableDataJobProperties.Builder(); - } - - /** Creates a new EditableDataJobProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.datajob.EditableDataJobProperties.Builder newBuilder(com.linkedin.pegasus2avro.datajob.EditableDataJobProperties.Builder other) { - return new com.linkedin.pegasus2avro.datajob.EditableDataJobProperties.Builder(other); - } - - /** Creates a new EditableDataJobProperties RecordBuilder by copying an existing EditableDataJobProperties instance */ - public static com.linkedin.pegasus2avro.datajob.EditableDataJobProperties.Builder newBuilder(com.linkedin.pegasus2avro.datajob.EditableDataJobProperties other) { - return new com.linkedin.pegasus2avro.datajob.EditableDataJobProperties.Builder(other); - } - - /** - * RecordBuilder for EditableDataJobProperties 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.datajob.EditableDataJobProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.datajob.EditableDataJobProperties.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 EditableDataJobProperties instance */ - private Builder(com.linkedin.pegasus2avro.datajob.EditableDataJobProperties other) { - super(com.linkedin.pegasus2avro.datajob.EditableDataJobProperties.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.datajob.EditableDataJobProperties.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.datajob.EditableDataJobProperties.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.datajob.EditableDataJobProperties.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.datajob.EditableDataJobProperties.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.datajob.EditableDataJobProperties.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.datajob.EditableDataJobProperties.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.datajob.EditableDataJobProperties.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.datajob.EditableDataJobProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public EditableDataJobProperties build() { - try { - EditableDataJobProperties record = new EditableDataJobProperties(); - 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/datajob/JobStatus.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/JobStatus.java deleted file mode 100644 index 9a070d9eca96e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/JobStatus.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.datajob; -@SuppressWarnings("all") -/** Job statuses */ -@org.apache.avro.specific.AvroGenerated -public enum JobStatus { - STARTING, IN_PROGRESS, STOPPING, STOPPED, COMPLETED, FAILED, UNKNOWN, SKIPPED ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"JobStatus\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Job statuses\",\"symbols\":[\"STARTING\",\"IN_PROGRESS\",\"STOPPING\",\"STOPPED\",\"COMPLETED\",\"FAILED\",\"UNKNOWN\",\"SKIPPED\"],\"symbolDocs\":{\"COMPLETED\":\"Jobs with successful completion.\",\"FAILED\":\"Jobs that have failed.\",\"IN_PROGRESS\":\"Jobs currently running.\",\"SKIPPED\":\"Jobs that have been skipped.\",\"STARTING\":\"Jobs being initialized.\",\"STOPPED\":\"Jobs that have stopped.\",\"STOPPING\":\"Jobs being stopped.\",\"UNKNOWN\":\"Jobs with unknown status (either unmappable or unavailable)\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/VersionInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/VersionInfo.java deleted file mode 100644 index 6f0110140e814..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/VersionInfo.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.datajob; -@SuppressWarnings("all") -/** Information about a Data processing job */ -@org.apache.avro.specific.AvroGenerated -public class VersionInfo 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\":\"VersionInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing job\",\"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\":\"version\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The version which can indentify a job version like a commit hash or md5 hash\"},{\"name\":\"versionType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of the version like git hash or md5 hash\"}],\"Aspect\":{\"name\":\"versionInfo\"}}"); - 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; - /** The version which can indentify a job version like a commit hash or md5 hash */ - @Deprecated public java.lang.String version; - /** The type of the version like git hash or md5 hash */ - @Deprecated public java.lang.String versionType; - - /** - * 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 VersionInfo() {} - - /** - * All-args constructor. - */ - public VersionInfo(java.util.Map customProperties, java.lang.String externalUrl, java.lang.String version, java.lang.String versionType) { - this.customProperties = customProperties; - this.externalUrl = externalUrl; - this.version = version; - this.versionType = versionType; - } - - 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 version; - case 3: return versionType; - 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: version = (java.lang.String)value$; break; - case 3: versionType = (java.lang.String)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 'version' field. - * The version which can indentify a job version like a commit hash or md5 hash */ - public java.lang.String getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * The version which can indentify a job version like a commit hash or md5 hash * @param value the value to set. - */ - public void setVersion(java.lang.String value) { - this.version = value; - } - - /** - * Gets the value of the 'versionType' field. - * The type of the version like git hash or md5 hash */ - public java.lang.String getVersionType() { - return versionType; - } - - /** - * Sets the value of the 'versionType' field. - * The type of the version like git hash or md5 hash * @param value the value to set. - */ - public void setVersionType(java.lang.String value) { - this.versionType = value; - } - - /** Creates a new VersionInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.datajob.VersionInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.datajob.VersionInfo.Builder(); - } - - /** Creates a new VersionInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.datajob.VersionInfo.Builder newBuilder(com.linkedin.pegasus2avro.datajob.VersionInfo.Builder other) { - return new com.linkedin.pegasus2avro.datajob.VersionInfo.Builder(other); - } - - /** Creates a new VersionInfo RecordBuilder by copying an existing VersionInfo instance */ - public static com.linkedin.pegasus2avro.datajob.VersionInfo.Builder newBuilder(com.linkedin.pegasus2avro.datajob.VersionInfo other) { - return new com.linkedin.pegasus2avro.datajob.VersionInfo.Builder(other); - } - - /** - * RecordBuilder for VersionInfo 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 version; - private java.lang.String versionType; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.datajob.VersionInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.datajob.VersionInfo.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.version)) { - this.version = data().deepCopy(fields()[2].schema(), other.version); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.versionType)) { - this.versionType = data().deepCopy(fields()[3].schema(), other.versionType); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing VersionInfo instance */ - private Builder(com.linkedin.pegasus2avro.datajob.VersionInfo other) { - super(com.linkedin.pegasus2avro.datajob.VersionInfo.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.version)) { - this.version = data().deepCopy(fields()[2].schema(), other.version); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.versionType)) { - this.versionType = data().deepCopy(fields()[3].schema(), other.versionType); - 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.datajob.VersionInfo.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.datajob.VersionInfo.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.datajob.VersionInfo.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.datajob.VersionInfo.Builder clearExternalUrl() { - externalUrl = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public java.lang.String getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.datajob.VersionInfo.Builder setVersion(java.lang.String value) { - validate(fields()[2], value); - this.version = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.datajob.VersionInfo.Builder clearVersion() { - version = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'versionType' field */ - public java.lang.String getVersionType() { - return versionType; - } - - /** Sets the value of the 'versionType' field */ - public com.linkedin.pegasus2avro.datajob.VersionInfo.Builder setVersionType(java.lang.String value) { - validate(fields()[3], value); - this.versionType = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'versionType' field has been set */ - public boolean hasVersionType() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'versionType' field */ - public com.linkedin.pegasus2avro.datajob.VersionInfo.Builder clearVersionType() { - versionType = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public VersionInfo build() { - try { - VersionInfo record = new VersionInfo(); - 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.version = fieldSetFlags()[2] ? this.version : (java.lang.String) defaultValue(fields()[2]); - record.versionType = fieldSetFlags()[3] ? this.versionType : (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/datajob/azkaban/AzkabanJobType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/azkaban/AzkabanJobType.java deleted file mode 100644 index 32788b363882e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/azkaban/AzkabanJobType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.datajob.azkaban; -@SuppressWarnings("all") -/** The various types of support azkaban jobs */ -@org.apache.avro.specific.AvroGenerated -public enum AzkabanJobType { - COMMAND, HADOOP_JAVA, HADOOP_SHELL, HIVE, PIG, SQL, GLUE ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"AzkabanJobType\",\"namespace\":\"com.linkedin.pegasus2avro.datajob.azkaban\",\"doc\":\"The various types of support azkaban jobs\",\"symbols\":[\"COMMAND\",\"HADOOP_JAVA\",\"HADOOP_SHELL\",\"HIVE\",\"PIG\",\"SQL\",\"GLUE\"],\"symbolDocs\":{\"COMMAND\":\"The command job type is one of the basic built-in types. It runs multiple UNIX commands using java processbuilder.\\nUpon execution, Azkaban spawns off a process to run the command.\",\"GLUE\":\"Glue type is for running AWS Glue job transforms.\",\"HADOOP_JAVA\":\"Runs a java program with ability to access Hadoop cluster.\\nhttps://azkaban.readthedocs.io/en/latest/jobTypes.html#java-job-type\",\"HADOOP_SHELL\":\"In large part, this is the same Command type. The difference is its ability to talk to a Hadoop cluster\\nsecurely, via Hadoop tokens.\",\"HIVE\":\"Hive type is for running Hive jobs.\",\"PIG\":\"Pig type is for running Pig jobs.\",\"SQL\":\"SQL is for running Presto, mysql queries etc\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/datahub/DatahubIngestionCheckpoint.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/datahub/DatahubIngestionCheckpoint.java deleted file mode 100644 index d9c7edfed1286..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/datahub/DatahubIngestionCheckpoint.java +++ /dev/null @@ -1,589 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.datajob.datahub; -@SuppressWarnings("all") -/** Checkpoint of a datahub ingestion run for a given job. */ -@org.apache.avro.specific.AvroGenerated -public class DatahubIngestionCheckpoint 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\":\"DatahubIngestionCheckpoint\",\"namespace\":\"com.linkedin.pegasus2avro.datajob.datahub\",\"doc\":\"Checkpoint of a datahub ingestion run for a given job.\",\"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\":\"pipelineName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the pipeline that ran ingestion, a stable unique user provided identifier.\\n e.g. my_snowflake1-to-datahub.\",\"TimeseriesField\":{}},{\"name\":\"platformInstanceId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The id of the instance against which the ingestion pipeline ran.\\ne.g.: Bigquery project ids, MySQL hostnames etc.\",\"TimeseriesField\":{}},{\"name\":\"config\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Json-encoded string representation of the non-secret members of the config .\"},{\"name\":\"state\",\"type\":{\"type\":\"record\",\"name\":\"IngestionCheckpointState\",\"doc\":\"The checkpoint state object of a datahub ingestion run for a given job.\",\"fields\":[{\"name\":\"formatVersion\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The version of the state format.\"},{\"name\":\"serde\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The serialization/deserialization protocol.\"},{\"name\":\"payload\",\"type\":[\"null\",\"bytes\"],\"doc\":\"Opaque blob of the state representation.\",\"default\":null}]},\"doc\":\"Opaque blob of the state representation.\"},{\"name\":\"runId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The run identifier of this job.\",\"TimeseriesField\":{}}],\"Aspect\":{\"name\":\"datahubIngestionCheckpoint\",\"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 name of the pipeline that ran ingestion, a stable unique user provided identifier. - e.g. my_snowflake1-to-datahub. */ - @Deprecated public java.lang.String pipelineName; - /** The id of the instance against which the ingestion pipeline ran. -e.g.: Bigquery project ids, MySQL hostnames etc. */ - @Deprecated public java.lang.String platformInstanceId; - /** Json-encoded string representation of the non-secret members of the config . */ - @Deprecated public java.lang.String config; - /** Opaque blob of the state representation. */ - @Deprecated public com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState state; - /** The run identifier of this job. */ - @Deprecated public java.lang.String runId; - - /** - * 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 DatahubIngestionCheckpoint() {} - - /** - * All-args constructor. - */ - public DatahubIngestionCheckpoint(java.lang.Long timestampMillis, com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity, com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec, java.lang.String messageId, java.lang.String pipelineName, java.lang.String platformInstanceId, java.lang.String config, com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState state, java.lang.String runId) { - this.timestampMillis = timestampMillis; - this.eventGranularity = eventGranularity; - this.partitionSpec = partitionSpec; - this.messageId = messageId; - this.pipelineName = pipelineName; - this.platformInstanceId = platformInstanceId; - this.config = config; - this.state = state; - this.runId = runId; - } - - 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 pipelineName; - case 5: return platformInstanceId; - case 6: return config; - case 7: return state; - case 8: return runId; - 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: pipelineName = (java.lang.String)value$; break; - case 5: platformInstanceId = (java.lang.String)value$; break; - case 6: config = (java.lang.String)value$; break; - case 7: state = (com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState)value$; break; - case 8: runId = (java.lang.String)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 'pipelineName' field. - * The name of the pipeline that ran ingestion, a stable unique user provided identifier. - e.g. my_snowflake1-to-datahub. */ - public java.lang.String getPipelineName() { - return pipelineName; - } - - /** - * Sets the value of the 'pipelineName' field. - * The name of the pipeline that ran ingestion, a stable unique user provided identifier. - e.g. my_snowflake1-to-datahub. * @param value the value to set. - */ - public void setPipelineName(java.lang.String value) { - this.pipelineName = value; - } - - /** - * Gets the value of the 'platformInstanceId' field. - * The id of the instance against which the ingestion pipeline ran. -e.g.: Bigquery project ids, MySQL hostnames etc. */ - public java.lang.String getPlatformInstanceId() { - return platformInstanceId; - } - - /** - * Sets the value of the 'platformInstanceId' field. - * The id of the instance against which the ingestion pipeline ran. -e.g.: Bigquery project ids, MySQL hostnames etc. * @param value the value to set. - */ - public void setPlatformInstanceId(java.lang.String value) { - this.platformInstanceId = value; - } - - /** - * Gets the value of the 'config' field. - * Json-encoded string representation of the non-secret members of the config . */ - public java.lang.String getConfig() { - return config; - } - - /** - * Sets the value of the 'config' field. - * Json-encoded string representation of the non-secret members of the config . * @param value the value to set. - */ - public void setConfig(java.lang.String value) { - this.config = value; - } - - /** - * Gets the value of the 'state' field. - * Opaque blob of the state representation. */ - public com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState getState() { - return state; - } - - /** - * Sets the value of the 'state' field. - * Opaque blob of the state representation. * @param value the value to set. - */ - public void setState(com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState value) { - this.state = value; - } - - /** - * Gets the value of the 'runId' field. - * The run identifier of this job. */ - public java.lang.String getRunId() { - return runId; - } - - /** - * Sets the value of the 'runId' field. - * The run identifier of this job. * @param value the value to set. - */ - public void setRunId(java.lang.String value) { - this.runId = value; - } - - /** Creates a new DatahubIngestionCheckpoint RecordBuilder */ - public static com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder newBuilder() { - return new com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder(); - } - - /** Creates a new DatahubIngestionCheckpoint RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder newBuilder(com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder other) { - return new com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder(other); - } - - /** Creates a new DatahubIngestionCheckpoint RecordBuilder by copying an existing DatahubIngestionCheckpoint instance */ - public static com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder newBuilder(com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint other) { - return new com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder(other); - } - - /** - * RecordBuilder for DatahubIngestionCheckpoint 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 pipelineName; - private java.lang.String platformInstanceId; - private java.lang.String config; - private com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState state; - private java.lang.String runId; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.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.pipelineName)) { - this.pipelineName = data().deepCopy(fields()[4].schema(), other.pipelineName); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.platformInstanceId)) { - this.platformInstanceId = data().deepCopy(fields()[5].schema(), other.platformInstanceId); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.config)) { - this.config = data().deepCopy(fields()[6].schema(), other.config); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.state)) { - this.state = data().deepCopy(fields()[7].schema(), other.state); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.runId)) { - this.runId = data().deepCopy(fields()[8].schema(), other.runId); - fieldSetFlags()[8] = true; - } - } - - /** Creates a Builder by copying an existing DatahubIngestionCheckpoint instance */ - private Builder(com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint other) { - super(com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.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.pipelineName)) { - this.pipelineName = data().deepCopy(fields()[4].schema(), other.pipelineName); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.platformInstanceId)) { - this.platformInstanceId = data().deepCopy(fields()[5].schema(), other.platformInstanceId); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.config)) { - this.config = data().deepCopy(fields()[6].schema(), other.config); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.state)) { - this.state = data().deepCopy(fields()[7].schema(), other.state); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.runId)) { - this.runId = data().deepCopy(fields()[8].schema(), other.runId); - fieldSetFlags()[8] = 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.datajob.datahub.DatahubIngestionCheckpoint.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.datajob.datahub.DatahubIngestionCheckpoint.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.datajob.datahub.DatahubIngestionCheckpoint.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.datajob.datahub.DatahubIngestionCheckpoint.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.datajob.datahub.DatahubIngestionCheckpoint.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.datajob.datahub.DatahubIngestionCheckpoint.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.datajob.datahub.DatahubIngestionCheckpoint.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.datajob.datahub.DatahubIngestionCheckpoint.Builder clearMessageId() { - messageId = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'pipelineName' field */ - public java.lang.String getPipelineName() { - return pipelineName; - } - - /** Sets the value of the 'pipelineName' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder setPipelineName(java.lang.String value) { - validate(fields()[4], value); - this.pipelineName = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'pipelineName' field has been set */ - public boolean hasPipelineName() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'pipelineName' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder clearPipelineName() { - pipelineName = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'platformInstanceId' field */ - public java.lang.String getPlatformInstanceId() { - return platformInstanceId; - } - - /** Sets the value of the 'platformInstanceId' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder setPlatformInstanceId(java.lang.String value) { - validate(fields()[5], value); - this.platformInstanceId = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'platformInstanceId' field has been set */ - public boolean hasPlatformInstanceId() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'platformInstanceId' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder clearPlatformInstanceId() { - platformInstanceId = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'config' field */ - public java.lang.String getConfig() { - return config; - } - - /** Sets the value of the 'config' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder setConfig(java.lang.String value) { - validate(fields()[6], value); - this.config = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'config' field has been set */ - public boolean hasConfig() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'config' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder clearConfig() { - config = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'state' field */ - public com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState getState() { - return state; - } - - /** Sets the value of the 'state' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder setState(com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState value) { - validate(fields()[7], value); - this.state = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'state' field has been set */ - public boolean hasState() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'state' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder clearState() { - state = null; - fieldSetFlags()[7] = 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.datajob.datahub.DatahubIngestionCheckpoint.Builder setRunId(java.lang.String value) { - validate(fields()[8], value); - this.runId = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'runId' field has been set */ - public boolean hasRunId() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'runId' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionCheckpoint.Builder clearRunId() { - runId = null; - fieldSetFlags()[8] = false; - return this; - } - - @Override - public DatahubIngestionCheckpoint build() { - try { - DatahubIngestionCheckpoint record = new DatahubIngestionCheckpoint(); - 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.pipelineName = fieldSetFlags()[4] ? this.pipelineName : (java.lang.String) defaultValue(fields()[4]); - record.platformInstanceId = fieldSetFlags()[5] ? this.platformInstanceId : (java.lang.String) defaultValue(fields()[5]); - record.config = fieldSetFlags()[6] ? this.config : (java.lang.String) defaultValue(fields()[6]); - record.state = fieldSetFlags()[7] ? this.state : (com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState) defaultValue(fields()[7]); - record.runId = fieldSetFlags()[8] ? this.runId : (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/datajob/datahub/DatahubIngestionRunSummary.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/datahub/DatahubIngestionRunSummary.java deleted file mode 100644 index e872e39632e7f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/datahub/DatahubIngestionRunSummary.java +++ /dev/null @@ -1,1634 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.datajob.datahub; -@SuppressWarnings("all") -/** Summary of a datahub ingestion run for a given platform. */ -@org.apache.avro.specific.AvroGenerated -public class DatahubIngestionRunSummary 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\":\"DatahubIngestionRunSummary\",\"namespace\":\"com.linkedin.pegasus2avro.datajob.datahub\",\"doc\":\"Summary of a datahub ingestion run for a given platform.\",\"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\":\"pipelineName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the pipeline that ran ingestion, a stable unique user provided identifier.\\n e.g. my_snowflake1-to-datahub.\",\"TimeseriesField\":{}},{\"name\":\"platformInstanceId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The id of the instance against which the ingestion pipeline ran.\\ne.g.: Bigquery project ids, MySQL hostnames etc.\",\"TimeseriesField\":{}},{\"name\":\"runId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The runId for this pipeline instance.\",\"TimeseriesField\":{}},{\"name\":\"runStatus\",\"type\":{\"type\":\"enum\",\"name\":\"JobStatus\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Job statuses\",\"symbols\":[\"STARTING\",\"IN_PROGRESS\",\"STOPPING\",\"STOPPED\",\"COMPLETED\",\"FAILED\",\"UNKNOWN\",\"SKIPPED\"],\"symbolDocs\":{\"COMPLETED\":\"Jobs with successful completion.\",\"FAILED\":\"Jobs that have failed.\",\"IN_PROGRESS\":\"Jobs currently running.\",\"SKIPPED\":\"Jobs that have been skipped.\",\"STARTING\":\"Jobs being initialized.\",\"STOPPED\":\"Jobs that have stopped.\",\"STOPPING\":\"Jobs being stopped.\",\"UNKNOWN\":\"Jobs with unknown status (either unmappable or unavailable)\"}},\"doc\":\"Run Status - Succeeded/Skipped/Failed etc.\",\"TimeseriesField\":{}},{\"name\":\"numWorkUnitsCommitted\",\"type\":[\"null\",\"long\"],\"doc\":\"The number of workunits written to sink.\",\"default\":null},{\"name\":\"numWorkUnitsCreated\",\"type\":[\"null\",\"long\"],\"doc\":\"The number of workunits that are produced.\",\"default\":null},{\"name\":\"numEvents\",\"type\":[\"null\",\"long\"],\"doc\":\"The number of events produced (MCE + MCP).\",\"default\":null},{\"name\":\"numEntities\",\"type\":[\"null\",\"long\"],\"doc\":\"The total number of entities produced (unique entity urns).\",\"default\":null},{\"name\":\"numAspects\",\"type\":[\"null\",\"long\"],\"doc\":\"The total number of aspects produced across all entities.\",\"default\":null},{\"name\":\"numSourceAPICalls\",\"type\":[\"null\",\"long\"],\"doc\":\"Total number of source API calls.\",\"default\":null},{\"name\":\"totalLatencySourceAPICalls\",\"type\":[\"null\",\"long\"],\"doc\":\"Total latency across all source API calls.\",\"default\":null},{\"name\":\"numSinkAPICalls\",\"type\":[\"null\",\"long\"],\"doc\":\"Total number of sink API calls.\",\"default\":null},{\"name\":\"totalLatencySinkAPICalls\",\"type\":[\"null\",\"long\"],\"doc\":\"Total latency across all sink API calls.\",\"default\":null},{\"name\":\"numWarnings\",\"type\":[\"null\",\"long\"],\"doc\":\"Number of warnings generated.\",\"default\":null},{\"name\":\"numErrors\",\"type\":[\"null\",\"long\"],\"doc\":\"Number of errors generated.\",\"default\":null},{\"name\":\"numEntitiesSkipped\",\"type\":[\"null\",\"long\"],\"doc\":\"Number of entities skipped.\",\"default\":null},{\"name\":\"config\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The non-sensitive key-value pairs of the yaml config used as json string.\",\"default\":null},{\"name\":\"custom_summary\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Custom value.\",\"default\":null},{\"name\":\"softwareVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The software version of this ingestion.\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"systemHostName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The hostname the ingestion pipeline ran on.\",\"default\":null},{\"name\":\"operatingSystemName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The os the ingestion pipeline ran on.\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"numProcessors\",\"type\":[\"null\",\"int\"],\"doc\":\"The number of processors on the host the ingestion pipeline ran on.\",\"default\":null},{\"name\":\"totalMemory\",\"type\":[\"null\",\"long\"],\"doc\":\"The total amount of memory on the host the ingestion pipeline ran on.\",\"default\":null},{\"name\":\"availableMemory\",\"type\":[\"null\",\"long\"],\"doc\":\"The available memory on the host the ingestion pipeline ran on.\",\"default\":null}],\"Aspect\":{\"name\":\"datahubIngestionRunSummary\",\"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 name of the pipeline that ran ingestion, a stable unique user provided identifier. - e.g. my_snowflake1-to-datahub. */ - @Deprecated public java.lang.String pipelineName; - /** The id of the instance against which the ingestion pipeline ran. -e.g.: Bigquery project ids, MySQL hostnames etc. */ - @Deprecated public java.lang.String platformInstanceId; - /** The runId for this pipeline instance. */ - @Deprecated public java.lang.String runId; - /** Run Status - Succeeded/Skipped/Failed etc. */ - @Deprecated public com.linkedin.pegasus2avro.datajob.JobStatus runStatus; - /** The number of workunits written to sink. */ - @Deprecated public java.lang.Long numWorkUnitsCommitted; - /** The number of workunits that are produced. */ - @Deprecated public java.lang.Long numWorkUnitsCreated; - /** The number of events produced (MCE + MCP). */ - @Deprecated public java.lang.Long numEvents; - /** The total number of entities produced (unique entity urns). */ - @Deprecated public java.lang.Long numEntities; - /** The total number of aspects produced across all entities. */ - @Deprecated public java.lang.Long numAspects; - /** Total number of source API calls. */ - @Deprecated public java.lang.Long numSourceAPICalls; - /** Total latency across all source API calls. */ - @Deprecated public java.lang.Long totalLatencySourceAPICalls; - /** Total number of sink API calls. */ - @Deprecated public java.lang.Long numSinkAPICalls; - /** Total latency across all sink API calls. */ - @Deprecated public java.lang.Long totalLatencySinkAPICalls; - /** Number of warnings generated. */ - @Deprecated public java.lang.Long numWarnings; - /** Number of errors generated. */ - @Deprecated public java.lang.Long numErrors; - /** Number of entities skipped. */ - @Deprecated public java.lang.Long numEntitiesSkipped; - /** The non-sensitive key-value pairs of the yaml config used as json string. */ - @Deprecated public java.lang.String config; - /** Custom value. */ - @Deprecated public java.lang.String custom_summary; - /** The software version of this ingestion. */ - @Deprecated public java.lang.String softwareVersion; - /** The hostname the ingestion pipeline ran on. */ - @Deprecated public java.lang.String systemHostName; - /** The os the ingestion pipeline ran on. */ - @Deprecated public java.lang.String operatingSystemName; - /** The number of processors on the host the ingestion pipeline ran on. */ - @Deprecated public java.lang.Integer numProcessors; - /** The total amount of memory on the host the ingestion pipeline ran on. */ - @Deprecated public java.lang.Long totalMemory; - /** The available memory on the host the ingestion pipeline ran on. */ - @Deprecated public java.lang.Long availableMemory; - - /** - * 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 DatahubIngestionRunSummary() {} - - /** - * All-args constructor. - */ - public DatahubIngestionRunSummary(java.lang.Long timestampMillis, com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity, com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec, java.lang.String messageId, java.lang.String pipelineName, java.lang.String platformInstanceId, java.lang.String runId, com.linkedin.pegasus2avro.datajob.JobStatus runStatus, java.lang.Long numWorkUnitsCommitted, java.lang.Long numWorkUnitsCreated, java.lang.Long numEvents, java.lang.Long numEntities, java.lang.Long numAspects, java.lang.Long numSourceAPICalls, java.lang.Long totalLatencySourceAPICalls, java.lang.Long numSinkAPICalls, java.lang.Long totalLatencySinkAPICalls, java.lang.Long numWarnings, java.lang.Long numErrors, java.lang.Long numEntitiesSkipped, java.lang.String config, java.lang.String custom_summary, java.lang.String softwareVersion, java.lang.String systemHostName, java.lang.String operatingSystemName, java.lang.Integer numProcessors, java.lang.Long totalMemory, java.lang.Long availableMemory) { - this.timestampMillis = timestampMillis; - this.eventGranularity = eventGranularity; - this.partitionSpec = partitionSpec; - this.messageId = messageId; - this.pipelineName = pipelineName; - this.platformInstanceId = platformInstanceId; - this.runId = runId; - this.runStatus = runStatus; - this.numWorkUnitsCommitted = numWorkUnitsCommitted; - this.numWorkUnitsCreated = numWorkUnitsCreated; - this.numEvents = numEvents; - this.numEntities = numEntities; - this.numAspects = numAspects; - this.numSourceAPICalls = numSourceAPICalls; - this.totalLatencySourceAPICalls = totalLatencySourceAPICalls; - this.numSinkAPICalls = numSinkAPICalls; - this.totalLatencySinkAPICalls = totalLatencySinkAPICalls; - this.numWarnings = numWarnings; - this.numErrors = numErrors; - this.numEntitiesSkipped = numEntitiesSkipped; - this.config = config; - this.custom_summary = custom_summary; - this.softwareVersion = softwareVersion; - this.systemHostName = systemHostName; - this.operatingSystemName = operatingSystemName; - this.numProcessors = numProcessors; - this.totalMemory = totalMemory; - this.availableMemory = availableMemory; - } - - 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 pipelineName; - case 5: return platformInstanceId; - case 6: return runId; - case 7: return runStatus; - case 8: return numWorkUnitsCommitted; - case 9: return numWorkUnitsCreated; - case 10: return numEvents; - case 11: return numEntities; - case 12: return numAspects; - case 13: return numSourceAPICalls; - case 14: return totalLatencySourceAPICalls; - case 15: return numSinkAPICalls; - case 16: return totalLatencySinkAPICalls; - case 17: return numWarnings; - case 18: return numErrors; - case 19: return numEntitiesSkipped; - case 20: return config; - case 21: return custom_summary; - case 22: return softwareVersion; - case 23: return systemHostName; - case 24: return operatingSystemName; - case 25: return numProcessors; - case 26: return totalMemory; - case 27: return availableMemory; - 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: pipelineName = (java.lang.String)value$; break; - case 5: platformInstanceId = (java.lang.String)value$; break; - case 6: runId = (java.lang.String)value$; break; - case 7: runStatus = (com.linkedin.pegasus2avro.datajob.JobStatus)value$; break; - case 8: numWorkUnitsCommitted = (java.lang.Long)value$; break; - case 9: numWorkUnitsCreated = (java.lang.Long)value$; break; - case 10: numEvents = (java.lang.Long)value$; break; - case 11: numEntities = (java.lang.Long)value$; break; - case 12: numAspects = (java.lang.Long)value$; break; - case 13: numSourceAPICalls = (java.lang.Long)value$; break; - case 14: totalLatencySourceAPICalls = (java.lang.Long)value$; break; - case 15: numSinkAPICalls = (java.lang.Long)value$; break; - case 16: totalLatencySinkAPICalls = (java.lang.Long)value$; break; - case 17: numWarnings = (java.lang.Long)value$; break; - case 18: numErrors = (java.lang.Long)value$; break; - case 19: numEntitiesSkipped = (java.lang.Long)value$; break; - case 20: config = (java.lang.String)value$; break; - case 21: custom_summary = (java.lang.String)value$; break; - case 22: softwareVersion = (java.lang.String)value$; break; - case 23: systemHostName = (java.lang.String)value$; break; - case 24: operatingSystemName = (java.lang.String)value$; break; - case 25: numProcessors = (java.lang.Integer)value$; break; - case 26: totalMemory = (java.lang.Long)value$; break; - case 27: availableMemory = (java.lang.Long)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 'pipelineName' field. - * The name of the pipeline that ran ingestion, a stable unique user provided identifier. - e.g. my_snowflake1-to-datahub. */ - public java.lang.String getPipelineName() { - return pipelineName; - } - - /** - * Sets the value of the 'pipelineName' field. - * The name of the pipeline that ran ingestion, a stable unique user provided identifier. - e.g. my_snowflake1-to-datahub. * @param value the value to set. - */ - public void setPipelineName(java.lang.String value) { - this.pipelineName = value; - } - - /** - * Gets the value of the 'platformInstanceId' field. - * The id of the instance against which the ingestion pipeline ran. -e.g.: Bigquery project ids, MySQL hostnames etc. */ - public java.lang.String getPlatformInstanceId() { - return platformInstanceId; - } - - /** - * Sets the value of the 'platformInstanceId' field. - * The id of the instance against which the ingestion pipeline ran. -e.g.: Bigquery project ids, MySQL hostnames etc. * @param value the value to set. - */ - public void setPlatformInstanceId(java.lang.String value) { - this.platformInstanceId = value; - } - - /** - * Gets the value of the 'runId' field. - * The runId for this pipeline instance. */ - public java.lang.String getRunId() { - return runId; - } - - /** - * Sets the value of the 'runId' field. - * The runId for this pipeline instance. * @param value the value to set. - */ - public void setRunId(java.lang.String value) { - this.runId = value; - } - - /** - * Gets the value of the 'runStatus' field. - * Run Status - Succeeded/Skipped/Failed etc. */ - public com.linkedin.pegasus2avro.datajob.JobStatus getRunStatus() { - return runStatus; - } - - /** - * Sets the value of the 'runStatus' field. - * Run Status - Succeeded/Skipped/Failed etc. * @param value the value to set. - */ - public void setRunStatus(com.linkedin.pegasus2avro.datajob.JobStatus value) { - this.runStatus = value; - } - - /** - * Gets the value of the 'numWorkUnitsCommitted' field. - * The number of workunits written to sink. */ - public java.lang.Long getNumWorkUnitsCommitted() { - return numWorkUnitsCommitted; - } - - /** - * Sets the value of the 'numWorkUnitsCommitted' field. - * The number of workunits written to sink. * @param value the value to set. - */ - public void setNumWorkUnitsCommitted(java.lang.Long value) { - this.numWorkUnitsCommitted = value; - } - - /** - * Gets the value of the 'numWorkUnitsCreated' field. - * The number of workunits that are produced. */ - public java.lang.Long getNumWorkUnitsCreated() { - return numWorkUnitsCreated; - } - - /** - * Sets the value of the 'numWorkUnitsCreated' field. - * The number of workunits that are produced. * @param value the value to set. - */ - public void setNumWorkUnitsCreated(java.lang.Long value) { - this.numWorkUnitsCreated = value; - } - - /** - * Gets the value of the 'numEvents' field. - * The number of events produced (MCE + MCP). */ - public java.lang.Long getNumEvents() { - return numEvents; - } - - /** - * Sets the value of the 'numEvents' field. - * The number of events produced (MCE + MCP). * @param value the value to set. - */ - public void setNumEvents(java.lang.Long value) { - this.numEvents = value; - } - - /** - * Gets the value of the 'numEntities' field. - * The total number of entities produced (unique entity urns). */ - public java.lang.Long getNumEntities() { - return numEntities; - } - - /** - * Sets the value of the 'numEntities' field. - * The total number of entities produced (unique entity urns). * @param value the value to set. - */ - public void setNumEntities(java.lang.Long value) { - this.numEntities = value; - } - - /** - * Gets the value of the 'numAspects' field. - * The total number of aspects produced across all entities. */ - public java.lang.Long getNumAspects() { - return numAspects; - } - - /** - * Sets the value of the 'numAspects' field. - * The total number of aspects produced across all entities. * @param value the value to set. - */ - public void setNumAspects(java.lang.Long value) { - this.numAspects = value; - } - - /** - * Gets the value of the 'numSourceAPICalls' field. - * Total number of source API calls. */ - public java.lang.Long getNumSourceAPICalls() { - return numSourceAPICalls; - } - - /** - * Sets the value of the 'numSourceAPICalls' field. - * Total number of source API calls. * @param value the value to set. - */ - public void setNumSourceAPICalls(java.lang.Long value) { - this.numSourceAPICalls = value; - } - - /** - * Gets the value of the 'totalLatencySourceAPICalls' field. - * Total latency across all source API calls. */ - public java.lang.Long getTotalLatencySourceAPICalls() { - return totalLatencySourceAPICalls; - } - - /** - * Sets the value of the 'totalLatencySourceAPICalls' field. - * Total latency across all source API calls. * @param value the value to set. - */ - public void setTotalLatencySourceAPICalls(java.lang.Long value) { - this.totalLatencySourceAPICalls = value; - } - - /** - * Gets the value of the 'numSinkAPICalls' field. - * Total number of sink API calls. */ - public java.lang.Long getNumSinkAPICalls() { - return numSinkAPICalls; - } - - /** - * Sets the value of the 'numSinkAPICalls' field. - * Total number of sink API calls. * @param value the value to set. - */ - public void setNumSinkAPICalls(java.lang.Long value) { - this.numSinkAPICalls = value; - } - - /** - * Gets the value of the 'totalLatencySinkAPICalls' field. - * Total latency across all sink API calls. */ - public java.lang.Long getTotalLatencySinkAPICalls() { - return totalLatencySinkAPICalls; - } - - /** - * Sets the value of the 'totalLatencySinkAPICalls' field. - * Total latency across all sink API calls. * @param value the value to set. - */ - public void setTotalLatencySinkAPICalls(java.lang.Long value) { - this.totalLatencySinkAPICalls = value; - } - - /** - * Gets the value of the 'numWarnings' field. - * Number of warnings generated. */ - public java.lang.Long getNumWarnings() { - return numWarnings; - } - - /** - * Sets the value of the 'numWarnings' field. - * Number of warnings generated. * @param value the value to set. - */ - public void setNumWarnings(java.lang.Long value) { - this.numWarnings = value; - } - - /** - * Gets the value of the 'numErrors' field. - * Number of errors generated. */ - public java.lang.Long getNumErrors() { - return numErrors; - } - - /** - * Sets the value of the 'numErrors' field. - * Number of errors generated. * @param value the value to set. - */ - public void setNumErrors(java.lang.Long value) { - this.numErrors = value; - } - - /** - * Gets the value of the 'numEntitiesSkipped' field. - * Number of entities skipped. */ - public java.lang.Long getNumEntitiesSkipped() { - return numEntitiesSkipped; - } - - /** - * Sets the value of the 'numEntitiesSkipped' field. - * Number of entities skipped. * @param value the value to set. - */ - public void setNumEntitiesSkipped(java.lang.Long value) { - this.numEntitiesSkipped = value; - } - - /** - * Gets the value of the 'config' field. - * The non-sensitive key-value pairs of the yaml config used as json string. */ - public java.lang.String getConfig() { - return config; - } - - /** - * Sets the value of the 'config' field. - * The non-sensitive key-value pairs of the yaml config used as json string. * @param value the value to set. - */ - public void setConfig(java.lang.String value) { - this.config = value; - } - - /** - * Gets the value of the 'custom_summary' field. - * Custom value. */ - public java.lang.String getCustomSummary() { - return custom_summary; - } - - /** - * Sets the value of the 'custom_summary' field. - * Custom value. * @param value the value to set. - */ - public void setCustomSummary(java.lang.String value) { - this.custom_summary = value; - } - - /** - * Gets the value of the 'softwareVersion' field. - * The software version of this ingestion. */ - public java.lang.String getSoftwareVersion() { - return softwareVersion; - } - - /** - * Sets the value of the 'softwareVersion' field. - * The software version of this ingestion. * @param value the value to set. - */ - public void setSoftwareVersion(java.lang.String value) { - this.softwareVersion = value; - } - - /** - * Gets the value of the 'systemHostName' field. - * The hostname the ingestion pipeline ran on. */ - public java.lang.String getSystemHostName() { - return systemHostName; - } - - /** - * Sets the value of the 'systemHostName' field. - * The hostname the ingestion pipeline ran on. * @param value the value to set. - */ - public void setSystemHostName(java.lang.String value) { - this.systemHostName = value; - } - - /** - * Gets the value of the 'operatingSystemName' field. - * The os the ingestion pipeline ran on. */ - public java.lang.String getOperatingSystemName() { - return operatingSystemName; - } - - /** - * Sets the value of the 'operatingSystemName' field. - * The os the ingestion pipeline ran on. * @param value the value to set. - */ - public void setOperatingSystemName(java.lang.String value) { - this.operatingSystemName = value; - } - - /** - * Gets the value of the 'numProcessors' field. - * The number of processors on the host the ingestion pipeline ran on. */ - public java.lang.Integer getNumProcessors() { - return numProcessors; - } - - /** - * Sets the value of the 'numProcessors' field. - * The number of processors on the host the ingestion pipeline ran on. * @param value the value to set. - */ - public void setNumProcessors(java.lang.Integer value) { - this.numProcessors = value; - } - - /** - * Gets the value of the 'totalMemory' field. - * The total amount of memory on the host the ingestion pipeline ran on. */ - public java.lang.Long getTotalMemory() { - return totalMemory; - } - - /** - * Sets the value of the 'totalMemory' field. - * The total amount of memory on the host the ingestion pipeline ran on. * @param value the value to set. - */ - public void setTotalMemory(java.lang.Long value) { - this.totalMemory = value; - } - - /** - * Gets the value of the 'availableMemory' field. - * The available memory on the host the ingestion pipeline ran on. */ - public java.lang.Long getAvailableMemory() { - return availableMemory; - } - - /** - * Sets the value of the 'availableMemory' field. - * The available memory on the host the ingestion pipeline ran on. * @param value the value to set. - */ - public void setAvailableMemory(java.lang.Long value) { - this.availableMemory = value; - } - - /** Creates a new DatahubIngestionRunSummary RecordBuilder */ - public static com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder newBuilder() { - return new com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder(); - } - - /** Creates a new DatahubIngestionRunSummary RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder newBuilder(com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder other) { - return new com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder(other); - } - - /** Creates a new DatahubIngestionRunSummary RecordBuilder by copying an existing DatahubIngestionRunSummary instance */ - public static com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder newBuilder(com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary other) { - return new com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder(other); - } - - /** - * RecordBuilder for DatahubIngestionRunSummary 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 pipelineName; - private java.lang.String platformInstanceId; - private java.lang.String runId; - private com.linkedin.pegasus2avro.datajob.JobStatus runStatus; - private java.lang.Long numWorkUnitsCommitted; - private java.lang.Long numWorkUnitsCreated; - private java.lang.Long numEvents; - private java.lang.Long numEntities; - private java.lang.Long numAspects; - private java.lang.Long numSourceAPICalls; - private java.lang.Long totalLatencySourceAPICalls; - private java.lang.Long numSinkAPICalls; - private java.lang.Long totalLatencySinkAPICalls; - private java.lang.Long numWarnings; - private java.lang.Long numErrors; - private java.lang.Long numEntitiesSkipped; - private java.lang.String config; - private java.lang.String custom_summary; - private java.lang.String softwareVersion; - private java.lang.String systemHostName; - private java.lang.String operatingSystemName; - private java.lang.Integer numProcessors; - private java.lang.Long totalMemory; - private java.lang.Long availableMemory; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.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.pipelineName)) { - this.pipelineName = data().deepCopy(fields()[4].schema(), other.pipelineName); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.platformInstanceId)) { - this.platformInstanceId = data().deepCopy(fields()[5].schema(), other.platformInstanceId); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.runId)) { - this.runId = data().deepCopy(fields()[6].schema(), other.runId); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.runStatus)) { - this.runStatus = data().deepCopy(fields()[7].schema(), other.runStatus); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.numWorkUnitsCommitted)) { - this.numWorkUnitsCommitted = data().deepCopy(fields()[8].schema(), other.numWorkUnitsCommitted); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.numWorkUnitsCreated)) { - this.numWorkUnitsCreated = data().deepCopy(fields()[9].schema(), other.numWorkUnitsCreated); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.numEvents)) { - this.numEvents = data().deepCopy(fields()[10].schema(), other.numEvents); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[11].schema(), other.numEntities); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.numAspects)) { - this.numAspects = data().deepCopy(fields()[12].schema(), other.numAspects); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.numSourceAPICalls)) { - this.numSourceAPICalls = data().deepCopy(fields()[13].schema(), other.numSourceAPICalls); - fieldSetFlags()[13] = true; - } - if (isValidValue(fields()[14], other.totalLatencySourceAPICalls)) { - this.totalLatencySourceAPICalls = data().deepCopy(fields()[14].schema(), other.totalLatencySourceAPICalls); - fieldSetFlags()[14] = true; - } - if (isValidValue(fields()[15], other.numSinkAPICalls)) { - this.numSinkAPICalls = data().deepCopy(fields()[15].schema(), other.numSinkAPICalls); - fieldSetFlags()[15] = true; - } - if (isValidValue(fields()[16], other.totalLatencySinkAPICalls)) { - this.totalLatencySinkAPICalls = data().deepCopy(fields()[16].schema(), other.totalLatencySinkAPICalls); - fieldSetFlags()[16] = true; - } - if (isValidValue(fields()[17], other.numWarnings)) { - this.numWarnings = data().deepCopy(fields()[17].schema(), other.numWarnings); - fieldSetFlags()[17] = true; - } - if (isValidValue(fields()[18], other.numErrors)) { - this.numErrors = data().deepCopy(fields()[18].schema(), other.numErrors); - fieldSetFlags()[18] = true; - } - if (isValidValue(fields()[19], other.numEntitiesSkipped)) { - this.numEntitiesSkipped = data().deepCopy(fields()[19].schema(), other.numEntitiesSkipped); - fieldSetFlags()[19] = true; - } - if (isValidValue(fields()[20], other.config)) { - this.config = data().deepCopy(fields()[20].schema(), other.config); - fieldSetFlags()[20] = true; - } - if (isValidValue(fields()[21], other.custom_summary)) { - this.custom_summary = data().deepCopy(fields()[21].schema(), other.custom_summary); - fieldSetFlags()[21] = true; - } - if (isValidValue(fields()[22], other.softwareVersion)) { - this.softwareVersion = data().deepCopy(fields()[22].schema(), other.softwareVersion); - fieldSetFlags()[22] = true; - } - if (isValidValue(fields()[23], other.systemHostName)) { - this.systemHostName = data().deepCopy(fields()[23].schema(), other.systemHostName); - fieldSetFlags()[23] = true; - } - if (isValidValue(fields()[24], other.operatingSystemName)) { - this.operatingSystemName = data().deepCopy(fields()[24].schema(), other.operatingSystemName); - fieldSetFlags()[24] = true; - } - if (isValidValue(fields()[25], other.numProcessors)) { - this.numProcessors = data().deepCopy(fields()[25].schema(), other.numProcessors); - fieldSetFlags()[25] = true; - } - if (isValidValue(fields()[26], other.totalMemory)) { - this.totalMemory = data().deepCopy(fields()[26].schema(), other.totalMemory); - fieldSetFlags()[26] = true; - } - if (isValidValue(fields()[27], other.availableMemory)) { - this.availableMemory = data().deepCopy(fields()[27].schema(), other.availableMemory); - fieldSetFlags()[27] = true; - } - } - - /** Creates a Builder by copying an existing DatahubIngestionRunSummary instance */ - private Builder(com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary other) { - super(com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.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.pipelineName)) { - this.pipelineName = data().deepCopy(fields()[4].schema(), other.pipelineName); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.platformInstanceId)) { - this.platformInstanceId = data().deepCopy(fields()[5].schema(), other.platformInstanceId); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.runId)) { - this.runId = data().deepCopy(fields()[6].schema(), other.runId); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.runStatus)) { - this.runStatus = data().deepCopy(fields()[7].schema(), other.runStatus); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.numWorkUnitsCommitted)) { - this.numWorkUnitsCommitted = data().deepCopy(fields()[8].schema(), other.numWorkUnitsCommitted); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.numWorkUnitsCreated)) { - this.numWorkUnitsCreated = data().deepCopy(fields()[9].schema(), other.numWorkUnitsCreated); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.numEvents)) { - this.numEvents = data().deepCopy(fields()[10].schema(), other.numEvents); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[11].schema(), other.numEntities); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.numAspects)) { - this.numAspects = data().deepCopy(fields()[12].schema(), other.numAspects); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.numSourceAPICalls)) { - this.numSourceAPICalls = data().deepCopy(fields()[13].schema(), other.numSourceAPICalls); - fieldSetFlags()[13] = true; - } - if (isValidValue(fields()[14], other.totalLatencySourceAPICalls)) { - this.totalLatencySourceAPICalls = data().deepCopy(fields()[14].schema(), other.totalLatencySourceAPICalls); - fieldSetFlags()[14] = true; - } - if (isValidValue(fields()[15], other.numSinkAPICalls)) { - this.numSinkAPICalls = data().deepCopy(fields()[15].schema(), other.numSinkAPICalls); - fieldSetFlags()[15] = true; - } - if (isValidValue(fields()[16], other.totalLatencySinkAPICalls)) { - this.totalLatencySinkAPICalls = data().deepCopy(fields()[16].schema(), other.totalLatencySinkAPICalls); - fieldSetFlags()[16] = true; - } - if (isValidValue(fields()[17], other.numWarnings)) { - this.numWarnings = data().deepCopy(fields()[17].schema(), other.numWarnings); - fieldSetFlags()[17] = true; - } - if (isValidValue(fields()[18], other.numErrors)) { - this.numErrors = data().deepCopy(fields()[18].schema(), other.numErrors); - fieldSetFlags()[18] = true; - } - if (isValidValue(fields()[19], other.numEntitiesSkipped)) { - this.numEntitiesSkipped = data().deepCopy(fields()[19].schema(), other.numEntitiesSkipped); - fieldSetFlags()[19] = true; - } - if (isValidValue(fields()[20], other.config)) { - this.config = data().deepCopy(fields()[20].schema(), other.config); - fieldSetFlags()[20] = true; - } - if (isValidValue(fields()[21], other.custom_summary)) { - this.custom_summary = data().deepCopy(fields()[21].schema(), other.custom_summary); - fieldSetFlags()[21] = true; - } - if (isValidValue(fields()[22], other.softwareVersion)) { - this.softwareVersion = data().deepCopy(fields()[22].schema(), other.softwareVersion); - fieldSetFlags()[22] = true; - } - if (isValidValue(fields()[23], other.systemHostName)) { - this.systemHostName = data().deepCopy(fields()[23].schema(), other.systemHostName); - fieldSetFlags()[23] = true; - } - if (isValidValue(fields()[24], other.operatingSystemName)) { - this.operatingSystemName = data().deepCopy(fields()[24].schema(), other.operatingSystemName); - fieldSetFlags()[24] = true; - } - if (isValidValue(fields()[25], other.numProcessors)) { - this.numProcessors = data().deepCopy(fields()[25].schema(), other.numProcessors); - fieldSetFlags()[25] = true; - } - if (isValidValue(fields()[26], other.totalMemory)) { - this.totalMemory = data().deepCopy(fields()[26].schema(), other.totalMemory); - fieldSetFlags()[26] = true; - } - if (isValidValue(fields()[27], other.availableMemory)) { - this.availableMemory = data().deepCopy(fields()[27].schema(), other.availableMemory); - fieldSetFlags()[27] = 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.datajob.datahub.DatahubIngestionRunSummary.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.datajob.datahub.DatahubIngestionRunSummary.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.datajob.datahub.DatahubIngestionRunSummary.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.datajob.datahub.DatahubIngestionRunSummary.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.datajob.datahub.DatahubIngestionRunSummary.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.datajob.datahub.DatahubIngestionRunSummary.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.datajob.datahub.DatahubIngestionRunSummary.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.datajob.datahub.DatahubIngestionRunSummary.Builder clearMessageId() { - messageId = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'pipelineName' field */ - public java.lang.String getPipelineName() { - return pipelineName; - } - - /** Sets the value of the 'pipelineName' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setPipelineName(java.lang.String value) { - validate(fields()[4], value); - this.pipelineName = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'pipelineName' field has been set */ - public boolean hasPipelineName() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'pipelineName' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearPipelineName() { - pipelineName = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'platformInstanceId' field */ - public java.lang.String getPlatformInstanceId() { - return platformInstanceId; - } - - /** Sets the value of the 'platformInstanceId' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setPlatformInstanceId(java.lang.String value) { - validate(fields()[5], value); - this.platformInstanceId = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'platformInstanceId' field has been set */ - public boolean hasPlatformInstanceId() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'platformInstanceId' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearPlatformInstanceId() { - platformInstanceId = null; - fieldSetFlags()[5] = 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.datajob.datahub.DatahubIngestionRunSummary.Builder setRunId(java.lang.String value) { - validate(fields()[6], value); - this.runId = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'runId' field has been set */ - public boolean hasRunId() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'runId' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearRunId() { - runId = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'runStatus' field */ - public com.linkedin.pegasus2avro.datajob.JobStatus getRunStatus() { - return runStatus; - } - - /** Sets the value of the 'runStatus' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setRunStatus(com.linkedin.pegasus2avro.datajob.JobStatus value) { - validate(fields()[7], value); - this.runStatus = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'runStatus' field has been set */ - public boolean hasRunStatus() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'runStatus' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearRunStatus() { - runStatus = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'numWorkUnitsCommitted' field */ - public java.lang.Long getNumWorkUnitsCommitted() { - return numWorkUnitsCommitted; - } - - /** Sets the value of the 'numWorkUnitsCommitted' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setNumWorkUnitsCommitted(java.lang.Long value) { - validate(fields()[8], value); - this.numWorkUnitsCommitted = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'numWorkUnitsCommitted' field has been set */ - public boolean hasNumWorkUnitsCommitted() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'numWorkUnitsCommitted' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearNumWorkUnitsCommitted() { - numWorkUnitsCommitted = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'numWorkUnitsCreated' field */ - public java.lang.Long getNumWorkUnitsCreated() { - return numWorkUnitsCreated; - } - - /** Sets the value of the 'numWorkUnitsCreated' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setNumWorkUnitsCreated(java.lang.Long value) { - validate(fields()[9], value); - this.numWorkUnitsCreated = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'numWorkUnitsCreated' field has been set */ - public boolean hasNumWorkUnitsCreated() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'numWorkUnitsCreated' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearNumWorkUnitsCreated() { - numWorkUnitsCreated = null; - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'numEvents' field */ - public java.lang.Long getNumEvents() { - return numEvents; - } - - /** Sets the value of the 'numEvents' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setNumEvents(java.lang.Long value) { - validate(fields()[10], value); - this.numEvents = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'numEvents' field has been set */ - public boolean hasNumEvents() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'numEvents' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearNumEvents() { - numEvents = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'numEntities' field */ - public java.lang.Long getNumEntities() { - return numEntities; - } - - /** Sets the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setNumEntities(java.lang.Long value) { - validate(fields()[11], value); - this.numEntities = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'numEntities' field has been set */ - public boolean hasNumEntities() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearNumEntities() { - numEntities = null; - fieldSetFlags()[11] = false; - return this; - } - - /** Gets the value of the 'numAspects' field */ - public java.lang.Long getNumAspects() { - return numAspects; - } - - /** Sets the value of the 'numAspects' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setNumAspects(java.lang.Long value) { - validate(fields()[12], value); - this.numAspects = value; - fieldSetFlags()[12] = true; - return this; - } - - /** Checks whether the 'numAspects' field has been set */ - public boolean hasNumAspects() { - return fieldSetFlags()[12]; - } - - /** Clears the value of the 'numAspects' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearNumAspects() { - numAspects = null; - fieldSetFlags()[12] = false; - return this; - } - - /** Gets the value of the 'numSourceAPICalls' field */ - public java.lang.Long getNumSourceAPICalls() { - return numSourceAPICalls; - } - - /** Sets the value of the 'numSourceAPICalls' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setNumSourceAPICalls(java.lang.Long value) { - validate(fields()[13], value); - this.numSourceAPICalls = value; - fieldSetFlags()[13] = true; - return this; - } - - /** Checks whether the 'numSourceAPICalls' field has been set */ - public boolean hasNumSourceAPICalls() { - return fieldSetFlags()[13]; - } - - /** Clears the value of the 'numSourceAPICalls' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearNumSourceAPICalls() { - numSourceAPICalls = null; - fieldSetFlags()[13] = false; - return this; - } - - /** Gets the value of the 'totalLatencySourceAPICalls' field */ - public java.lang.Long getTotalLatencySourceAPICalls() { - return totalLatencySourceAPICalls; - } - - /** Sets the value of the 'totalLatencySourceAPICalls' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setTotalLatencySourceAPICalls(java.lang.Long value) { - validate(fields()[14], value); - this.totalLatencySourceAPICalls = value; - fieldSetFlags()[14] = true; - return this; - } - - /** Checks whether the 'totalLatencySourceAPICalls' field has been set */ - public boolean hasTotalLatencySourceAPICalls() { - return fieldSetFlags()[14]; - } - - /** Clears the value of the 'totalLatencySourceAPICalls' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearTotalLatencySourceAPICalls() { - totalLatencySourceAPICalls = null; - fieldSetFlags()[14] = false; - return this; - } - - /** Gets the value of the 'numSinkAPICalls' field */ - public java.lang.Long getNumSinkAPICalls() { - return numSinkAPICalls; - } - - /** Sets the value of the 'numSinkAPICalls' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setNumSinkAPICalls(java.lang.Long value) { - validate(fields()[15], value); - this.numSinkAPICalls = value; - fieldSetFlags()[15] = true; - return this; - } - - /** Checks whether the 'numSinkAPICalls' field has been set */ - public boolean hasNumSinkAPICalls() { - return fieldSetFlags()[15]; - } - - /** Clears the value of the 'numSinkAPICalls' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearNumSinkAPICalls() { - numSinkAPICalls = null; - fieldSetFlags()[15] = false; - return this; - } - - /** Gets the value of the 'totalLatencySinkAPICalls' field */ - public java.lang.Long getTotalLatencySinkAPICalls() { - return totalLatencySinkAPICalls; - } - - /** Sets the value of the 'totalLatencySinkAPICalls' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setTotalLatencySinkAPICalls(java.lang.Long value) { - validate(fields()[16], value); - this.totalLatencySinkAPICalls = value; - fieldSetFlags()[16] = true; - return this; - } - - /** Checks whether the 'totalLatencySinkAPICalls' field has been set */ - public boolean hasTotalLatencySinkAPICalls() { - return fieldSetFlags()[16]; - } - - /** Clears the value of the 'totalLatencySinkAPICalls' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearTotalLatencySinkAPICalls() { - totalLatencySinkAPICalls = null; - fieldSetFlags()[16] = false; - return this; - } - - /** Gets the value of the 'numWarnings' field */ - public java.lang.Long getNumWarnings() { - return numWarnings; - } - - /** Sets the value of the 'numWarnings' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setNumWarnings(java.lang.Long value) { - validate(fields()[17], value); - this.numWarnings = value; - fieldSetFlags()[17] = true; - return this; - } - - /** Checks whether the 'numWarnings' field has been set */ - public boolean hasNumWarnings() { - return fieldSetFlags()[17]; - } - - /** Clears the value of the 'numWarnings' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearNumWarnings() { - numWarnings = null; - fieldSetFlags()[17] = false; - return this; - } - - /** Gets the value of the 'numErrors' field */ - public java.lang.Long getNumErrors() { - return numErrors; - } - - /** Sets the value of the 'numErrors' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setNumErrors(java.lang.Long value) { - validate(fields()[18], value); - this.numErrors = value; - fieldSetFlags()[18] = true; - return this; - } - - /** Checks whether the 'numErrors' field has been set */ - public boolean hasNumErrors() { - return fieldSetFlags()[18]; - } - - /** Clears the value of the 'numErrors' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearNumErrors() { - numErrors = null; - fieldSetFlags()[18] = false; - return this; - } - - /** Gets the value of the 'numEntitiesSkipped' field */ - public java.lang.Long getNumEntitiesSkipped() { - return numEntitiesSkipped; - } - - /** Sets the value of the 'numEntitiesSkipped' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setNumEntitiesSkipped(java.lang.Long value) { - validate(fields()[19], value); - this.numEntitiesSkipped = value; - fieldSetFlags()[19] = true; - return this; - } - - /** Checks whether the 'numEntitiesSkipped' field has been set */ - public boolean hasNumEntitiesSkipped() { - return fieldSetFlags()[19]; - } - - /** Clears the value of the 'numEntitiesSkipped' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearNumEntitiesSkipped() { - numEntitiesSkipped = null; - fieldSetFlags()[19] = false; - return this; - } - - /** Gets the value of the 'config' field */ - public java.lang.String getConfig() { - return config; - } - - /** Sets the value of the 'config' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setConfig(java.lang.String value) { - validate(fields()[20], value); - this.config = value; - fieldSetFlags()[20] = true; - return this; - } - - /** Checks whether the 'config' field has been set */ - public boolean hasConfig() { - return fieldSetFlags()[20]; - } - - /** Clears the value of the 'config' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearConfig() { - config = null; - fieldSetFlags()[20] = false; - return this; - } - - /** Gets the value of the 'custom_summary' field */ - public java.lang.String getCustomSummary() { - return custom_summary; - } - - /** Sets the value of the 'custom_summary' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setCustomSummary(java.lang.String value) { - validate(fields()[21], value); - this.custom_summary = value; - fieldSetFlags()[21] = true; - return this; - } - - /** Checks whether the 'custom_summary' field has been set */ - public boolean hasCustomSummary() { - return fieldSetFlags()[21]; - } - - /** Clears the value of the 'custom_summary' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearCustomSummary() { - custom_summary = null; - fieldSetFlags()[21] = false; - return this; - } - - /** Gets the value of the 'softwareVersion' field */ - public java.lang.String getSoftwareVersion() { - return softwareVersion; - } - - /** Sets the value of the 'softwareVersion' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setSoftwareVersion(java.lang.String value) { - validate(fields()[22], value); - this.softwareVersion = value; - fieldSetFlags()[22] = true; - return this; - } - - /** Checks whether the 'softwareVersion' field has been set */ - public boolean hasSoftwareVersion() { - return fieldSetFlags()[22]; - } - - /** Clears the value of the 'softwareVersion' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearSoftwareVersion() { - softwareVersion = null; - fieldSetFlags()[22] = false; - return this; - } - - /** Gets the value of the 'systemHostName' field */ - public java.lang.String getSystemHostName() { - return systemHostName; - } - - /** Sets the value of the 'systemHostName' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setSystemHostName(java.lang.String value) { - validate(fields()[23], value); - this.systemHostName = value; - fieldSetFlags()[23] = true; - return this; - } - - /** Checks whether the 'systemHostName' field has been set */ - public boolean hasSystemHostName() { - return fieldSetFlags()[23]; - } - - /** Clears the value of the 'systemHostName' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearSystemHostName() { - systemHostName = null; - fieldSetFlags()[23] = false; - return this; - } - - /** Gets the value of the 'operatingSystemName' field */ - public java.lang.String getOperatingSystemName() { - return operatingSystemName; - } - - /** Sets the value of the 'operatingSystemName' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setOperatingSystemName(java.lang.String value) { - validate(fields()[24], value); - this.operatingSystemName = value; - fieldSetFlags()[24] = true; - return this; - } - - /** Checks whether the 'operatingSystemName' field has been set */ - public boolean hasOperatingSystemName() { - return fieldSetFlags()[24]; - } - - /** Clears the value of the 'operatingSystemName' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearOperatingSystemName() { - operatingSystemName = null; - fieldSetFlags()[24] = false; - return this; - } - - /** Gets the value of the 'numProcessors' field */ - public java.lang.Integer getNumProcessors() { - return numProcessors; - } - - /** Sets the value of the 'numProcessors' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setNumProcessors(java.lang.Integer value) { - validate(fields()[25], value); - this.numProcessors = value; - fieldSetFlags()[25] = true; - return this; - } - - /** Checks whether the 'numProcessors' field has been set */ - public boolean hasNumProcessors() { - return fieldSetFlags()[25]; - } - - /** Clears the value of the 'numProcessors' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearNumProcessors() { - numProcessors = null; - fieldSetFlags()[25] = false; - return this; - } - - /** Gets the value of the 'totalMemory' field */ - public java.lang.Long getTotalMemory() { - return totalMemory; - } - - /** Sets the value of the 'totalMemory' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setTotalMemory(java.lang.Long value) { - validate(fields()[26], value); - this.totalMemory = value; - fieldSetFlags()[26] = true; - return this; - } - - /** Checks whether the 'totalMemory' field has been set */ - public boolean hasTotalMemory() { - return fieldSetFlags()[26]; - } - - /** Clears the value of the 'totalMemory' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearTotalMemory() { - totalMemory = null; - fieldSetFlags()[26] = false; - return this; - } - - /** Gets the value of the 'availableMemory' field */ - public java.lang.Long getAvailableMemory() { - return availableMemory; - } - - /** Sets the value of the 'availableMemory' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder setAvailableMemory(java.lang.Long value) { - validate(fields()[27], value); - this.availableMemory = value; - fieldSetFlags()[27] = true; - return this; - } - - /** Checks whether the 'availableMemory' field has been set */ - public boolean hasAvailableMemory() { - return fieldSetFlags()[27]; - } - - /** Clears the value of the 'availableMemory' field */ - public com.linkedin.pegasus2avro.datajob.datahub.DatahubIngestionRunSummary.Builder clearAvailableMemory() { - availableMemory = null; - fieldSetFlags()[27] = false; - return this; - } - - @Override - public DatahubIngestionRunSummary build() { - try { - DatahubIngestionRunSummary record = new DatahubIngestionRunSummary(); - 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.pipelineName = fieldSetFlags()[4] ? this.pipelineName : (java.lang.String) defaultValue(fields()[4]); - record.platformInstanceId = fieldSetFlags()[5] ? this.platformInstanceId : (java.lang.String) defaultValue(fields()[5]); - record.runId = fieldSetFlags()[6] ? this.runId : (java.lang.String) defaultValue(fields()[6]); - record.runStatus = fieldSetFlags()[7] ? this.runStatus : (com.linkedin.pegasus2avro.datajob.JobStatus) defaultValue(fields()[7]); - record.numWorkUnitsCommitted = fieldSetFlags()[8] ? this.numWorkUnitsCommitted : (java.lang.Long) defaultValue(fields()[8]); - record.numWorkUnitsCreated = fieldSetFlags()[9] ? this.numWorkUnitsCreated : (java.lang.Long) defaultValue(fields()[9]); - record.numEvents = fieldSetFlags()[10] ? this.numEvents : (java.lang.Long) defaultValue(fields()[10]); - record.numEntities = fieldSetFlags()[11] ? this.numEntities : (java.lang.Long) defaultValue(fields()[11]); - record.numAspects = fieldSetFlags()[12] ? this.numAspects : (java.lang.Long) defaultValue(fields()[12]); - record.numSourceAPICalls = fieldSetFlags()[13] ? this.numSourceAPICalls : (java.lang.Long) defaultValue(fields()[13]); - record.totalLatencySourceAPICalls = fieldSetFlags()[14] ? this.totalLatencySourceAPICalls : (java.lang.Long) defaultValue(fields()[14]); - record.numSinkAPICalls = fieldSetFlags()[15] ? this.numSinkAPICalls : (java.lang.Long) defaultValue(fields()[15]); - record.totalLatencySinkAPICalls = fieldSetFlags()[16] ? this.totalLatencySinkAPICalls : (java.lang.Long) defaultValue(fields()[16]); - record.numWarnings = fieldSetFlags()[17] ? this.numWarnings : (java.lang.Long) defaultValue(fields()[17]); - record.numErrors = fieldSetFlags()[18] ? this.numErrors : (java.lang.Long) defaultValue(fields()[18]); - record.numEntitiesSkipped = fieldSetFlags()[19] ? this.numEntitiesSkipped : (java.lang.Long) defaultValue(fields()[19]); - record.config = fieldSetFlags()[20] ? this.config : (java.lang.String) defaultValue(fields()[20]); - record.custom_summary = fieldSetFlags()[21] ? this.custom_summary : (java.lang.String) defaultValue(fields()[21]); - record.softwareVersion = fieldSetFlags()[22] ? this.softwareVersion : (java.lang.String) defaultValue(fields()[22]); - record.systemHostName = fieldSetFlags()[23] ? this.systemHostName : (java.lang.String) defaultValue(fields()[23]); - record.operatingSystemName = fieldSetFlags()[24] ? this.operatingSystemName : (java.lang.String) defaultValue(fields()[24]); - record.numProcessors = fieldSetFlags()[25] ? this.numProcessors : (java.lang.Integer) defaultValue(fields()[25]); - record.totalMemory = fieldSetFlags()[26] ? this.totalMemory : (java.lang.Long) defaultValue(fields()[26]); - record.availableMemory = fieldSetFlags()[27] ? this.availableMemory : (java.lang.Long) defaultValue(fields()[27]); - 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/datajob/datahub/IngestionCheckpointState.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/datahub/IngestionCheckpointState.java deleted file mode 100644 index f36fd80195a32..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/datajob/datahub/IngestionCheckpointState.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.datajob.datahub; -@SuppressWarnings("all") -/** The checkpoint state object of a datahub ingestion run for a given job. */ -@org.apache.avro.specific.AvroGenerated -public class IngestionCheckpointState 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\":\"IngestionCheckpointState\",\"namespace\":\"com.linkedin.pegasus2avro.datajob.datahub\",\"doc\":\"The checkpoint state object of a datahub ingestion run for a given job.\",\"fields\":[{\"name\":\"formatVersion\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The version of the state format.\"},{\"name\":\"serde\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The serialization/deserialization protocol.\"},{\"name\":\"payload\",\"type\":[\"null\",\"bytes\"],\"doc\":\"Opaque blob of the state representation.\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The version of the state format. */ - @Deprecated public java.lang.String formatVersion; - /** The serialization/deserialization protocol. */ - @Deprecated public java.lang.String serde; - /** Opaque blob of the state representation. */ - @Deprecated public java.nio.ByteBuffer payload; - - /** - * 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 IngestionCheckpointState() {} - - /** - * All-args constructor. - */ - public IngestionCheckpointState(java.lang.String formatVersion, java.lang.String serde, java.nio.ByteBuffer payload) { - this.formatVersion = formatVersion; - this.serde = serde; - this.payload = payload; - } - - 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 formatVersion; - case 1: return serde; - case 2: return payload; - 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: formatVersion = (java.lang.String)value$; break; - case 1: serde = (java.lang.String)value$; break; - case 2: payload = (java.nio.ByteBuffer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'formatVersion' field. - * The version of the state format. */ - public java.lang.String getFormatVersion() { - return formatVersion; - } - - /** - * Sets the value of the 'formatVersion' field. - * The version of the state format. * @param value the value to set. - */ - public void setFormatVersion(java.lang.String value) { - this.formatVersion = value; - } - - /** - * Gets the value of the 'serde' field. - * The serialization/deserialization protocol. */ - public java.lang.String getSerde() { - return serde; - } - - /** - * Sets the value of the 'serde' field. - * The serialization/deserialization protocol. * @param value the value to set. - */ - public void setSerde(java.lang.String value) { - this.serde = value; - } - - /** - * Gets the value of the 'payload' field. - * Opaque blob of the state representation. */ - public java.nio.ByteBuffer getPayload() { - return payload; - } - - /** - * Sets the value of the 'payload' field. - * Opaque blob of the state representation. * @param value the value to set. - */ - public void setPayload(java.nio.ByteBuffer value) { - this.payload = value; - } - - /** Creates a new IngestionCheckpointState RecordBuilder */ - public static com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder newBuilder() { - return new com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder(); - } - - /** Creates a new IngestionCheckpointState RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder newBuilder(com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder other) { - return new com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder(other); - } - - /** Creates a new IngestionCheckpointState RecordBuilder by copying an existing IngestionCheckpointState instance */ - public static com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder newBuilder(com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState other) { - return new com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder(other); - } - - /** - * RecordBuilder for IngestionCheckpointState instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String formatVersion; - private java.lang.String serde; - private java.nio.ByteBuffer payload; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder other) { - super(other); - if (isValidValue(fields()[0], other.formatVersion)) { - this.formatVersion = data().deepCopy(fields()[0].schema(), other.formatVersion); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.serde)) { - this.serde = data().deepCopy(fields()[1].schema(), other.serde); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.payload)) { - this.payload = data().deepCopy(fields()[2].schema(), other.payload); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing IngestionCheckpointState instance */ - private Builder(com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState other) { - super(com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.SCHEMA$); - if (isValidValue(fields()[0], other.formatVersion)) { - this.formatVersion = data().deepCopy(fields()[0].schema(), other.formatVersion); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.serde)) { - this.serde = data().deepCopy(fields()[1].schema(), other.serde); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.payload)) { - this.payload = data().deepCopy(fields()[2].schema(), other.payload); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'formatVersion' field */ - public java.lang.String getFormatVersion() { - return formatVersion; - } - - /** Sets the value of the 'formatVersion' field */ - public com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder setFormatVersion(java.lang.String value) { - validate(fields()[0], value); - this.formatVersion = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'formatVersion' field has been set */ - public boolean hasFormatVersion() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'formatVersion' field */ - public com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder clearFormatVersion() { - formatVersion = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'serde' field */ - public java.lang.String getSerde() { - return serde; - } - - /** Sets the value of the 'serde' field */ - public com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder setSerde(java.lang.String value) { - validate(fields()[1], value); - this.serde = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'serde' field has been set */ - public boolean hasSerde() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'serde' field */ - public com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder clearSerde() { - serde = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'payload' field */ - public java.nio.ByteBuffer getPayload() { - return payload; - } - - /** Sets the value of the 'payload' field */ - public com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder setPayload(java.nio.ByteBuffer value) { - validate(fields()[2], value); - this.payload = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'payload' field has been set */ - public boolean hasPayload() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'payload' field */ - public com.linkedin.pegasus2avro.datajob.datahub.IngestionCheckpointState.Builder clearPayload() { - payload = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public IngestionCheckpointState build() { - try { - IngestionCheckpointState record = new IngestionCheckpointState(); - record.formatVersion = fieldSetFlags()[0] ? this.formatVersion : (java.lang.String) defaultValue(fields()[0]); - record.serde = fieldSetFlags()[1] ? this.serde : (java.lang.String) defaultValue(fields()[1]); - record.payload = fieldSetFlags()[2] ? this.payload : (java.nio.ByteBuffer) 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/dataplatform/DataPlatformInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataplatform/DataPlatformInfo.java deleted file mode 100644 index 9060b53f2d992..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataplatform/DataPlatformInfo.java +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataplatform; -@SuppressWarnings("all") -/** Information about a data platform */ -@org.apache.avro.specific.AvroGenerated -public class DataPlatformInfo 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\":\"DataPlatformInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dataplatform\",\"doc\":\"Information about a data platform\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the data platform\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":false,\"fieldType\":\"TEXT_PARTIAL\"},\"validate\":{\"strlen\":{\"max\":15}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The name that will be used for displaying a platform type.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"PlatformType\",\"doc\":\"Platform types available at LinkedIn\",\"symbols\":[\"FILE_SYSTEM\",\"KEY_VALUE_STORE\",\"MESSAGE_BROKER\",\"OBJECT_STORE\",\"OLAP_DATASTORE\",\"OTHERS\",\"QUERY_ENGINE\",\"RELATIONAL_DB\",\"SEARCH_ENGINE\"],\"symbolDocs\":{\"FILE_SYSTEM\":\"Value for a file system, e.g. hdfs\",\"KEY_VALUE_STORE\":\"Value for a key value store, e.g. espresso, voldemort\",\"MESSAGE_BROKER\":\"Value for a message broker, e.g. kafka\",\"OBJECT_STORE\":\"Value for an object store, e.g. ambry\",\"OLAP_DATASTORE\":\"Value for an OLAP datastore, e.g. pinot\",\"OTHERS\":\"Value for other platforms, e.g salesforce, dovetail\",\"QUERY_ENGINE\":\"Value for a query engine, e.g. presto\",\"RELATIONAL_DB\":\"Value for a relational database, e.g. oracle, mysql\",\"SEARCH_ENGINE\":\"Value for a search engine, e.g seas\"}},\"doc\":\"Platform type this data platform describes\"},{\"name\":\"datasetNameDelimiter\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The delimiter in the dataset names on the data platform, e.g. '/' for HDFS and '.' for Oracle\"},{\"name\":\"logoUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The URL for a logo associated with the platform\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}],\"Aspect\":{\"name\":\"dataPlatformInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Name of the data platform */ - @Deprecated public java.lang.String name; - /** The name that will be used for displaying a platform type. */ - @Deprecated public java.lang.String displayName; - /** Platform type this data platform describes */ - @Deprecated public com.linkedin.pegasus2avro.dataplatform.PlatformType type; - /** The delimiter in the dataset names on the data platform, e.g. '/' for HDFS and '.' for Oracle */ - @Deprecated public java.lang.String datasetNameDelimiter; - /** The URL for a logo associated with the platform */ - @Deprecated public java.lang.String logoUrl; - - /** - * 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 DataPlatformInfo() {} - - /** - * All-args constructor. - */ - public DataPlatformInfo(java.lang.String name, java.lang.String displayName, com.linkedin.pegasus2avro.dataplatform.PlatformType type, java.lang.String datasetNameDelimiter, java.lang.String logoUrl) { - this.name = name; - this.displayName = displayName; - this.type = type; - this.datasetNameDelimiter = datasetNameDelimiter; - this.logoUrl = logoUrl; - } - - 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 displayName; - case 2: return type; - case 3: return datasetNameDelimiter; - case 4: return logoUrl; - 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: displayName = (java.lang.String)value$; break; - case 2: type = (com.linkedin.pegasus2avro.dataplatform.PlatformType)value$; break; - case 3: datasetNameDelimiter = (java.lang.String)value$; break; - case 4: logoUrl = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Name of the data platform */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the data platform * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'displayName' field. - * The name that will be used for displaying a platform type. */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Sets the value of the 'displayName' field. - * The name that will be used for displaying a platform type. * @param value the value to set. - */ - public void setDisplayName(java.lang.String value) { - this.displayName = value; - } - - /** - * Gets the value of the 'type' field. - * Platform type this data platform describes */ - public com.linkedin.pegasus2avro.dataplatform.PlatformType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Platform type this data platform describes * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.dataplatform.PlatformType value) { - this.type = value; - } - - /** - * Gets the value of the 'datasetNameDelimiter' field. - * The delimiter in the dataset names on the data platform, e.g. '/' for HDFS and '.' for Oracle */ - public java.lang.String getDatasetNameDelimiter() { - return datasetNameDelimiter; - } - - /** - * Sets the value of the 'datasetNameDelimiter' field. - * The delimiter in the dataset names on the data platform, e.g. '/' for HDFS and '.' for Oracle * @param value the value to set. - */ - public void setDatasetNameDelimiter(java.lang.String value) { - this.datasetNameDelimiter = value; - } - - /** - * Gets the value of the 'logoUrl' field. - * The URL for a logo associated with the platform */ - public java.lang.String getLogoUrl() { - return logoUrl; - } - - /** - * Sets the value of the 'logoUrl' field. - * The URL for a logo associated with the platform * @param value the value to set. - */ - public void setLogoUrl(java.lang.String value) { - this.logoUrl = value; - } - - /** Creates a new DataPlatformInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder(); - } - - /** Creates a new DataPlatformInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder newBuilder(com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder other) { - return new com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder(other); - } - - /** Creates a new DataPlatformInfo RecordBuilder by copying an existing DataPlatformInfo instance */ - public static com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder newBuilder(com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo other) { - return new com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder(other); - } - - /** - * RecordBuilder for DataPlatformInfo 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 displayName; - private com.linkedin.pegasus2avro.dataplatform.PlatformType type; - private java.lang.String datasetNameDelimiter; - private java.lang.String logoUrl; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.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.displayName)) { - this.displayName = data().deepCopy(fields()[1].schema(), other.displayName); - 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.datasetNameDelimiter)) { - this.datasetNameDelimiter = data().deepCopy(fields()[3].schema(), other.datasetNameDelimiter); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.logoUrl)) { - this.logoUrl = data().deepCopy(fields()[4].schema(), other.logoUrl); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing DataPlatformInfo instance */ - private Builder(com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo other) { - super(com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.displayName)) { - this.displayName = data().deepCopy(fields()[1].schema(), other.displayName); - 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.datasetNameDelimiter)) { - this.datasetNameDelimiter = data().deepCopy(fields()[3].schema(), other.datasetNameDelimiter); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.logoUrl)) { - this.logoUrl = data().deepCopy(fields()[4].schema(), other.logoUrl); - fieldSetFlags()[4] = 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.dataplatform.DataPlatformInfo.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.dataplatform.DataPlatformInfo.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'displayName' field */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** Sets the value of the 'displayName' field */ - public com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder setDisplayName(java.lang.String value) { - validate(fields()[1], value); - this.displayName = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'displayName' field has been set */ - public boolean hasDisplayName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'displayName' field */ - public com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder clearDisplayName() { - displayName = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.dataplatform.PlatformType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder setType(com.linkedin.pegasus2avro.dataplatform.PlatformType 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.dataplatform.DataPlatformInfo.Builder clearType() { - type = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'datasetNameDelimiter' field */ - public java.lang.String getDatasetNameDelimiter() { - return datasetNameDelimiter; - } - - /** Sets the value of the 'datasetNameDelimiter' field */ - public com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder setDatasetNameDelimiter(java.lang.String value) { - validate(fields()[3], value); - this.datasetNameDelimiter = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'datasetNameDelimiter' field has been set */ - public boolean hasDatasetNameDelimiter() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'datasetNameDelimiter' field */ - public com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder clearDatasetNameDelimiter() { - datasetNameDelimiter = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'logoUrl' field */ - public java.lang.String getLogoUrl() { - return logoUrl; - } - - /** Sets the value of the 'logoUrl' field */ - public com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder setLogoUrl(java.lang.String value) { - validate(fields()[4], value); - this.logoUrl = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'logoUrl' field has been set */ - public boolean hasLogoUrl() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'logoUrl' field */ - public com.linkedin.pegasus2avro.dataplatform.DataPlatformInfo.Builder clearLogoUrl() { - logoUrl = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public DataPlatformInfo build() { - try { - DataPlatformInfo record = new DataPlatformInfo(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.displayName = fieldSetFlags()[1] ? this.displayName : (java.lang.String) defaultValue(fields()[1]); - record.type = fieldSetFlags()[2] ? this.type : (com.linkedin.pegasus2avro.dataplatform.PlatformType) defaultValue(fields()[2]); - record.datasetNameDelimiter = fieldSetFlags()[3] ? this.datasetNameDelimiter : (java.lang.String) defaultValue(fields()[3]); - record.logoUrl = fieldSetFlags()[4] ? this.logoUrl : (java.lang.String) 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/dataplatform/PlatformType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataplatform/PlatformType.java deleted file mode 100644 index 391add9c84d1a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataplatform/PlatformType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataplatform; -@SuppressWarnings("all") -/** Platform types available at LinkedIn */ -@org.apache.avro.specific.AvroGenerated -public enum PlatformType { - FILE_SYSTEM, KEY_VALUE_STORE, MESSAGE_BROKER, OBJECT_STORE, OLAP_DATASTORE, OTHERS, QUERY_ENGINE, RELATIONAL_DB, SEARCH_ENGINE ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"PlatformType\",\"namespace\":\"com.linkedin.pegasus2avro.dataplatform\",\"doc\":\"Platform types available at LinkedIn\",\"symbols\":[\"FILE_SYSTEM\",\"KEY_VALUE_STORE\",\"MESSAGE_BROKER\",\"OBJECT_STORE\",\"OLAP_DATASTORE\",\"OTHERS\",\"QUERY_ENGINE\",\"RELATIONAL_DB\",\"SEARCH_ENGINE\"],\"symbolDocs\":{\"FILE_SYSTEM\":\"Value for a file system, e.g. hdfs\",\"KEY_VALUE_STORE\":\"Value for a key value store, e.g. espresso, voldemort\",\"MESSAGE_BROKER\":\"Value for a message broker, e.g. kafka\",\"OBJECT_STORE\":\"Value for an object store, e.g. ambry\",\"OLAP_DATASTORE\":\"Value for an OLAP datastore, e.g. pinot\",\"OTHERS\":\"Value for other platforms, e.g salesforce, dovetail\",\"QUERY_ENGINE\":\"Value for a query engine, e.g. presto\",\"RELATIONAL_DB\":\"Value for a relational database, e.g. oracle, mysql\",\"SEARCH_ENGINE\":\"Value for a search engine, e.g seas\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataplatforminstance/DataPlatformInstanceProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataplatforminstance/DataPlatformInstanceProperties.java deleted file mode 100644 index 62069c6e9f308..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataplatforminstance/DataPlatformInstanceProperties.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataplatforminstance; -@SuppressWarnings("all") -/** Properties associated with a Data Platform Instance */ -@org.apache.avro.specific.AvroGenerated -public class DataPlatformInstanceProperties 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\":\"DataPlatformInstanceProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataplatforminstance\",\"doc\":\"Properties associated with a Data Platform Instance\",\"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\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the Data Platform Instance\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the Data Platform Instance\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}}],\"Aspect\":{\"name\":\"dataPlatformInstanceProperties\"}}"); - 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; - /** Display name of the Data Platform Instance */ - @Deprecated public java.lang.String name; - /** Documentation of the Data Platform Instance */ - @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 DataPlatformInstanceProperties() {} - - /** - * All-args constructor. - */ - public DataPlatformInstanceProperties(java.util.Map customProperties, java.lang.String externalUrl, java.lang.String name, java.lang.String description) { - this.customProperties = customProperties; - this.externalUrl = externalUrl; - this.name = name; - 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 customProperties; - case 1: return externalUrl; - case 2: return name; - 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: customProperties = (java.util.Map)value$; break; - case 1: externalUrl = (java.lang.String)value$; break; - case 2: name = (java.lang.String)value$; break; - case 3: description = (java.lang.String)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 'name' field. - * Display name of the Data Platform Instance */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Display name of the Data Platform Instance * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'description' field. - * Documentation of the Data Platform Instance */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the Data Platform Instance * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** Creates a new DataPlatformInstanceProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties.Builder(); - } - - /** Creates a new DataPlatformInstanceProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties.Builder newBuilder(com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties.Builder other) { - return new com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties.Builder(other); - } - - /** Creates a new DataPlatformInstanceProperties RecordBuilder by copying an existing DataPlatformInstanceProperties instance */ - public static com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties.Builder newBuilder(com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties other) { - return new com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties.Builder(other); - } - - /** - * RecordBuilder for DataPlatformInstanceProperties 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 name; - private java.lang.String description; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties.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.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - 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 DataPlatformInstanceProperties instance */ - private Builder(com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties other) { - super(com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties.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.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - 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 'customProperties' field */ - public java.util.Map getCustomProperties() { - return customProperties; - } - - /** Sets the value of the 'customProperties' field */ - public com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties.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.dataplatforminstance.DataPlatformInstanceProperties.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.dataplatforminstance.DataPlatformInstanceProperties.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.dataplatforminstance.DataPlatformInstanceProperties.Builder clearExternalUrl() { - externalUrl = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.dataplatforminstance.DataPlatformInstanceProperties.Builder setName(java.lang.String value) { - validate(fields()[2], value); - this.name = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.dataplatforminstance.DataPlatformInstanceProperties.Builder clearName() { - name = 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.dataplatforminstance.DataPlatformInstanceProperties.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.dataplatforminstance.DataPlatformInstanceProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public DataPlatformInstanceProperties build() { - try { - DataPlatformInstanceProperties record = new DataPlatformInstanceProperties(); - 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.name = fieldSetFlags()[2] ? this.name : (java.lang.String) 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/dataprocess/DataProcessInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInfo.java deleted file mode 100644 index 9b54295a63f36..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInfo.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataprocess; -@SuppressWarnings("all") -/** The inputs and outputs of this data process */ -@org.apache.avro.specific.AvroGenerated -public class DataProcessInfo 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\":\"DataProcessInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"doc\":\"The inputs and outputs of this data process\",\"fields\":[{\"name\":\"inputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"the inputs of the data process\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"the outputs of the data process\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}}],\"Aspect\":{\"name\":\"dataProcessInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** the inputs of the data process */ - @Deprecated public java.util.List inputs; - /** the outputs of the data process */ - @Deprecated public java.util.List outputs; - - /** - * 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 DataProcessInfo() {} - - /** - * All-args constructor. - */ - public DataProcessInfo(java.util.List inputs, java.util.List outputs) { - this.inputs = inputs; - this.outputs = outputs; - } - - 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 inputs; - case 1: return outputs; - 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: inputs = (java.util.List)value$; break; - case 1: outputs = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'inputs' field. - * the inputs of the data process */ - public java.util.List getInputs() { - return inputs; - } - - /** - * Sets the value of the 'inputs' field. - * the inputs of the data process * @param value the value to set. - */ - public void setInputs(java.util.List value) { - this.inputs = value; - } - - /** - * Gets the value of the 'outputs' field. - * the outputs of the data process */ - public java.util.List getOutputs() { - return outputs; - } - - /** - * Sets the value of the 'outputs' field. - * the outputs of the data process * @param value the value to set. - */ - public void setOutputs(java.util.List value) { - this.outputs = value; - } - - /** Creates a new DataProcessInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.Builder(); - } - - /** Creates a new DataProcessInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.Builder other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.Builder(other); - } - - /** Creates a new DataProcessInfo RecordBuilder by copying an existing DataProcessInfo instance */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInfo other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.Builder(other); - } - - /** - * RecordBuilder for DataProcessInfo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List inputs; - private java.util.List outputs; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.Builder other) { - super(other); - if (isValidValue(fields()[0], other.inputs)) { - this.inputs = data().deepCopy(fields()[0].schema(), other.inputs); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.outputs)) { - this.outputs = data().deepCopy(fields()[1].schema(), other.outputs); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataProcessInfo instance */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInfo other) { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.SCHEMA$); - if (isValidValue(fields()[0], other.inputs)) { - this.inputs = data().deepCopy(fields()[0].schema(), other.inputs); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.outputs)) { - this.outputs = data().deepCopy(fields()[1].schema(), other.outputs); - fieldSetFlags()[1] = true; - } - } - - /** 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.dataprocess.DataProcessInfo.Builder setInputs(java.util.List value) { - validate(fields()[0], value); - this.inputs = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'inputs' field has been set */ - public boolean hasInputs() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'inputs' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.Builder clearInputs() { - inputs = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'outputs' field */ - public java.util.List getOutputs() { - return outputs; - } - - /** Sets the value of the 'outputs' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.Builder setOutputs(java.util.List value) { - validate(fields()[1], value); - this.outputs = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'outputs' field has been set */ - public boolean hasOutputs() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'outputs' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInfo.Builder clearOutputs() { - outputs = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataProcessInfo build() { - try { - DataProcessInfo record = new DataProcessInfo(); - record.inputs = fieldSetFlags()[0] ? this.inputs : (java.util.List) defaultValue(fields()[0]); - record.outputs = fieldSetFlags()[1] ? this.outputs : (java.util.List) 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/dataprocess/DataProcessInstanceInput.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInstanceInput.java deleted file mode 100644 index 4d0f8417cdd79..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInstanceInput.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataprocess; -@SuppressWarnings("all") -/** Information about the inputs datasets of a Data process */ -@org.apache.avro.specific.AvroGenerated -public class DataProcessInstanceInput 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\":\"DataProcessInstanceInput\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"doc\":\"Information about the inputs datasets of a Data process\",\"fields\":[{\"name\":\"inputs\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Input datasets to be consumed\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"addToFilters\":true,\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputs\",\"queryByDefault\":false}}}],\"Aspect\":{\"name\":\"dataProcessInstanceInput\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Input datasets to be consumed */ - @Deprecated public java.util.List inputs; - - /** - * 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 DataProcessInstanceInput() {} - - /** - * All-args constructor. - */ - public DataProcessInstanceInput(java.util.List inputs) { - this.inputs = inputs; - } - - 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 inputs; - 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: inputs = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'inputs' field. - * Input datasets to be consumed */ - public java.util.List getInputs() { - return inputs; - } - - /** - * Sets the value of the 'inputs' field. - * Input datasets to be consumed * @param value the value to set. - */ - public void setInputs(java.util.List value) { - this.inputs = value; - } - - /** Creates a new DataProcessInstanceInput RecordBuilder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput.Builder(); - } - - /** Creates a new DataProcessInstanceInput RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput.Builder other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput.Builder(other); - } - - /** Creates a new DataProcessInstanceInput RecordBuilder by copying an existing DataProcessInstanceInput instance */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput.Builder(other); - } - - /** - * RecordBuilder for DataProcessInstanceInput instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List inputs; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput.Builder other) { - super(other); - if (isValidValue(fields()[0], other.inputs)) { - this.inputs = data().deepCopy(fields()[0].schema(), other.inputs); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataProcessInstanceInput instance */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput other) { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput.SCHEMA$); - if (isValidValue(fields()[0], other.inputs)) { - this.inputs = data().deepCopy(fields()[0].schema(), other.inputs); - fieldSetFlags()[0] = true; - } - } - - /** 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.dataprocess.DataProcessInstanceInput.Builder setInputs(java.util.List value) { - validate(fields()[0], value); - this.inputs = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'inputs' field has been set */ - public boolean hasInputs() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'inputs' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceInput.Builder clearInputs() { - inputs = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataProcessInstanceInput build() { - try { - DataProcessInstanceInput record = new DataProcessInstanceInput(); - record.inputs = fieldSetFlags()[0] ? this.inputs : (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/dataprocess/DataProcessInstanceOutput.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInstanceOutput.java deleted file mode 100644 index a349ea95d3a33..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInstanceOutput.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataprocess; -@SuppressWarnings("all") -/** Information about the outputs of a Data process */ -@org.apache.avro.specific.AvroGenerated -public class DataProcessInstanceOutput 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\":\"DataProcessInstanceOutput\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"doc\":\"Information about the outputs of a Data process\",\"fields\":[{\"name\":\"outputs\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Output datasets to be produced\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"addToFilters\":true,\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputs\",\"queryByDefault\":false}}}],\"Aspect\":{\"name\":\"dataProcessInstanceOutput\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Output datasets to be produced */ - @Deprecated public java.util.List outputs; - - /** - * 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 DataProcessInstanceOutput() {} - - /** - * All-args constructor. - */ - public DataProcessInstanceOutput(java.util.List outputs) { - this.outputs = outputs; - } - - 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 outputs; - 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: outputs = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'outputs' field. - * Output datasets to be produced */ - public java.util.List getOutputs() { - return outputs; - } - - /** - * Sets the value of the 'outputs' field. - * Output datasets to be produced * @param value the value to set. - */ - public void setOutputs(java.util.List value) { - this.outputs = value; - } - - /** Creates a new DataProcessInstanceOutput RecordBuilder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput.Builder(); - } - - /** Creates a new DataProcessInstanceOutput RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput.Builder other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput.Builder(other); - } - - /** Creates a new DataProcessInstanceOutput RecordBuilder by copying an existing DataProcessInstanceOutput instance */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput.Builder(other); - } - - /** - * RecordBuilder for DataProcessInstanceOutput instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List outputs; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput.Builder other) { - super(other); - if (isValidValue(fields()[0], other.outputs)) { - this.outputs = data().deepCopy(fields()[0].schema(), other.outputs); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataProcessInstanceOutput instance */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput other) { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput.SCHEMA$); - if (isValidValue(fields()[0], other.outputs)) { - this.outputs = data().deepCopy(fields()[0].schema(), other.outputs); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'outputs' field */ - public java.util.List getOutputs() { - return outputs; - } - - /** Sets the value of the 'outputs' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput.Builder setOutputs(java.util.List value) { - validate(fields()[0], value); - this.outputs = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'outputs' field has been set */ - public boolean hasOutputs() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'outputs' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceOutput.Builder clearOutputs() { - outputs = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataProcessInstanceOutput build() { - try { - DataProcessInstanceOutput record = new DataProcessInstanceOutput(); - record.outputs = fieldSetFlags()[0] ? this.outputs : (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/dataprocess/DataProcessInstanceProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInstanceProperties.java deleted file mode 100644 index 428db5b37a0b0..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInstanceProperties.java +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataprocess; -@SuppressWarnings("all") -/** The inputs and outputs of this data process */ -@org.apache.avro.specific.AvroGenerated -public class DataProcessInstanceProperties 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\":\"DataProcessInstanceProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"doc\":\"The inputs and outputs of this data process\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Process name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"DataProcessType\",\"symbols\":[\"BATCH_SCHEDULED\",\"BATCH_AD_HOC\",\"STREAMING\"]}],\"doc\":\"Process type\",\"default\":null,\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"KEYWORD\",\"filterNameOverride\":\"Process Type\"}},{\"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\":\"Audit stamp containing who reported the lineage and when\",\"Searchable\":{\"/time\":{\"fieldName\":\"created\",\"fieldType\":\"COUNT\",\"queryByDefault\":false}}}],\"Aspect\":{\"name\":\"dataProcessInstanceProperties\"}}"); - 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; - /** Process name */ - @Deprecated public java.lang.String name; - /** Process type */ - @Deprecated public com.linkedin.pegasus2avro.dataprocess.DataProcessType type; - /** Audit stamp containing who reported the lineage and when */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created; - - /** - * 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 DataProcessInstanceProperties() {} - - /** - * All-args constructor. - */ - public DataProcessInstanceProperties(java.util.Map customProperties, java.lang.String externalUrl, java.lang.String name, com.linkedin.pegasus2avro.dataprocess.DataProcessType type, com.linkedin.pegasus2avro.common.AuditStamp created) { - this.customProperties = customProperties; - this.externalUrl = externalUrl; - this.name = name; - this.type = type; - this.created = created; - } - - 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 name; - case 3: return type; - case 4: return created; - 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: name = (java.lang.String)value$; break; - case 3: type = (com.linkedin.pegasus2avro.dataprocess.DataProcessType)value$; break; - case 4: created = (com.linkedin.pegasus2avro.common.AuditStamp)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 'name' field. - * Process name */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Process name * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'type' field. - * Process type */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Process type * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.dataprocess.DataProcessType value) { - this.type = value; - } - - /** - * Gets the value of the 'created' field. - * Audit stamp containing who reported the lineage and when */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * Audit stamp containing who reported the lineage and when * @param value the value to set. - */ - public void setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.created = value; - } - - /** Creates a new DataProcessInstanceProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.Builder(); - } - - /** Creates a new DataProcessInstanceProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.Builder other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.Builder(other); - } - - /** Creates a new DataProcessInstanceProperties RecordBuilder by copying an existing DataProcessInstanceProperties instance */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.Builder(other); - } - - /** - * RecordBuilder for DataProcessInstanceProperties 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 name; - private com.linkedin.pegasus2avro.dataprocess.DataProcessType type; - private com.linkedin.pegasus2avro.common.AuditStamp created; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.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.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.type)) { - this.type = data().deepCopy(fields()[3].schema(), other.type); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.created)) { - this.created = data().deepCopy(fields()[4].schema(), other.created); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing DataProcessInstanceProperties instance */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties other) { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.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.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.type)) { - this.type = data().deepCopy(fields()[3].schema(), other.type); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.created)) { - this.created = data().deepCopy(fields()[4].schema(), other.created); - fieldSetFlags()[4] = 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.dataprocess.DataProcessInstanceProperties.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.dataprocess.DataProcessInstanceProperties.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.dataprocess.DataProcessInstanceProperties.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.dataprocess.DataProcessInstanceProperties.Builder clearExternalUrl() { - externalUrl = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.dataprocess.DataProcessInstanceProperties.Builder setName(java.lang.String value) { - validate(fields()[2], value); - this.name = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.Builder clearName() { - name = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.Builder setType(com.linkedin.pegasus2avro.dataprocess.DataProcessType value) { - validate(fields()[3], value); - this.type = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'type' field has been set */ - public boolean hasType() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'type' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.Builder clearType() { - type = null; - fieldSetFlags()[3] = 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.dataprocess.DataProcessInstanceProperties.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[4], value); - this.created = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceProperties.Builder clearCreated() { - created = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public DataProcessInstanceProperties build() { - try { - DataProcessInstanceProperties record = new DataProcessInstanceProperties(); - 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.name = fieldSetFlags()[2] ? this.name : (java.lang.String) defaultValue(fields()[2]); - record.type = fieldSetFlags()[3] ? this.type : (com.linkedin.pegasus2avro.dataprocess.DataProcessType) defaultValue(fields()[3]); - record.created = fieldSetFlags()[4] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) 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/dataprocess/DataProcessInstanceRelationships.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInstanceRelationships.java deleted file mode 100644 index 96ddf35fa0331..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInstanceRelationships.java +++ /dev/null @@ -1,260 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataprocess; -@SuppressWarnings("all") -/** Information about Data process relationships */ -@org.apache.avro.specific.AvroGenerated -public class DataProcessInstanceRelationships 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\":\"DataProcessInstanceRelationships\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"doc\":\"Information about Data process relationships\",\"fields\":[{\"name\":\"parentTemplate\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The parent entity whose run instance it is\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"dataJob\",\"dataFlow\"],\"name\":\"InstanceOf\"},\"Searchable\":{\"/*\":{\"fieldName\":\"parentTemplate\",\"fieldType\":\"URN\",\"queryByDefault\":false}},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"parentInstance\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The parent DataProcessInstance where it belongs to.\\nIf it is a Airflow Task then it should belong to an Airflow Dag run as well\\nwhich will be another DataProcessInstance\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"dataProcessInstance\"],\"name\":\"ChildOf\"},\"Searchable\":{\"/*\":{\"fieldName\":\"parentInstance\",\"fieldType\":\"URN\",\"queryByDefault\":false}},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"upstreamInstances\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Input DataProcessInstance which triggered this dataprocess instance\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataProcessInstance\"],\"name\":\"UpstreamOf\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"upstream\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numUpstreams\",\"queryByDefault\":false}}}],\"Aspect\":{\"name\":\"dataProcessInstanceRelationships\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The parent entity whose run instance it is */ - @Deprecated public java.lang.String parentTemplate; - /** The parent DataProcessInstance where it belongs to. -If it is a Airflow Task then it should belong to an Airflow Dag run as well -which will be another DataProcessInstance */ - @Deprecated public java.lang.String parentInstance; - /** Input DataProcessInstance which triggered this dataprocess instance */ - @Deprecated public java.util.List upstreamInstances; - - /** - * 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 DataProcessInstanceRelationships() {} - - /** - * All-args constructor. - */ - public DataProcessInstanceRelationships(java.lang.String parentTemplate, java.lang.String parentInstance, java.util.List upstreamInstances) { - this.parentTemplate = parentTemplate; - this.parentInstance = parentInstance; - this.upstreamInstances = upstreamInstances; - } - - 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 parentTemplate; - case 1: return parentInstance; - case 2: return upstreamInstances; - 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: parentTemplate = (java.lang.String)value$; break; - case 1: parentInstance = (java.lang.String)value$; break; - case 2: upstreamInstances = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'parentTemplate' field. - * The parent entity whose run instance it is */ - public java.lang.String getParentTemplate() { - return parentTemplate; - } - - /** - * Sets the value of the 'parentTemplate' field. - * The parent entity whose run instance it is * @param value the value to set. - */ - public void setParentTemplate(java.lang.String value) { - this.parentTemplate = value; - } - - /** - * Gets the value of the 'parentInstance' field. - * The parent DataProcessInstance where it belongs to. -If it is a Airflow Task then it should belong to an Airflow Dag run as well -which will be another DataProcessInstance */ - public java.lang.String getParentInstance() { - return parentInstance; - } - - /** - * Sets the value of the 'parentInstance' field. - * The parent DataProcessInstance where it belongs to. -If it is a Airflow Task then it should belong to an Airflow Dag run as well -which will be another DataProcessInstance * @param value the value to set. - */ - public void setParentInstance(java.lang.String value) { - this.parentInstance = value; - } - - /** - * Gets the value of the 'upstreamInstances' field. - * Input DataProcessInstance which triggered this dataprocess instance */ - public java.util.List getUpstreamInstances() { - return upstreamInstances; - } - - /** - * Sets the value of the 'upstreamInstances' field. - * Input DataProcessInstance which triggered this dataprocess instance * @param value the value to set. - */ - public void setUpstreamInstances(java.util.List value) { - this.upstreamInstances = value; - } - - /** Creates a new DataProcessInstanceRelationships RecordBuilder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder(); - } - - /** Creates a new DataProcessInstanceRelationships RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder(other); - } - - /** Creates a new DataProcessInstanceRelationships RecordBuilder by copying an existing DataProcessInstanceRelationships instance */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder(other); - } - - /** - * RecordBuilder for DataProcessInstanceRelationships instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String parentTemplate; - private java.lang.String parentInstance; - private java.util.List upstreamInstances; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder other) { - super(other); - if (isValidValue(fields()[0], other.parentTemplate)) { - this.parentTemplate = data().deepCopy(fields()[0].schema(), other.parentTemplate); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.parentInstance)) { - this.parentInstance = data().deepCopy(fields()[1].schema(), other.parentInstance); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.upstreamInstances)) { - this.upstreamInstances = data().deepCopy(fields()[2].schema(), other.upstreamInstances); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing DataProcessInstanceRelationships instance */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships other) { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.SCHEMA$); - if (isValidValue(fields()[0], other.parentTemplate)) { - this.parentTemplate = data().deepCopy(fields()[0].schema(), other.parentTemplate); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.parentInstance)) { - this.parentInstance = data().deepCopy(fields()[1].schema(), other.parentInstance); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.upstreamInstances)) { - this.upstreamInstances = data().deepCopy(fields()[2].schema(), other.upstreamInstances); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'parentTemplate' field */ - public java.lang.String getParentTemplate() { - return parentTemplate; - } - - /** Sets the value of the 'parentTemplate' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder setParentTemplate(java.lang.String value) { - validate(fields()[0], value); - this.parentTemplate = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'parentTemplate' field has been set */ - public boolean hasParentTemplate() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'parentTemplate' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder clearParentTemplate() { - parentTemplate = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'parentInstance' field */ - public java.lang.String getParentInstance() { - return parentInstance; - } - - /** Sets the value of the 'parentInstance' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder setParentInstance(java.lang.String value) { - validate(fields()[1], value); - this.parentInstance = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'parentInstance' field has been set */ - public boolean hasParentInstance() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'parentInstance' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder clearParentInstance() { - parentInstance = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'upstreamInstances' field */ - public java.util.List getUpstreamInstances() { - return upstreamInstances; - } - - /** Sets the value of the 'upstreamInstances' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder setUpstreamInstances(java.util.List value) { - validate(fields()[2], value); - this.upstreamInstances = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'upstreamInstances' field has been set */ - public boolean hasUpstreamInstances() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'upstreamInstances' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRelationships.Builder clearUpstreamInstances() { - upstreamInstances = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public DataProcessInstanceRelationships build() { - try { - DataProcessInstanceRelationships record = new DataProcessInstanceRelationships(); - record.parentTemplate = fieldSetFlags()[0] ? this.parentTemplate : (java.lang.String) defaultValue(fields()[0]); - record.parentInstance = fieldSetFlags()[1] ? this.parentInstance : (java.lang.String) defaultValue(fields()[1]); - record.upstreamInstances = fieldSetFlags()[2] ? this.upstreamInstances : (java.util.List) 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/dataprocess/DataProcessInstanceRunEvent.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInstanceRunEvent.java deleted file mode 100644 index 15baf30d1c16f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInstanceRunEvent.java +++ /dev/null @@ -1,528 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataprocess; -@SuppressWarnings("all") -/** An event representing the current status of data process run. -DataProcessRunEvent should be used for reporting the status of a dataProcess' run. */ -@org.apache.avro.specific.AvroGenerated -public class DataProcessInstanceRunEvent 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\":\"DataProcessInstanceRunEvent\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"doc\":\"An event representing the current status of data process run.\\nDataProcessRunEvent should be used for reporting the status of a dataProcess' run.\",\"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\":\"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\":\"status\",\"type\":{\"type\":\"enum\",\"name\":\"DataProcessRunStatus\",\"symbols\":[\"STARTED\",\"COMPLETE\"],\"symbolDocs\":{\"STARTED\":\"The status where the Data processing run is in.\"}},\"TimeseriesField\":{}},{\"name\":\"attempt\",\"type\":[\"null\",\"int\"],\"doc\":\"Return the try number that this Instance Run is in\",\"default\":null},{\"name\":\"result\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DataProcessInstanceRunResult\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"RunResultType\",\"symbols\":[\"SUCCESS\",\"FAILURE\",\"SKIPPED\",\"UP_FOR_RETRY\"],\"symbolDocs\":{\"FAILURE\":\" The Run Failed\",\"SKIPPED\":\" The Run Skipped\",\"SUCCESS\":\" The Run Succeeded\",\"UP_FOR_RETRY\":\" The Run Failed and will Retry\"}},\"doc\":\" The final result, e.g. SUCCESS, FAILURE, SKIPPED, or UP_FOR_RETRY.\"},{\"name\":\"nativeResultType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"It identifies the system where the native result comes from like Airflow, Azkaban, etc..\"}]}],\"doc\":\"The final result of the Data Processing run.\",\"default\":null,\"TimeseriesField\":{}}],\"Aspect\":{\"name\":\"dataProcessInstanceRunEvent\",\"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; - /** URL where the reference exist */ - @Deprecated public java.lang.String externalUrl; - @Deprecated public com.linkedin.pegasus2avro.dataprocess.DataProcessRunStatus status; - /** Return the try number that this Instance Run is in */ - @Deprecated public java.lang.Integer attempt; - /** The final result of the Data Processing run. */ - @Deprecated public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult result; - - /** - * 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 DataProcessInstanceRunEvent() {} - - /** - * All-args constructor. - */ - public DataProcessInstanceRunEvent(java.lang.Long timestampMillis, com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity, com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec, java.lang.String messageId, java.lang.String externalUrl, com.linkedin.pegasus2avro.dataprocess.DataProcessRunStatus status, java.lang.Integer attempt, com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult result) { - this.timestampMillis = timestampMillis; - this.eventGranularity = eventGranularity; - this.partitionSpec = partitionSpec; - this.messageId = messageId; - this.externalUrl = externalUrl; - this.status = status; - this.attempt = attempt; - this.result = result; - } - - 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 externalUrl; - case 5: return status; - case 6: return attempt; - case 7: return result; - 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: externalUrl = (java.lang.String)value$; break; - case 5: status = (com.linkedin.pegasus2avro.dataprocess.DataProcessRunStatus)value$; break; - case 6: attempt = (java.lang.Integer)value$; break; - case 7: result = (com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult)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 '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 'status' field. - */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessRunStatus getStatus() { - return status; - } - - /** - * Sets the value of the 'status' field. - * @param value the value to set. - */ - public void setStatus(com.linkedin.pegasus2avro.dataprocess.DataProcessRunStatus value) { - this.status = value; - } - - /** - * Gets the value of the 'attempt' field. - * Return the try number that this Instance Run is in */ - public java.lang.Integer getAttempt() { - return attempt; - } - - /** - * Sets the value of the 'attempt' field. - * Return the try number that this Instance Run is in * @param value the value to set. - */ - public void setAttempt(java.lang.Integer value) { - this.attempt = value; - } - - /** - * Gets the value of the 'result' field. - * The final result of the Data Processing run. */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult getResult() { - return result; - } - - /** - * Sets the value of the 'result' field. - * The final result of the Data Processing run. * @param value the value to set. - */ - public void setResult(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult value) { - this.result = value; - } - - /** Creates a new DataProcessInstanceRunEvent RecordBuilder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder(); - } - - /** Creates a new DataProcessInstanceRunEvent RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder(other); - } - - /** Creates a new DataProcessInstanceRunEvent RecordBuilder by copying an existing DataProcessInstanceRunEvent instance */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder(other); - } - - /** - * RecordBuilder for DataProcessInstanceRunEvent 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 externalUrl; - private com.linkedin.pegasus2avro.dataprocess.DataProcessRunStatus status; - private java.lang.Integer attempt; - private com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult result; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.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.externalUrl)) { - this.externalUrl = data().deepCopy(fields()[4].schema(), other.externalUrl); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.status)) { - this.status = data().deepCopy(fields()[5].schema(), other.status); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.attempt)) { - this.attempt = data().deepCopy(fields()[6].schema(), other.attempt); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.result)) { - this.result = data().deepCopy(fields()[7].schema(), other.result); - fieldSetFlags()[7] = true; - } - } - - /** Creates a Builder by copying an existing DataProcessInstanceRunEvent instance */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent other) { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.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.externalUrl)) { - this.externalUrl = data().deepCopy(fields()[4].schema(), other.externalUrl); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.status)) { - this.status = data().deepCopy(fields()[5].schema(), other.status); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.attempt)) { - this.attempt = data().deepCopy(fields()[6].schema(), other.attempt); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.result)) { - this.result = data().deepCopy(fields()[7].schema(), other.result); - fieldSetFlags()[7] = 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.dataprocess.DataProcessInstanceRunEvent.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.dataprocess.DataProcessInstanceRunEvent.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.dataprocess.DataProcessInstanceRunEvent.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.dataprocess.DataProcessInstanceRunEvent.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.dataprocess.DataProcessInstanceRunEvent.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.dataprocess.DataProcessInstanceRunEvent.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.dataprocess.DataProcessInstanceRunEvent.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.dataprocess.DataProcessInstanceRunEvent.Builder clearMessageId() { - messageId = null; - fieldSetFlags()[3] = 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.dataprocess.DataProcessInstanceRunEvent.Builder setExternalUrl(java.lang.String value) { - validate(fields()[4], value); - this.externalUrl = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'externalUrl' field has been set */ - public boolean hasExternalUrl() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'externalUrl' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder clearExternalUrl() { - externalUrl = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'status' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessRunStatus getStatus() { - return status; - } - - /** Sets the value of the 'status' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder setStatus(com.linkedin.pegasus2avro.dataprocess.DataProcessRunStatus value) { - validate(fields()[5], value); - this.status = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'status' field has been set */ - public boolean hasStatus() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'status' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder clearStatus() { - status = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'attempt' field */ - public java.lang.Integer getAttempt() { - return attempt; - } - - /** Sets the value of the 'attempt' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder setAttempt(java.lang.Integer value) { - validate(fields()[6], value); - this.attempt = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'attempt' field has been set */ - public boolean hasAttempt() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'attempt' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder clearAttempt() { - attempt = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'result' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult getResult() { - return result; - } - - /** Sets the value of the 'result' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder setResult(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult value) { - validate(fields()[7], value); - this.result = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'result' field has been set */ - public boolean hasResult() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'result' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunEvent.Builder clearResult() { - result = null; - fieldSetFlags()[7] = false; - return this; - } - - @Override - public DataProcessInstanceRunEvent build() { - try { - DataProcessInstanceRunEvent record = new DataProcessInstanceRunEvent(); - 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.externalUrl = fieldSetFlags()[4] ? this.externalUrl : (java.lang.String) defaultValue(fields()[4]); - record.status = fieldSetFlags()[5] ? this.status : (com.linkedin.pegasus2avro.dataprocess.DataProcessRunStatus) defaultValue(fields()[5]); - record.attempt = fieldSetFlags()[6] ? this.attempt : (java.lang.Integer) defaultValue(fields()[6]); - record.result = fieldSetFlags()[7] ? this.result : (com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult) 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/pegasus2avro/dataprocess/DataProcessInstanceRunResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInstanceRunResult.java deleted file mode 100644 index d8d0f5c40a89f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessInstanceRunResult.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataprocess; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class DataProcessInstanceRunResult 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\":\"DataProcessInstanceRunResult\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"RunResultType\",\"symbols\":[\"SUCCESS\",\"FAILURE\",\"SKIPPED\",\"UP_FOR_RETRY\"],\"symbolDocs\":{\"FAILURE\":\" The Run Failed\",\"SKIPPED\":\" The Run Skipped\",\"SUCCESS\":\" The Run Succeeded\",\"UP_FOR_RETRY\":\" The Run Failed and will Retry\"}},\"doc\":\" The final result, e.g. SUCCESS, FAILURE, SKIPPED, or UP_FOR_RETRY.\"},{\"name\":\"nativeResultType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"It identifies the system where the native result comes from like Airflow, Azkaban, etc..\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The final result, e.g. SUCCESS, FAILURE, SKIPPED, or UP_FOR_RETRY. */ - @Deprecated public com.linkedin.pegasus2avro.dataprocess.RunResultType type; - /** It identifies the system where the native result comes from like Airflow, Azkaban, etc.. */ - @Deprecated public java.lang.String nativeResultType; - - /** - * 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 DataProcessInstanceRunResult() {} - - /** - * All-args constructor. - */ - public DataProcessInstanceRunResult(com.linkedin.pegasus2avro.dataprocess.RunResultType type, java.lang.String nativeResultType) { - this.type = type; - this.nativeResultType = nativeResultType; - } - - 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 nativeResultType; - 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.dataprocess.RunResultType)value$; break; - case 1: nativeResultType = (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. SUCCESS, FAILURE, SKIPPED, or UP_FOR_RETRY. */ - public com.linkedin.pegasus2avro.dataprocess.RunResultType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The final result, e.g. SUCCESS, FAILURE, SKIPPED, or UP_FOR_RETRY. * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.dataprocess.RunResultType value) { - this.type = value; - } - - /** - * Gets the value of the 'nativeResultType' field. - * It identifies the system where the native result comes from like Airflow, Azkaban, etc.. */ - public java.lang.String getNativeResultType() { - return nativeResultType; - } - - /** - * Sets the value of the 'nativeResultType' field. - * It identifies the system where the native result comes from like Airflow, Azkaban, etc.. * @param value the value to set. - */ - public void setNativeResultType(java.lang.String value) { - this.nativeResultType = value; - } - - /** Creates a new DataProcessInstanceRunResult RecordBuilder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.Builder(); - } - - /** Creates a new DataProcessInstanceRunResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.Builder other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.Builder(other); - } - - /** Creates a new DataProcessInstanceRunResult RecordBuilder by copying an existing DataProcessInstanceRunResult instance */ - public static com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.Builder newBuilder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult other) { - return new com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.Builder(other); - } - - /** - * RecordBuilder for DataProcessInstanceRunResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.dataprocess.RunResultType type; - private java.lang.String nativeResultType; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.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.nativeResultType)) { - this.nativeResultType = data().deepCopy(fields()[1].schema(), other.nativeResultType); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataProcessInstanceRunResult instance */ - private Builder(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult other) { - super(com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.nativeResultType)) { - this.nativeResultType = data().deepCopy(fields()[1].schema(), other.nativeResultType); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.dataprocess.RunResultType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.Builder setType(com.linkedin.pegasus2avro.dataprocess.RunResultType 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.dataprocess.DataProcessInstanceRunResult.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'nativeResultType' field */ - public java.lang.String getNativeResultType() { - return nativeResultType; - } - - /** Sets the value of the 'nativeResultType' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.Builder setNativeResultType(java.lang.String value) { - validate(fields()[1], value); - this.nativeResultType = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'nativeResultType' field has been set */ - public boolean hasNativeResultType() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'nativeResultType' field */ - public com.linkedin.pegasus2avro.dataprocess.DataProcessInstanceRunResult.Builder clearNativeResultType() { - nativeResultType = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataProcessInstanceRunResult build() { - try { - DataProcessInstanceRunResult record = new DataProcessInstanceRunResult(); - record.type = fieldSetFlags()[0] ? this.type : (com.linkedin.pegasus2avro.dataprocess.RunResultType) defaultValue(fields()[0]); - record.nativeResultType = fieldSetFlags()[1] ? this.nativeResultType : (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/dataprocess/DataProcessRunStatus.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessRunStatus.java deleted file mode 100644 index ac688fc427800..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessRunStatus.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataprocess; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum DataProcessRunStatus { - STARTED, COMPLETE ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"DataProcessRunStatus\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"symbols\":[\"STARTED\",\"COMPLETE\"],\"symbolDocs\":{\"STARTED\":\"The status where the Data processing run is in.\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessType.java deleted file mode 100644 index 180ce2bcdf4cb..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/DataProcessType.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataprocess; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum DataProcessType { - BATCH_SCHEDULED, BATCH_AD_HOC, STREAMING ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"DataProcessType\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"symbols\":[\"BATCH_SCHEDULED\",\"BATCH_AD_HOC\",\"STREAMING\"]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/RunResultType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/RunResultType.java deleted file mode 100644 index 9067eaeefa278..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataprocess/RunResultType.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataprocess; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum RunResultType { - SUCCESS, FAILURE, SKIPPED, UP_FOR_RETRY ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"RunResultType\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"symbols\":[\"SUCCESS\",\"FAILURE\",\"SKIPPED\",\"UP_FOR_RETRY\"],\"symbolDocs\":{\"FAILURE\":\" The Run Failed\",\"SKIPPED\":\" The Run Skipped\",\"SUCCESS\":\" The Run Succeeded\",\"UP_FOR_RETRY\":\" The Run Failed and will Retry\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetDeprecation.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetDeprecation.java deleted file mode 100644 index 49f94230f7ace..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetDeprecation.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Dataset deprecation status -Deprecated! This aspect is deprecated in favor of the more-general-purpose 'Deprecation' aspect. */ -@org.apache.avro.specific.AvroGenerated -public class DatasetDeprecation 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\":\"DatasetDeprecation\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Dataset deprecation status\\nDeprecated! This aspect is deprecated in favor of the more-general-purpose 'Deprecation' aspect.\",\"fields\":[{\"name\":\"deprecated\",\"type\":\"boolean\",\"doc\":\"Whether the dataset is deprecated by owner.\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"decommissionTime\",\"type\":[\"null\",\"long\"],\"doc\":\"The time user plan to decommission this dataset.\",\"default\":null},{\"name\":\"note\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Additional information about the dataset deprecation plan, such as the wiki, doc, RB.\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The corpuser URN which will be credited for modifying this deprecation content.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}],\"Aspect\":{\"name\":\"datasetDeprecation\"},\"Deprecated\":true}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Whether the dataset is deprecated by owner. */ - @Deprecated public boolean deprecated; - /** The time user plan to decommission this dataset. */ - @Deprecated public java.lang.Long decommissionTime; - /** Additional information about the dataset deprecation plan, such as the wiki, doc, RB. */ - @Deprecated public java.lang.String note; - /** The corpuser 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 DatasetDeprecation() {} - - /** - * All-args constructor. - */ - public DatasetDeprecation(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 dataset is deprecated by owner. */ - public java.lang.Boolean getDeprecated() { - return deprecated; - } - - /** - * Sets the value of the 'deprecated' field. - * Whether the dataset is deprecated by owner. * @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 dataset. */ - public java.lang.Long getDecommissionTime() { - return decommissionTime; - } - - /** - * Sets the value of the 'decommissionTime' field. - * The time user plan to decommission this dataset. * @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 dataset 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 dataset 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 corpuser 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 corpuser 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 DatasetDeprecation RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.DatasetDeprecation.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.DatasetDeprecation.Builder(); - } - - /** Creates a new DatasetDeprecation RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.DatasetDeprecation.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetDeprecation.Builder other) { - return new com.linkedin.pegasus2avro.dataset.DatasetDeprecation.Builder(other); - } - - /** Creates a new DatasetDeprecation RecordBuilder by copying an existing DatasetDeprecation instance */ - public static com.linkedin.pegasus2avro.dataset.DatasetDeprecation.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetDeprecation other) { - return new com.linkedin.pegasus2avro.dataset.DatasetDeprecation.Builder(other); - } - - /** - * RecordBuilder for DatasetDeprecation 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.dataset.DatasetDeprecation.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetDeprecation.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 DatasetDeprecation instance */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetDeprecation other) { - super(com.linkedin.pegasus2avro.dataset.DatasetDeprecation.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.dataset.DatasetDeprecation.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.dataset.DatasetDeprecation.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.dataset.DatasetDeprecation.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.dataset.DatasetDeprecation.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.dataset.DatasetDeprecation.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.dataset.DatasetDeprecation.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.dataset.DatasetDeprecation.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.dataset.DatasetDeprecation.Builder clearActor() { - actor = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public DatasetDeprecation build() { - try { - DatasetDeprecation record = new DatasetDeprecation(); - 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/dataset/DatasetFieldMapping.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetFieldMapping.java deleted file mode 100644 index 2cda802e25e99..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetFieldMapping.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Representation of mapping between fields in source dataset to the field in destination dataset */ -@org.apache.avro.specific.AvroGenerated -public class DatasetFieldMapping 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\":\"DatasetFieldMapping\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Representation of mapping between fields in source dataset to the field in destination dataset\",\"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\":\"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\"},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"string\",\"avro.java.string\":\"String\"}]},\"doc\":\"Source fields from which the fine grained lineage is derived\"},{\"name\":\"destinationField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Destination field which is derived from source fields\",\"deprecated\":\"use SchemaFieldPath and represent as generic Urn instead\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetFieldUrn\"}}],\"deprecated\":\"use FineGrainedLineage instead\"}"); - 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; - /** Source fields from which the fine grained lineage is derived */ - @Deprecated public java.util.List sourceFields; - /** Destination field which is derived from source fields */ - @Deprecated public java.lang.String destinationField; - - /** - * 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 DatasetFieldMapping() {} - - /** - * All-args constructor. - */ - public DatasetFieldMapping(com.linkedin.pegasus2avro.common.AuditStamp created, java.lang.Object transformation, java.util.List sourceFields, java.lang.String destinationField) { - this.created = created; - this.transformation = transformation; - this.sourceFields = sourceFields; - this.destinationField = destinationField; - } - - 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; - case 2: return sourceFields; - case 3: return destinationField; - 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; - case 2: sourceFields = (java.util.List)value$; break; - case 3: destinationField = (java.lang.String)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; - } - - /** - * Gets the value of the 'sourceFields' field. - * Source fields from which the fine grained lineage is derived */ - public java.util.List getSourceFields() { - return sourceFields; - } - - /** - * Sets the value of the 'sourceFields' field. - * Source fields from which the fine grained lineage is derived * @param value the value to set. - */ - public void setSourceFields(java.util.List value) { - this.sourceFields = value; - } - - /** - * Gets the value of the 'destinationField' field. - * Destination field which is derived from source fields */ - public java.lang.String getDestinationField() { - return destinationField; - } - - /** - * Sets the value of the 'destinationField' field. - * Destination field which is derived from source fields * @param value the value to set. - */ - public void setDestinationField(java.lang.String value) { - this.destinationField = value; - } - - /** Creates a new DatasetFieldMapping RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.Builder(); - } - - /** Creates a new DatasetFieldMapping RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.Builder other) { - return new com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.Builder(other); - } - - /** Creates a new DatasetFieldMapping RecordBuilder by copying an existing DatasetFieldMapping instance */ - public static com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetFieldMapping other) { - return new com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.Builder(other); - } - - /** - * RecordBuilder for DatasetFieldMapping 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; - private java.util.List sourceFields; - private java.lang.String destinationField; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.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; - } - if (isValidValue(fields()[2], other.sourceFields)) { - this.sourceFields = data().deepCopy(fields()[2].schema(), other.sourceFields); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.destinationField)) { - this.destinationField = data().deepCopy(fields()[3].schema(), other.destinationField); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing DatasetFieldMapping instance */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetFieldMapping other) { - super(com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.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; - } - if (isValidValue(fields()[2], other.sourceFields)) { - this.sourceFields = data().deepCopy(fields()[2].schema(), other.sourceFields); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.destinationField)) { - this.destinationField = data().deepCopy(fields()[3].schema(), other.destinationField); - 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.dataset.DatasetFieldMapping.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.dataset.DatasetFieldMapping.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.dataset.DatasetFieldMapping.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.dataset.DatasetFieldMapping.Builder clearTransformation() { - transformation = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'sourceFields' field */ - public java.util.List getSourceFields() { - return sourceFields; - } - - /** Sets the value of the 'sourceFields' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.Builder setSourceFields(java.util.List value) { - validate(fields()[2], value); - this.sourceFields = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'sourceFields' field has been set */ - public boolean hasSourceFields() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'sourceFields' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.Builder clearSourceFields() { - sourceFields = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'destinationField' field */ - public java.lang.String getDestinationField() { - return destinationField; - } - - /** Sets the value of the 'destinationField' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.Builder setDestinationField(java.lang.String value) { - validate(fields()[3], value); - this.destinationField = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'destinationField' field has been set */ - public boolean hasDestinationField() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'destinationField' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldMapping.Builder clearDestinationField() { - destinationField = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public DatasetFieldMapping build() { - try { - DatasetFieldMapping record = new DatasetFieldMapping(); - 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]); - record.sourceFields = fieldSetFlags()[2] ? this.sourceFields : (java.util.List) defaultValue(fields()[2]); - record.destinationField = fieldSetFlags()[3] ? this.destinationField : (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/dataset/DatasetFieldProfile.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetFieldProfile.java deleted file mode 100644 index 5fd5e6f8ad6fd..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetFieldProfile.java +++ /dev/null @@ -1,845 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Stats corresponding to fields in a dataset */ -@org.apache.avro.specific.AvroGenerated -public class DatasetFieldProfile 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\":\"DatasetFieldProfile\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Stats corresponding to fields in a dataset\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"uniqueCount\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"uniqueProportion\",\"type\":[\"null\",\"float\"],\"default\":null},{\"name\":\"nullCount\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"nullProportion\",\"type\":[\"null\",\"float\"],\"default\":null},{\"name\":\"min\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"max\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"mean\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"median\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"stdev\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"quantiles\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Quantile\",\"fields\":[{\"name\":\"quantile\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}}],\"default\":null},{\"name\":\"distinctValueFrequencies\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ValueFrequency\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"frequency\",\"type\":\"long\"}]}}],\"default\":null},{\"name\":\"histogram\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Histogram\",\"fields\":[{\"name\":\"boundaries\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},{\"name\":\"heights\",\"type\":{\"type\":\"array\",\"items\":\"float\"}}]}],\"default\":null},{\"name\":\"sampleValues\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.String fieldPath; - @Deprecated public java.lang.Long uniqueCount; - @Deprecated public java.lang.Float uniqueProportion; - @Deprecated public java.lang.Long nullCount; - @Deprecated public java.lang.Float nullProportion; - @Deprecated public java.lang.String min; - @Deprecated public java.lang.String max; - @Deprecated public java.lang.String mean; - @Deprecated public java.lang.String median; - @Deprecated public java.lang.String stdev; - @Deprecated public java.util.List quantiles; - @Deprecated public java.util.List distinctValueFrequencies; - @Deprecated public com.linkedin.pegasus2avro.dataset.Histogram histogram; - @Deprecated public java.util.List sampleValues; - - /** - * 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 DatasetFieldProfile() {} - - /** - * All-args constructor. - */ - public DatasetFieldProfile(java.lang.String fieldPath, java.lang.Long uniqueCount, java.lang.Float uniqueProportion, java.lang.Long nullCount, java.lang.Float nullProportion, java.lang.String min, java.lang.String max, java.lang.String mean, java.lang.String median, java.lang.String stdev, java.util.List quantiles, java.util.List distinctValueFrequencies, com.linkedin.pegasus2avro.dataset.Histogram histogram, java.util.List sampleValues) { - this.fieldPath = fieldPath; - this.uniqueCount = uniqueCount; - this.uniqueProportion = uniqueProportion; - this.nullCount = nullCount; - this.nullProportion = nullProportion; - this.min = min; - this.max = max; - this.mean = mean; - this.median = median; - this.stdev = stdev; - this.quantiles = quantiles; - this.distinctValueFrequencies = distinctValueFrequencies; - this.histogram = histogram; - this.sampleValues = sampleValues; - } - - 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 fieldPath; - case 1: return uniqueCount; - case 2: return uniqueProportion; - case 3: return nullCount; - case 4: return nullProportion; - case 5: return min; - case 6: return max; - case 7: return mean; - case 8: return median; - case 9: return stdev; - case 10: return quantiles; - case 11: return distinctValueFrequencies; - case 12: return histogram; - case 13: return sampleValues; - 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: fieldPath = (java.lang.String)value$; break; - case 1: uniqueCount = (java.lang.Long)value$; break; - case 2: uniqueProportion = (java.lang.Float)value$; break; - case 3: nullCount = (java.lang.Long)value$; break; - case 4: nullProportion = (java.lang.Float)value$; break; - case 5: min = (java.lang.String)value$; break; - case 6: max = (java.lang.String)value$; break; - case 7: mean = (java.lang.String)value$; break; - case 8: median = (java.lang.String)value$; break; - case 9: stdev = (java.lang.String)value$; break; - case 10: quantiles = (java.util.List)value$; break; - case 11: distinctValueFrequencies = (java.util.List)value$; break; - case 12: histogram = (com.linkedin.pegasus2avro.dataset.Histogram)value$; break; - case 13: sampleValues = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'fieldPath' field. - */ - public java.lang.String getFieldPath() { - return fieldPath; - } - - /** - * Sets the value of the 'fieldPath' field. - * @param value the value to set. - */ - public void setFieldPath(java.lang.String value) { - this.fieldPath = value; - } - - /** - * Gets the value of the 'uniqueCount' field. - */ - public java.lang.Long getUniqueCount() { - return uniqueCount; - } - - /** - * Sets the value of the 'uniqueCount' field. - * @param value the value to set. - */ - public void setUniqueCount(java.lang.Long value) { - this.uniqueCount = value; - } - - /** - * Gets the value of the 'uniqueProportion' field. - */ - public java.lang.Float getUniqueProportion() { - return uniqueProportion; - } - - /** - * Sets the value of the 'uniqueProportion' field. - * @param value the value to set. - */ - public void setUniqueProportion(java.lang.Float value) { - this.uniqueProportion = value; - } - - /** - * Gets the value of the 'nullCount' field. - */ - public java.lang.Long getNullCount() { - return nullCount; - } - - /** - * Sets the value of the 'nullCount' field. - * @param value the value to set. - */ - public void setNullCount(java.lang.Long value) { - this.nullCount = value; - } - - /** - * Gets the value of the 'nullProportion' field. - */ - public java.lang.Float getNullProportion() { - return nullProportion; - } - - /** - * Sets the value of the 'nullProportion' field. - * @param value the value to set. - */ - public void setNullProportion(java.lang.Float value) { - this.nullProportion = value; - } - - /** - * Gets the value of the 'min' field. - */ - public java.lang.String getMin() { - return min; - } - - /** - * Sets the value of the 'min' field. - * @param value the value to set. - */ - public void setMin(java.lang.String value) { - this.min = value; - } - - /** - * Gets the value of the 'max' field. - */ - public java.lang.String getMax() { - return max; - } - - /** - * Sets the value of the 'max' field. - * @param value the value to set. - */ - public void setMax(java.lang.String value) { - this.max = value; - } - - /** - * Gets the value of the 'mean' field. - */ - public java.lang.String getMean() { - return mean; - } - - /** - * Sets the value of the 'mean' field. - * @param value the value to set. - */ - public void setMean(java.lang.String value) { - this.mean = value; - } - - /** - * Gets the value of the 'median' field. - */ - public java.lang.String getMedian() { - return median; - } - - /** - * Sets the value of the 'median' field. - * @param value the value to set. - */ - public void setMedian(java.lang.String value) { - this.median = value; - } - - /** - * Gets the value of the 'stdev' field. - */ - public java.lang.String getStdev() { - return stdev; - } - - /** - * Sets the value of the 'stdev' field. - * @param value the value to set. - */ - public void setStdev(java.lang.String value) { - this.stdev = value; - } - - /** - * Gets the value of the 'quantiles' field. - */ - public java.util.List getQuantiles() { - return quantiles; - } - - /** - * Sets the value of the 'quantiles' field. - * @param value the value to set. - */ - public void setQuantiles(java.util.List value) { - this.quantiles = value; - } - - /** - * Gets the value of the 'distinctValueFrequencies' field. - */ - public java.util.List getDistinctValueFrequencies() { - return distinctValueFrequencies; - } - - /** - * Sets the value of the 'distinctValueFrequencies' field. - * @param value the value to set. - */ - public void setDistinctValueFrequencies(java.util.List value) { - this.distinctValueFrequencies = value; - } - - /** - * Gets the value of the 'histogram' field. - */ - public com.linkedin.pegasus2avro.dataset.Histogram getHistogram() { - return histogram; - } - - /** - * Sets the value of the 'histogram' field. - * @param value the value to set. - */ - public void setHistogram(com.linkedin.pegasus2avro.dataset.Histogram value) { - this.histogram = value; - } - - /** - * Gets the value of the 'sampleValues' field. - */ - public java.util.List getSampleValues() { - return sampleValues; - } - - /** - * Sets the value of the 'sampleValues' field. - * @param value the value to set. - */ - public void setSampleValues(java.util.List value) { - this.sampleValues = value; - } - - /** Creates a new DatasetFieldProfile RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder(); - } - - /** Creates a new DatasetFieldProfile RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder other) { - return new com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder(other); - } - - /** Creates a new DatasetFieldProfile RecordBuilder by copying an existing DatasetFieldProfile instance */ - public static com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetFieldProfile other) { - return new com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder(other); - } - - /** - * RecordBuilder for DatasetFieldProfile instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String fieldPath; - private java.lang.Long uniqueCount; - private java.lang.Float uniqueProportion; - private java.lang.Long nullCount; - private java.lang.Float nullProportion; - private java.lang.String min; - private java.lang.String max; - private java.lang.String mean; - private java.lang.String median; - private java.lang.String stdev; - private java.util.List quantiles; - private java.util.List distinctValueFrequencies; - private com.linkedin.pegasus2avro.dataset.Histogram histogram; - private java.util.List sampleValues; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder other) { - super(other); - if (isValidValue(fields()[0], other.fieldPath)) { - this.fieldPath = data().deepCopy(fields()[0].schema(), other.fieldPath); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.uniqueCount)) { - this.uniqueCount = data().deepCopy(fields()[1].schema(), other.uniqueCount); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.uniqueProportion)) { - this.uniqueProportion = data().deepCopy(fields()[2].schema(), other.uniqueProportion); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.nullCount)) { - this.nullCount = data().deepCopy(fields()[3].schema(), other.nullCount); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.nullProportion)) { - this.nullProportion = data().deepCopy(fields()[4].schema(), other.nullProportion); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.min)) { - this.min = data().deepCopy(fields()[5].schema(), other.min); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.max)) { - this.max = data().deepCopy(fields()[6].schema(), other.max); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.mean)) { - this.mean = data().deepCopy(fields()[7].schema(), other.mean); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.median)) { - this.median = data().deepCopy(fields()[8].schema(), other.median); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.stdev)) { - this.stdev = data().deepCopy(fields()[9].schema(), other.stdev); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.quantiles)) { - this.quantiles = data().deepCopy(fields()[10].schema(), other.quantiles); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.distinctValueFrequencies)) { - this.distinctValueFrequencies = data().deepCopy(fields()[11].schema(), other.distinctValueFrequencies); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.histogram)) { - this.histogram = data().deepCopy(fields()[12].schema(), other.histogram); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.sampleValues)) { - this.sampleValues = data().deepCopy(fields()[13].schema(), other.sampleValues); - fieldSetFlags()[13] = true; - } - } - - /** Creates a Builder by copying an existing DatasetFieldProfile instance */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetFieldProfile other) { - super(com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.SCHEMA$); - if (isValidValue(fields()[0], other.fieldPath)) { - this.fieldPath = data().deepCopy(fields()[0].schema(), other.fieldPath); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.uniqueCount)) { - this.uniqueCount = data().deepCopy(fields()[1].schema(), other.uniqueCount); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.uniqueProportion)) { - this.uniqueProportion = data().deepCopy(fields()[2].schema(), other.uniqueProportion); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.nullCount)) { - this.nullCount = data().deepCopy(fields()[3].schema(), other.nullCount); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.nullProportion)) { - this.nullProportion = data().deepCopy(fields()[4].schema(), other.nullProportion); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.min)) { - this.min = data().deepCopy(fields()[5].schema(), other.min); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.max)) { - this.max = data().deepCopy(fields()[6].schema(), other.max); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.mean)) { - this.mean = data().deepCopy(fields()[7].schema(), other.mean); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.median)) { - this.median = data().deepCopy(fields()[8].schema(), other.median); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.stdev)) { - this.stdev = data().deepCopy(fields()[9].schema(), other.stdev); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.quantiles)) { - this.quantiles = data().deepCopy(fields()[10].schema(), other.quantiles); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.distinctValueFrequencies)) { - this.distinctValueFrequencies = data().deepCopy(fields()[11].schema(), other.distinctValueFrequencies); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.histogram)) { - this.histogram = data().deepCopy(fields()[12].schema(), other.histogram); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.sampleValues)) { - this.sampleValues = data().deepCopy(fields()[13].schema(), other.sampleValues); - fieldSetFlags()[13] = true; - } - } - - /** Gets the value of the 'fieldPath' field */ - public java.lang.String getFieldPath() { - return fieldPath; - } - - /** Sets the value of the 'fieldPath' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setFieldPath(java.lang.String value) { - validate(fields()[0], value); - this.fieldPath = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'fieldPath' field has been set */ - public boolean hasFieldPath() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'fieldPath' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearFieldPath() { - fieldPath = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'uniqueCount' field */ - public java.lang.Long getUniqueCount() { - return uniqueCount; - } - - /** Sets the value of the 'uniqueCount' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setUniqueCount(java.lang.Long value) { - validate(fields()[1], value); - this.uniqueCount = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'uniqueCount' field has been set */ - public boolean hasUniqueCount() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'uniqueCount' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearUniqueCount() { - uniqueCount = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'uniqueProportion' field */ - public java.lang.Float getUniqueProportion() { - return uniqueProportion; - } - - /** Sets the value of the 'uniqueProportion' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setUniqueProportion(java.lang.Float value) { - validate(fields()[2], value); - this.uniqueProportion = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'uniqueProportion' field has been set */ - public boolean hasUniqueProportion() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'uniqueProportion' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearUniqueProportion() { - uniqueProportion = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'nullCount' field */ - public java.lang.Long getNullCount() { - return nullCount; - } - - /** Sets the value of the 'nullCount' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setNullCount(java.lang.Long value) { - validate(fields()[3], value); - this.nullCount = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'nullCount' field has been set */ - public boolean hasNullCount() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'nullCount' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearNullCount() { - nullCount = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'nullProportion' field */ - public java.lang.Float getNullProportion() { - return nullProportion; - } - - /** Sets the value of the 'nullProportion' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setNullProportion(java.lang.Float value) { - validate(fields()[4], value); - this.nullProportion = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'nullProportion' field has been set */ - public boolean hasNullProportion() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'nullProportion' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearNullProportion() { - nullProportion = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'min' field */ - public java.lang.String getMin() { - return min; - } - - /** Sets the value of the 'min' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setMin(java.lang.String value) { - validate(fields()[5], value); - this.min = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'min' field has been set */ - public boolean hasMin() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'min' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearMin() { - min = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'max' field */ - public java.lang.String getMax() { - return max; - } - - /** Sets the value of the 'max' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setMax(java.lang.String value) { - validate(fields()[6], value); - this.max = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'max' field has been set */ - public boolean hasMax() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'max' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearMax() { - max = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'mean' field */ - public java.lang.String getMean() { - return mean; - } - - /** Sets the value of the 'mean' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setMean(java.lang.String value) { - validate(fields()[7], value); - this.mean = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'mean' field has been set */ - public boolean hasMean() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'mean' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearMean() { - mean = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'median' field */ - public java.lang.String getMedian() { - return median; - } - - /** Sets the value of the 'median' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setMedian(java.lang.String value) { - validate(fields()[8], value); - this.median = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'median' field has been set */ - public boolean hasMedian() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'median' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearMedian() { - median = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'stdev' field */ - public java.lang.String getStdev() { - return stdev; - } - - /** Sets the value of the 'stdev' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setStdev(java.lang.String value) { - validate(fields()[9], value); - this.stdev = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'stdev' field has been set */ - public boolean hasStdev() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'stdev' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearStdev() { - stdev = null; - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'quantiles' field */ - public java.util.List getQuantiles() { - return quantiles; - } - - /** Sets the value of the 'quantiles' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setQuantiles(java.util.List value) { - validate(fields()[10], value); - this.quantiles = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'quantiles' field has been set */ - public boolean hasQuantiles() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'quantiles' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearQuantiles() { - quantiles = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'distinctValueFrequencies' field */ - public java.util.List getDistinctValueFrequencies() { - return distinctValueFrequencies; - } - - /** Sets the value of the 'distinctValueFrequencies' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setDistinctValueFrequencies(java.util.List value) { - validate(fields()[11], value); - this.distinctValueFrequencies = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'distinctValueFrequencies' field has been set */ - public boolean hasDistinctValueFrequencies() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'distinctValueFrequencies' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearDistinctValueFrequencies() { - distinctValueFrequencies = null; - fieldSetFlags()[11] = false; - return this; - } - - /** Gets the value of the 'histogram' field */ - public com.linkedin.pegasus2avro.dataset.Histogram getHistogram() { - return histogram; - } - - /** Sets the value of the 'histogram' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setHistogram(com.linkedin.pegasus2avro.dataset.Histogram value) { - validate(fields()[12], value); - this.histogram = value; - fieldSetFlags()[12] = true; - return this; - } - - /** Checks whether the 'histogram' field has been set */ - public boolean hasHistogram() { - return fieldSetFlags()[12]; - } - - /** Clears the value of the 'histogram' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearHistogram() { - histogram = null; - fieldSetFlags()[12] = false; - return this; - } - - /** Gets the value of the 'sampleValues' field */ - public java.util.List getSampleValues() { - return sampleValues; - } - - /** Sets the value of the 'sampleValues' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder setSampleValues(java.util.List value) { - validate(fields()[13], value); - this.sampleValues = value; - fieldSetFlags()[13] = true; - return this; - } - - /** Checks whether the 'sampleValues' field has been set */ - public boolean hasSampleValues() { - return fieldSetFlags()[13]; - } - - /** Clears the value of the 'sampleValues' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldProfile.Builder clearSampleValues() { - sampleValues = null; - fieldSetFlags()[13] = false; - return this; - } - - @Override - public DatasetFieldProfile build() { - try { - DatasetFieldProfile record = new DatasetFieldProfile(); - record.fieldPath = fieldSetFlags()[0] ? this.fieldPath : (java.lang.String) defaultValue(fields()[0]); - record.uniqueCount = fieldSetFlags()[1] ? this.uniqueCount : (java.lang.Long) defaultValue(fields()[1]); - record.uniqueProportion = fieldSetFlags()[2] ? this.uniqueProportion : (java.lang.Float) defaultValue(fields()[2]); - record.nullCount = fieldSetFlags()[3] ? this.nullCount : (java.lang.Long) defaultValue(fields()[3]); - record.nullProportion = fieldSetFlags()[4] ? this.nullProportion : (java.lang.Float) defaultValue(fields()[4]); - record.min = fieldSetFlags()[5] ? this.min : (java.lang.String) defaultValue(fields()[5]); - record.max = fieldSetFlags()[6] ? this.max : (java.lang.String) defaultValue(fields()[6]); - record.mean = fieldSetFlags()[7] ? this.mean : (java.lang.String) defaultValue(fields()[7]); - record.median = fieldSetFlags()[8] ? this.median : (java.lang.String) defaultValue(fields()[8]); - record.stdev = fieldSetFlags()[9] ? this.stdev : (java.lang.String) defaultValue(fields()[9]); - record.quantiles = fieldSetFlags()[10] ? this.quantiles : (java.util.List) defaultValue(fields()[10]); - record.distinctValueFrequencies = fieldSetFlags()[11] ? this.distinctValueFrequencies : (java.util.List) defaultValue(fields()[11]); - record.histogram = fieldSetFlags()[12] ? this.histogram : (com.linkedin.pegasus2avro.dataset.Histogram) defaultValue(fields()[12]); - record.sampleValues = fieldSetFlags()[13] ? this.sampleValues : (java.util.List) defaultValue(fields()[13]); - 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/dataset/DatasetFieldUsageCounts.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetFieldUsageCounts.java deleted file mode 100644 index 41318ff25adef..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetFieldUsageCounts.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Records field-level usage counts for a given dataset */ -@org.apache.avro.specific.AvroGenerated -public class DatasetFieldUsageCounts 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\":\"DatasetFieldUsageCounts\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Records field-level usage counts for a given dataset\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field.\"},{\"name\":\"count\",\"type\":\"int\",\"doc\":\"Number of times the field has been used.\",\"TimeseriesField\":{}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the field. */ - @Deprecated public java.lang.String fieldPath; - /** Number of times the field has been used. */ - @Deprecated public int count; - - /** - * 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 DatasetFieldUsageCounts() {} - - /** - * All-args constructor. - */ - public DatasetFieldUsageCounts(java.lang.String fieldPath, java.lang.Integer count) { - this.fieldPath = fieldPath; - this.count = count; - } - - 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 fieldPath; - case 1: return count; - 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: fieldPath = (java.lang.String)value$; break; - case 1: count = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'fieldPath' field. - * The name of the field. */ - public java.lang.String getFieldPath() { - return fieldPath; - } - - /** - * Sets the value of the 'fieldPath' field. - * The name of the field. * @param value the value to set. - */ - public void setFieldPath(java.lang.String value) { - this.fieldPath = value; - } - - /** - * Gets the value of the 'count' field. - * Number of times the field has been used. */ - public java.lang.Integer getCount() { - return count; - } - - /** - * Sets the value of the 'count' field. - * Number of times the field has been used. * @param value the value to set. - */ - public void setCount(java.lang.Integer value) { - this.count = value; - } - - /** Creates a new DatasetFieldUsageCounts RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.Builder(); - } - - /** Creates a new DatasetFieldUsageCounts RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.Builder other) { - return new com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.Builder(other); - } - - /** Creates a new DatasetFieldUsageCounts RecordBuilder by copying an existing DatasetFieldUsageCounts instance */ - public static com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts other) { - return new com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.Builder(other); - } - - /** - * RecordBuilder for DatasetFieldUsageCounts instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String fieldPath; - private int count; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.Builder other) { - super(other); - if (isValidValue(fields()[0], other.fieldPath)) { - this.fieldPath = data().deepCopy(fields()[0].schema(), other.fieldPath); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DatasetFieldUsageCounts instance */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts other) { - super(com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.SCHEMA$); - if (isValidValue(fields()[0], other.fieldPath)) { - this.fieldPath = data().deepCopy(fields()[0].schema(), other.fieldPath); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'fieldPath' field */ - public java.lang.String getFieldPath() { - return fieldPath; - } - - /** Sets the value of the 'fieldPath' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.Builder setFieldPath(java.lang.String value) { - validate(fields()[0], value); - this.fieldPath = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'fieldPath' field has been set */ - public boolean hasFieldPath() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'fieldPath' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.Builder clearFieldPath() { - fieldPath = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'count' field */ - public java.lang.Integer getCount() { - return count; - } - - /** Sets the value of the 'count' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.Builder setCount(int value) { - validate(fields()[1], value); - this.count = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'count' field has been set */ - public boolean hasCount() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'count' field */ - public com.linkedin.pegasus2avro.dataset.DatasetFieldUsageCounts.Builder clearCount() { - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DatasetFieldUsageCounts build() { - try { - DatasetFieldUsageCounts record = new DatasetFieldUsageCounts(); - record.fieldPath = fieldSetFlags()[0] ? this.fieldPath : (java.lang.String) defaultValue(fields()[0]); - record.count = fieldSetFlags()[1] ? this.count : (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/dataset/DatasetLineageType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetLineageType.java deleted file mode 100644 index f48c133ba6bff..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetLineageType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** The various types of supported dataset lineage */ -@org.apache.avro.specific.AvroGenerated -public enum DatasetLineageType { - COPY, TRANSFORMED, VIEW ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetProfile.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetProfile.java deleted file mode 100644 index 3f77a91ac6d5a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetProfile.java +++ /dev/null @@ -1,528 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Stats corresponding to datasets */ -@org.apache.avro.specific.AvroGenerated -public class DatasetProfile 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\":\"DatasetProfile\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Stats corresponding to datasets\",\"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\":\"rowCount\",\"type\":[\"null\",\"long\"],\"doc\":\"The total number of rows\",\"default\":null,\"Searchable\":{\"fieldType\":\"COUNT\"}},{\"name\":\"columnCount\",\"type\":[\"null\",\"long\"],\"doc\":\"The total number of columns (or schema fields)\",\"default\":null,\"Searchable\":{\"fieldType\":\"COUNT\"}},{\"name\":\"fieldProfiles\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"DatasetFieldProfile\",\"doc\":\"Stats corresponding to fields in a dataset\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"uniqueCount\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"uniqueProportion\",\"type\":[\"null\",\"float\"],\"default\":null},{\"name\":\"nullCount\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"nullProportion\",\"type\":[\"null\",\"float\"],\"default\":null},{\"name\":\"min\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"max\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"mean\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"median\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"stdev\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"quantiles\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Quantile\",\"fields\":[{\"name\":\"quantile\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}}],\"default\":null},{\"name\":\"distinctValueFrequencies\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ValueFrequency\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"frequency\",\"type\":\"long\"}]}}],\"default\":null},{\"name\":\"histogram\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Histogram\",\"fields\":[{\"name\":\"boundaries\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},{\"name\":\"heights\",\"type\":{\"type\":\"array\",\"items\":\"float\"}}]}],\"default\":null},{\"name\":\"sampleValues\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"default\":null}]}}],\"doc\":\"Profiles for each column (or schema field)\",\"default\":null},{\"name\":\"sizeInBytes\",\"type\":[\"null\",\"long\"],\"doc\":\"Storage size in bytes\",\"default\":null,\"Searchable\":{\"fieldType\":\"COUNT\"}}],\"Aspect\":{\"name\":\"datasetProfile\",\"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 rows */ - @Deprecated public java.lang.Long rowCount; - /** The total number of columns (or schema fields) */ - @Deprecated public java.lang.Long columnCount; - /** Profiles for each column (or schema field) */ - @Deprecated public java.util.List fieldProfiles; - /** Storage size in bytes */ - @Deprecated public java.lang.Long sizeInBytes; - - /** - * 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 DatasetProfile() {} - - /** - * All-args constructor. - */ - public DatasetProfile(java.lang.Long timestampMillis, com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity, com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec, java.lang.String messageId, java.lang.Long rowCount, java.lang.Long columnCount, java.util.List fieldProfiles, java.lang.Long sizeInBytes) { - this.timestampMillis = timestampMillis; - this.eventGranularity = eventGranularity; - this.partitionSpec = partitionSpec; - this.messageId = messageId; - this.rowCount = rowCount; - this.columnCount = columnCount; - this.fieldProfiles = fieldProfiles; - this.sizeInBytes = sizeInBytes; - } - - 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 rowCount; - case 5: return columnCount; - case 6: return fieldProfiles; - case 7: return sizeInBytes; - 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: rowCount = (java.lang.Long)value$; break; - case 5: columnCount = (java.lang.Long)value$; break; - case 6: fieldProfiles = (java.util.List)value$; break; - case 7: sizeInBytes = (java.lang.Long)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 'rowCount' field. - * The total number of rows */ - public java.lang.Long getRowCount() { - return rowCount; - } - - /** - * Sets the value of the 'rowCount' field. - * The total number of rows * @param value the value to set. - */ - public void setRowCount(java.lang.Long value) { - this.rowCount = value; - } - - /** - * Gets the value of the 'columnCount' field. - * The total number of columns (or schema fields) */ - public java.lang.Long getColumnCount() { - return columnCount; - } - - /** - * Sets the value of the 'columnCount' field. - * The total number of columns (or schema fields) * @param value the value to set. - */ - public void setColumnCount(java.lang.Long value) { - this.columnCount = value; - } - - /** - * Gets the value of the 'fieldProfiles' field. - * Profiles for each column (or schema field) */ - public java.util.List getFieldProfiles() { - return fieldProfiles; - } - - /** - * Sets the value of the 'fieldProfiles' field. - * Profiles for each column (or schema field) * @param value the value to set. - */ - public void setFieldProfiles(java.util.List value) { - this.fieldProfiles = value; - } - - /** - * Gets the value of the 'sizeInBytes' field. - * Storage size in bytes */ - public java.lang.Long getSizeInBytes() { - return sizeInBytes; - } - - /** - * Sets the value of the 'sizeInBytes' field. - * Storage size in bytes * @param value the value to set. - */ - public void setSizeInBytes(java.lang.Long value) { - this.sizeInBytes = value; - } - - /** Creates a new DatasetProfile RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder(); - } - - /** Creates a new DatasetProfile RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder other) { - return new com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder(other); - } - - /** Creates a new DatasetProfile RecordBuilder by copying an existing DatasetProfile instance */ - public static com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetProfile other) { - return new com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder(other); - } - - /** - * RecordBuilder for DatasetProfile 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.Long rowCount; - private java.lang.Long columnCount; - private java.util.List fieldProfiles; - private java.lang.Long sizeInBytes; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.DatasetProfile.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetProfile.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.rowCount)) { - this.rowCount = data().deepCopy(fields()[4].schema(), other.rowCount); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.columnCount)) { - this.columnCount = data().deepCopy(fields()[5].schema(), other.columnCount); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.fieldProfiles)) { - this.fieldProfiles = data().deepCopy(fields()[6].schema(), other.fieldProfiles); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.sizeInBytes)) { - this.sizeInBytes = data().deepCopy(fields()[7].schema(), other.sizeInBytes); - fieldSetFlags()[7] = true; - } - } - - /** Creates a Builder by copying an existing DatasetProfile instance */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetProfile other) { - super(com.linkedin.pegasus2avro.dataset.DatasetProfile.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.rowCount)) { - this.rowCount = data().deepCopy(fields()[4].schema(), other.rowCount); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.columnCount)) { - this.columnCount = data().deepCopy(fields()[5].schema(), other.columnCount); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.fieldProfiles)) { - this.fieldProfiles = data().deepCopy(fields()[6].schema(), other.fieldProfiles); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.sizeInBytes)) { - this.sizeInBytes = data().deepCopy(fields()[7].schema(), other.sizeInBytes); - fieldSetFlags()[7] = 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.dataset.DatasetProfile.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.dataset.DatasetProfile.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.dataset.DatasetProfile.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.dataset.DatasetProfile.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.dataset.DatasetProfile.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.dataset.DatasetProfile.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.dataset.DatasetProfile.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.dataset.DatasetProfile.Builder clearMessageId() { - messageId = null; - fieldSetFlags()[3] = 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.dataset.DatasetProfile.Builder setRowCount(java.lang.Long value) { - validate(fields()[4], value); - this.rowCount = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'rowCount' field has been set */ - public boolean hasRowCount() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'rowCount' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder clearRowCount() { - rowCount = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'columnCount' field */ - public java.lang.Long getColumnCount() { - return columnCount; - } - - /** Sets the value of the 'columnCount' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder setColumnCount(java.lang.Long value) { - validate(fields()[5], value); - this.columnCount = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'columnCount' field has been set */ - public boolean hasColumnCount() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'columnCount' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder clearColumnCount() { - columnCount = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'fieldProfiles' field */ - public java.util.List getFieldProfiles() { - return fieldProfiles; - } - - /** Sets the value of the 'fieldProfiles' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder setFieldProfiles(java.util.List value) { - validate(fields()[6], value); - this.fieldProfiles = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'fieldProfiles' field has been set */ - public boolean hasFieldProfiles() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'fieldProfiles' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder clearFieldProfiles() { - fieldProfiles = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'sizeInBytes' field */ - public java.lang.Long getSizeInBytes() { - return sizeInBytes; - } - - /** Sets the value of the 'sizeInBytes' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder setSizeInBytes(java.lang.Long value) { - validate(fields()[7], value); - this.sizeInBytes = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'sizeInBytes' field has been set */ - public boolean hasSizeInBytes() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'sizeInBytes' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProfile.Builder clearSizeInBytes() { - sizeInBytes = null; - fieldSetFlags()[7] = false; - return this; - } - - @Override - public DatasetProfile build() { - try { - DatasetProfile record = new DatasetProfile(); - 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.rowCount = fieldSetFlags()[4] ? this.rowCount : (java.lang.Long) defaultValue(fields()[4]); - record.columnCount = fieldSetFlags()[5] ? this.columnCount : (java.lang.Long) defaultValue(fields()[5]); - record.fieldProfiles = fieldSetFlags()[6] ? this.fieldProfiles : (java.util.List) defaultValue(fields()[6]); - record.sizeInBytes = fieldSetFlags()[7] ? this.sizeInBytes : (java.lang.Long) 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/pegasus2avro/dataset/DatasetProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetProperties.java deleted file mode 100644 index 083add7e956df..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetProperties.java +++ /dev/null @@ -1,587 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Properties associated with a Dataset */ -@org.apache.avro.specific.AvroGenerated -public class DatasetProperties 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\":\"DatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Properties associated with a Dataset\",\"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\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the Dataset\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"qualifiedName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Fully-qualified name of the Dataset\",\"default\":null,\"Searchable\":{\"addToFilters\":false,\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"uri\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic).\",\"default\":null,\"deprecated\":\"Use ExternalReference.externalUrl field instead.\",\"java\":{\"class\":\"java.net.URI\"}},{\"name\":\"created\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event timestamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"[Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect.\\nThis is now deprecated.\",\"default\":[],\"deprecated\":\"Use GlobalTags aspect instead.\"}],\"Aspect\":{\"name\":\"datasetProperties\"}}"); - 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; - /** Display name of the Dataset */ - @Deprecated public java.lang.String name; - /** Fully-qualified name of the Dataset */ - @Deprecated public java.lang.String qualifiedName; - /** Documentation of the dataset */ - @Deprecated public java.lang.String description; - /** The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic). */ - @Deprecated public java.lang.String uri; - /** A timestamp documenting when the asset was created in the source Data Platform (not on DataHub) */ - @Deprecated public com.linkedin.pegasus2avro.common.TimeStamp created; - /** A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub) */ - @Deprecated public com.linkedin.pegasus2avro.common.TimeStamp lastModified; - /** [Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect. -This is now deprecated. */ - @Deprecated public java.util.List tags; - - /** - * 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 DatasetProperties() {} - - /** - * All-args constructor. - */ - public DatasetProperties(java.util.Map customProperties, java.lang.String externalUrl, java.lang.String name, java.lang.String qualifiedName, java.lang.String description, java.lang.String uri, com.linkedin.pegasus2avro.common.TimeStamp created, com.linkedin.pegasus2avro.common.TimeStamp lastModified, java.util.List tags) { - this.customProperties = customProperties; - this.externalUrl = externalUrl; - this.name = name; - this.qualifiedName = qualifiedName; - this.description = description; - this.uri = uri; - this.created = created; - this.lastModified = lastModified; - this.tags = tags; - } - - 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 name; - case 3: return qualifiedName; - case 4: return description; - case 5: return uri; - case 6: return created; - case 7: return lastModified; - case 8: return tags; - 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: name = (java.lang.String)value$; break; - case 3: qualifiedName = (java.lang.String)value$; break; - case 4: description = (java.lang.String)value$; break; - case 5: uri = (java.lang.String)value$; break; - case 6: created = (com.linkedin.pegasus2avro.common.TimeStamp)value$; break; - case 7: lastModified = (com.linkedin.pegasus2avro.common.TimeStamp)value$; break; - case 8: tags = (java.util.List)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 'name' field. - * Display name of the Dataset */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Display name of the Dataset * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'qualifiedName' field. - * Fully-qualified name of the Dataset */ - public java.lang.String getQualifiedName() { - return qualifiedName; - } - - /** - * Sets the value of the 'qualifiedName' field. - * Fully-qualified name of the Dataset * @param value the value to set. - */ - public void setQualifiedName(java.lang.String value) { - this.qualifiedName = value; - } - - /** - * Gets the value of the 'description' field. - * Documentation of the dataset */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the dataset * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'uri' field. - * The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic). */ - public java.lang.String getUri() { - return uri; - } - - /** - * Sets the value of the 'uri' field. - * The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic). * @param value the value to set. - */ - public void setUri(java.lang.String value) { - this.uri = value; - } - - /** - * Gets the value of the 'created' field. - * A timestamp documenting when the asset was created in the source Data Platform (not on DataHub) */ - public com.linkedin.pegasus2avro.common.TimeStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * A timestamp documenting when the asset was created in the source Data Platform (not on DataHub) * @param value the value to set. - */ - public void setCreated(com.linkedin.pegasus2avro.common.TimeStamp value) { - this.created = value; - } - - /** - * Gets the value of the 'lastModified' field. - * A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub) */ - public com.linkedin.pegasus2avro.common.TimeStamp getLastModified() { - return lastModified; - } - - /** - * Sets the value of the 'lastModified' field. - * A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub) * @param value the value to set. - */ - public void setLastModified(com.linkedin.pegasus2avro.common.TimeStamp value) { - this.lastModified = value; - } - - /** - * Gets the value of the 'tags' field. - * [Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect. -This is now deprecated. */ - public java.util.List getTags() { - return tags; - } - - /** - * Sets the value of the 'tags' field. - * [Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect. -This is now deprecated. * @param value the value to set. - */ - public void setTags(java.util.List value) { - this.tags = value; - } - - /** Creates a new DatasetProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder(); - } - - /** Creates a new DatasetProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder other) { - return new com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder(other); - } - - /** Creates a new DatasetProperties RecordBuilder by copying an existing DatasetProperties instance */ - public static com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetProperties other) { - return new com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder(other); - } - - /** - * RecordBuilder for DatasetProperties 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 name; - private java.lang.String qualifiedName; - private java.lang.String description; - private java.lang.String uri; - private com.linkedin.pegasus2avro.common.TimeStamp created; - private com.linkedin.pegasus2avro.common.TimeStamp lastModified; - private java.util.List tags; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.DatasetProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetProperties.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.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.qualifiedName)) { - this.qualifiedName = data().deepCopy(fields()[3].schema(), other.qualifiedName); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.description)) { - this.description = data().deepCopy(fields()[4].schema(), other.description); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.uri)) { - this.uri = data().deepCopy(fields()[5].schema(), other.uri); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.created)) { - this.created = data().deepCopy(fields()[6].schema(), other.created); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[7].schema(), other.lastModified); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.tags)) { - this.tags = data().deepCopy(fields()[8].schema(), other.tags); - fieldSetFlags()[8] = true; - } - } - - /** Creates a Builder by copying an existing DatasetProperties instance */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetProperties other) { - super(com.linkedin.pegasus2avro.dataset.DatasetProperties.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.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.qualifiedName)) { - this.qualifiedName = data().deepCopy(fields()[3].schema(), other.qualifiedName); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.description)) { - this.description = data().deepCopy(fields()[4].schema(), other.description); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.uri)) { - this.uri = data().deepCopy(fields()[5].schema(), other.uri); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.created)) { - this.created = data().deepCopy(fields()[6].schema(), other.created); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[7].schema(), other.lastModified); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.tags)) { - this.tags = data().deepCopy(fields()[8].schema(), other.tags); - fieldSetFlags()[8] = 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.dataset.DatasetProperties.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.dataset.DatasetProperties.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.dataset.DatasetProperties.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.dataset.DatasetProperties.Builder clearExternalUrl() { - externalUrl = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.dataset.DatasetProperties.Builder setName(java.lang.String value) { - validate(fields()[2], value); - this.name = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder clearName() { - name = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'qualifiedName' field */ - public java.lang.String getQualifiedName() { - return qualifiedName; - } - - /** Sets the value of the 'qualifiedName' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder setQualifiedName(java.lang.String value) { - validate(fields()[3], value); - this.qualifiedName = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'qualifiedName' field has been set */ - public boolean hasQualifiedName() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'qualifiedName' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder clearQualifiedName() { - qualifiedName = null; - fieldSetFlags()[3] = 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.dataset.DatasetProperties.Builder setDescription(java.lang.String value) { - validate(fields()[4], value); - this.description = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'uri' field */ - public java.lang.String getUri() { - return uri; - } - - /** Sets the value of the 'uri' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder setUri(java.lang.String value) { - validate(fields()[5], value); - this.uri = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'uri' field has been set */ - public boolean hasUri() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'uri' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder clearUri() { - uri = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'created' field */ - public com.linkedin.pegasus2avro.common.TimeStamp getCreated() { - return created; - } - - /** Sets the value of the 'created' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder setCreated(com.linkedin.pegasus2avro.common.TimeStamp value) { - validate(fields()[6], value); - this.created = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder clearCreated() { - created = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.common.TimeStamp getLastModified() { - return lastModified; - } - - /** Sets the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder setLastModified(com.linkedin.pegasus2avro.common.TimeStamp value) { - validate(fields()[7], value); - this.lastModified = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'lastModified' field has been set */ - public boolean hasLastModified() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder clearLastModified() { - lastModified = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'tags' field */ - public java.util.List getTags() { - return tags; - } - - /** Sets the value of the 'tags' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder setTags(java.util.List value) { - validate(fields()[8], value); - this.tags = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'tags' field has been set */ - public boolean hasTags() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'tags' field */ - public com.linkedin.pegasus2avro.dataset.DatasetProperties.Builder clearTags() { - tags = null; - fieldSetFlags()[8] = false; - return this; - } - - @Override - public DatasetProperties build() { - try { - DatasetProperties record = new DatasetProperties(); - 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.name = fieldSetFlags()[2] ? this.name : (java.lang.String) defaultValue(fields()[2]); - record.qualifiedName = fieldSetFlags()[3] ? this.qualifiedName : (java.lang.String) defaultValue(fields()[3]); - record.description = fieldSetFlags()[4] ? this.description : (java.lang.String) defaultValue(fields()[4]); - record.uri = fieldSetFlags()[5] ? this.uri : (java.lang.String) defaultValue(fields()[5]); - record.created = fieldSetFlags()[6] ? this.created : (com.linkedin.pegasus2avro.common.TimeStamp) defaultValue(fields()[6]); - record.lastModified = fieldSetFlags()[7] ? this.lastModified : (com.linkedin.pegasus2avro.common.TimeStamp) defaultValue(fields()[7]); - record.tags = fieldSetFlags()[8] ? this.tags : (java.util.List) 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/dataset/DatasetUpstreamLineage.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetUpstreamLineage.java deleted file mode 100644 index 0b18b9065b46b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetUpstreamLineage.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Fine Grained upstream lineage for fields in a dataset */ -@org.apache.avro.specific.AvroGenerated -public class DatasetUpstreamLineage 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\":\"DatasetUpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Fine Grained upstream lineage for fields in a dataset\",\"fields\":[{\"name\":\"fieldMappings\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"DatasetFieldMapping\",\"doc\":\"Representation of mapping between fields in source dataset to the field in destination dataset\",\"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\":\"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\"},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"string\",\"avro.java.string\":\"String\"}]},\"doc\":\"Source fields from which the fine grained lineage is derived\"},{\"name\":\"destinationField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Destination field which is derived from source fields\",\"deprecated\":\"use SchemaFieldPath and represent as generic Urn instead\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetFieldUrn\"}}],\"deprecated\":\"use FineGrainedLineage instead\"}},\"doc\":\"Upstream to downstream field level lineage mappings\"}],\"Aspect\":{\"name\":\"datasetUpstreamLineage\"},\"deprecated\":\"use UpstreamLineage.fineGrainedLineages instead\"}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Upstream to downstream field level lineage mappings */ - @Deprecated public java.util.List fieldMappings; - - /** - * 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 DatasetUpstreamLineage() {} - - /** - * All-args constructor. - */ - public DatasetUpstreamLineage(java.util.List fieldMappings) { - this.fieldMappings = fieldMappings; - } - - 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 fieldMappings; - 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: fieldMappings = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'fieldMappings' field. - * Upstream to downstream field level lineage mappings */ - public java.util.List getFieldMappings() { - return fieldMappings; - } - - /** - * Sets the value of the 'fieldMappings' field. - * Upstream to downstream field level lineage mappings * @param value the value to set. - */ - public void setFieldMappings(java.util.List value) { - this.fieldMappings = value; - } - - /** Creates a new DatasetUpstreamLineage RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage.Builder(); - } - - /** Creates a new DatasetUpstreamLineage RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage.Builder other) { - return new com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage.Builder(other); - } - - /** Creates a new DatasetUpstreamLineage RecordBuilder by copying an existing DatasetUpstreamLineage instance */ - public static com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage other) { - return new com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage.Builder(other); - } - - /** - * RecordBuilder for DatasetUpstreamLineage instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List fieldMappings; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage.Builder other) { - super(other); - if (isValidValue(fields()[0], other.fieldMappings)) { - this.fieldMappings = data().deepCopy(fields()[0].schema(), other.fieldMappings); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DatasetUpstreamLineage instance */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage other) { - super(com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage.SCHEMA$); - if (isValidValue(fields()[0], other.fieldMappings)) { - this.fieldMappings = data().deepCopy(fields()[0].schema(), other.fieldMappings); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'fieldMappings' field */ - public java.util.List getFieldMappings() { - return fieldMappings; - } - - /** Sets the value of the 'fieldMappings' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage.Builder setFieldMappings(java.util.List value) { - validate(fields()[0], value); - this.fieldMappings = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'fieldMappings' field has been set */ - public boolean hasFieldMappings() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'fieldMappings' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUpstreamLineage.Builder clearFieldMappings() { - fieldMappings = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DatasetUpstreamLineage build() { - try { - DatasetUpstreamLineage record = new DatasetUpstreamLineage(); - record.fieldMappings = fieldSetFlags()[0] ? this.fieldMappings : (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/dataset/DatasetUsageStatistics.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetUsageStatistics.java deleted file mode 100644 index e453cfc99a0c9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetUsageStatistics.java +++ /dev/null @@ -1,583 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Stats corresponding to dataset's usage. */ -@org.apache.avro.specific.AvroGenerated -public class DatasetUsageStatistics 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\":\"DatasetUsageStatistics\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Stats corresponding to dataset's usage.\",\"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\":\"uniqueUserCount\",\"type\":[\"null\",\"int\"],\"doc\":\"Unique user count\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"totalSqlQueries\",\"type\":[\"null\",\"int\"],\"doc\":\"Total SQL query count\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"topSqlQueries\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Frequent SQL queries; mostly makes sense for datasets in SQL databases\",\"default\":null,\"TimeseriesField\":{}},{\"name\":\"userCounts\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"DatasetUserUsageCounts\",\"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\":\"count\",\"type\":\"int\",\"doc\":\"Number of times the dataset has been used by the user.\",\"TimeseriesField\":{}},{\"name\":\"userEmail\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"If user_email is set, we attempt to resolve the user's urn upon ingest\",\"default\":null,\"TimeseriesField\":{}}]}}],\"doc\":\"Users within this bucket, with frequency counts\",\"default\":null,\"TimeseriesFieldCollection\":{\"key\":\"user\"}},{\"name\":\"fieldCounts\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"DatasetFieldUsageCounts\",\"doc\":\"Records field-level usage counts for a given dataset\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field.\"},{\"name\":\"count\",\"type\":\"int\",\"doc\":\"Number of times the field has been used.\",\"TimeseriesField\":{}}]}}],\"doc\":\"Field-level usage stats\",\"default\":null,\"TimeseriesFieldCollection\":{\"key\":\"fieldPath\"}}],\"Aspect\":{\"name\":\"datasetUsageStatistics\",\"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; - /** Unique user count */ - @Deprecated public java.lang.Integer uniqueUserCount; - /** Total SQL query count */ - @Deprecated public java.lang.Integer totalSqlQueries; - /** Frequent SQL queries; mostly makes sense for datasets in SQL databases */ - @Deprecated public java.util.List topSqlQueries; - /** Users within this bucket, with frequency counts */ - @Deprecated public java.util.List userCounts; - /** Field-level usage stats */ - @Deprecated public java.util.List fieldCounts; - - /** - * 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 DatasetUsageStatistics() {} - - /** - * All-args constructor. - */ - public DatasetUsageStatistics(java.lang.Long timestampMillis, com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity, com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec, java.lang.String messageId, java.lang.Integer uniqueUserCount, java.lang.Integer totalSqlQueries, java.util.List topSqlQueries, java.util.List userCounts, java.util.List fieldCounts) { - this.timestampMillis = timestampMillis; - this.eventGranularity = eventGranularity; - this.partitionSpec = partitionSpec; - this.messageId = messageId; - this.uniqueUserCount = uniqueUserCount; - this.totalSqlQueries = totalSqlQueries; - this.topSqlQueries = topSqlQueries; - this.userCounts = userCounts; - this.fieldCounts = fieldCounts; - } - - 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 uniqueUserCount; - case 5: return totalSqlQueries; - case 6: return topSqlQueries; - case 7: return userCounts; - case 8: return fieldCounts; - 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: uniqueUserCount = (java.lang.Integer)value$; break; - case 5: totalSqlQueries = (java.lang.Integer)value$; break; - case 6: topSqlQueries = (java.util.List)value$; break; - case 7: userCounts = (java.util.List)value$; break; - case 8: fieldCounts = (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 '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 'totalSqlQueries' field. - * Total SQL query count */ - public java.lang.Integer getTotalSqlQueries() { - return totalSqlQueries; - } - - /** - * Sets the value of the 'totalSqlQueries' field. - * Total SQL query count * @param value the value to set. - */ - public void setTotalSqlQueries(java.lang.Integer value) { - this.totalSqlQueries = value; - } - - /** - * Gets the value of the 'topSqlQueries' field. - * Frequent SQL queries; mostly makes sense for datasets in SQL databases */ - public java.util.List getTopSqlQueries() { - return topSqlQueries; - } - - /** - * Sets the value of the 'topSqlQueries' field. - * Frequent SQL queries; mostly makes sense for datasets in SQL databases * @param value the value to set. - */ - public void setTopSqlQueries(java.util.List value) { - this.topSqlQueries = 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; - } - - /** - * Gets the value of the 'fieldCounts' field. - * Field-level usage stats */ - public java.util.List getFieldCounts() { - return fieldCounts; - } - - /** - * Sets the value of the 'fieldCounts' field. - * Field-level usage stats * @param value the value to set. - */ - public void setFieldCounts(java.util.List value) { - this.fieldCounts = value; - } - - /** Creates a new DatasetUsageStatistics RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder(); - } - - /** Creates a new DatasetUsageStatistics RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder other) { - return new com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder(other); - } - - /** Creates a new DatasetUsageStatistics RecordBuilder by copying an existing DatasetUsageStatistics instance */ - public static com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics other) { - return new com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder(other); - } - - /** - * RecordBuilder for DatasetUsageStatistics 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 uniqueUserCount; - private java.lang.Integer totalSqlQueries; - private java.util.List topSqlQueries; - private java.util.List userCounts; - private java.util.List fieldCounts; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.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.uniqueUserCount)) { - this.uniqueUserCount = data().deepCopy(fields()[4].schema(), other.uniqueUserCount); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.totalSqlQueries)) { - this.totalSqlQueries = data().deepCopy(fields()[5].schema(), other.totalSqlQueries); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.topSqlQueries)) { - this.topSqlQueries = data().deepCopy(fields()[6].schema(), other.topSqlQueries); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.userCounts)) { - this.userCounts = data().deepCopy(fields()[7].schema(), other.userCounts); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.fieldCounts)) { - this.fieldCounts = data().deepCopy(fields()[8].schema(), other.fieldCounts); - fieldSetFlags()[8] = true; - } - } - - /** Creates a Builder by copying an existing DatasetUsageStatistics instance */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics other) { - super(com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.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.uniqueUserCount)) { - this.uniqueUserCount = data().deepCopy(fields()[4].schema(), other.uniqueUserCount); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.totalSqlQueries)) { - this.totalSqlQueries = data().deepCopy(fields()[5].schema(), other.totalSqlQueries); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.topSqlQueries)) { - this.topSqlQueries = data().deepCopy(fields()[6].schema(), other.topSqlQueries); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.userCounts)) { - this.userCounts = data().deepCopy(fields()[7].schema(), other.userCounts); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.fieldCounts)) { - this.fieldCounts = data().deepCopy(fields()[8].schema(), other.fieldCounts); - fieldSetFlags()[8] = 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.dataset.DatasetUsageStatistics.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.dataset.DatasetUsageStatistics.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.dataset.DatasetUsageStatistics.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.dataset.DatasetUsageStatistics.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.dataset.DatasetUsageStatistics.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.dataset.DatasetUsageStatistics.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.dataset.DatasetUsageStatistics.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.dataset.DatasetUsageStatistics.Builder clearMessageId() { - messageId = null; - fieldSetFlags()[3] = 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.dataset.DatasetUsageStatistics.Builder setUniqueUserCount(java.lang.Integer value) { - validate(fields()[4], value); - this.uniqueUserCount = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'uniqueUserCount' field has been set */ - public boolean hasUniqueUserCount() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'uniqueUserCount' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder clearUniqueUserCount() { - uniqueUserCount = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'totalSqlQueries' field */ - public java.lang.Integer getTotalSqlQueries() { - return totalSqlQueries; - } - - /** Sets the value of the 'totalSqlQueries' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder setTotalSqlQueries(java.lang.Integer value) { - validate(fields()[5], value); - this.totalSqlQueries = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'totalSqlQueries' field has been set */ - public boolean hasTotalSqlQueries() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'totalSqlQueries' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder clearTotalSqlQueries() { - totalSqlQueries = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'topSqlQueries' field */ - public java.util.List getTopSqlQueries() { - return topSqlQueries; - } - - /** Sets the value of the 'topSqlQueries' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder setTopSqlQueries(java.util.List value) { - validate(fields()[6], value); - this.topSqlQueries = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'topSqlQueries' field has been set */ - public boolean hasTopSqlQueries() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'topSqlQueries' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder clearTopSqlQueries() { - topSqlQueries = null; - fieldSetFlags()[6] = 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.dataset.DatasetUsageStatistics.Builder setUserCounts(java.util.List value) { - validate(fields()[7], value); - this.userCounts = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'userCounts' field has been set */ - public boolean hasUserCounts() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'userCounts' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder clearUserCounts() { - userCounts = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'fieldCounts' field */ - public java.util.List getFieldCounts() { - return fieldCounts; - } - - /** Sets the value of the 'fieldCounts' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder setFieldCounts(java.util.List value) { - validate(fields()[8], value); - this.fieldCounts = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'fieldCounts' field has been set */ - public boolean hasFieldCounts() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'fieldCounts' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUsageStatistics.Builder clearFieldCounts() { - fieldCounts = null; - fieldSetFlags()[8] = false; - return this; - } - - @Override - public DatasetUsageStatistics build() { - try { - DatasetUsageStatistics record = new DatasetUsageStatistics(); - 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.uniqueUserCount = fieldSetFlags()[4] ? this.uniqueUserCount : (java.lang.Integer) defaultValue(fields()[4]); - record.totalSqlQueries = fieldSetFlags()[5] ? this.totalSqlQueries : (java.lang.Integer) defaultValue(fields()[5]); - record.topSqlQueries = fieldSetFlags()[6] ? this.topSqlQueries : (java.util.List) defaultValue(fields()[6]); - record.userCounts = fieldSetFlags()[7] ? this.userCounts : (java.util.List) defaultValue(fields()[7]); - record.fieldCounts = fieldSetFlags()[8] ? this.fieldCounts : (java.util.List) 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/dataset/DatasetUserUsageCounts.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetUserUsageCounts.java deleted file mode 100644 index 90b16a7b3357e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DatasetUserUsageCounts.java +++ /dev/null @@ -1,253 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Records a single user's usage counts for a given resource */ -@org.apache.avro.specific.AvroGenerated -public class DatasetUserUsageCounts 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\":\"DatasetUserUsageCounts\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"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\":\"count\",\"type\":\"int\",\"doc\":\"Number of times the dataset has been used by the user.\",\"TimeseriesField\":{}},{\"name\":\"userEmail\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"If user_email is set, we attempt to resolve the user's urn upon ingest\",\"default\":null,\"TimeseriesField\":{}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The unique id of the user. */ - @Deprecated public java.lang.String user; - /** Number of times the dataset has been used by the user. */ - @Deprecated public int count; - /** If user_email is set, we attempt to resolve the user's urn upon ingest */ - @Deprecated public java.lang.String userEmail; - - /** - * 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 DatasetUserUsageCounts() {} - - /** - * All-args constructor. - */ - public DatasetUserUsageCounts(java.lang.String user, java.lang.Integer count, java.lang.String userEmail) { - this.user = user; - this.count = count; - this.userEmail = userEmail; - } - - 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 count; - case 2: return userEmail; - 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: count = (java.lang.Integer)value$; break; - case 2: userEmail = (java.lang.String)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 'count' field. - * Number of times the dataset has been used by the user. */ - public java.lang.Integer getCount() { - return count; - } - - /** - * Sets the value of the 'count' field. - * Number of times the dataset has been used by the user. * @param value the value to set. - */ - public void setCount(java.lang.Integer value) { - this.count = value; - } - - /** - * Gets the value of the 'userEmail' field. - * If user_email is set, we attempt to resolve the user's urn upon ingest */ - public java.lang.String getUserEmail() { - return userEmail; - } - - /** - * Sets the value of the 'userEmail' field. - * If user_email is set, we attempt to resolve the user's urn upon ingest * @param value the value to set. - */ - public void setUserEmail(java.lang.String value) { - this.userEmail = value; - } - - /** Creates a new DatasetUserUsageCounts RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.Builder(); - } - - /** Creates a new DatasetUserUsageCounts RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.Builder other) { - return new com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.Builder(other); - } - - /** Creates a new DatasetUserUsageCounts RecordBuilder by copying an existing DatasetUserUsageCounts instance */ - public static com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts other) { - return new com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.Builder(other); - } - - /** - * RecordBuilder for DatasetUserUsageCounts instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String user; - private int count; - private java.lang.String userEmail; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.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.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.userEmail)) { - this.userEmail = data().deepCopy(fields()[2].schema(), other.userEmail); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing DatasetUserUsageCounts instance */ - private Builder(com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts other) { - super(com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.SCHEMA$); - if (isValidValue(fields()[0], other.user)) { - this.user = data().deepCopy(fields()[0].schema(), other.user); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.userEmail)) { - this.userEmail = data().deepCopy(fields()[2].schema(), other.userEmail); - fieldSetFlags()[2] = 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.dataset.DatasetUserUsageCounts.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.dataset.DatasetUserUsageCounts.Builder clearUser() { - user = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'count' field */ - public java.lang.Integer getCount() { - return count; - } - - /** Sets the value of the 'count' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.Builder setCount(int value) { - validate(fields()[1], value); - this.count = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'count' field has been set */ - public boolean hasCount() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'count' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.Builder clearCount() { - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'userEmail' field */ - public java.lang.String getUserEmail() { - return userEmail; - } - - /** Sets the value of the 'userEmail' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.Builder setUserEmail(java.lang.String value) { - validate(fields()[2], value); - this.userEmail = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'userEmail' field has been set */ - public boolean hasUserEmail() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'userEmail' field */ - public com.linkedin.pegasus2avro.dataset.DatasetUserUsageCounts.Builder clearUserEmail() { - userEmail = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public DatasetUserUsageCounts build() { - try { - DatasetUserUsageCounts record = new DatasetUserUsageCounts(); - record.user = fieldSetFlags()[0] ? this.user : (java.lang.String) defaultValue(fields()[0]); - record.count = fieldSetFlags()[1] ? this.count : (java.lang.Integer) defaultValue(fields()[1]); - record.userEmail = fieldSetFlags()[2] ? this.userEmail : (java.lang.String) 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/dataset/Downstream.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/Downstream.java deleted file mode 100644 index 3144ed8103300..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/Downstream.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Downstream lineage information about a dataset including the source reporting the lineage */ -@org.apache.avro.specific.AvroGenerated -public class Downstream 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\":\"Downstream\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Downstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"auditStamp\",\"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\":\"Audit stamp containing who reported the lineage and when\"},{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The downstream dataset the lineage points to\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}},\"doc\":\"The type of the lineage\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Audit stamp containing who reported the lineage and when */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp auditStamp; - /** The downstream dataset the lineage points to */ - @Deprecated public java.lang.String dataset; - /** The type of the lineage */ - @Deprecated public com.linkedin.pegasus2avro.dataset.DatasetLineageType 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 Downstream() {} - - /** - * All-args constructor. - */ - public Downstream(com.linkedin.pegasus2avro.common.AuditStamp auditStamp, java.lang.String dataset, com.linkedin.pegasus2avro.dataset.DatasetLineageType type) { - this.auditStamp = auditStamp; - this.dataset = dataset; - 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 auditStamp; - case 1: return dataset; - case 2: 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: auditStamp = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 1: dataset = (java.lang.String)value$; break; - case 2: type = (com.linkedin.pegasus2avro.dataset.DatasetLineageType)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'auditStamp' field. - * Audit stamp containing who reported the lineage and when */ - public com.linkedin.pegasus2avro.common.AuditStamp getAuditStamp() { - return auditStamp; - } - - /** - * Sets the value of the 'auditStamp' field. - * Audit stamp containing who reported the lineage and when * @param value the value to set. - */ - public void setAuditStamp(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.auditStamp = value; - } - - /** - * Gets the value of the 'dataset' field. - * The downstream dataset the lineage points to */ - public java.lang.String getDataset() { - return dataset; - } - - /** - * Sets the value of the 'dataset' field. - * The downstream dataset the lineage points to * @param value the value to set. - */ - public void setDataset(java.lang.String value) { - this.dataset = value; - } - - /** - * Gets the value of the 'type' field. - * The type of the lineage */ - public com.linkedin.pegasus2avro.dataset.DatasetLineageType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of the lineage * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.dataset.DatasetLineageType value) { - this.type = value; - } - - /** Creates a new Downstream RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.Downstream.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.Downstream.Builder(); - } - - /** Creates a new Downstream RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.Downstream.Builder newBuilder(com.linkedin.pegasus2avro.dataset.Downstream.Builder other) { - return new com.linkedin.pegasus2avro.dataset.Downstream.Builder(other); - } - - /** Creates a new Downstream RecordBuilder by copying an existing Downstream instance */ - public static com.linkedin.pegasus2avro.dataset.Downstream.Builder newBuilder(com.linkedin.pegasus2avro.dataset.Downstream other) { - return new com.linkedin.pegasus2avro.dataset.Downstream.Builder(other); - } - - /** - * RecordBuilder for Downstream instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.common.AuditStamp auditStamp; - private java.lang.String dataset; - private com.linkedin.pegasus2avro.dataset.DatasetLineageType type; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.Downstream.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.Downstream.Builder other) { - super(other); - if (isValidValue(fields()[0], other.auditStamp)) { - this.auditStamp = data().deepCopy(fields()[0].schema(), other.auditStamp); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.dataset)) { - this.dataset = data().deepCopy(fields()[1].schema(), other.dataset); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.type)) { - this.type = data().deepCopy(fields()[2].schema(), other.type); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing Downstream instance */ - private Builder(com.linkedin.pegasus2avro.dataset.Downstream other) { - super(com.linkedin.pegasus2avro.dataset.Downstream.SCHEMA$); - if (isValidValue(fields()[0], other.auditStamp)) { - this.auditStamp = data().deepCopy(fields()[0].schema(), other.auditStamp); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.dataset)) { - this.dataset = data().deepCopy(fields()[1].schema(), other.dataset); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.type)) { - this.type = data().deepCopy(fields()[2].schema(), other.type); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'auditStamp' field */ - public com.linkedin.pegasus2avro.common.AuditStamp getAuditStamp() { - return auditStamp; - } - - /** Sets the value of the 'auditStamp' field */ - public com.linkedin.pegasus2avro.dataset.Downstream.Builder setAuditStamp(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[0], value); - this.auditStamp = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'auditStamp' field has been set */ - public boolean hasAuditStamp() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'auditStamp' field */ - public com.linkedin.pegasus2avro.dataset.Downstream.Builder clearAuditStamp() { - auditStamp = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.dataset.Downstream.Builder setDataset(java.lang.String value) { - validate(fields()[1], value); - this.dataset = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'dataset' field has been set */ - public boolean hasDataset() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'dataset' field */ - public com.linkedin.pegasus2avro.dataset.Downstream.Builder clearDataset() { - dataset = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.dataset.DatasetLineageType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.dataset.Downstream.Builder setType(com.linkedin.pegasus2avro.dataset.DatasetLineageType 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.dataset.Downstream.Builder clearType() { - type = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public Downstream build() { - try { - Downstream record = new Downstream(); - record.auditStamp = fieldSetFlags()[0] ? this.auditStamp : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[0]); - record.dataset = fieldSetFlags()[1] ? this.dataset : (java.lang.String) defaultValue(fields()[1]); - record.type = fieldSetFlags()[2] ? this.type : (com.linkedin.pegasus2avro.dataset.DatasetLineageType) 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/dataset/DownstreamLineage.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DownstreamLineage.java deleted file mode 100644 index 180a808d3a84e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DownstreamLineage.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Downstream lineage of a dataset */ -@org.apache.avro.specific.AvroGenerated -public class DownstreamLineage 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\":\"DownstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Downstream lineage of a dataset\",\"fields\":[{\"name\":\"downstreams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Downstream\",\"doc\":\"Downstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"auditStamp\",\"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\":\"Audit stamp containing who reported the lineage and when\"},{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The downstream dataset the lineage points to\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}},\"doc\":\"The type of the lineage\"}]}},\"doc\":\"List of downstream dataset lineage information\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** List of downstream dataset lineage information */ - @Deprecated public java.util.List downstreams; - - /** - * 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 DownstreamLineage() {} - - /** - * All-args constructor. - */ - public DownstreamLineage(java.util.List downstreams) { - this.downstreams = downstreams; - } - - 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 downstreams; - 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: downstreams = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'downstreams' field. - * List of downstream dataset lineage information */ - public java.util.List getDownstreams() { - return downstreams; - } - - /** - * Sets the value of the 'downstreams' field. - * List of downstream dataset lineage information * @param value the value to set. - */ - public void setDownstreams(java.util.List value) { - this.downstreams = value; - } - - /** Creates a new DownstreamLineage RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.DownstreamLineage.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.DownstreamLineage.Builder(); - } - - /** Creates a new DownstreamLineage RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.DownstreamLineage.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DownstreamLineage.Builder other) { - return new com.linkedin.pegasus2avro.dataset.DownstreamLineage.Builder(other); - } - - /** Creates a new DownstreamLineage RecordBuilder by copying an existing DownstreamLineage instance */ - public static com.linkedin.pegasus2avro.dataset.DownstreamLineage.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DownstreamLineage other) { - return new com.linkedin.pegasus2avro.dataset.DownstreamLineage.Builder(other); - } - - /** - * RecordBuilder for DownstreamLineage instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List downstreams; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.DownstreamLineage.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.DownstreamLineage.Builder other) { - super(other); - if (isValidValue(fields()[0], other.downstreams)) { - this.downstreams = data().deepCopy(fields()[0].schema(), other.downstreams); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DownstreamLineage instance */ - private Builder(com.linkedin.pegasus2avro.dataset.DownstreamLineage other) { - super(com.linkedin.pegasus2avro.dataset.DownstreamLineage.SCHEMA$); - if (isValidValue(fields()[0], other.downstreams)) { - this.downstreams = data().deepCopy(fields()[0].schema(), other.downstreams); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'downstreams' field */ - public java.util.List getDownstreams() { - return downstreams; - } - - /** Sets the value of the 'downstreams' field */ - public com.linkedin.pegasus2avro.dataset.DownstreamLineage.Builder setDownstreams(java.util.List value) { - validate(fields()[0], value); - this.downstreams = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'downstreams' field has been set */ - public boolean hasDownstreams() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'downstreams' field */ - public com.linkedin.pegasus2avro.dataset.DownstreamLineage.Builder clearDownstreams() { - downstreams = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DownstreamLineage build() { - try { - DownstreamLineage record = new DownstreamLineage(); - record.downstreams = fieldSetFlags()[0] ? this.downstreams : (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/dataset/DownstreamLineageDelta.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DownstreamLineageDelta.java deleted file mode 100644 index 277393f9cccf9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/DownstreamLineageDelta.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Describes a delta change to a dataset downstream lineage */ -@org.apache.avro.specific.AvroGenerated -public class DownstreamLineageDelta 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\":\"DownstreamLineageDelta\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Describes a delta change to a dataset downstream lineage\",\"fields\":[{\"name\":\"downstreamsToUpdate\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Downstream\",\"doc\":\"Downstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"auditStamp\",\"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\":\"Audit stamp containing who reported the lineage and when\"},{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The downstream dataset the lineage points to\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}},\"doc\":\"The type of the lineage\"}]}},\"doc\":\"The list of downstream lineages to be updated for a dataset\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The list of downstream lineages to be updated for a dataset */ - @Deprecated public java.util.List downstreamsToUpdate; - - /** - * 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 DownstreamLineageDelta() {} - - /** - * All-args constructor. - */ - public DownstreamLineageDelta(java.util.List downstreamsToUpdate) { - this.downstreamsToUpdate = downstreamsToUpdate; - } - - 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 downstreamsToUpdate; - 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: downstreamsToUpdate = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'downstreamsToUpdate' field. - * The list of downstream lineages to be updated for a dataset */ - public java.util.List getDownstreamsToUpdate() { - return downstreamsToUpdate; - } - - /** - * Sets the value of the 'downstreamsToUpdate' field. - * The list of downstream lineages to be updated for a dataset * @param value the value to set. - */ - public void setDownstreamsToUpdate(java.util.List value) { - this.downstreamsToUpdate = value; - } - - /** Creates a new DownstreamLineageDelta RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta.Builder(); - } - - /** Creates a new DownstreamLineageDelta RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta.Builder other) { - return new com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta.Builder(other); - } - - /** Creates a new DownstreamLineageDelta RecordBuilder by copying an existing DownstreamLineageDelta instance */ - public static com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta.Builder newBuilder(com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta other) { - return new com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta.Builder(other); - } - - /** - * RecordBuilder for DownstreamLineageDelta instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List downstreamsToUpdate; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta.Builder other) { - super(other); - if (isValidValue(fields()[0], other.downstreamsToUpdate)) { - this.downstreamsToUpdate = data().deepCopy(fields()[0].schema(), other.downstreamsToUpdate); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DownstreamLineageDelta instance */ - private Builder(com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta other) { - super(com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta.SCHEMA$); - if (isValidValue(fields()[0], other.downstreamsToUpdate)) { - this.downstreamsToUpdate = data().deepCopy(fields()[0].schema(), other.downstreamsToUpdate); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'downstreamsToUpdate' field */ - public java.util.List getDownstreamsToUpdate() { - return downstreamsToUpdate; - } - - /** Sets the value of the 'downstreamsToUpdate' field */ - public com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta.Builder setDownstreamsToUpdate(java.util.List value) { - validate(fields()[0], value); - this.downstreamsToUpdate = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'downstreamsToUpdate' field has been set */ - public boolean hasDownstreamsToUpdate() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'downstreamsToUpdate' field */ - public com.linkedin.pegasus2avro.dataset.DownstreamLineageDelta.Builder clearDownstreamsToUpdate() { - downstreamsToUpdate = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DownstreamLineageDelta build() { - try { - DownstreamLineageDelta record = new DownstreamLineageDelta(); - record.downstreamsToUpdate = fieldSetFlags()[0] ? this.downstreamsToUpdate : (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/dataset/EditableDatasetProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/EditableDatasetProperties.java deleted file mode 100644 index 6de4694ffc79d..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/EditableDatasetProperties.java +++ /dev/null @@ -1,310 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** EditableDatasetProperties stores editable changes made to dataset 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 EditableDatasetProperties 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\":\"EditableDatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"EditableDatasetProperties stores editable changes made to dataset 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\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDatasetProperties\"}}"); - 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; - /** Documentation of the dataset */ - @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 EditableDatasetProperties() {} - - /** - * All-args constructor. - */ - public EditableDatasetProperties(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. - * Documentation of the dataset */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the dataset * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** Creates a new EditableDatasetProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.EditableDatasetProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.EditableDatasetProperties.Builder(); - } - - /** Creates a new EditableDatasetProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.EditableDatasetProperties.Builder newBuilder(com.linkedin.pegasus2avro.dataset.EditableDatasetProperties.Builder other) { - return new com.linkedin.pegasus2avro.dataset.EditableDatasetProperties.Builder(other); - } - - /** Creates a new EditableDatasetProperties RecordBuilder by copying an existing EditableDatasetProperties instance */ - public static com.linkedin.pegasus2avro.dataset.EditableDatasetProperties.Builder newBuilder(com.linkedin.pegasus2avro.dataset.EditableDatasetProperties other) { - return new com.linkedin.pegasus2avro.dataset.EditableDatasetProperties.Builder(other); - } - - /** - * RecordBuilder for EditableDatasetProperties 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.dataset.EditableDatasetProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.EditableDatasetProperties.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 EditableDatasetProperties instance */ - private Builder(com.linkedin.pegasus2avro.dataset.EditableDatasetProperties other) { - super(com.linkedin.pegasus2avro.dataset.EditableDatasetProperties.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.dataset.EditableDatasetProperties.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.dataset.EditableDatasetProperties.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.dataset.EditableDatasetProperties.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.dataset.EditableDatasetProperties.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.dataset.EditableDatasetProperties.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.dataset.EditableDatasetProperties.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.dataset.EditableDatasetProperties.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.dataset.EditableDatasetProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public EditableDatasetProperties build() { - try { - EditableDatasetProperties record = new EditableDatasetProperties(); - 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/dataset/FineGrainedLineage.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/FineGrainedLineage.java deleted file mode 100644 index f66492a18648b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/FineGrainedLineage.java +++ /dev/null @@ -1,418 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** A fine-grained lineage from upstream fields/datasets to downstream field(s) */ -@org.apache.avro.specific.AvroGenerated -public class FineGrainedLineage 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\":\"FineGrainedLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"A fine-grained lineage from upstream fields/datasets to downstream field(s)\",\"fields\":[{\"name\":\"upstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageUpstreamType\",\"doc\":\"The type of upstream entity in a fine-grained lineage\",\"symbols\":[\"FIELD_SET\",\"DATASET\",\"NONE\"],\"symbolDocs\":{\"DATASET\":\" Indicates that this lineage is originating from upstream dataset(s)\",\"FIELD_SET\":\" Indicates that this lineage is originating from upstream field(s)\",\"NONE\":\" Indicates that there is no upstream lineage i.e. the downstream field is not a derived field\"}},\"doc\":\"The type of upstream entity\"},{\"name\":\"upstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Upstream entities in the lineage\",\"default\":null},{\"name\":\"downstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageDownstreamType\",\"doc\":\"The type of downstream field(s) in a fine-grained lineage\",\"symbols\":[\"FIELD\",\"FIELD_SET\"],\"symbolDocs\":{\"FIELD\":\" Indicates that the lineage is for a single, specific, downstream field\",\"FIELD_SET\":\" Indicates that the lineage is for a set of downstream fields\"}},\"doc\":\"The type of downstream field(s)\"},{\"name\":\"downstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Downstream fields in the lineage\",\"default\":null},{\"name\":\"transformOperation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The transform operation applied to the upstream entities to produce the downstream field(s)\",\"default\":null},{\"name\":\"confidenceScore\",\"type\":\"float\",\"doc\":\"The confidence in this lineage between 0 (low confidence) and 1 (high confidence)\",\"default\":1.0}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The type of upstream entity */ - @Deprecated public com.linkedin.pegasus2avro.dataset.FineGrainedLineageUpstreamType upstreamType; - /** Upstream entities in the lineage */ - @Deprecated public java.util.List upstreams; - /** The type of downstream field(s) */ - @Deprecated public com.linkedin.pegasus2avro.dataset.FineGrainedLineageDownstreamType downstreamType; - /** Downstream fields in the lineage */ - @Deprecated public java.util.List downstreams; - /** The transform operation applied to the upstream entities to produce the downstream field(s) */ - @Deprecated public java.lang.String transformOperation; - /** The confidence in this lineage between 0 (low confidence) and 1 (high confidence) */ - @Deprecated public float confidenceScore; - - /** - * 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 FineGrainedLineage() {} - - /** - * All-args constructor. - */ - public FineGrainedLineage(com.linkedin.pegasus2avro.dataset.FineGrainedLineageUpstreamType upstreamType, java.util.List upstreams, com.linkedin.pegasus2avro.dataset.FineGrainedLineageDownstreamType downstreamType, java.util.List downstreams, java.lang.String transformOperation, java.lang.Float confidenceScore) { - this.upstreamType = upstreamType; - this.upstreams = upstreams; - this.downstreamType = downstreamType; - this.downstreams = downstreams; - this.transformOperation = transformOperation; - this.confidenceScore = confidenceScore; - } - - 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 upstreamType; - case 1: return upstreams; - case 2: return downstreamType; - case 3: return downstreams; - case 4: return transformOperation; - case 5: return confidenceScore; - 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: upstreamType = (com.linkedin.pegasus2avro.dataset.FineGrainedLineageUpstreamType)value$; break; - case 1: upstreams = (java.util.List)value$; break; - case 2: downstreamType = (com.linkedin.pegasus2avro.dataset.FineGrainedLineageDownstreamType)value$; break; - case 3: downstreams = (java.util.List)value$; break; - case 4: transformOperation = (java.lang.String)value$; break; - case 5: confidenceScore = (java.lang.Float)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'upstreamType' field. - * The type of upstream entity */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineageUpstreamType getUpstreamType() { - return upstreamType; - } - - /** - * Sets the value of the 'upstreamType' field. - * The type of upstream entity * @param value the value to set. - */ - public void setUpstreamType(com.linkedin.pegasus2avro.dataset.FineGrainedLineageUpstreamType value) { - this.upstreamType = value; - } - - /** - * Gets the value of the 'upstreams' field. - * Upstream entities in the lineage */ - public java.util.List getUpstreams() { - return upstreams; - } - - /** - * Sets the value of the 'upstreams' field. - * Upstream entities in the lineage * @param value the value to set. - */ - public void setUpstreams(java.util.List value) { - this.upstreams = value; - } - - /** - * Gets the value of the 'downstreamType' field. - * The type of downstream field(s) */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineageDownstreamType getDownstreamType() { - return downstreamType; - } - - /** - * Sets the value of the 'downstreamType' field. - * The type of downstream field(s) * @param value the value to set. - */ - public void setDownstreamType(com.linkedin.pegasus2avro.dataset.FineGrainedLineageDownstreamType value) { - this.downstreamType = value; - } - - /** - * Gets the value of the 'downstreams' field. - * Downstream fields in the lineage */ - public java.util.List getDownstreams() { - return downstreams; - } - - /** - * Sets the value of the 'downstreams' field. - * Downstream fields in the lineage * @param value the value to set. - */ - public void setDownstreams(java.util.List value) { - this.downstreams = value; - } - - /** - * Gets the value of the 'transformOperation' field. - * The transform operation applied to the upstream entities to produce the downstream field(s) */ - public java.lang.String getTransformOperation() { - return transformOperation; - } - - /** - * Sets the value of the 'transformOperation' field. - * The transform operation applied to the upstream entities to produce the downstream field(s) * @param value the value to set. - */ - public void setTransformOperation(java.lang.String value) { - this.transformOperation = value; - } - - /** - * Gets the value of the 'confidenceScore' field. - * The confidence in this lineage between 0 (low confidence) and 1 (high confidence) */ - public java.lang.Float getConfidenceScore() { - return confidenceScore; - } - - /** - * Sets the value of the 'confidenceScore' field. - * The confidence in this lineage between 0 (low confidence) and 1 (high confidence) * @param value the value to set. - */ - public void setConfidenceScore(java.lang.Float value) { - this.confidenceScore = value; - } - - /** Creates a new FineGrainedLineage RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder(); - } - - /** Creates a new FineGrainedLineage RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder newBuilder(com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder other) { - return new com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder(other); - } - - /** Creates a new FineGrainedLineage RecordBuilder by copying an existing FineGrainedLineage instance */ - public static com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder newBuilder(com.linkedin.pegasus2avro.dataset.FineGrainedLineage other) { - return new com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder(other); - } - - /** - * RecordBuilder for FineGrainedLineage instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.dataset.FineGrainedLineageUpstreamType upstreamType; - private java.util.List upstreams; - private com.linkedin.pegasus2avro.dataset.FineGrainedLineageDownstreamType downstreamType; - private java.util.List downstreams; - private java.lang.String transformOperation; - private float confidenceScore; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.FineGrainedLineage.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder other) { - super(other); - if (isValidValue(fields()[0], other.upstreamType)) { - this.upstreamType = data().deepCopy(fields()[0].schema(), other.upstreamType); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.upstreams)) { - this.upstreams = data().deepCopy(fields()[1].schema(), other.upstreams); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.downstreamType)) { - this.downstreamType = data().deepCopy(fields()[2].schema(), other.downstreamType); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.downstreams)) { - this.downstreams = data().deepCopy(fields()[3].schema(), other.downstreams); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.transformOperation)) { - this.transformOperation = data().deepCopy(fields()[4].schema(), other.transformOperation); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.confidenceScore)) { - this.confidenceScore = data().deepCopy(fields()[5].schema(), other.confidenceScore); - fieldSetFlags()[5] = true; - } - } - - /** Creates a Builder by copying an existing FineGrainedLineage instance */ - private Builder(com.linkedin.pegasus2avro.dataset.FineGrainedLineage other) { - super(com.linkedin.pegasus2avro.dataset.FineGrainedLineage.SCHEMA$); - if (isValidValue(fields()[0], other.upstreamType)) { - this.upstreamType = data().deepCopy(fields()[0].schema(), other.upstreamType); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.upstreams)) { - this.upstreams = data().deepCopy(fields()[1].schema(), other.upstreams); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.downstreamType)) { - this.downstreamType = data().deepCopy(fields()[2].schema(), other.downstreamType); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.downstreams)) { - this.downstreams = data().deepCopy(fields()[3].schema(), other.downstreams); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.transformOperation)) { - this.transformOperation = data().deepCopy(fields()[4].schema(), other.transformOperation); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.confidenceScore)) { - this.confidenceScore = data().deepCopy(fields()[5].schema(), other.confidenceScore); - fieldSetFlags()[5] = true; - } - } - - /** Gets the value of the 'upstreamType' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineageUpstreamType getUpstreamType() { - return upstreamType; - } - - /** Sets the value of the 'upstreamType' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder setUpstreamType(com.linkedin.pegasus2avro.dataset.FineGrainedLineageUpstreamType value) { - validate(fields()[0], value); - this.upstreamType = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'upstreamType' field has been set */ - public boolean hasUpstreamType() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'upstreamType' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder clearUpstreamType() { - upstreamType = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'upstreams' field */ - public java.util.List getUpstreams() { - return upstreams; - } - - /** Sets the value of the 'upstreams' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder setUpstreams(java.util.List value) { - validate(fields()[1], value); - this.upstreams = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'upstreams' field has been set */ - public boolean hasUpstreams() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'upstreams' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder clearUpstreams() { - upstreams = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'downstreamType' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineageDownstreamType getDownstreamType() { - return downstreamType; - } - - /** Sets the value of the 'downstreamType' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder setDownstreamType(com.linkedin.pegasus2avro.dataset.FineGrainedLineageDownstreamType value) { - validate(fields()[2], value); - this.downstreamType = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'downstreamType' field has been set */ - public boolean hasDownstreamType() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'downstreamType' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder clearDownstreamType() { - downstreamType = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'downstreams' field */ - public java.util.List getDownstreams() { - return downstreams; - } - - /** Sets the value of the 'downstreams' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder setDownstreams(java.util.List value) { - validate(fields()[3], value); - this.downstreams = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'downstreams' field has been set */ - public boolean hasDownstreams() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'downstreams' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder clearDownstreams() { - downstreams = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'transformOperation' field */ - public java.lang.String getTransformOperation() { - return transformOperation; - } - - /** Sets the value of the 'transformOperation' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder setTransformOperation(java.lang.String value) { - validate(fields()[4], value); - this.transformOperation = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'transformOperation' field has been set */ - public boolean hasTransformOperation() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'transformOperation' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder clearTransformOperation() { - transformOperation = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'confidenceScore' field */ - public java.lang.Float getConfidenceScore() { - return confidenceScore; - } - - /** Sets the value of the 'confidenceScore' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder setConfidenceScore(float value) { - validate(fields()[5], value); - this.confidenceScore = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'confidenceScore' field has been set */ - public boolean hasConfidenceScore() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'confidenceScore' field */ - public com.linkedin.pegasus2avro.dataset.FineGrainedLineage.Builder clearConfidenceScore() { - fieldSetFlags()[5] = false; - return this; - } - - @Override - public FineGrainedLineage build() { - try { - FineGrainedLineage record = new FineGrainedLineage(); - record.upstreamType = fieldSetFlags()[0] ? this.upstreamType : (com.linkedin.pegasus2avro.dataset.FineGrainedLineageUpstreamType) defaultValue(fields()[0]); - record.upstreams = fieldSetFlags()[1] ? this.upstreams : (java.util.List) defaultValue(fields()[1]); - record.downstreamType = fieldSetFlags()[2] ? this.downstreamType : (com.linkedin.pegasus2avro.dataset.FineGrainedLineageDownstreamType) defaultValue(fields()[2]); - record.downstreams = fieldSetFlags()[3] ? this.downstreams : (java.util.List) defaultValue(fields()[3]); - record.transformOperation = fieldSetFlags()[4] ? this.transformOperation : (java.lang.String) defaultValue(fields()[4]); - record.confidenceScore = fieldSetFlags()[5] ? this.confidenceScore : (java.lang.Float) 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/dataset/FineGrainedLineageDownstreamType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/FineGrainedLineageDownstreamType.java deleted file mode 100644 index 2bca977d83c1f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/FineGrainedLineageDownstreamType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** The type of downstream field(s) in a fine-grained lineage */ -@org.apache.avro.specific.AvroGenerated -public enum FineGrainedLineageDownstreamType { - FIELD, FIELD_SET ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"FineGrainedLineageDownstreamType\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"The type of downstream field(s) in a fine-grained lineage\",\"symbols\":[\"FIELD\",\"FIELD_SET\"],\"symbolDocs\":{\"FIELD\":\" Indicates that the lineage is for a single, specific, downstream field\",\"FIELD_SET\":\" Indicates that the lineage is for a set of downstream fields\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/FineGrainedLineageUpstreamType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/FineGrainedLineageUpstreamType.java deleted file mode 100644 index 185b74c963103..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/FineGrainedLineageUpstreamType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** The type of upstream entity in a fine-grained lineage */ -@org.apache.avro.specific.AvroGenerated -public enum FineGrainedLineageUpstreamType { - FIELD_SET, DATASET, NONE ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"FineGrainedLineageUpstreamType\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"The type of upstream entity in a fine-grained lineage\",\"symbols\":[\"FIELD_SET\",\"DATASET\",\"NONE\"],\"symbolDocs\":{\"DATASET\":\" Indicates that this lineage is originating from upstream dataset(s)\",\"FIELD_SET\":\" Indicates that this lineage is originating from upstream field(s)\",\"NONE\":\" Indicates that there is no upstream lineage i.e. the downstream field is not a derived field\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/Histogram.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/Histogram.java deleted file mode 100644 index 2399d2f916ab6..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/Histogram.java +++ /dev/null @@ -1,196 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Histogram 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\":\"Histogram\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"fields\":[{\"name\":\"boundaries\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},{\"name\":\"heights\",\"type\":{\"type\":\"array\",\"items\":\"float\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.util.List boundaries; - @Deprecated public java.util.List heights; - - /** - * 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 Histogram() {} - - /** - * All-args constructor. - */ - public Histogram(java.util.List boundaries, java.util.List heights) { - this.boundaries = boundaries; - this.heights = heights; - } - - 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 boundaries; - case 1: return heights; - 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: boundaries = (java.util.List)value$; break; - case 1: heights = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'boundaries' field. - */ - public java.util.List getBoundaries() { - return boundaries; - } - - /** - * Sets the value of the 'boundaries' field. - * @param value the value to set. - */ - public void setBoundaries(java.util.List value) { - this.boundaries = value; - } - - /** - * Gets the value of the 'heights' field. - */ - public java.util.List getHeights() { - return heights; - } - - /** - * Sets the value of the 'heights' field. - * @param value the value to set. - */ - public void setHeights(java.util.List value) { - this.heights = value; - } - - /** Creates a new Histogram RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.Histogram.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.Histogram.Builder(); - } - - /** Creates a new Histogram RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.Histogram.Builder newBuilder(com.linkedin.pegasus2avro.dataset.Histogram.Builder other) { - return new com.linkedin.pegasus2avro.dataset.Histogram.Builder(other); - } - - /** Creates a new Histogram RecordBuilder by copying an existing Histogram instance */ - public static com.linkedin.pegasus2avro.dataset.Histogram.Builder newBuilder(com.linkedin.pegasus2avro.dataset.Histogram other) { - return new com.linkedin.pegasus2avro.dataset.Histogram.Builder(other); - } - - /** - * RecordBuilder for Histogram instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List boundaries; - private java.util.List heights; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.Histogram.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.Histogram.Builder other) { - super(other); - if (isValidValue(fields()[0], other.boundaries)) { - this.boundaries = data().deepCopy(fields()[0].schema(), other.boundaries); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.heights)) { - this.heights = data().deepCopy(fields()[1].schema(), other.heights); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing Histogram instance */ - private Builder(com.linkedin.pegasus2avro.dataset.Histogram other) { - super(com.linkedin.pegasus2avro.dataset.Histogram.SCHEMA$); - if (isValidValue(fields()[0], other.boundaries)) { - this.boundaries = data().deepCopy(fields()[0].schema(), other.boundaries); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.heights)) { - this.heights = data().deepCopy(fields()[1].schema(), other.heights); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'boundaries' field */ - public java.util.List getBoundaries() { - return boundaries; - } - - /** Sets the value of the 'boundaries' field */ - public com.linkedin.pegasus2avro.dataset.Histogram.Builder setBoundaries(java.util.List value) { - validate(fields()[0], value); - this.boundaries = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'boundaries' field has been set */ - public boolean hasBoundaries() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'boundaries' field */ - public com.linkedin.pegasus2avro.dataset.Histogram.Builder clearBoundaries() { - boundaries = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'heights' field */ - public java.util.List getHeights() { - return heights; - } - - /** Sets the value of the 'heights' field */ - public com.linkedin.pegasus2avro.dataset.Histogram.Builder setHeights(java.util.List value) { - validate(fields()[1], value); - this.heights = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'heights' field has been set */ - public boolean hasHeights() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'heights' field */ - public com.linkedin.pegasus2avro.dataset.Histogram.Builder clearHeights() { - heights = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public Histogram build() { - try { - Histogram record = new Histogram(); - record.boundaries = fieldSetFlags()[0] ? this.boundaries : (java.util.List) defaultValue(fields()[0]); - record.heights = fieldSetFlags()[1] ? this.heights : (java.util.List) 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/dataset/Quantile.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/Quantile.java deleted file mode 100644 index 4b4cd50217452..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/Quantile.java +++ /dev/null @@ -1,196 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Quantile 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\":\"Quantile\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"fields\":[{\"name\":\"quantile\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.String quantile; - @Deprecated public java.lang.String value; - - /** - * 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 Quantile() {} - - /** - * All-args constructor. - */ - public Quantile(java.lang.String quantile, java.lang.String value) { - this.quantile = quantile; - this.value = value; - } - - 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 quantile; - case 1: return value; - 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: quantile = (java.lang.String)value$; break; - case 1: value = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'quantile' field. - */ - public java.lang.String getQuantile() { - return quantile; - } - - /** - * Sets the value of the 'quantile' field. - * @param value the value to set. - */ - public void setQuantile(java.lang.String value) { - this.quantile = value; - } - - /** - * Gets the value of the 'value' field. - */ - public java.lang.String getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * @param value the value to set. - */ - public void setValue(java.lang.String value) { - this.value = value; - } - - /** Creates a new Quantile RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.Quantile.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.Quantile.Builder(); - } - - /** Creates a new Quantile RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.Quantile.Builder newBuilder(com.linkedin.pegasus2avro.dataset.Quantile.Builder other) { - return new com.linkedin.pegasus2avro.dataset.Quantile.Builder(other); - } - - /** Creates a new Quantile RecordBuilder by copying an existing Quantile instance */ - public static com.linkedin.pegasus2avro.dataset.Quantile.Builder newBuilder(com.linkedin.pegasus2avro.dataset.Quantile other) { - return new com.linkedin.pegasus2avro.dataset.Quantile.Builder(other); - } - - /** - * RecordBuilder for Quantile instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String quantile; - private java.lang.String value; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.Quantile.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.Quantile.Builder other) { - super(other); - if (isValidValue(fields()[0], other.quantile)) { - this.quantile = data().deepCopy(fields()[0].schema(), other.quantile); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.value)) { - this.value = data().deepCopy(fields()[1].schema(), other.value); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing Quantile instance */ - private Builder(com.linkedin.pegasus2avro.dataset.Quantile other) { - super(com.linkedin.pegasus2avro.dataset.Quantile.SCHEMA$); - if (isValidValue(fields()[0], other.quantile)) { - this.quantile = data().deepCopy(fields()[0].schema(), other.quantile); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.value)) { - this.value = data().deepCopy(fields()[1].schema(), other.value); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'quantile' field */ - public java.lang.String getQuantile() { - return quantile; - } - - /** Sets the value of the 'quantile' field */ - public com.linkedin.pegasus2avro.dataset.Quantile.Builder setQuantile(java.lang.String value) { - validate(fields()[0], value); - this.quantile = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'quantile' field has been set */ - public boolean hasQuantile() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'quantile' field */ - public com.linkedin.pegasus2avro.dataset.Quantile.Builder clearQuantile() { - quantile = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.dataset.Quantile.Builder setValue(java.lang.String value) { - validate(fields()[1], value); - this.value = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'value' field has been set */ - public boolean hasValue() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'value' field */ - public com.linkedin.pegasus2avro.dataset.Quantile.Builder clearValue() { - value = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public Quantile build() { - try { - Quantile record = new Quantile(); - record.quantile = fieldSetFlags()[0] ? this.quantile : (java.lang.String) defaultValue(fields()[0]); - record.value = fieldSetFlags()[1] ? this.value : (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/dataset/Upstream.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/Upstream.java deleted file mode 100644 index 91a0e3d7b5a33..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/Upstream.java +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Upstream lineage information about a dataset including the source reporting the lineage */ -@org.apache.avro.specific.AvroGenerated -public class Upstream 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\":\"Upstream\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Upstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"auditStamp\",\"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\":\"Audit stamp containing who reported the lineage and when.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Audit stamp containing who created the lineage and when.\",\"default\":null},{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The upstream dataset the lineage points to\",\"Relationship\":{\"createdActor\":\"upstreams/*/created/actor\",\"createdOn\":\"upstreams/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"upstreams/*/properties\",\"updatedActor\":\"upstreams/*/auditStamp/actor\",\"updatedOn\":\"upstreams/*/auditStamp/time\"},\"Searchable\":{\"fieldName\":\"upstreams\",\"fieldType\":\"URN\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}},\"doc\":\"The type of the lineage\"},{\"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$; } - /** Audit stamp containing who reported the lineage and when. */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp auditStamp; - /** Audit stamp containing who created the lineage and when. */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created; - /** The upstream dataset the lineage points to */ - @Deprecated public java.lang.String dataset; - /** The type of the lineage */ - @Deprecated public com.linkedin.pegasus2avro.dataset.DatasetLineageType type; - /** 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 Upstream() {} - - /** - * All-args constructor. - */ - public Upstream(com.linkedin.pegasus2avro.common.AuditStamp auditStamp, com.linkedin.pegasus2avro.common.AuditStamp created, java.lang.String dataset, com.linkedin.pegasus2avro.dataset.DatasetLineageType type, java.util.Map properties) { - this.auditStamp = auditStamp; - this.created = created; - this.dataset = dataset; - this.type = type; - 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 auditStamp; - case 1: return created; - case 2: return dataset; - case 3: return type; - 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: auditStamp = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 1: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 2: dataset = (java.lang.String)value$; break; - case 3: type = (com.linkedin.pegasus2avro.dataset.DatasetLineageType)value$; break; - case 4: properties = (java.util.Map)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'auditStamp' field. - * Audit stamp containing who reported the lineage and when. */ - public com.linkedin.pegasus2avro.common.AuditStamp getAuditStamp() { - return auditStamp; - } - - /** - * Sets the value of the 'auditStamp' field. - * Audit stamp containing who reported the lineage and when. * @param value the value to set. - */ - public void setAuditStamp(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.auditStamp = value; - } - - /** - * Gets the value of the 'created' field. - * Audit stamp containing who created the lineage and when. */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * Audit stamp containing who created the lineage 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 'dataset' field. - * The upstream dataset the lineage points to */ - public java.lang.String getDataset() { - return dataset; - } - - /** - * Sets the value of the 'dataset' field. - * The upstream dataset the lineage points to * @param value the value to set. - */ - public void setDataset(java.lang.String value) { - this.dataset = value; - } - - /** - * Gets the value of the 'type' field. - * The type of the lineage */ - public com.linkedin.pegasus2avro.dataset.DatasetLineageType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of the lineage * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.dataset.DatasetLineageType value) { - this.type = 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 Upstream RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.Upstream.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.Upstream.Builder(); - } - - /** Creates a new Upstream RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.Upstream.Builder newBuilder(com.linkedin.pegasus2avro.dataset.Upstream.Builder other) { - return new com.linkedin.pegasus2avro.dataset.Upstream.Builder(other); - } - - /** Creates a new Upstream RecordBuilder by copying an existing Upstream instance */ - public static com.linkedin.pegasus2avro.dataset.Upstream.Builder newBuilder(com.linkedin.pegasus2avro.dataset.Upstream other) { - return new com.linkedin.pegasus2avro.dataset.Upstream.Builder(other); - } - - /** - * RecordBuilder for Upstream instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.common.AuditStamp auditStamp; - private com.linkedin.pegasus2avro.common.AuditStamp created; - private java.lang.String dataset; - private com.linkedin.pegasus2avro.dataset.DatasetLineageType type; - private java.util.Map properties; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.Upstream.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.Upstream.Builder other) { - super(other); - if (isValidValue(fields()[0], other.auditStamp)) { - this.auditStamp = data().deepCopy(fields()[0].schema(), other.auditStamp); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.created)) { - this.created = data().deepCopy(fields()[1].schema(), other.created); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.dataset)) { - this.dataset = data().deepCopy(fields()[2].schema(), other.dataset); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.type)) { - this.type = data().deepCopy(fields()[3].schema(), other.type); - 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 Upstream instance */ - private Builder(com.linkedin.pegasus2avro.dataset.Upstream other) { - super(com.linkedin.pegasus2avro.dataset.Upstream.SCHEMA$); - if (isValidValue(fields()[0], other.auditStamp)) { - this.auditStamp = data().deepCopy(fields()[0].schema(), other.auditStamp); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.created)) { - this.created = data().deepCopy(fields()[1].schema(), other.created); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.dataset)) { - this.dataset = data().deepCopy(fields()[2].schema(), other.dataset); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.type)) { - this.type = data().deepCopy(fields()[3].schema(), other.type); - 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 'auditStamp' field */ - public com.linkedin.pegasus2avro.common.AuditStamp getAuditStamp() { - return auditStamp; - } - - /** Sets the value of the 'auditStamp' field */ - public com.linkedin.pegasus2avro.dataset.Upstream.Builder setAuditStamp(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[0], value); - this.auditStamp = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'auditStamp' field has been set */ - public boolean hasAuditStamp() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'auditStamp' field */ - public com.linkedin.pegasus2avro.dataset.Upstream.Builder clearAuditStamp() { - auditStamp = null; - fieldSetFlags()[0] = 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.dataset.Upstream.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[1], value); - this.created = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.dataset.Upstream.Builder clearCreated() { - created = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.dataset.Upstream.Builder setDataset(java.lang.String value) { - validate(fields()[2], value); - this.dataset = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'dataset' field has been set */ - public boolean hasDataset() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'dataset' field */ - public com.linkedin.pegasus2avro.dataset.Upstream.Builder clearDataset() { - dataset = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.dataset.DatasetLineageType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.dataset.Upstream.Builder setType(com.linkedin.pegasus2avro.dataset.DatasetLineageType value) { - validate(fields()[3], value); - this.type = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'type' field has been set */ - public boolean hasType() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'type' field */ - public com.linkedin.pegasus2avro.dataset.Upstream.Builder clearType() { - type = 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.dataset.Upstream.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.dataset.Upstream.Builder clearProperties() { - properties = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public Upstream build() { - try { - Upstream record = new Upstream(); - record.auditStamp = fieldSetFlags()[0] ? this.auditStamp : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[0]); - record.created = fieldSetFlags()[1] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[1]); - record.dataset = fieldSetFlags()[2] ? this.dataset : (java.lang.String) defaultValue(fields()[2]); - record.type = fieldSetFlags()[3] ? this.type : (com.linkedin.pegasus2avro.dataset.DatasetLineageType) 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/dataset/UpstreamLineage.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/UpstreamLineage.java deleted file mode 100644 index d08da39faa251..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/UpstreamLineage.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Upstream lineage of a dataset */ -@org.apache.avro.specific.AvroGenerated -public class UpstreamLineage 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\":\"UpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Upstream lineage of a dataset\",\"fields\":[{\"name\":\"upstreams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Upstream\",\"doc\":\"Upstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"auditStamp\",\"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\":\"Audit stamp containing who reported the lineage and when.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Audit stamp containing who created the lineage and when.\",\"default\":null},{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The upstream dataset the lineage points to\",\"Relationship\":{\"createdActor\":\"upstreams/*/created/actor\",\"createdOn\":\"upstreams/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"upstreams/*/properties\",\"updatedActor\":\"upstreams/*/auditStamp/actor\",\"updatedOn\":\"upstreams/*/auditStamp/time\"},\"Searchable\":{\"fieldName\":\"upstreams\",\"fieldType\":\"URN\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}},\"doc\":\"The type of the lineage\"},{\"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\":\"List of upstream dataset lineage information\"},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FineGrainedLineage\",\"doc\":\"A fine-grained lineage from upstream fields/datasets to downstream field(s)\",\"fields\":[{\"name\":\"upstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageUpstreamType\",\"doc\":\"The type of upstream entity in a fine-grained lineage\",\"symbols\":[\"FIELD_SET\",\"DATASET\",\"NONE\"],\"symbolDocs\":{\"DATASET\":\" Indicates that this lineage is originating from upstream dataset(s)\",\"FIELD_SET\":\" Indicates that this lineage is originating from upstream field(s)\",\"NONE\":\" Indicates that there is no upstream lineage i.e. the downstream field is not a derived field\"}},\"doc\":\"The type of upstream entity\"},{\"name\":\"upstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Upstream entities in the lineage\",\"default\":null},{\"name\":\"downstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageDownstreamType\",\"doc\":\"The type of downstream field(s) in a fine-grained lineage\",\"symbols\":[\"FIELD\",\"FIELD_SET\"],\"symbolDocs\":{\"FIELD\":\" Indicates that the lineage is for a single, specific, downstream field\",\"FIELD_SET\":\" Indicates that the lineage is for a set of downstream fields\"}},\"doc\":\"The type of downstream field(s)\"},{\"name\":\"downstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Downstream fields in the lineage\",\"default\":null},{\"name\":\"transformOperation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The transform operation applied to the upstream entities to produce the downstream field(s)\",\"default\":null},{\"name\":\"confidenceScore\",\"type\":\"float\",\"doc\":\"The confidence in this lineage between 0 (low confidence) and 1 (high confidence)\",\"default\":1.0}]}}],\"doc\":\" List of fine-grained lineage information, including field-level lineage\",\"default\":null,\"Relationship\":{\"/*/upstreams/*\":{\"entityTypes\":[\"dataset\",\"schemaField\"],\"name\":\"DownstreamOf\"}}}],\"Aspect\":{\"name\":\"upstreamLineage\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** List of upstream dataset lineage information */ - @Deprecated public java.util.List upstreams; - /** List of fine-grained lineage information, including field-level lineage */ - @Deprecated public java.util.List fineGrainedLineages; - - /** - * 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 UpstreamLineage() {} - - /** - * All-args constructor. - */ - public UpstreamLineage(java.util.List upstreams, java.util.List fineGrainedLineages) { - this.upstreams = upstreams; - this.fineGrainedLineages = fineGrainedLineages; - } - - 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 upstreams; - case 1: return fineGrainedLineages; - 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: upstreams = (java.util.List)value$; break; - case 1: fineGrainedLineages = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'upstreams' field. - * List of upstream dataset lineage information */ - public java.util.List getUpstreams() { - return upstreams; - } - - /** - * Sets the value of the 'upstreams' field. - * List of upstream dataset lineage information * @param value the value to set. - */ - public void setUpstreams(java.util.List value) { - this.upstreams = value; - } - - /** - * Gets the value of the 'fineGrainedLineages' field. - * List of fine-grained lineage information, including field-level lineage */ - public java.util.List getFineGrainedLineages() { - return fineGrainedLineages; - } - - /** - * Sets the value of the 'fineGrainedLineages' field. - * List of fine-grained lineage information, including field-level lineage * @param value the value to set. - */ - public void setFineGrainedLineages(java.util.List value) { - this.fineGrainedLineages = value; - } - - /** Creates a new UpstreamLineage RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.UpstreamLineage.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.UpstreamLineage.Builder(); - } - - /** Creates a new UpstreamLineage RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.UpstreamLineage.Builder newBuilder(com.linkedin.pegasus2avro.dataset.UpstreamLineage.Builder other) { - return new com.linkedin.pegasus2avro.dataset.UpstreamLineage.Builder(other); - } - - /** Creates a new UpstreamLineage RecordBuilder by copying an existing UpstreamLineage instance */ - public static com.linkedin.pegasus2avro.dataset.UpstreamLineage.Builder newBuilder(com.linkedin.pegasus2avro.dataset.UpstreamLineage other) { - return new com.linkedin.pegasus2avro.dataset.UpstreamLineage.Builder(other); - } - - /** - * RecordBuilder for UpstreamLineage instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List upstreams; - private java.util.List fineGrainedLineages; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.UpstreamLineage.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.UpstreamLineage.Builder other) { - super(other); - if (isValidValue(fields()[0], other.upstreams)) { - this.upstreams = data().deepCopy(fields()[0].schema(), other.upstreams); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.fineGrainedLineages)) { - this.fineGrainedLineages = data().deepCopy(fields()[1].schema(), other.fineGrainedLineages); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing UpstreamLineage instance */ - private Builder(com.linkedin.pegasus2avro.dataset.UpstreamLineage other) { - super(com.linkedin.pegasus2avro.dataset.UpstreamLineage.SCHEMA$); - if (isValidValue(fields()[0], other.upstreams)) { - this.upstreams = data().deepCopy(fields()[0].schema(), other.upstreams); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.fineGrainedLineages)) { - this.fineGrainedLineages = data().deepCopy(fields()[1].schema(), other.fineGrainedLineages); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'upstreams' field */ - public java.util.List getUpstreams() { - return upstreams; - } - - /** Sets the value of the 'upstreams' field */ - public com.linkedin.pegasus2avro.dataset.UpstreamLineage.Builder setUpstreams(java.util.List value) { - validate(fields()[0], value); - this.upstreams = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'upstreams' field has been set */ - public boolean hasUpstreams() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'upstreams' field */ - public com.linkedin.pegasus2avro.dataset.UpstreamLineage.Builder clearUpstreams() { - upstreams = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'fineGrainedLineages' field */ - public java.util.List getFineGrainedLineages() { - return fineGrainedLineages; - } - - /** Sets the value of the 'fineGrainedLineages' field */ - public com.linkedin.pegasus2avro.dataset.UpstreamLineage.Builder setFineGrainedLineages(java.util.List value) { - validate(fields()[1], value); - this.fineGrainedLineages = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'fineGrainedLineages' field has been set */ - public boolean hasFineGrainedLineages() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'fineGrainedLineages' field */ - public com.linkedin.pegasus2avro.dataset.UpstreamLineage.Builder clearFineGrainedLineages() { - fineGrainedLineages = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public UpstreamLineage build() { - try { - UpstreamLineage record = new UpstreamLineage(); - record.upstreams = fieldSetFlags()[0] ? this.upstreams : (java.util.List) defaultValue(fields()[0]); - record.fineGrainedLineages = fieldSetFlags()[1] ? this.fineGrainedLineages : (java.util.List) 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/dataset/UpstreamLineageDelta.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/UpstreamLineageDelta.java deleted file mode 100644 index b50f7db5ae1b7..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/UpstreamLineageDelta.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Describes a delta change to a dataset upstream lineage */ -@org.apache.avro.specific.AvroGenerated -public class UpstreamLineageDelta 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\":\"UpstreamLineageDelta\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Describes a delta change to a dataset upstream lineage\",\"fields\":[{\"name\":\"upstreamsToUpdate\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Upstream\",\"doc\":\"Upstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"auditStamp\",\"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\":\"Audit stamp containing who reported the lineage and when.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Audit stamp containing who created the lineage and when.\",\"default\":null},{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The upstream dataset the lineage points to\",\"Relationship\":{\"createdActor\":\"upstreams/*/created/actor\",\"createdOn\":\"upstreams/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"upstreams/*/properties\",\"updatedActor\":\"upstreams/*/auditStamp/actor\",\"updatedOn\":\"upstreams/*/auditStamp/time\"},\"Searchable\":{\"fieldName\":\"upstreams\",\"fieldType\":\"URN\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}},\"doc\":\"The type of the lineage\"},{\"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\":\"The list of upstream lineages to be updated for a dataset\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The list of upstream lineages to be updated for a dataset */ - @Deprecated public java.util.List upstreamsToUpdate; - - /** - * 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 UpstreamLineageDelta() {} - - /** - * All-args constructor. - */ - public UpstreamLineageDelta(java.util.List upstreamsToUpdate) { - this.upstreamsToUpdate = upstreamsToUpdate; - } - - 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 upstreamsToUpdate; - 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: upstreamsToUpdate = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'upstreamsToUpdate' field. - * The list of upstream lineages to be updated for a dataset */ - public java.util.List getUpstreamsToUpdate() { - return upstreamsToUpdate; - } - - /** - * Sets the value of the 'upstreamsToUpdate' field. - * The list of upstream lineages to be updated for a dataset * @param value the value to set. - */ - public void setUpstreamsToUpdate(java.util.List value) { - this.upstreamsToUpdate = value; - } - - /** Creates a new UpstreamLineageDelta RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta.Builder(); - } - - /** Creates a new UpstreamLineageDelta RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta.Builder newBuilder(com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta.Builder other) { - return new com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta.Builder(other); - } - - /** Creates a new UpstreamLineageDelta RecordBuilder by copying an existing UpstreamLineageDelta instance */ - public static com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta.Builder newBuilder(com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta other) { - return new com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta.Builder(other); - } - - /** - * RecordBuilder for UpstreamLineageDelta instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List upstreamsToUpdate; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta.Builder other) { - super(other); - if (isValidValue(fields()[0], other.upstreamsToUpdate)) { - this.upstreamsToUpdate = data().deepCopy(fields()[0].schema(), other.upstreamsToUpdate); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing UpstreamLineageDelta instance */ - private Builder(com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta other) { - super(com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta.SCHEMA$); - if (isValidValue(fields()[0], other.upstreamsToUpdate)) { - this.upstreamsToUpdate = data().deepCopy(fields()[0].schema(), other.upstreamsToUpdate); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'upstreamsToUpdate' field */ - public java.util.List getUpstreamsToUpdate() { - return upstreamsToUpdate; - } - - /** Sets the value of the 'upstreamsToUpdate' field */ - public com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta.Builder setUpstreamsToUpdate(java.util.List value) { - validate(fields()[0], value); - this.upstreamsToUpdate = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'upstreamsToUpdate' field has been set */ - public boolean hasUpstreamsToUpdate() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'upstreamsToUpdate' field */ - public com.linkedin.pegasus2avro.dataset.UpstreamLineageDelta.Builder clearUpstreamsToUpdate() { - upstreamsToUpdate = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public UpstreamLineageDelta build() { - try { - UpstreamLineageDelta record = new UpstreamLineageDelta(); - record.upstreamsToUpdate = fieldSetFlags()[0] ? this.upstreamsToUpdate : (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/dataset/ValueFrequency.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/ValueFrequency.java deleted file mode 100644 index 2d351a1325c38..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/ValueFrequency.java +++ /dev/null @@ -1,195 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class ValueFrequency 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\":\"ValueFrequency\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"frequency\",\"type\":\"long\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.String value; - @Deprecated public long frequency; - - /** - * 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 ValueFrequency() {} - - /** - * All-args constructor. - */ - public ValueFrequency(java.lang.String value, java.lang.Long frequency) { - this.value = value; - this.frequency = frequency; - } - - 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 frequency; - 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: frequency = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'value' field. - */ - public java.lang.String getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * @param value the value to set. - */ - public void setValue(java.lang.String value) { - this.value = value; - } - - /** - * Gets the value of the 'frequency' field. - */ - public java.lang.Long getFrequency() { - return frequency; - } - - /** - * Sets the value of the 'frequency' field. - * @param value the value to set. - */ - public void setFrequency(java.lang.Long value) { - this.frequency = value; - } - - /** Creates a new ValueFrequency RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.ValueFrequency.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.ValueFrequency.Builder(); - } - - /** Creates a new ValueFrequency RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.ValueFrequency.Builder newBuilder(com.linkedin.pegasus2avro.dataset.ValueFrequency.Builder other) { - return new com.linkedin.pegasus2avro.dataset.ValueFrequency.Builder(other); - } - - /** Creates a new ValueFrequency RecordBuilder by copying an existing ValueFrequency instance */ - public static com.linkedin.pegasus2avro.dataset.ValueFrequency.Builder newBuilder(com.linkedin.pegasus2avro.dataset.ValueFrequency other) { - return new com.linkedin.pegasus2avro.dataset.ValueFrequency.Builder(other); - } - - /** - * RecordBuilder for ValueFrequency instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String value; - private long frequency; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.ValueFrequency.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.ValueFrequency.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.frequency)) { - this.frequency = data().deepCopy(fields()[1].schema(), other.frequency); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing ValueFrequency instance */ - private Builder(com.linkedin.pegasus2avro.dataset.ValueFrequency other) { - super(com.linkedin.pegasus2avro.dataset.ValueFrequency.SCHEMA$); - if (isValidValue(fields()[0], other.value)) { - this.value = data().deepCopy(fields()[0].schema(), other.value); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.frequency)) { - this.frequency = data().deepCopy(fields()[1].schema(), other.frequency); - 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.dataset.ValueFrequency.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.dataset.ValueFrequency.Builder clearValue() { - value = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'frequency' field */ - public java.lang.Long getFrequency() { - return frequency; - } - - /** Sets the value of the 'frequency' field */ - public com.linkedin.pegasus2avro.dataset.ValueFrequency.Builder setFrequency(long value) { - validate(fields()[1], value); - this.frequency = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'frequency' field has been set */ - public boolean hasFrequency() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'frequency' field */ - public com.linkedin.pegasus2avro.dataset.ValueFrequency.Builder clearFrequency() { - fieldSetFlags()[1] = false; - return this; - } - - @Override - public ValueFrequency build() { - try { - ValueFrequency record = new ValueFrequency(); - record.value = fieldSetFlags()[0] ? this.value : (java.lang.String) defaultValue(fields()[0]); - record.frequency = fieldSetFlags()[1] ? this.frequency : (java.lang.Long) 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/dataset/ViewProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/ViewProperties.java deleted file mode 100644 index f9bd35e770318..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/dataset/ViewProperties.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.dataset; -@SuppressWarnings("all") -/** Details about a View. -e.g. Gets activated when subTypes is view */ -@org.apache.avro.specific.AvroGenerated -public class ViewProperties 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\":\"ViewProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Details about a View. \\ne.g. Gets activated when subTypes is view\",\"fields\":[{\"name\":\"materialized\",\"type\":\"boolean\",\"doc\":\"Whether the view is materialized\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"viewLogic\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The view logic\"},{\"name\":\"viewLanguage\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The view logic language / dialect\"}],\"Aspect\":{\"name\":\"viewProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Whether the view is materialized */ - @Deprecated public boolean materialized; - /** The view logic */ - @Deprecated public java.lang.String viewLogic; - /** The view logic language / dialect */ - @Deprecated public java.lang.String viewLanguage; - - /** - * 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 ViewProperties() {} - - /** - * All-args constructor. - */ - public ViewProperties(java.lang.Boolean materialized, java.lang.String viewLogic, java.lang.String viewLanguage) { - this.materialized = materialized; - this.viewLogic = viewLogic; - this.viewLanguage = viewLanguage; - } - - 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 materialized; - case 1: return viewLogic; - case 2: return viewLanguage; - 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: materialized = (java.lang.Boolean)value$; break; - case 1: viewLogic = (java.lang.String)value$; break; - case 2: viewLanguage = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'materialized' field. - * Whether the view is materialized */ - public java.lang.Boolean getMaterialized() { - return materialized; - } - - /** - * Sets the value of the 'materialized' field. - * Whether the view is materialized * @param value the value to set. - */ - public void setMaterialized(java.lang.Boolean value) { - this.materialized = value; - } - - /** - * Gets the value of the 'viewLogic' field. - * The view logic */ - public java.lang.String getViewLogic() { - return viewLogic; - } - - /** - * Sets the value of the 'viewLogic' field. - * The view logic * @param value the value to set. - */ - public void setViewLogic(java.lang.String value) { - this.viewLogic = value; - } - - /** - * Gets the value of the 'viewLanguage' field. - * The view logic language / dialect */ - public java.lang.String getViewLanguage() { - return viewLanguage; - } - - /** - * Sets the value of the 'viewLanguage' field. - * The view logic language / dialect * @param value the value to set. - */ - public void setViewLanguage(java.lang.String value) { - this.viewLanguage = value; - } - - /** Creates a new ViewProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.dataset.ViewProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.dataset.ViewProperties.Builder(); - } - - /** Creates a new ViewProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.dataset.ViewProperties.Builder newBuilder(com.linkedin.pegasus2avro.dataset.ViewProperties.Builder other) { - return new com.linkedin.pegasus2avro.dataset.ViewProperties.Builder(other); - } - - /** Creates a new ViewProperties RecordBuilder by copying an existing ViewProperties instance */ - public static com.linkedin.pegasus2avro.dataset.ViewProperties.Builder newBuilder(com.linkedin.pegasus2avro.dataset.ViewProperties other) { - return new com.linkedin.pegasus2avro.dataset.ViewProperties.Builder(other); - } - - /** - * RecordBuilder for ViewProperties instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private boolean materialized; - private java.lang.String viewLogic; - private java.lang.String viewLanguage; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.dataset.ViewProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.dataset.ViewProperties.Builder other) { - super(other); - if (isValidValue(fields()[0], other.materialized)) { - this.materialized = data().deepCopy(fields()[0].schema(), other.materialized); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.viewLogic)) { - this.viewLogic = data().deepCopy(fields()[1].schema(), other.viewLogic); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.viewLanguage)) { - this.viewLanguage = data().deepCopy(fields()[2].schema(), other.viewLanguage); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing ViewProperties instance */ - private Builder(com.linkedin.pegasus2avro.dataset.ViewProperties other) { - super(com.linkedin.pegasus2avro.dataset.ViewProperties.SCHEMA$); - if (isValidValue(fields()[0], other.materialized)) { - this.materialized = data().deepCopy(fields()[0].schema(), other.materialized); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.viewLogic)) { - this.viewLogic = data().deepCopy(fields()[1].schema(), other.viewLogic); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.viewLanguage)) { - this.viewLanguage = data().deepCopy(fields()[2].schema(), other.viewLanguage); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'materialized' field */ - public java.lang.Boolean getMaterialized() { - return materialized; - } - - /** Sets the value of the 'materialized' field */ - public com.linkedin.pegasus2avro.dataset.ViewProperties.Builder setMaterialized(boolean value) { - validate(fields()[0], value); - this.materialized = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'materialized' field has been set */ - public boolean hasMaterialized() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'materialized' field */ - public com.linkedin.pegasus2avro.dataset.ViewProperties.Builder clearMaterialized() { - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'viewLogic' field */ - public java.lang.String getViewLogic() { - return viewLogic; - } - - /** Sets the value of the 'viewLogic' field */ - public com.linkedin.pegasus2avro.dataset.ViewProperties.Builder setViewLogic(java.lang.String value) { - validate(fields()[1], value); - this.viewLogic = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'viewLogic' field has been set */ - public boolean hasViewLogic() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'viewLogic' field */ - public com.linkedin.pegasus2avro.dataset.ViewProperties.Builder clearViewLogic() { - viewLogic = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'viewLanguage' field */ - public java.lang.String getViewLanguage() { - return viewLanguage; - } - - /** Sets the value of the 'viewLanguage' field */ - public com.linkedin.pegasus2avro.dataset.ViewProperties.Builder setViewLanguage(java.lang.String value) { - validate(fields()[2], value); - this.viewLanguage = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'viewLanguage' field has been set */ - public boolean hasViewLanguage() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'viewLanguage' field */ - public com.linkedin.pegasus2avro.dataset.ViewProperties.Builder clearViewLanguage() { - viewLanguage = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public ViewProperties build() { - try { - ViewProperties record = new ViewProperties(); - record.materialized = fieldSetFlags()[0] ? this.materialized : (java.lang.Boolean) defaultValue(fields()[0]); - record.viewLogic = fieldSetFlags()[1] ? this.viewLogic : (java.lang.String) defaultValue(fields()[1]); - record.viewLanguage = fieldSetFlags()[2] ? this.viewLanguage : (java.lang.String) 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/domain/DomainProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/domain/DomainProperties.java deleted file mode 100644 index 65faea5868b3c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/domain/DomainProperties.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.domain; -@SuppressWarnings("all") -/** Information about a Domain */ -@org.apache.avro.specific.AvroGenerated -public class DomainProperties 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\":\"DomainProperties\",\"namespace\":\"com.linkedin.pegasus2avro.domain\",\"doc\":\"Information about a Domain\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the Domain\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description of the Domain\",\"default\":null},{\"name\":\"created\",\"type\":[\"null\",{\"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\":\"Created Audit stamp\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdTime\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"name\":\"domainProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Display name of the Domain */ - @Deprecated public java.lang.String name; - /** Description of the Domain */ - @Deprecated public java.lang.String description; - /** Created Audit stamp */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created; - - /** - * 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 DomainProperties() {} - - /** - * All-args constructor. - */ - public DomainProperties(java.lang.String name, java.lang.String description, com.linkedin.pegasus2avro.common.AuditStamp created) { - this.name = name; - this.description = description; - this.created = created; - } - - 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 description; - case 2: return created; - 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: description = (java.lang.String)value$; break; - case 2: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Display name of the Domain */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Display name of the Domain * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'description' field. - * Description of the Domain */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Description of the Domain * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'created' field. - * Created Audit stamp */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * Created Audit stamp * @param value the value to set. - */ - public void setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.created = value; - } - - /** Creates a new DomainProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.domain.DomainProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.domain.DomainProperties.Builder(); - } - - /** Creates a new DomainProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.domain.DomainProperties.Builder newBuilder(com.linkedin.pegasus2avro.domain.DomainProperties.Builder other) { - return new com.linkedin.pegasus2avro.domain.DomainProperties.Builder(other); - } - - /** Creates a new DomainProperties RecordBuilder by copying an existing DomainProperties instance */ - public static com.linkedin.pegasus2avro.domain.DomainProperties.Builder newBuilder(com.linkedin.pegasus2avro.domain.DomainProperties other) { - return new com.linkedin.pegasus2avro.domain.DomainProperties.Builder(other); - } - - /** - * RecordBuilder for DomainProperties 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 description; - private com.linkedin.pegasus2avro.common.AuditStamp created; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.domain.DomainProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.domain.DomainProperties.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.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.created)) { - this.created = data().deepCopy(fields()[2].schema(), other.created); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing DomainProperties instance */ - private Builder(com.linkedin.pegasus2avro.domain.DomainProperties other) { - super(com.linkedin.pegasus2avro.domain.DomainProperties.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.created)) { - this.created = data().deepCopy(fields()[2].schema(), other.created); - fieldSetFlags()[2] = 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.domain.DomainProperties.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.domain.DomainProperties.Builder clearName() { - name = null; - fieldSetFlags()[0] = 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.domain.DomainProperties.Builder setDescription(java.lang.String value) { - validate(fields()[1], value); - this.description = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.domain.DomainProperties.Builder clearDescription() { - description = 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.domain.DomainProperties.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.domain.DomainProperties.Builder clearCreated() { - created = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public DomainProperties build() { - try { - DomainProperties record = new DomainProperties(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.description = fieldSetFlags()[1] ? this.description : (java.lang.String) defaultValue(fields()[1]); - record.created = fieldSetFlags()[2] ? this.created : (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/domain/Domains.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/domain/Domains.java deleted file mode 100644 index bfa6e2373db93..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/domain/Domains.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.domain; -@SuppressWarnings("all") -/** Links from an Asset to its Domains */ -@org.apache.avro.specific.AvroGenerated -public class Domains 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\":\"Domains\",\"namespace\":\"com.linkedin.pegasus2avro.domain\",\"doc\":\"Links from an Asset to its Domains\",\"fields\":[{\"name\":\"domains\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"The Domains attached to an Asset\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"domain\"],\"name\":\"AssociatedWith\"}},\"Searchable\":{\"/*\":{\"addToFilters\":true,\"fieldName\":\"domains\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Domain\",\"hasValuesFieldName\":\"hasDomain\"}}}],\"Aspect\":{\"name\":\"domains\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The Domains attached to an Asset */ - @Deprecated public java.util.List domains; - - /** - * 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 Domains() {} - - /** - * All-args constructor. - */ - public Domains(java.util.List domains) { - this.domains = domains; - } - - 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 domains; - 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: domains = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'domains' field. - * The Domains attached to an Asset */ - public java.util.List getDomains() { - return domains; - } - - /** - * Sets the value of the 'domains' field. - * The Domains attached to an Asset * @param value the value to set. - */ - public void setDomains(java.util.List value) { - this.domains = value; - } - - /** Creates a new Domains RecordBuilder */ - public static com.linkedin.pegasus2avro.domain.Domains.Builder newBuilder() { - return new com.linkedin.pegasus2avro.domain.Domains.Builder(); - } - - /** Creates a new Domains RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.domain.Domains.Builder newBuilder(com.linkedin.pegasus2avro.domain.Domains.Builder other) { - return new com.linkedin.pegasus2avro.domain.Domains.Builder(other); - } - - /** Creates a new Domains RecordBuilder by copying an existing Domains instance */ - public static com.linkedin.pegasus2avro.domain.Domains.Builder newBuilder(com.linkedin.pegasus2avro.domain.Domains other) { - return new com.linkedin.pegasus2avro.domain.Domains.Builder(other); - } - - /** - * RecordBuilder for Domains instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List domains; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.domain.Domains.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.domain.Domains.Builder other) { - super(other); - if (isValidValue(fields()[0], other.domains)) { - this.domains = data().deepCopy(fields()[0].schema(), other.domains); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing Domains instance */ - private Builder(com.linkedin.pegasus2avro.domain.Domains other) { - super(com.linkedin.pegasus2avro.domain.Domains.SCHEMA$); - if (isValidValue(fields()[0], other.domains)) { - this.domains = data().deepCopy(fields()[0].schema(), other.domains); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'domains' field */ - public java.util.List getDomains() { - return domains; - } - - /** Sets the value of the 'domains' field */ - public com.linkedin.pegasus2avro.domain.Domains.Builder setDomains(java.util.List value) { - validate(fields()[0], value); - this.domains = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'domains' field has been set */ - public boolean hasDomains() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'domains' field */ - public com.linkedin.pegasus2avro.domain.Domains.Builder clearDomains() { - domains = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public Domains build() { - try { - Domains record = new Domains(); - record.domains = fieldSetFlags()[0] ? this.domains : (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/entity/Aspect.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/entity/Aspect.java deleted file mode 100644 index 2da6d7354ab8c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/entity/Aspect.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.entity; -@SuppressWarnings("all") -/** Placeholder PDL record to store the aspect in the response. By using this place-holder, metadata-service can return -any type of aspect without having to define a single union class */ -@org.apache.avro.specific.AvroGenerated -public class Aspect 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\":\"Aspect\",\"namespace\":\"com.linkedin.pegasus2avro.entity\",\"doc\":\"Placeholder PDL record to store the aspect in the response. By using this place-holder, metadata-service can return\\nany type of aspect without having to define a single union class\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new Aspect RecordBuilder */ - public static com.linkedin.pegasus2avro.entity.Aspect.Builder newBuilder() { - return new com.linkedin.pegasus2avro.entity.Aspect.Builder(); - } - - /** Creates a new Aspect RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.entity.Aspect.Builder newBuilder(com.linkedin.pegasus2avro.entity.Aspect.Builder other) { - return new com.linkedin.pegasus2avro.entity.Aspect.Builder(other); - } - - /** Creates a new Aspect RecordBuilder by copying an existing Aspect instance */ - public static com.linkedin.pegasus2avro.entity.Aspect.Builder newBuilder(com.linkedin.pegasus2avro.entity.Aspect other) { - return new com.linkedin.pegasus2avro.entity.Aspect.Builder(other); - } - - /** - * RecordBuilder for Aspect instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.entity.Aspect.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.entity.Aspect.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Aspect instance */ - private Builder(com.linkedin.pegasus2avro.entity.Aspect other) { - super(com.linkedin.pegasus2avro.entity.Aspect.SCHEMA$); - } - - @Override - public Aspect build() { - try { - Aspect record = new Aspect(); - 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/entity/AspectType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/entity/AspectType.java deleted file mode 100644 index 1a25ba4603ccc..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/entity/AspectType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.entity; -@SuppressWarnings("all") -/** The type of a DataHub aspect */ -@org.apache.avro.specific.AvroGenerated -public enum AspectType { - VERSIONED, TIMESERIES ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"AspectType\",\"namespace\":\"com.linkedin.pegasus2avro.entity\",\"doc\":\"The type of a DataHub aspect\",\"symbols\":[\"VERSIONED\",\"TIMESERIES\"],\"symbolDocs\":{\"TIMESERIES\":\"Designates an aspect that represents a point-in-time data point\",\"VERSIONED\":\"Designates an aspect that has a monotonically increasing version number\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/entity/Entity.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/entity/Entity.java deleted file mode 100644 index e122855cb19d3..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/entity/Entity.java +++ /dev/null @@ -1,142 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.entity; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Entity 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\":\"Entity\",\"namespace\":\"com.linkedin.pegasus2avro.entity\",\"fields\":[{\"name\":\"value\",\"type\":[{\"type\":\"record\",\"name\":\"ChartSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Chart entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.ChartUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"ChartKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Chart\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"chartId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234'\"}],\"Aspect\":{\"name\":\"chartKey\"}},{\"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\"}},{\"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\"}},{\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied ","glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the chart. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"chartKey\",\"name\":\"chart\"}},{\"type\":\"record\",\"name\":\"CorpGroupSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific CorpGroup entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpGroupUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"CorpGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpGroup\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub.\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}}],\"Aspect\":{\"name\":\"corpGroupKey\"}},{\"type\":\"record\",\"name\":\"CorpGroupInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Information about a Corp Group ingested from a third party source\",\"fields\":[{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The name of the group.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email of this group\",\"default\":null},{\"name\":\"admins\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"owners of this group\\nDeprecated! Replaced by Ownership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"OwnedBy\"}},\"deprecated\":true},{\"name\":\"members\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of ldap urn in this group.\\nDeprecated! Replaced by GroupMembership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of groups in this group.\\nDeprecated! This field is unused.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A description of the group.\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack channel for the group\",\"default\":null},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Created Audit stamp\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdTime\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpGroupUrn\"],\"name\":\"corpGroupInfo\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the LdapUser. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"corpGroupKey\",\"name\":\"corpGroup\"}},{\"type\":\"record\",\"name\":\"CorpUserSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific CorpUser entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpuserUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"CorpUserKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpUser\",\"fields\":[{\"name\":\"username\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the AD/LDAP user.\",\"Searchable\":{\"boostScore\":2.0,\"enableAutocomplete\":true,\"fieldName\":\"ldap\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"corpUserKey\"}},{\"type\":\"record\",\"name\":\"CorpUserInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information\",\"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\":\"active\",\"type\":\"boolean\",\"doc\":\"Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":2.0}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"displayName of this user , e.g. Hang Zhang(DataHQ)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email address of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"title of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"managerUrn\",\"type\":[\"nul","l\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"direct manager of this user\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"corpuser\"],\"name\":\"ReportsTo\"},\"Searchable\":{\"fieldName\":\"managerLdap\",\"fieldType\":\"URN\",\"queryByDefault\":true},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpuserUrn\"}},{\"name\":\"departmentId\",\"type\":[\"null\",\"long\"],\"doc\":\"department id this user belong to\",\"default\":null},{\"name\":\"departmentName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"department name this user belong to\",\"default\":null},{\"name\":\"firstName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"first name of this user\",\"default\":null},{\"name\":\"lastName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"last name of this user\",\"default\":null},{\"name\":\"fullName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Common name of this user, format is firstName + lastName (split by a whitespace)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"countryCode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"two uppercase letters country code. e.g. US\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserEditableInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information that can be edited from UI\",\"fields\":[{\"name\":\"aboutMe\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"About me section of the user\",\"default\":null},{\"name\":\"teams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Teams that the user belongs to e.g. Metadata\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"skills\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Skills that the user possesses e.g. Machine Learning\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"pictureLink\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A URL which points to a picture which user wants to set as a profile photo\",\"default\":\"https://raw.githubusercontent.com/datahub-project/datahub/master/datahub-web-react/src/images/default_avatar.png\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native display name\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native Title, e.g. 'Software Engineer'\",\"default\":null},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack handle for the user\",\"default\":null},{\"name\":\"phone\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Phone number to contact the user\",\"default\":null},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Email address to contact the user\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserEditableInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserStatus\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"The status of the user, e.g. provisioned, active, suspended, etc.\",\"fields\":[{\"name\":\"status\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit stamp containing who last modified the status and when.\"}],\"Aspect\":{\"name\":\"corpUserStatus\"}},{\"type\":\"record\",\"name\":\"GroupMembership\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Carries information about the CorpGroups a user is in.\",\"fields\":[{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsMemberOfGroup\"}}}],\"Aspect\":{\"name\":\"groupMembership\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the CorpUser. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"corpUserKey\",\"name\":\"corpuser\"}},{\"type\":\"record\",\"name\":\"DashboardSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Dashboard entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DashboardUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DashboardKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dashboard\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"dashboardId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234'\"}],\"Aspect\":{\"name\":\"dashboardKey\"}},{\"type\":\"record\",\"name\":\"DashboardInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"doc\":\"Information about a dashboard\",\"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 dashboard\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Detailed description about the dashboard\",\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"charts\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Charts in a dashboard\\nDeprecated! Use chartEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\"}},\"deprecated\":true},{\"name\":\"chartEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Charts in a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"chartEdges/*/created/actor\",\"createdOn\":\"chartEdges/*/created/time\",\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\",\"properties\":\"chartEdges/*/properties\",\"updatedActor\":\"chartEdges/*/lastModified/actor\",\"updatedOn\":\"chartEdges/*/lastModified/time\"}}},{\"name\":\"datasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Datasets consumed by a dashboard\\nDeprecated! Use datasetEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"deprecated\":true},{\"name\":\"datasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Datasets consumed by a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"datasetEdges/*/created/actor\",\"createdOn\":\"datasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"datasetEdges/*/properties\",\"updatedActor\":\"datasetEdges/*/lastModified/actor\"",",\"updatedOn\":\"datasetEdges/*/lastModified/time\"}}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.ChangeAuditStamps\",\"doc\":\"Captures information about who created/last modified/deleted this dashboard and when\"},{\"name\":\"dashboardUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"access\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AccessLevel\"],\"doc\":\"Access level for the dashboard\",\"default\":null,\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"KEYWORD\",\"filterNameOverride\":\"Access Level\"}},{\"name\":\"lastRefreshed\",\"type\":[\"null\",\"long\"],\"doc\":\"The time when this dashboard last refreshed\",\"default\":null}],\"Aspect\":{\"name\":\"dashboardInfo\"}},{\"type\":\"record\",\"name\":\"EditableDashboardProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 dashboard\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDashboardProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the dashboard. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dashboardKey\",\"name\":\"dashboard\"}},{\"type\":\"record\",\"name\":\"DataFlowSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific DataFlow entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataFlowUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataFlowKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Flow\",\"fields\":[{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Workflow manager like azkaban, airflow which orchestrates the flow\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"flowId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data flow\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"cluster\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Cluster where the flow is executed\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataFlowKey\"}},{\"type\":\"record\",\"name\":\"DataFlowInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing flow\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flow name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flow description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"project\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional project/namespace associated with the flow\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}},{\"name\":\"created\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event timestamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"name\":\"dataFlowInfo\"}},{\"type\":\"record\",\"name\":\"EditableDataFlowProperties\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 data flow\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDataFlowProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro",".common.Status\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the data flow. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataFlowKey\",\"name\":\"dataFlow\"}},{\"type\":\"record\",\"name\":\"DataJobSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific DataJob entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataJobUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataJobKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Job\",\"fields\":[{\"name\":\"flow\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized data processing flow urn representing the flow for the job\",\"Relationship\":{\"entityTypes\":[\"dataFlow\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"dataFlow\",\"fieldType\":\"URN_PARTIAL\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"jobId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data job\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataJobKey\"}},{\"type\":\"record\",\"name\":\"DataJobInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing job\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Job name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Job description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"type\",\"type\":[{\"type\":\"enum\",\"name\":\"AzkabanJobType\",\"namespace\":\"com.linkedin.pegasus2avro.datajob.azkaban\",\"doc\":\"The various types of support azkaban jobs\",\"symbols\":[\"COMMAND\",\"HADOOP_JAVA\",\"HADOOP_SHELL\",\"HIVE\",\"PIG\",\"SQL\",\"GLUE\"],\"symbolDocs\":{\"COMMAND\":\"The command job type is one of the basic built-in types. It runs multiple UNIX commands using java processbuilder.\\nUpon execution, Azkaban spawns off a process to run the command.\",\"GLUE\":\"Glue type is for running AWS Glue job transforms.\",\"HADOOP_JAVA\":\"Runs a java program with ability to access Hadoop cluster.\\nhttps://azkaban.readthedocs.io/en/latest/jobTypes.html#java-job-type\",\"HADOOP_SHELL\":\"In large part, this is the same Command type. The difference is its ability to talk to a Hadoop cluster\\nsecurely, via Hadoop tokens.\",\"HIVE\":\"Hive type is for running Hive jobs.\",\"PIG\":\"Pig type is for running Pig jobs.\",\"SQL\":\"SQL is for running Presto, mysql queries etc\"}},{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Datajob type\\n*NOTE**: AzkabanJobType is deprecated. Please use strings instead.\"},{\"name\":\"flowUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataFlow urn that this job is part of\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataFlowUrn\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"JobStatus\",\"doc\":\"Job statuses\",\"symbols\":[\"STARTING\",\"IN_PROGRESS\",\"STOPPING\",\"STOPPED\",\"COMPLETED\",\"FAILED\",\"UNKNOWN\",\"SKIPPED\"],\"symbolDocs\":{\"COMPLETED\":\"Jobs with successful completion.\",\"FAILED\":\"Jobs that have failed.\",\"IN_PROGRESS\":\"Jobs currently running.\",\"SKIPPED\":\"Jobs that have been skipped.\",\"STARTING\":\"Jobs being initialized.\",\"STOPPED\":\"Jobs that have stopped.\",\"STOPPING\":\"Jobs being stopped.\",\"UNKNOWN\":\"Jobs with unknown status (either unmappable or unavailable)\"}}],\"doc\":\"Status of the job - Deprecated for Data Process Instance model.\",\"default\":null,\"deprecated\":\"Use Data Process Instance model, instead\"}],\"Aspect\":{\"name\":\"dataJobInfo\"}},{\"type\":\"record\",\"name\":\"DataJobInputOutput\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about the inputs and outputs of a Data processing job\",\"fields\":[{\"name\":\"inputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Input datasets consumed by the data job during processing\\nDeprecated! Use inputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"inputDatasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Input datasets consumed by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatasetEdges/*/created/actor\",\"createdOn\":\"inputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"inputDatasetEdges/*/properties\",\"updatedActor\":\"inputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"inputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Output datasets produced by the data job during processing\\nDeprecated! Use outputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"outputDatasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Output datasets produced by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"outputDatasetEdges/*/created/actor\",\"createdOn\":\"outputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\",\"properties\":\"outputDatasetEdges/*/properties\",\"updatedActor\":\"outputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"outputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"outputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}},{\"name\":\"inputDatajobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Input datajobs that this data job depends on\\nDeprecated! Use inputDatajobEdges instead.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\"}},\"deprecated\":true},{\"name\":\"inputDatajobEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Input datajobs that this data job depends on\",\"default\":null,\"Relationship","\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatajobEdges/*/created/actor\",\"createdOn\":\"inputDatajobEdges/*/created/time\",\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"inputDatajobEdges/*/properties\",\"updatedActor\":\"inputDatajobEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatajobEdges/*/lastModified/time\"}}},{\"name\":\"inputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the input datasets used by this job\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputFields\",\"queryByDefault\":false}}},{\"name\":\"outputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the output datasets this job writes to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputFields\",\"queryByDefault\":false}}},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FineGrainedLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"A fine-grained lineage from upstream fields/datasets to downstream field(s)\",\"fields\":[{\"name\":\"upstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageUpstreamType\",\"doc\":\"The type of upstream entity in a fine-grained lineage\",\"symbols\":[\"FIELD_SET\",\"DATASET\",\"NONE\"],\"symbolDocs\":{\"DATASET\":\" Indicates that this lineage is originating from upstream dataset(s)\",\"FIELD_SET\":\" Indicates that this lineage is originating from upstream field(s)\",\"NONE\":\" Indicates that there is no upstream lineage i.e. the downstream field is not a derived field\"}},\"doc\":\"The type of upstream entity\"},{\"name\":\"upstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Upstream entities in the lineage\",\"default\":null},{\"name\":\"downstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageDownstreamType\",\"doc\":\"The type of downstream field(s) in a fine-grained lineage\",\"symbols\":[\"FIELD\",\"FIELD_SET\"],\"symbolDocs\":{\"FIELD\":\" Indicates that the lineage is for a single, specific, downstream field\",\"FIELD_SET\":\" Indicates that the lineage is for a set of downstream fields\"}},\"doc\":\"The type of downstream field(s)\"},{\"name\":\"downstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Downstream fields in the lineage\",\"default\":null},{\"name\":\"transformOperation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The transform operation applied to the upstream entities to produce the downstream field(s)\",\"default\":null},{\"name\":\"confidenceScore\",\"type\":\"float\",\"doc\":\"The confidence in this lineage between 0 (low confidence) and 1 (high confidence)\",\"default\":1.0}]}}],\"doc\":\"Fine-grained column-level lineages\",\"default\":null}],\"Aspect\":{\"name\":\"dataJobInputOutput\"}},{\"type\":\"record\",\"name\":\"EditableDataJobProperties\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 data job \",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDataJobProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the data job. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataJobKey\",\"name\":\"dataJob\"}},{\"type\":\"record\",\"name\":\"DatasetSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataset entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DatasetKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dataset\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the dataset\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique guid for dataset\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where dataset belongs to or where it was generated.\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"datasetKey\"}},{\"type\":\"record\",\"name\":\"DatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Properties associated with a Dataset\",\"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\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the Dataset\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"qualifiedName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Fully-qualified name of the Dataset\",\"default\":null,\"Searchable\":{\"addToFilters\":false,\"boostScore\":10.0,\"en","ableAutocomplete\":true,\"fieldType\":\"TEXT\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"uri\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic).\",\"default\":null,\"deprecated\":\"Use ExternalReference.externalUrl field instead.\",\"java\":{\"class\":\"java.net.URI\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"[Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect.\\nThis is now deprecated.\",\"default\":[],\"deprecated\":\"Use GlobalTags aspect instead.\"}],\"Aspect\":{\"name\":\"datasetProperties\"}},{\"type\":\"record\",\"name\":\"EditableDatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"EditableDatasetProperties stores editable changes made to dataset 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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDatasetProperties\"}},{\"type\":\"record\",\"name\":\"DatasetDeprecation\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Dataset deprecation status\\nDeprecated! This aspect is deprecated in favor of the more-general-purpose 'Deprecation' aspect.\",\"fields\":[{\"name\":\"deprecated\",\"type\":\"boolean\",\"doc\":\"Whether the dataset is deprecated by owner.\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"decommissionTime\",\"type\":[\"null\",\"long\"],\"doc\":\"The time user plan to decommission this dataset.\",\"default\":null},{\"name\":\"note\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Additional information about the dataset deprecation plan, such as the wiki, doc, RB.\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The corpuser URN which will be credited for modifying this deprecation content.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}],\"Aspect\":{\"name\":\"datasetDeprecation\"},\"Deprecated\":true},{\"type\":\"record\",\"name\":\"DatasetUpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Fine Grained upstream lineage for fields in a dataset\",\"fields\":[{\"name\":\"fieldMappings\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"DatasetFieldMapping\",\"doc\":\"Representation of mapping between fields in source dataset to the field in destination dataset\",\"fields\":[{\"name\":\"created\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\"},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"string\",\"avro.java.string\":\"String\"}]},\"doc\":\"Source fields from which the fine grained lineage is derived\"},{\"name\":\"destinationField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Destination field which is derived from source fields\",\"deprecated\":\"use SchemaFieldPath and represent as generic Urn instead\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetFieldUrn\"}}],\"deprecated\":\"use FineGrainedLineage instead\"}},\"doc\":\"Upstream to downstream field level lineage mappings\"}],\"Aspect\":{\"name\":\"datasetUpstreamLineage\"},\"deprecated\":\"use UpstreamLineage.fineGrainedLineages instead\"},{\"type\":\"record\",\"name\":\"UpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Upstream lineage of a dataset\",\"fields\":[{\"name\":\"upstreams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Upstream\",\"doc\":\"Upstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"auditStamp\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit stamp containing who reported the lineage and when.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Audit stamp containing who created the lineage and when.\",\"default\":null},{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The upstream dataset the lineage points to\",\"Relationship\":{\"createdActor\":\"upstreams/*/created/actor\",\"createdOn\":\"upstreams/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"upstreams/*/properties\",\"updatedActor\":\"upstreams/*/auditStamp/actor\",\"updatedOn\":\"upstreams/*/auditStamp/time\"},\"Searchable\":{\"fieldName\":\"upstreams\",\"fieldType\":\"URN\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}},\"doc\":\"The type of the lineage\"},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avr","o.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\":\"List of upstream dataset lineage information\"},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"FineGrainedLineage\"}],\"doc\":\" List of fine-grained lineage information, including field-level lineage\",\"default\":null,\"Relationship\":{\"/*/upstreams/*\":{\"entityTypes\":[\"dataset\",\"schemaField\"],\"name\":\"DownstreamOf\"}}}],\"Aspect\":{\"name\":\"upstreamLineage\"}},\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",{\"type\":\"record\",\"name\":\"SchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"SchemaMetadata to describe metadata related to store schema\",\"fields\":[{\"name\":\"schemaName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking\",\"validate\":{\"strlen\":{\"max\":500,\"min\":1}}},{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name})\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"version\",\"type\":\"long\",\"doc\":\"Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version.\"},{\"name\":\"created\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"dataset\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Dataset this schema metadata is associated with.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"cluster\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The cluster this schema metadata resides from\",\"default\":null},{\"name\":\"hash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"the SHA1 hash of the schema content\"},{\"name\":\"platformSchema\",\"type\":[{\"type\":\"record\",\"name\":\"EspressoSchema\",\"doc\":\"Schema text of an espresso table schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native espresso document schema.\"},{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The espresso table schema definition.\"}]},{\"type\":\"record\",\"name\":\"OracleDDL\",\"doc\":\"Schema holder for oracle data definition language that describes an oracle table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"MySqlDDL\",\"doc\":\"Schema holder for MySql data definition language that describes an MySql table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"PrestoDDL\",\"doc\":\"Schema holder for presto data definition language that describes a presto view.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL.\"}]},{\"type\":\"record\",\"name\":\"KafkaSchema\",\"doc\":\"Schema holder for kafka schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native kafka document schema. This is a human readable avro document schema.\"},{\"name\":\"keySchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The native kafka key schema as retrieved from Schema Registry\",\"default\":null}]},{\"type\":\"record\",\"name\":\"BinaryJsonSchema\",\"doc\":\"Schema text of binary JSON schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema text for binary JSON file format.\"}]},{\"type\":\"record\",\"name\":\"OrcSchema\",\"doc\":\"Schema text of an ORC schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema for ORC file format.\"}]},{\"type\":\"record\",\"name\":\"Schemaless\",\"doc\":\"The dataset has no specific schema associated with it\",\"fields\":[]},{\"type\":\"record\",\"name\":\"KeyValueSchema\",\"doc\":\"Schema text of a key-value store schema.\",\"fields\":[{\"name\":\"keySchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the key in the key-value store.\"},{\"name\":\"valueSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the value in the key-value store.\"}]},{\"type\":\"record\",\"name\":\"OtherSchema\",\"doc\":\"Schema holder for undefined schema types.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform.\"}]}],\"doc\":\"The native schema in the dataset's platform.\"},{\"name\":\"fields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SchemaField\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flattened name of the field. Field is computed from jsonPath field.\",\"Searchable\":{\"fieldName\":\"fieldPaths\",\"fieldType\":\"TEXT\"}},{\"name\":\"jsonPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flattened name of a field in JSON Path notation.\",\"default\":null,\"Deprecated\":true},{\"name\":\"nullable\",\"type\":\"boolean\",\"doc\":\"Indicates if this field is optional or nullable\",\"default\":false},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"fieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"label\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Label of the field. Provides a more human-readable name for the field than field path. Some sources will\\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\\na field in a source, that is most likely a description.\",\"default\":null,\"Searchable\":{\"boostScore\":0.2,\"fieldName\":\"fieldLabels\",\"fieldType\":\"TEXT\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the creation of this schema field.\",\"default\":null},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the last modification of this schema field.\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"record\",\"name\":\"SchemaFieldDataType\",\"doc\":\"Schema field data types\",\"fields\":[{\"name\":\"type\",\"type\":[{\"type\":\"record\",\"name\":\"BooleanType\",\"doc\":\"Boolean field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"FixedType\",\"doc\":\"Fixed field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"StringType\",\"doc\":\"String field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"BytesType\",\"doc\":\"Bytes field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NumberType\",\"doc","\":\"Number data type: long, integer, short, etc..\",\"fields\":[]},{\"type\":\"record\",\"name\":\"DateType\",\"doc\":\"Date field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"TimeType\",\"doc\":\"Time field type. This should also be used for datetimes.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"EnumType\",\"doc\":\"Enum field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NullType\",\"doc\":\"Null field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"MapType\",\"doc\":\"Map field type.\",\"fields\":[{\"name\":\"keyType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Key type in a map\",\"default\":null},{\"name\":\"valueType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of the value in a map\",\"default\":null}]},{\"type\":\"record\",\"name\":\"ArrayType\",\"doc\":\"Array field type.\",\"fields\":[{\"name\":\"nestedType\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types this array holds.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"UnionType\",\"doc\":\"Union field type.\",\"fields\":[{\"name\":\"nestedTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types in union type.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"RecordType\",\"doc\":\"Record field type.\",\"fields\":[]}],\"doc\":\"Data platform specific types\"}]},\"doc\":\"Platform independent field type of the field.\"},{\"name\":\"nativeDataType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native type of the field in the dataset's platform as declared by platform schema.\"},{\"name\":\"recursive\",\"type\":\"boolean\",\"doc\":\"There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.\",\"default\":false},{\"name\":\"globalTags\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlobalTags\"],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"SchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"fieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\"],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"SchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"fieldGlossaryTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"isPartOfKey\",\"type\":\"boolean\",\"doc\":\"For schema fields that are part of complex keys, set this field to true\\nWe do this to easily distinguish between value and key fields\",\"default\":false},{\"name\":\"isPartitioningKey\",\"type\":[\"null\",\"boolean\"],\"doc\":\"For Datasets which are partitioned, this determines the partitioning key.\",\"default\":null},{\"name\":\"jsonProps\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"For schema fields that have other properties that are not modeled explicitly,\\nuse this field to serialize those properties into a JSON string\",\"default\":null}]}},\"doc\":\"Client provided a list of fields from document schema.\"},{\"name\":\"primaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath.\",\"default\":null},{\"name\":\"foreignKeysSpecs\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"ForeignKeySpec\",\"doc\":\"Description of a foreign key in a schema.\",\"fields\":[{\"name\":\"foreignKey\",\"type\":[{\"type\":\"record\",\"name\":\"DatasetFieldForeignKey\",\"doc\":\"For non-urn based foregin keys.\",\"fields\":[{\"name\":\"parentDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"dataset that stores the resource.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"currentFieldPaths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset.\"},{\"name\":\"parentField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"SchemaField@fieldPath that uniquely identify field in parent dataset that this field references.\"}]},{\"type\":\"record\",\"name\":\"UrnForeignKey\",\"doc\":\"If SchemaMetadata fields make any external references and references are of type com.linkedin.pegasus2avro.common.Urn or any children, this models can be used to mark it.\",\"fields\":[{\"name\":\"currentFieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Field in hosting(current) SchemaMetadata.\"}]}],\"doc\":\"Foreign key definition in metadata schema.\"}]},\"avro.java.string\":\"String\"}],\"doc\":\"Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref.\",\"default\":null,\"deprecated\":\"Use foreignKeys instead.\"},{\"name\":\"foreignKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ForeignKeyConstraint\",\"doc\":\"Description of a foreign key constraint in a schema.\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the constraint, likely provided from the source\"},{\"name\":\"foreignFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the foreign dataset\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"ForeignKeyTo\"}}},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the source dataset\"},{\"name\":\"foreignDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Reference to the foreign dataset for ease of lookup\",\"Relationship\":{\"entityTypes\":[\"dataset\"],\"name\":\"ForeignKeyToDataset\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}}],\"doc\":\"List of foreign key constraints for the schema\",\"default\":null}],\"Aspect\":{\"name\":\"schemaMetadata\"}},{\"type\":\"record\",\"name\":\"EditableSchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"EditableSchemaMetadata stores editable changes made to schema metadata. 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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"editableSchemaFieldInfo\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"EditableSchemaFieldInfo\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"FieldPath uniquely identifying the SchemaField this metadata is associated with\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"editedFieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"globalTags\",\"type\":[\"null\",\"com.linkedin",".pegasus2avro.common.GlobalTags\"],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"EditableSchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\"],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"EditableSchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldGlossaryTerms\",\"fieldType\":\"URN\"}}}]}},\"doc\":\"Client provided a list of fields from document schema.\"}],\"Aspect\":{\"name\":\"editableSchemaMetadata\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\",{\"type\":\"record\",\"name\":\"ViewProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Details about a View. \\ne.g. Gets activated when subTypes is view\",\"fields\":[{\"name\":\"materialized\",\"type\":\"boolean\",\"doc\":\"Whether the view is materialized\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"viewLogic\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The view logic\"},{\"name\":\"viewLanguage\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The view logic language / dialect\"}],\"Aspect\":{\"name\":\"viewProperties\"}}]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"datasetKey\",\"name\":\"dataset\"}},{\"type\":\"record\",\"name\":\"DataProcessSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Data process entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataProcessUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataProcessKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Process\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Process name i.e. an ETL job name\",\"Searchable\":{\"boostScore\":4.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized Orchestrator where data process is defined.\\nTODO: Migrate towards something that can be validated like DataPlatform urn\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where dataset belongs to or where it was generated.\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"dataProcessKey\"}},\"com.linkedin.pegasus2avro.common.Ownership\",{\"type\":\"record\",\"name\":\"DataProcessInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"doc\":\"The inputs and outputs of this data process\",\"fields\":[{\"name\":\"inputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"the inputs of the data process\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"the outputs of the data process\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}}],\"Aspect\":{\"name\":\"dataProcessInfo\"}},\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the data process. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataProcessKey\",\"name\":\"dataProcess\"},\"deprecated\":\"Use DataJob instead.\"},{\"type\":\"record\",\"name\":\"DataPlatformSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataplatform entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataPlatformKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Platform\",\"fields\":[{\"name\":\"platformName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform name i.e. hdfs, oracle, espresso\"}],\"Aspect\":{\"name\":\"dataPlatformKey\"}},{\"type\":\"record\",\"name\":\"DataPlatformInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dataplatform\",\"doc\":\"Information about a data platform\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the data platform\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":false,\"fieldType\":\"TEXT_PARTIAL\"},\"validate\":{\"strlen\":{\"max\":15}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The name that will be used for displaying a platform type.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"PlatformType\",\"doc\":\"Platform types available at LinkedIn\",\"symbols\":[\"FILE_SYSTEM\",\"KEY_VALUE_STORE\",\"MESSAGE_BROKER\",\"OBJECT_STORE\",\"OLAP_DATASTORE\",\"OTHERS\",\"QUERY_ENGINE\",\"RELATIONAL_DB\",\"SEARCH_ENGINE\"],\"symbolDocs\":{\"FILE_SYSTEM\":\"Value for a file system, e.g. hdfs\",\"KEY_VALUE_STORE\":\"Value for a key value store, e.g. espresso, voldemort\",\"MESSAGE_BROKER\":\"Value for a message broker, e.g. kafka\",\"OBJECT_STORE\":\"Value for an object store, e.g. ambry\",\"OLAP_DATASTORE\":\"Value for an OLAP datastore, e.g. pinot\",\"OTHERS\":\"Value for other platforms, e.g salesforce, dovetail\",\"QUERY_ENGINE\":\"Value for a query engine, e.g. presto\",\"RELATIONAL_DB\":\"Value for a relational database, e.g. oracle, mysql\",\"SEARCH_ENGINE\":\"Value for a search engine, e.g seas\"}},\"doc\":\"Platform type this data platform describes\"},{\"name\":\"datasetNameDelimiter\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The delimiter in the dataset names on the data platform, e.g. '/' for HDFS and '.' for Oracle\"},{\"name\":\"logoUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The URL for a logo associated with the platform\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}],\"Aspect\":{\"name\":\"dataPlatformInfo\"}}]},\"doc\":\"The list of metadata aspects associated with the data platform. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataPlatformKey\",\"name\":\"dataPlatform\"}},{\"type\":\"record\",\"name\":\"MLModelSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"MLModel Snapshot entity details.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.MLModelUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModel\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}",",{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where model belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelKey\"}},\"com.linkedin.pegasus2avro.common.Ownership\",{\"type\":\"record\",\"name\":\"MLModelProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a ML Model\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModel\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"date\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModel was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLModel\",\"default\":null},{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"hyperParameters\",\"type\":[\"null\",{\"type\":\"map\",\"values\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"int\",\"float\",\"double\",\"boolean\"],\"avro.java.string\":\"String\"}],\"doc\":\"Hyper Parameters of the MLModel\\n\\nNOTE: these are deprecated in favor of hyperParams\",\"default\":null},{\"name\":\"hyperParams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLHyperParam\",\"doc\":\"Properties associated with an ML Hyper Param\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLHyperParam\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLHyperParam\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the MLHyperParam\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLHyperParam was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlHyperParam\"}}}],\"doc\":\"Hyperparameters of the MLModel\",\"default\":null},{\"name\":\"trainingMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLMetric\",\"doc\":\"Properties associated with an ML Metric\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the mlMetric\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the mlMetric\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the mlMetric\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the mlMetric was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlMetric\"}}}],\"doc\":\"Metrics of the MLModel used in training\",\"default\":null},{\"name\":\"onlineMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLMetric\"}],\"doc\":\"Metrics of the MLModel used in production\",\"default\":null},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features used for MLModel training\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"isLineage\":true,\"name\":\"Consumes\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Tags for the MLModel\",\"default\":[]},{\"name\":\"deployments\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Deployments for the MLModel\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelDeployment\"],\"name\":\"DeployedTo\"}}},{\"name\":\"trainingJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) used to train the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"TrainedBy\"}}},{\"name\":\"downstreamJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) that use the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"UsedBy\"}}},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups the model belongs to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelGroup\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"MemberOf\"}}}],\"Aspect\":{\"name\":\"mlModelProperties\"}},{\"type\":\"record\",\"name\":\"IntendedUse\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Intended Use for the ML Model\",\"fields\":[{\"name\":\"primaryUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Primary Use cases for the MLModel.\",\"default\":null},{\"name\":\"primaryUsers\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"enum\",\"name\":\"IntendedUserType\",\"symbols\":[\"ENTERPRISE\",\"HOBBY\",\"ENTERTAINMENT\"]}}],\"doc\":\"Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions?\",\"default\":null},{\"name\":\"outOfScopeUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to.\",\"default\":null}],\"Aspect\":{\"name\":\"intendedUse\"}},{\"type\":\"record\",\"name\":\"MLModelFactorPrompts\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Prompts which affect the performance of the MLModel\",\"fields\":[{\"name\":\"relevantFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLModelFactors\",\"doc\":\"Factors affecting the performance of the MLModel.\",\"fields\":[{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances.\\nFor human-centric machine learning MLModels, groups are people who share one or multiple characteristics.\",\"default\":null},{\"name\":\"instrumentation\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel.\\nFor example, a face detection model may perform differently depending on the camera's hardware and software,\\nincluding lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode.\",\"default\":null},{\"name\":\"environment\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A further factor affecting MLModel performance is the environment in which it is deployed.\",\"default\":null}]}}],\"doc\":\"What are foreseeable salient factors for which MLModel performance may vary, and how were these determined?\",\"default\":null},{\"name\":\"evaluationFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLModelFactors\"}],\"doc\":\"Which factors are being reported, and why were these chosen?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelFactorPrompts\"}},{\"type\":\"record\",\"name\":\"Metrics\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Metrics to be featured for the MLModel.\",\"fields\":[{\"name\":\"performanceMeasures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avr","o.java.string\":\"String\"}}],\"doc\":\"Measures of MLModel performance\",\"default\":null},{\"name\":\"decisionThreshold\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Decision Thresholds used (if any)?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelMetrics\"}},{\"type\":\"record\",\"name\":\"EvaluationData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"All referenced datasets would ideally point to any set of documents that provide visibility into the source and composition of the dataset.\",\"fields\":[{\"name\":\"evaluationData\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BaseData\",\"doc\":\"BaseData record\",\"fields\":[{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"What dataset were used in the MLModel?\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"motivation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Why was this dataset chosen?\",\"default\":null},{\"name\":\"preProcessing\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)?\",\"default\":null}]}},\"doc\":\"Details on the dataset(s) used for the quantitative analyses in the MLModel\"}],\"Aspect\":{\"name\":\"mlModelEvaluationData\"}},{\"type\":\"record\",\"name\":\"TrainingData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Ideally, the MLModel card would contain as much information about the training data as the evaluation data. However, there might be cases where it is not feasible to provide this level of detailed information about the training data. For example, the data may be proprietary, or require a non-disclosure agreement. In these cases, we advocate for basic details about the distributions over groups in the data, as well as any other details that could inform stakeholders on the kinds of biases the model may have encoded.\",\"fields\":[{\"name\":\"trainingData\",\"type\":{\"type\":\"array\",\"items\":\"BaseData\"},\"doc\":\"Details on the dataset(s) used for training the MLModel\"}],\"Aspect\":{\"name\":\"mlModelTrainingData\"}},{\"type\":\"record\",\"name\":\"QuantitativeAnalyses\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Quantitative analyses should be disaggregated, that is, broken down by the chosen factors. Quantitative analyses should provide the results of evaluating the MLModel according to the chosen metrics, providing confidence interval values when possible.\",\"fields\":[{\"name\":\"unitaryResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to each factor\",\"default\":null},{\"name\":\"intersectionalResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelQuantitativeAnalyses\"}},{\"type\":\"record\",\"name\":\"EthicalConsiderations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section is intended to demonstrate the ethical considerations that went into MLModel development, surfacing ethical challenges and solutions to stakeholders.\",\"fields\":[{\"name\":\"data\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Does the MLModel use any sensitive data (e.g., protected classes)?\",\"default\":null},{\"name\":\"humanLife\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\" Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way?\",\"default\":null},{\"name\":\"mitigations\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risk mitigation strategies were used during MLModel development?\",\"default\":null},{\"name\":\"risksAndHarms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown.\",\"default\":null},{\"name\":\"useCases\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelEthicalConsiderations\"}},{\"type\":\"record\",\"name\":\"CaveatsAndRecommendations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"caveats\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"CaveatDetails\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"needsFurtherTesting\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Did the results suggest any further testing?\",\"default\":null},{\"name\":\"caveatDescription\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Caveat Description\\nFor ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders.\",\"default\":null},{\"name\":\"groupsNotRepresented\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Relevant groups that were not represented in the evaluation dataset?\",\"default\":null}]}],\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset?\",\"default\":null},{\"name\":\"recommendations\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Recommendations on where this MLModel should be used.\",\"default\":null},{\"name\":\"idealDatasetCharacteristics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Ideal characteristics of an evaluation dataset for this MLModel\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelCaveatsAndRecommendations\"}},\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",{\"type\":\"record\",\"name\":\"SourceCode\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Source Code\",\"fields\":[{\"name\":\"sourceCode\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SourceCodeUrl\",\"doc\":\"Source Code Url Entity\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"SourceCodeUrlType\",\"symbols\":[\"ML_MODEL_SOURCE_CODE\",\"TRAINING_PIPELINE_SOURCE_CODE\",\"EVALUATION_PIPELINE_SOURCE_CODE\"]},\"doc\":\"Source Code Url Types\"},{\"name\":\"sourceCodeUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source Code Url\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}]}},\"doc\":\"Source Code along with types\"}],\"Aspect\":{\"name\":\"sourceCode\"}},\"com.linkedin.pegasus2avro.common.Status\",{\"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\":{\"typ","e\":\"enum\",\"name\":\"CostCostDiscriminator\",\"symbols\":[\"costId\",\"costCode\"]},\"doc\":\"Contains the name of the field that has its value set.\"}]}}],\"Aspect\":{\"name\":\"cost\"}},{\"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\"}},\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLModel. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelKey\",\"name\":\"mlModel\"}},{\"type\":\"record\",\"name\":\"MLPrimaryKeySnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLPrimaryKeyKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLPrimaryKey\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the primary key\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the primary key\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlPrimaryKeyKey\"}},{\"type\":\"record\",\"name\":\"MLPrimaryKeyProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLPrimaryKey\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLPrimaryKey\",\"default\":null},{\"name\":\"dataType\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"MLFeatureDataType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"MLFeature Data Type\",\"symbols\":[\"USELESS\",\"NOMINAL\",\"ORDINAL\",\"BINARY\",\"COUNT\",\"TIME\",\"INTERVAL\",\"IMAGE\",\"VIDEO\",\"AUDIO\",\"TEXT\",\"MAP\",\"SEQUENCE\",\"SET\",\"CONTINUOUS\",\"BYTE\",\"UNKNOWN\"],\"symbolDocs\":{\"AUDIO\":\"Audio Data\",\"BINARY\":\"Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc\",\"BYTE\":\"Bytes data are binary-encoded values that can represent complex objects.\",\"CONTINUOUS\":\"Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.\",\"COUNT\":\"Count data is discrete whole number data - no negative numbers here.\\nCount data often has many small values, such as zero and one.\",\"IMAGE\":\"Image Data\",\"INTERVAL\":\"Interval data has equal spaces between the numbers and does not represent a temporal pattern.\\nExamples include percentages, temperatures, and income.\",\"MAP\":\"Mapping Data Type ex: dict, map\",\"NOMINAL\":\"Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.\",\"ORDINAL\":\"Ordinal data are discrete integers that can be ranked or sorted.\\nFor example, the distance between first and second may not be the same as the distance between second and third.\",\"SEQUENCE\":\"Sequence Data Type ex: list, tuple, range\",\"SET\":\"Set Data Type ex: set, frozenset\",\"TEXT\":\"Text Data\",\"TIME\":\"Time data is a cyclical, repeating continuous form of data.\\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.\",\"UNKNOWN\":\"Unknown data are data that we don't know the type for.\",\"USELESS\":\"Useless data is unique, discrete data with no potential relationship with the outcome variable.\\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.\",\"VIDEO\":\"Video Data\"}}],\"doc\":\"Data Type of the MLPrimaryKey\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLPrimaryKey\",\"default\":null},{\"name\":\"sources\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Source of the MLPrimaryKey\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlPrimaryKeyProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLPrimaryKey. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlPrimaryKeyKey\",\"name\":\"mlPrimaryKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.MLFeatureUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLFeatureKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeature\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the feature\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeature\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeature\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"dataType\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.MLFeatureDataType\"],\"doc\":\"Data Type of the MLFeature\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLFeature\",\"default\":null},{\"name\":\"sources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Source of the MLFeature\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlFeatureProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLFeature. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlFeatureKey\",\"name\":\"mlFeature\"}},{\"type\":\"record\",\"name\":\"MLFeatureTableSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"c","om.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLFeatureTableKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeatureTable\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the feature table\",\"Relationship\":{\"entityTypes\":[\"dataPlatform\"],\"name\":\"SourcePlatform\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature table\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureTableKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureTableProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeatureTable\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeatureTable\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features contained in the feature table\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"name\":\"Contains\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"features\",\"fieldType\":\"URN\"}}},{\"name\":\"mlPrimaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of primary keys in the feature table (if multiple, assumed to act as a composite key)\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlPrimaryKey\"],\"name\":\"KeyedBy\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"primaryKeys\",\"fieldType\":\"URN\"}}}],\"Aspect\":{\"name\":\"mlFeatureTableProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLFeatureTable. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlFeatureTableKey\",\"name\":\"mlFeatureTable\"}},{\"type\":\"record\",\"name\":\"MLModelDeploymentSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelDeploymentKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model deployment\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model Deployment\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModelDeployment\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where model Deployment belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelDeploymentKey\"}},{\"type\":\"record\",\"name\":\"MLModelDeploymentProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Deployment\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModelDeployment\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModelDeployment was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLModelDeployment\",\"default\":null},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"DeploymentStatus\",\"doc\":\"Model endpoint statuses\",\"symbols\":[\"OUT_OF_SERVICE\",\"CREATING\",\"UPDATING\",\"ROLLING_BACK\",\"IN_SERVICE\",\"DELETING\",\"FAILED\",\"UNKNOWN\"],\"symbolDocs\":{\"CREATING\":\"Deployments being created.\",\"DELETING\":\"Deployments being deleted.\",\"FAILED\":\"Deployments with an error state.\",\"IN_SERVICE\":\"Deployments that are active.\",\"OUT_OF_SERVICE\":\"Deployments out of service.\",\"ROLLING_BACK\":\"Deployments being reverted to a previous version.\",\"UNKNOWN\":\"Deployments with unknown/unmappable state.\",\"UPDATING\":\"Deployments being updated.\"}}],\"doc\":\"Status of the deployment\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelDeploymentProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLModelDeployment. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelDeploymentKey\",\"name\":\"mlModelDeployment\"}},{\"type\":\"record\",\"name\":\"MLModelGroupSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model group\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model group\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModelGroup\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where model group belongs to or where it was generated\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelGroupKey\"}},{\"type\":\"record\",\"name\":\"MLModelGroupProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Group\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModelGroup\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModelGroup was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLModelGroup\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelGroupProperties\"}},\"com.linkedin.pegasus2avro.common.Ow","nership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLModelGroup. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelGroupKey\",\"name\":\"mlModelGroup\"}},{\"type\":\"record\",\"name\":\"TagSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataset entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"TagKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The tag name, which serves as a unique id\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"tagKey\"}},\"com.linkedin.pegasus2avro.common.Ownership\",{\"type\":\"record\",\"name\":\"TagProperties\",\"namespace\":\"com.linkedin.pegasus2avro.tag\",\"doc\":\"Properties associated with a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the tag\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the tag\",\"default\":null,\"Searchable\":{}},{\"name\":\"colorHex\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The color associated with the Tag in Hex. For example #FFFFFF.\",\"default\":null}],\"Aspect\":{\"name\":\"tagProperties\"}},\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"tagKey\",\"name\":\"tag\"}},{\"type\":\"record\",\"name\":\"GlossaryTermSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific GlossaryTerm entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"GlossaryTermKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryTerm\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The term name, which serves as a unique id\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryTermKey\"}},{\"type\":\"record\",\"name\":\"GlossaryTermInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryTerm\",\"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\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the term\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the term\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business term.\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"termSource\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"External Reference to the business-term\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"rawSchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Schema definition of the glossary term\",\"default\":null,\"deprecated\":true}],\"Aspect\":{\"name\":\"glossaryTermInfo\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",{\"type\":\"record\",\"name\":\"GlossaryRelatedTerms\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Has A / Is A lineage information about a glossary Term reporting the lineage\",\"fields\":[{\"name\":\"isRelatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Is A with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"IsA\"}},\"Searchable\":{\"/*\":{\"boostScore\":2.0,\"fieldName\":\"isRelatedTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"hasRelatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Has A with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"HasA\"}},\"Searchable\":{\"/*\":{\"boostScore\":2.0,\"fieldName\":\"hasRelatedTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"values\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Has Value with glossary term.\\nThese are fixed value a term has. For example a ColorEnum where RED, GREEN and YELLOW are fixed values.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"HasValue\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"values\",\"fieldType\":\"URN\"}}},{\"name\":\"relatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship isRelatedTo with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"IsRelatedTo\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"relatedTerms\",\"fieldType\":\"URN\"}}}],\"Aspect\":{\"name\":\"glossaryRelatedTerms\"}}]},\"doc\":\"The list of metadata aspects associated with the GlossaryTerm. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"glossaryTermKey\",\"name\":\"glossaryTerm\"}},{\"type\":\"record\",\"name\":\"GlossaryNodeSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific GlossaryNode entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"GlossaryNodeKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryNode\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeKey\"}},{\"type\":\"record\",\"name\":\"GlossaryNodeInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryNode\",\"fields\":[{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"av","ro.java.string\":\"String\"},\"doc\":\"Definition of business node\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the node\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"displayName\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the GlossaryNode\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeInfo\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the GlossaryNode. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"glossaryNodeKey\",\"name\":\"glossaryNode\"}},{\"type\":\"record\",\"name\":\"DataHubPolicySnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for DataHub Access Policy data.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataHubPolicyKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Policy\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the DataHub access policy record. Generated on the server side at policy creation time.\"}],\"Aspect\":{\"name\":\"dataHubPolicyKey\"}},{\"type\":\"record\",\"name\":\"DataHubPolicyInfo\",\"namespace\":\"com.linkedin.pegasus2avro.policy\",\"doc\":\"Information about a DataHub (UI) access policy.\",\"fields\":[{\"name\":\"displayName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the Policy\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the Policy\",\"Searchable\":{\"fieldType\":\"TEXT\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of policy\"},{\"name\":\"state\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The state of policy, ACTIVE or INACTIVE\"},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DataHubResourceFilter\",\"doc\":\"Information used to filter DataHub resource.\",\"fields\":[{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The type of resource that the policy applies to. This will most often be a data asset entity name, for\\nexample 'dataset'. It is not strictly required because in the future we will want to support filtering a resource\\nby domain, as well.\",\"default\":null,\"deprecated\":true},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of resources to apply the policy to, e.g. asset urns\",\"default\":null,\"deprecated\":true},{\"name\":\"allResources\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be applied to all assets matching the filter.\",\"default\":false,\"deprecated\":true},{\"name\":\"filter\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"PolicyMatchFilter\",\"doc\":\"The filter for specifying the resource or actor to apply privileges to\",\"fields\":[{\"name\":\"criteria\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"PolicyMatchCriterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. Matches criterion if any one of the values matches condition (OR-relationship)\"},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"PolicyMatchCondition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"EQUALS\"],\"symbolDocs\":{\"EQUALS\":\"Whether the field matches the value\"}},\"doc\":\"The condition for the criterion\",\"default\":\"EQUALS\"}]}},\"doc\":\"A list of criteria to apply conjunctively (so all criteria must pass)\"}]}],\"doc\":\"Filter to apply privileges to\",\"default\":null}]}],\"doc\":\"The resource that the policy applies to. Not required for some 'Platform' privileges.\",\"default\":null},{\"name\":\"privileges\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"The privileges that the policy grants.\"},{\"name\":\"actors\",\"type\":{\"type\":\"record\",\"name\":\"DataHubActorFilter\",\"doc\":\"Information used to filter DataHub actors.\",\"fields\":[{\"name\":\"users\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of users to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of groups to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"resourceOwners\",\"type\":\"boolean\",\"doc\":\"Whether the filter should return true for owners of a particular resource.\\nOnly applies to policies of type 'Metadata', which have a resource associated with them.\",\"default\":false},{\"name\":\"allUsers\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all users.\",\"default\":false},{\"name\":\"allGroups\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all groups.\",\"default\":false},{\"name\":\"roles\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of roles to apply the policy to (disjunctive).\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataHubRole\"],\"name\":\"IsAssociatedWithRole\"}}}]},\"doc\":\"The actors that the policy applies to.\"},{\"name\":\"editable\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be editable via the UI\",\"default\":true},{\"name\":\"lastUpdatedTimestamp\",\"type\":[\"null\",\"long\"],\"doc\":\"Timestamp when the policy was last updated\",\"default\":null,\"Searchable\":{\"fieldType\":\"DATETIME\"}}],\"Aspect\":{\"name\":\"dataHubPolicyInfo\"}}]},\"doc\":\"The list of metadata aspects associated with the DataHub access policy.\"}],\"Entity\":{\"keyAspect\":\"dataHubPolicyKey\",\"name\":\"dataHubPolicy\"}},{\"type\":\"record\",\"name\":\"SchemaFieldSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific schema field entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"SchemaFieldKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a SchemaField\",\"fields\":[{\"name\":\"parent\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Parent associated with the schema field\",\"Searchable\":{\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"fieldPath identifying the schema field\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}}],\"Aspect\":{\"name\":\"schemaFieldKey\"}}]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"schemaFieldKey\",\"name\":\"schemaField\"}},{\"type\":\"record\",\"name\":\"DataHubRetentionSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for DataHub Access Policy data.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\"",":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataHubRetentionKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Retention\",\"fields\":[{\"name\":\"entityName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Entity name to apply retention to. * (or empty) for applying defaults.\"},{\"name\":\"aspectName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Aspect name to apply retention to. * (or empty) for applying defaults.\"}],\"Aspect\":{\"name\":\"dataHubRetentionKey\"}},{\"type\":\"record\",\"name\":\"DataHubRetentionConfig\",\"namespace\":\"com.linkedin.pegasus2avro.retention\",\"fields\":[{\"name\":\"retention\",\"type\":{\"type\":\"record\",\"name\":\"Retention\",\"doc\":\"Base class that encapsulates different retention policies.\\nOnly one of the fields should be set\",\"fields\":[{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionBasedRetention\",\"doc\":\"Keep max N latest records\",\"fields\":[{\"name\":\"maxVersions\",\"type\":\"int\"}]}],\"default\":null},{\"name\":\"time\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeBasedRetention\",\"doc\":\"Keep records that are less than X seconds old\",\"fields\":[{\"name\":\"maxAgeInSeconds\",\"type\":\"int\"}]}],\"default\":null}]}}],\"Aspect\":{\"name\":\"dataHubRetentionConfig\"}}]},\"doc\":\"The list of metadata aspects associated with the DataHub access policy.\"}],\"Entity\":{\"keyAspect\":\"dataHubRetentionKey\",\"name\":\"dataHubRetention\"}}]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.Object value; - - /** - * 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 Entity() {} - - /** - * All-args constructor. - */ - public Entity(java.lang.Object value) { - this.value = value; - } - - 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; - 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.Object)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'value' field. - */ - public java.lang.Object getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * @param value the value to set. - */ - public void setValue(java.lang.Object value) { - this.value = value; - } - - /** Creates a new Entity RecordBuilder */ - public static com.linkedin.pegasus2avro.entity.Entity.Builder newBuilder() { - return new com.linkedin.pegasus2avro.entity.Entity.Builder(); - } - - /** Creates a new Entity RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.entity.Entity.Builder newBuilder(com.linkedin.pegasus2avro.entity.Entity.Builder other) { - return new com.linkedin.pegasus2avro.entity.Entity.Builder(other); - } - - /** Creates a new Entity RecordBuilder by copying an existing Entity instance */ - public static com.linkedin.pegasus2avro.entity.Entity.Builder newBuilder(com.linkedin.pegasus2avro.entity.Entity other) { - return new com.linkedin.pegasus2avro.entity.Entity.Builder(other); - } - - /** - * RecordBuilder for Entity instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Object value; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.entity.Entity.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.entity.Entity.Builder other) { - super(other); - if (isValidValue(fields()[0], other.value)) { - this.value = data().deepCopy(fields()[0].schema(), other.value); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing Entity instance */ - private Builder(com.linkedin.pegasus2avro.entity.Entity other) { - super(com.linkedin.pegasus2avro.entity.Entity.SCHEMA$); - if (isValidValue(fields()[0], other.value)) { - this.value = data().deepCopy(fields()[0].schema(), other.value); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'value' field */ - public java.lang.Object getValue() { - return value; - } - - /** Sets the value of the 'value' field */ - public com.linkedin.pegasus2avro.entity.Entity.Builder setValue(java.lang.Object 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.entity.Entity.Builder clearValue() { - value = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public Entity build() { - try { - Entity record = new Entity(); - record.value = fieldSetFlags()[0] ? this.value : (java.lang.Object) 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/entity/EntityResponse.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/entity/EntityResponse.java deleted file mode 100644 index 4b8ae3087b046..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/entity/EntityResponse.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.entity; -@SuppressWarnings("all") -/** A DataHub 'entity', which is comprised of a set of latest aspects present for the aspect. */ -@org.apache.avro.specific.AvroGenerated -public class EntityResponse 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\":\"EntityResponse\",\"namespace\":\"com.linkedin.pegasus2avro.entity\",\"doc\":\"A DataHub 'entity', which is comprised of a set of latest aspects present for the aspect.\",\"fields\":[{\"name\":\"entityName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The entity name\"},{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The entity urn\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"EnvelopedAspect\",\"doc\":\"An aspect, along with the metadata about it.\\nCurrently, an aspect can be either of type 'timestamp' or 'versioned'.\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the aspect\"},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"AspectType\",\"doc\":\"The type of a DataHub aspect\",\"symbols\":[\"VERSIONED\",\"TIMESERIES\"],\"symbolDocs\":{\"TIMESERIES\":\"Designates an aspect that represents a point-in-time data point\",\"VERSIONED\":\"Designates an aspect that has a monotonically increasing version number\"}},\"doc\":\"The type of the aspect, either timeseries or versioned\"},{\"name\":\"version\",\"type\":[\"null\",\"long\"],\"doc\":\"The version of the aspect, only populated if type is 'VERSIONED'\",\"default\":null},{\"name\":\"timestamp\",\"type\":[\"null\",\"long\"],\"doc\":\"The timestamp of the aspect, only populated if type is 'TIMESTAMP'\",\"default\":null},{\"name\":\"value\",\"type\":{\"type\":\"record\",\"name\":\"Aspect\",\"doc\":\"Placeholder PDL record to store the aspect in the response. By using this place-holder, metadata-service can return\\nany type of aspect without having to define a single union class\",\"fields\":[]},\"doc\":\"The raw value of the aspect\"},{\"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\":\"The audit stamp detailing who the aspect was created by and when\"},{\"name\":\"systemMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SystemMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Metadata associated with each metadata change that is processed by the system\",\"fields\":[{\"name\":\"lastObserved\",\"type\":[\"long\",\"null\"],\"doc\":\"The timestamp the metadata was observed at\",\"default\":0},{\"name\":\"runId\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"],\"doc\":\"The run id that produced the metadata. Populated in case of batch-ingestion.\",\"default\":\"no-run-id-provided\"},{\"name\":\"registryName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry name that was used to process this event\",\"default\":null},{\"name\":\"registryVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry version that was used to process this event\",\"default\":null},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Additional properties\",\"default\":null}]}],\"doc\":\"The system metadata for this aspect\",\"default\":null}]},\"avro.java.string\":\"String\"},\"doc\":\"A map of aspect name to aspect\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The entity name */ - @Deprecated public java.lang.String entityName; - /** The entity urn */ - @Deprecated public java.lang.String urn; - /** A map of aspect name to aspect */ - @Deprecated public java.util.Map aspects; - - /** - * 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 EntityResponse() {} - - /** - * All-args constructor. - */ - public EntityResponse(java.lang.String entityName, java.lang.String urn, java.util.Map aspects) { - this.entityName = entityName; - this.urn = urn; - this.aspects = aspects; - } - - 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 entityName; - case 1: return urn; - case 2: return aspects; - 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: entityName = (java.lang.String)value$; break; - case 1: urn = (java.lang.String)value$; break; - case 2: aspects = (java.util.Map)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entityName' field. - * The entity name */ - public java.lang.String getEntityName() { - return entityName; - } - - /** - * Sets the value of the 'entityName' field. - * The entity name * @param value the value to set. - */ - public void setEntityName(java.lang.String value) { - this.entityName = value; - } - - /** - * Gets the value of the 'urn' field. - * The entity urn */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * The entity urn * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * A map of aspect name to aspect */ - public java.util.Map getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * A map of aspect name to aspect * @param value the value to set. - */ - public void setAspects(java.util.Map value) { - this.aspects = value; - } - - /** Creates a new EntityResponse RecordBuilder */ - public static com.linkedin.pegasus2avro.entity.EntityResponse.Builder newBuilder() { - return new com.linkedin.pegasus2avro.entity.EntityResponse.Builder(); - } - - /** Creates a new EntityResponse RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.entity.EntityResponse.Builder newBuilder(com.linkedin.pegasus2avro.entity.EntityResponse.Builder other) { - return new com.linkedin.pegasus2avro.entity.EntityResponse.Builder(other); - } - - /** Creates a new EntityResponse RecordBuilder by copying an existing EntityResponse instance */ - public static com.linkedin.pegasus2avro.entity.EntityResponse.Builder newBuilder(com.linkedin.pegasus2avro.entity.EntityResponse other) { - return new com.linkedin.pegasus2avro.entity.EntityResponse.Builder(other); - } - - /** - * RecordBuilder for EntityResponse instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String entityName; - private java.lang.String urn; - private java.util.Map aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.entity.EntityResponse.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.entity.EntityResponse.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entityName)) { - this.entityName = data().deepCopy(fields()[0].schema(), other.entityName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.urn)) { - this.urn = data().deepCopy(fields()[1].schema(), other.urn); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.aspects)) { - this.aspects = data().deepCopy(fields()[2].schema(), other.aspects); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing EntityResponse instance */ - private Builder(com.linkedin.pegasus2avro.entity.EntityResponse other) { - super(com.linkedin.pegasus2avro.entity.EntityResponse.SCHEMA$); - if (isValidValue(fields()[0], other.entityName)) { - this.entityName = data().deepCopy(fields()[0].schema(), other.entityName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.urn)) { - this.urn = data().deepCopy(fields()[1].schema(), other.urn); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.aspects)) { - this.aspects = data().deepCopy(fields()[2].schema(), other.aspects); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'entityName' field */ - public java.lang.String getEntityName() { - return entityName; - } - - /** Sets the value of the 'entityName' field */ - public com.linkedin.pegasus2avro.entity.EntityResponse.Builder setEntityName(java.lang.String value) { - validate(fields()[0], value); - this.entityName = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entityName' field has been set */ - public boolean hasEntityName() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entityName' field */ - public com.linkedin.pegasus2avro.entity.EntityResponse.Builder clearEntityName() { - entityName = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.entity.EntityResponse.Builder setUrn(java.lang.String value) { - validate(fields()[1], value); - this.urn = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.entity.EntityResponse.Builder clearUrn() { - urn = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.Map getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.entity.EntityResponse.Builder setAspects(java.util.Map value) { - validate(fields()[2], value); - this.aspects = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.entity.EntityResponse.Builder clearAspects() { - aspects = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public EntityResponse build() { - try { - EntityResponse record = new EntityResponse(); - record.entityName = fieldSetFlags()[0] ? this.entityName : (java.lang.String) defaultValue(fields()[0]); - record.urn = fieldSetFlags()[1] ? this.urn : (java.lang.String) defaultValue(fields()[1]); - record.aspects = fieldSetFlags()[2] ? this.aspects : (java.util.Map) 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/entity/EnvelopedAspect.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/entity/EnvelopedAspect.java deleted file mode 100644 index 61c802a98e1ae..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/entity/EnvelopedAspect.java +++ /dev/null @@ -1,475 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.entity; -@SuppressWarnings("all") -/** An aspect, along with the metadata about it. -Currently, an aspect can be either of type 'timestamp' or 'versioned'. */ -@org.apache.avro.specific.AvroGenerated -public class EnvelopedAspect 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\":\"EnvelopedAspect\",\"namespace\":\"com.linkedin.pegasus2avro.entity\",\"doc\":\"An aspect, along with the metadata about it.\\nCurrently, an aspect can be either of type 'timestamp' or 'versioned'.\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the aspect\"},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"AspectType\",\"doc\":\"The type of a DataHub aspect\",\"symbols\":[\"VERSIONED\",\"TIMESERIES\"],\"symbolDocs\":{\"TIMESERIES\":\"Designates an aspect that represents a point-in-time data point\",\"VERSIONED\":\"Designates an aspect that has a monotonically increasing version number\"}},\"doc\":\"The type of the aspect, either timeseries or versioned\"},{\"name\":\"version\",\"type\":[\"null\",\"long\"],\"doc\":\"The version of the aspect, only populated if type is 'VERSIONED'\",\"default\":null},{\"name\":\"timestamp\",\"type\":[\"null\",\"long\"],\"doc\":\"The timestamp of the aspect, only populated if type is 'TIMESTAMP'\",\"default\":null},{\"name\":\"value\",\"type\":{\"type\":\"record\",\"name\":\"Aspect\",\"doc\":\"Placeholder PDL record to store the aspect in the response. By using this place-holder, metadata-service can return\\nany type of aspect without having to define a single union class\",\"fields\":[]},\"doc\":\"The raw value of the aspect\"},{\"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\":\"The audit stamp detailing who the aspect was created by and when\"},{\"name\":\"systemMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SystemMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Metadata associated with each metadata change that is processed by the system\",\"fields\":[{\"name\":\"lastObserved\",\"type\":[\"long\",\"null\"],\"doc\":\"The timestamp the metadata was observed at\",\"default\":0},{\"name\":\"runId\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"],\"doc\":\"The run id that produced the metadata. Populated in case of batch-ingestion.\",\"default\":\"no-run-id-provided\"},{\"name\":\"registryName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry name that was used to process this event\",\"default\":null},{\"name\":\"registryVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry version that was used to process this event\",\"default\":null},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Additional properties\",\"default\":null}]}],\"doc\":\"The system metadata for this aspect\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the aspect */ - @Deprecated public java.lang.String name; - /** The type of the aspect, either timeseries or versioned */ - @Deprecated public com.linkedin.pegasus2avro.entity.AspectType type; - /** The version of the aspect, only populated if type is 'VERSIONED' */ - @Deprecated public java.lang.Long version; - /** The timestamp of the aspect, only populated if type is 'TIMESTAMP' */ - @Deprecated public java.lang.Long timestamp; - /** The raw value of the aspect */ - @Deprecated public com.linkedin.pegasus2avro.entity.Aspect value; - /** The audit stamp detailing who the aspect was created by and when */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created; - /** The system metadata for this aspect */ - @Deprecated public com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata; - - /** - * 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 EnvelopedAspect() {} - - /** - * All-args constructor. - */ - public EnvelopedAspect(java.lang.String name, com.linkedin.pegasus2avro.entity.AspectType type, java.lang.Long version, java.lang.Long timestamp, com.linkedin.pegasus2avro.entity.Aspect value, com.linkedin.pegasus2avro.common.AuditStamp created, com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata) { - this.name = name; - this.type = type; - this.version = version; - this.timestamp = timestamp; - this.value = value; - this.created = created; - this.systemMetadata = systemMetadata; - } - - 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 type; - case 2: return version; - case 3: return timestamp; - case 4: return value; - case 5: return created; - case 6: return systemMetadata; - 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: type = (com.linkedin.pegasus2avro.entity.AspectType)value$; break; - case 2: version = (java.lang.Long)value$; break; - case 3: timestamp = (java.lang.Long)value$; break; - case 4: value = (com.linkedin.pegasus2avro.entity.Aspect)value$; break; - case 5: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 6: systemMetadata = (com.linkedin.pegasus2avro.mxe.SystemMetadata)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * The name of the aspect */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * The name of the aspect * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'type' field. - * The type of the aspect, either timeseries or versioned */ - public com.linkedin.pegasus2avro.entity.AspectType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of the aspect, either timeseries or versioned * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.entity.AspectType value) { - this.type = value; - } - - /** - * Gets the value of the 'version' field. - * The version of the aspect, only populated if type is 'VERSIONED' */ - public java.lang.Long getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * The version of the aspect, only populated if type is 'VERSIONED' * @param value the value to set. - */ - public void setVersion(java.lang.Long value) { - this.version = value; - } - - /** - * Gets the value of the 'timestamp' field. - * The timestamp of the aspect, only populated if type is 'TIMESTAMP' */ - public java.lang.Long getTimestamp() { - return timestamp; - } - - /** - * Sets the value of the 'timestamp' field. - * The timestamp of the aspect, only populated if type is 'TIMESTAMP' * @param value the value to set. - */ - public void setTimestamp(java.lang.Long value) { - this.timestamp = value; - } - - /** - * Gets the value of the 'value' field. - * The raw value of the aspect */ - public com.linkedin.pegasus2avro.entity.Aspect getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * The raw value of the aspect * @param value the value to set. - */ - public void setValue(com.linkedin.pegasus2avro.entity.Aspect value) { - this.value = value; - } - - /** - * Gets the value of the 'created' field. - * The audit stamp detailing who the aspect was created by and when */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * The audit stamp detailing who the aspect was created by 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 'systemMetadata' field. - * The system metadata for this aspect */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getSystemMetadata() { - return systemMetadata; - } - - /** - * Sets the value of the 'systemMetadata' field. - * The system metadata for this aspect * @param value the value to set. - */ - public void setSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - this.systemMetadata = value; - } - - /** Creates a new EnvelopedAspect RecordBuilder */ - public static com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder newBuilder() { - return new com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder(); - } - - /** Creates a new EnvelopedAspect RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder newBuilder(com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder other) { - return new com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder(other); - } - - /** Creates a new EnvelopedAspect RecordBuilder by copying an existing EnvelopedAspect instance */ - public static com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder newBuilder(com.linkedin.pegasus2avro.entity.EnvelopedAspect other) { - return new com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder(other); - } - - /** - * RecordBuilder for EnvelopedAspect instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String name; - private com.linkedin.pegasus2avro.entity.AspectType type; - private java.lang.Long version; - private java.lang.Long timestamp; - private com.linkedin.pegasus2avro.entity.Aspect value; - private com.linkedin.pegasus2avro.common.AuditStamp created; - private com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.entity.EnvelopedAspect.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.entity.EnvelopedAspect.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.type)) { - this.type = data().deepCopy(fields()[1].schema(), other.type); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.version)) { - this.version = data().deepCopy(fields()[2].schema(), other.version); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.timestamp)) { - this.timestamp = data().deepCopy(fields()[3].schema(), other.timestamp); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.value)) { - this.value = data().deepCopy(fields()[4].schema(), other.value); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.created)) { - this.created = data().deepCopy(fields()[5].schema(), other.created); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.systemMetadata)) { - this.systemMetadata = data().deepCopy(fields()[6].schema(), other.systemMetadata); - fieldSetFlags()[6] = true; - } - } - - /** Creates a Builder by copying an existing EnvelopedAspect instance */ - private Builder(com.linkedin.pegasus2avro.entity.EnvelopedAspect other) { - super(com.linkedin.pegasus2avro.entity.EnvelopedAspect.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.type)) { - this.type = data().deepCopy(fields()[1].schema(), other.type); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.version)) { - this.version = data().deepCopy(fields()[2].schema(), other.version); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.timestamp)) { - this.timestamp = data().deepCopy(fields()[3].schema(), other.timestamp); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.value)) { - this.value = data().deepCopy(fields()[4].schema(), other.value); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.created)) { - this.created = data().deepCopy(fields()[5].schema(), other.created); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.systemMetadata)) { - this.systemMetadata = data().deepCopy(fields()[6].schema(), other.systemMetadata); - fieldSetFlags()[6] = 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.entity.EnvelopedAspect.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.entity.EnvelopedAspect.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.entity.AspectType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder setType(com.linkedin.pegasus2avro.entity.AspectType 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.entity.EnvelopedAspect.Builder clearType() { - type = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public java.lang.Long getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder setVersion(java.lang.Long value) { - validate(fields()[2], value); - this.version = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder clearVersion() { - version = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'timestamp' field */ - public java.lang.Long getTimestamp() { - return timestamp; - } - - /** Sets the value of the 'timestamp' field */ - public com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder setTimestamp(java.lang.Long value) { - validate(fields()[3], value); - this.timestamp = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'timestamp' field has been set */ - public boolean hasTimestamp() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'timestamp' field */ - public com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder clearTimestamp() { - timestamp = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'value' field */ - public com.linkedin.pegasus2avro.entity.Aspect getValue() { - return value; - } - - /** Sets the value of the 'value' field */ - public com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder setValue(com.linkedin.pegasus2avro.entity.Aspect value) { - validate(fields()[4], value); - this.value = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'value' field has been set */ - public boolean hasValue() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'value' field */ - public com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder clearValue() { - value = null; - fieldSetFlags()[4] = 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.entity.EnvelopedAspect.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[5], value); - this.created = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder clearCreated() { - created = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getSystemMetadata() { - return systemMetadata; - } - - /** Sets the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder setSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - validate(fields()[6], value); - this.systemMetadata = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'systemMetadata' field has been set */ - public boolean hasSystemMetadata() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.entity.EnvelopedAspect.Builder clearSystemMetadata() { - systemMetadata = null; - fieldSetFlags()[6] = false; - return this; - } - - @Override - public EnvelopedAspect build() { - try { - EnvelopedAspect record = new EnvelopedAspect(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.type = fieldSetFlags()[1] ? this.type : (com.linkedin.pegasus2avro.entity.AspectType) defaultValue(fields()[1]); - record.version = fieldSetFlags()[2] ? this.version : (java.lang.Long) defaultValue(fields()[2]); - record.timestamp = fieldSetFlags()[3] ? this.timestamp : (java.lang.Long) defaultValue(fields()[3]); - record.value = fieldSetFlags()[4] ? this.value : (com.linkedin.pegasus2avro.entity.Aspect) defaultValue(fields()[4]); - record.created = fieldSetFlags()[5] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[5]); - record.systemMetadata = fieldSetFlags()[6] ? this.systemMetadata : (com.linkedin.pegasus2avro.mxe.SystemMetadata) 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/events/metadata/ChangeType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/events/metadata/ChangeType.java deleted file mode 100644 index e08fabd4ef0ef..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/events/metadata/ChangeType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.events.metadata; -@SuppressWarnings("all") -/** Descriptor for a change action */ -@org.apache.avro.specific.AvroGenerated -public enum ChangeType { - UPSERT, CREATE, UPDATE, DELETE, PATCH, RESTATE ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"ChangeType\",\"namespace\":\"com.linkedin.pegasus2avro.events.metadata\",\"doc\":\"Descriptor for a change action\",\"symbols\":[\"UPSERT\",\"CREATE\",\"UPDATE\",\"DELETE\",\"PATCH\",\"RESTATE\"],\"symbolDocs\":{\"CREATE\":\"NOT SUPPORTED YET\\ninsert if not exists. otherwise fail\",\"DELETE\":\"NOT SUPPORTED YET\\ndelete action\",\"PATCH\":\"NOT SUPPORTED YET\\npatch the changes instead of full replace\",\"RESTATE\":\"Restate an aspect, eg. in a index refresh.\",\"UPDATE\":\"NOT SUPPORTED YET\\nupdate if exists. otherwise fail\",\"UPSERT\":\"insert if not exists. otherwise update\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/execution/ExecutionRequestInput.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/execution/ExecutionRequestInput.java deleted file mode 100644 index 29e64b6cacd08..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/execution/ExecutionRequestInput.java +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.execution; -@SuppressWarnings("all") -/** An request to execution some remote logic or action. -TODO: Determine who is responsible for emitting execution request success or failure. Executor? */ -@org.apache.avro.specific.AvroGenerated -public class ExecutionRequestInput 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\":\"ExecutionRequestInput\",\"namespace\":\"com.linkedin.pegasus2avro.execution\",\"doc\":\"An request to execution some remote logic or action.\\nTODO: Determine who is responsible for emitting execution request success or failure. Executor?\",\"fields\":[{\"name\":\"task\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the task to execute, for example RUN_INGEST\"},{\"name\":\"args\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"},\"doc\":\"Arguments provided to the task\"},{\"name\":\"executorId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Advanced: specify a specific executor to route the request to. If none is provided, a \\\"default\\\" executor is used.\"},{\"name\":\"source\",\"type\":{\"type\":\"record\",\"name\":\"ExecutionRequestSource\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of the execution request source, e.g. INGESTION_SOURCE\"},{\"name\":\"ingestionSource\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The urn of the ingestion source associated with the ingestion request. Present if type is INGESTION_SOURCE\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"dataHubIngestionSource\"],\"name\":\"ingestionSource\"},\"Searchable\":{\"fieldName\":\"ingestionSource\",\"fieldType\":\"KEYWORD\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]},\"doc\":\"Source which created the execution request\"},{\"name\":\"requestedAt\",\"type\":\"long\",\"doc\":\"Time at which the execution request input was created\",\"Searchable\":{\"fieldName\":\"requestTimeMs\",\"fieldType\":\"COUNT\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"dataHubExecutionRequestInput\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the task to execute, for example RUN_INGEST */ - @Deprecated public java.lang.String task; - /** Arguments provided to the task */ - @Deprecated public java.util.Map args; - /** Advanced: specify a specific executor to route the request to. If none is provided, a "default" executor is used. */ - @Deprecated public java.lang.String executorId; - /** Source which created the execution request */ - @Deprecated public com.linkedin.pegasus2avro.execution.ExecutionRequestSource source; - /** Time at which the execution request input was created */ - @Deprecated public long requestedAt; - - /** - * 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 ExecutionRequestInput() {} - - /** - * All-args constructor. - */ - public ExecutionRequestInput(java.lang.String task, java.util.Map args, java.lang.String executorId, com.linkedin.pegasus2avro.execution.ExecutionRequestSource source, java.lang.Long requestedAt) { - this.task = task; - this.args = args; - this.executorId = executorId; - this.source = source; - this.requestedAt = requestedAt; - } - - 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 task; - case 1: return args; - case 2: return executorId; - case 3: return source; - case 4: return requestedAt; - 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: task = (java.lang.String)value$; break; - case 1: args = (java.util.Map)value$; break; - case 2: executorId = (java.lang.String)value$; break; - case 3: source = (com.linkedin.pegasus2avro.execution.ExecutionRequestSource)value$; break; - case 4: requestedAt = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'task' field. - * The name of the task to execute, for example RUN_INGEST */ - public java.lang.String getTask() { - return task; - } - - /** - * Sets the value of the 'task' field. - * The name of the task to execute, for example RUN_INGEST * @param value the value to set. - */ - public void setTask(java.lang.String value) { - this.task = value; - } - - /** - * Gets the value of the 'args' field. - * Arguments provided to the task */ - public java.util.Map getArgs() { - return args; - } - - /** - * Sets the value of the 'args' field. - * Arguments provided to the task * @param value the value to set. - */ - public void setArgs(java.util.Map value) { - this.args = value; - } - - /** - * Gets the value of the 'executorId' field. - * Advanced: specify a specific executor to route the request to. If none is provided, a "default" executor is used. */ - public java.lang.String getExecutorId() { - return executorId; - } - - /** - * Sets the value of the 'executorId' field. - * Advanced: specify a specific executor to route the request to. If none is provided, a "default" executor is used. * @param value the value to set. - */ - public void setExecutorId(java.lang.String value) { - this.executorId = value; - } - - /** - * Gets the value of the 'source' field. - * Source which created the execution request */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestSource getSource() { - return source; - } - - /** - * Sets the value of the 'source' field. - * Source which created the execution request * @param value the value to set. - */ - public void setSource(com.linkedin.pegasus2avro.execution.ExecutionRequestSource value) { - this.source = value; - } - - /** - * Gets the value of the 'requestedAt' field. - * Time at which the execution request input was created */ - public java.lang.Long getRequestedAt() { - return requestedAt; - } - - /** - * Sets the value of the 'requestedAt' field. - * Time at which the execution request input was created * @param value the value to set. - */ - public void setRequestedAt(java.lang.Long value) { - this.requestedAt = value; - } - - /** Creates a new ExecutionRequestInput RecordBuilder */ - public static com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder newBuilder() { - return new com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder(); - } - - /** Creates a new ExecutionRequestInput RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder newBuilder(com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder other) { - return new com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder(other); - } - - /** Creates a new ExecutionRequestInput RecordBuilder by copying an existing ExecutionRequestInput instance */ - public static com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder newBuilder(com.linkedin.pegasus2avro.execution.ExecutionRequestInput other) { - return new com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder(other); - } - - /** - * RecordBuilder for ExecutionRequestInput instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String task; - private java.util.Map args; - private java.lang.String executorId; - private com.linkedin.pegasus2avro.execution.ExecutionRequestSource source; - private long requestedAt; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.execution.ExecutionRequestInput.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder other) { - super(other); - if (isValidValue(fields()[0], other.task)) { - this.task = data().deepCopy(fields()[0].schema(), other.task); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.args)) { - this.args = data().deepCopy(fields()[1].schema(), other.args); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.executorId)) { - this.executorId = data().deepCopy(fields()[2].schema(), other.executorId); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.source)) { - this.source = data().deepCopy(fields()[3].schema(), other.source); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.requestedAt)) { - this.requestedAt = data().deepCopy(fields()[4].schema(), other.requestedAt); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing ExecutionRequestInput instance */ - private Builder(com.linkedin.pegasus2avro.execution.ExecutionRequestInput other) { - super(com.linkedin.pegasus2avro.execution.ExecutionRequestInput.SCHEMA$); - if (isValidValue(fields()[0], other.task)) { - this.task = data().deepCopy(fields()[0].schema(), other.task); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.args)) { - this.args = data().deepCopy(fields()[1].schema(), other.args); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.executorId)) { - this.executorId = data().deepCopy(fields()[2].schema(), other.executorId); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.source)) { - this.source = data().deepCopy(fields()[3].schema(), other.source); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.requestedAt)) { - this.requestedAt = data().deepCopy(fields()[4].schema(), other.requestedAt); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'task' field */ - public java.lang.String getTask() { - return task; - } - - /** Sets the value of the 'task' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder setTask(java.lang.String value) { - validate(fields()[0], value); - this.task = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'task' field has been set */ - public boolean hasTask() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'task' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder clearTask() { - task = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'args' field */ - public java.util.Map getArgs() { - return args; - } - - /** Sets the value of the 'args' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder setArgs(java.util.Map value) { - validate(fields()[1], value); - this.args = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'args' field has been set */ - public boolean hasArgs() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'args' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder clearArgs() { - args = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'executorId' field */ - public java.lang.String getExecutorId() { - return executorId; - } - - /** Sets the value of the 'executorId' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder setExecutorId(java.lang.String value) { - validate(fields()[2], value); - this.executorId = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'executorId' field has been set */ - public boolean hasExecutorId() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'executorId' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder clearExecutorId() { - executorId = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'source' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestSource getSource() { - return source; - } - - /** Sets the value of the 'source' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder setSource(com.linkedin.pegasus2avro.execution.ExecutionRequestSource value) { - validate(fields()[3], value); - this.source = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'source' field has been set */ - public boolean hasSource() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'source' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder clearSource() { - source = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'requestedAt' field */ - public java.lang.Long getRequestedAt() { - return requestedAt; - } - - /** Sets the value of the 'requestedAt' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder setRequestedAt(long value) { - validate(fields()[4], value); - this.requestedAt = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'requestedAt' field has been set */ - public boolean hasRequestedAt() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'requestedAt' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestInput.Builder clearRequestedAt() { - fieldSetFlags()[4] = false; - return this; - } - - @Override - public ExecutionRequestInput build() { - try { - ExecutionRequestInput record = new ExecutionRequestInput(); - record.task = fieldSetFlags()[0] ? this.task : (java.lang.String) defaultValue(fields()[0]); - record.args = fieldSetFlags()[1] ? this.args : (java.util.Map) defaultValue(fields()[1]); - record.executorId = fieldSetFlags()[2] ? this.executorId : (java.lang.String) defaultValue(fields()[2]); - record.source = fieldSetFlags()[3] ? this.source : (com.linkedin.pegasus2avro.execution.ExecutionRequestSource) defaultValue(fields()[3]); - record.requestedAt = fieldSetFlags()[4] ? this.requestedAt : (java.lang.Long) 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/execution/ExecutionRequestResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/execution/ExecutionRequestResult.java deleted file mode 100644 index 0c55afd3cd4ae..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/execution/ExecutionRequestResult.java +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.execution; -@SuppressWarnings("all") -/** The result of an execution request */ -@org.apache.avro.specific.AvroGenerated -public class ExecutionRequestResult 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\":\"ExecutionRequestResult\",\"namespace\":\"com.linkedin.pegasus2avro.execution\",\"doc\":\"The result of an execution request\",\"fields\":[{\"name\":\"status\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The status of the execution request\"},{\"name\":\"report\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The pretty-printed execution report.\",\"default\":null},{\"name\":\"structuredReport\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"StructuredExecutionReport\",\"doc\":\"A flexible carrier for structured results of an execution request.\\nThe goal is to allow for free flow of structured responses from execution tasks to the orchestrator or observer.\\nThe full spectrum of different execution report types is not intended to be modeled by this object.\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of the structured report. (e.g. INGESTION_REPORT, TEST_CONNECTION_REPORT, etc.)\"},{\"name\":\"serializedValue\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The serialized value of the structured report\"},{\"name\":\"contentType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The content-type of the serialized value (e.g. application/json, application/json;gzip etc.)\"}]}],\"doc\":\"A structured report if available.\",\"default\":null},{\"name\":\"startTimeMs\",\"type\":[\"null\",\"long\"],\"doc\":\"Time at which the request was created\",\"default\":null,\"Searchable\":{\"fieldName\":\"startTimeMs\",\"fieldType\":\"COUNT\",\"queryByDefault\":false}},{\"name\":\"durationMs\",\"type\":[\"null\",\"long\"],\"doc\":\"Duration in milliseconds\",\"default\":null}],\"Aspect\":{\"name\":\"dataHubExecutionRequestResult\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The status of the execution request */ - @Deprecated public java.lang.String status; - /** The pretty-printed execution report. */ - @Deprecated public java.lang.String report; - /** A structured report if available. */ - @Deprecated public com.linkedin.pegasus2avro.execution.StructuredExecutionReport structuredReport; - /** Time at which the request was created */ - @Deprecated public java.lang.Long startTimeMs; - /** Duration in milliseconds */ - @Deprecated public java.lang.Long durationMs; - - /** - * 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 ExecutionRequestResult() {} - - /** - * All-args constructor. - */ - public ExecutionRequestResult(java.lang.String status, java.lang.String report, com.linkedin.pegasus2avro.execution.StructuredExecutionReport structuredReport, java.lang.Long startTimeMs, java.lang.Long durationMs) { - this.status = status; - this.report = report; - this.structuredReport = structuredReport; - this.startTimeMs = startTimeMs; - this.durationMs = durationMs; - } - - 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 status; - case 1: return report; - case 2: return structuredReport; - case 3: return startTimeMs; - case 4: return durationMs; - 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: status = (java.lang.String)value$; break; - case 1: report = (java.lang.String)value$; break; - case 2: structuredReport = (com.linkedin.pegasus2avro.execution.StructuredExecutionReport)value$; break; - case 3: startTimeMs = (java.lang.Long)value$; break; - case 4: durationMs = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'status' field. - * The status of the execution request */ - public java.lang.String getStatus() { - return status; - } - - /** - * Sets the value of the 'status' field. - * The status of the execution request * @param value the value to set. - */ - public void setStatus(java.lang.String value) { - this.status = value; - } - - /** - * Gets the value of the 'report' field. - * The pretty-printed execution report. */ - public java.lang.String getReport() { - return report; - } - - /** - * Sets the value of the 'report' field. - * The pretty-printed execution report. * @param value the value to set. - */ - public void setReport(java.lang.String value) { - this.report = value; - } - - /** - * Gets the value of the 'structuredReport' field. - * A structured report if available. */ - public com.linkedin.pegasus2avro.execution.StructuredExecutionReport getStructuredReport() { - return structuredReport; - } - - /** - * Sets the value of the 'structuredReport' field. - * A structured report if available. * @param value the value to set. - */ - public void setStructuredReport(com.linkedin.pegasus2avro.execution.StructuredExecutionReport value) { - this.structuredReport = value; - } - - /** - * Gets the value of the 'startTimeMs' field. - * Time at which the request was created */ - public java.lang.Long getStartTimeMs() { - return startTimeMs; - } - - /** - * Sets the value of the 'startTimeMs' field. - * Time at which the request was created * @param value the value to set. - */ - public void setStartTimeMs(java.lang.Long value) { - this.startTimeMs = value; - } - - /** - * Gets the value of the 'durationMs' field. - * Duration in milliseconds */ - public java.lang.Long getDurationMs() { - return durationMs; - } - - /** - * Sets the value of the 'durationMs' field. - * Duration in milliseconds * @param value the value to set. - */ - public void setDurationMs(java.lang.Long value) { - this.durationMs = value; - } - - /** Creates a new ExecutionRequestResult RecordBuilder */ - public static com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder(); - } - - /** Creates a new ExecutionRequestResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder newBuilder(com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder other) { - return new com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder(other); - } - - /** Creates a new ExecutionRequestResult RecordBuilder by copying an existing ExecutionRequestResult instance */ - public static com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder newBuilder(com.linkedin.pegasus2avro.execution.ExecutionRequestResult other) { - return new com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder(other); - } - - /** - * RecordBuilder for ExecutionRequestResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String status; - private java.lang.String report; - private com.linkedin.pegasus2avro.execution.StructuredExecutionReport structuredReport; - private java.lang.Long startTimeMs; - private java.lang.Long durationMs; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.execution.ExecutionRequestResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.status)) { - this.status = data().deepCopy(fields()[0].schema(), other.status); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.report)) { - this.report = data().deepCopy(fields()[1].schema(), other.report); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.structuredReport)) { - this.structuredReport = data().deepCopy(fields()[2].schema(), other.structuredReport); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.startTimeMs)) { - this.startTimeMs = data().deepCopy(fields()[3].schema(), other.startTimeMs); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.durationMs)) { - this.durationMs = data().deepCopy(fields()[4].schema(), other.durationMs); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing ExecutionRequestResult instance */ - private Builder(com.linkedin.pegasus2avro.execution.ExecutionRequestResult other) { - super(com.linkedin.pegasus2avro.execution.ExecutionRequestResult.SCHEMA$); - if (isValidValue(fields()[0], other.status)) { - this.status = data().deepCopy(fields()[0].schema(), other.status); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.report)) { - this.report = data().deepCopy(fields()[1].schema(), other.report); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.structuredReport)) { - this.structuredReport = data().deepCopy(fields()[2].schema(), other.structuredReport); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.startTimeMs)) { - this.startTimeMs = data().deepCopy(fields()[3].schema(), other.startTimeMs); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.durationMs)) { - this.durationMs = data().deepCopy(fields()[4].schema(), other.durationMs); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'status' field */ - public java.lang.String getStatus() { - return status; - } - - /** Sets the value of the 'status' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder setStatus(java.lang.String value) { - validate(fields()[0], value); - this.status = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'status' field has been set */ - public boolean hasStatus() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'status' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder clearStatus() { - status = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'report' field */ - public java.lang.String getReport() { - return report; - } - - /** Sets the value of the 'report' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder setReport(java.lang.String value) { - validate(fields()[1], value); - this.report = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'report' field has been set */ - public boolean hasReport() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'report' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder clearReport() { - report = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'structuredReport' field */ - public com.linkedin.pegasus2avro.execution.StructuredExecutionReport getStructuredReport() { - return structuredReport; - } - - /** Sets the value of the 'structuredReport' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder setStructuredReport(com.linkedin.pegasus2avro.execution.StructuredExecutionReport value) { - validate(fields()[2], value); - this.structuredReport = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'structuredReport' field has been set */ - public boolean hasStructuredReport() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'structuredReport' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder clearStructuredReport() { - structuredReport = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'startTimeMs' field */ - public java.lang.Long getStartTimeMs() { - return startTimeMs; - } - - /** Sets the value of the 'startTimeMs' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder setStartTimeMs(java.lang.Long value) { - validate(fields()[3], value); - this.startTimeMs = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'startTimeMs' field has been set */ - public boolean hasStartTimeMs() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'startTimeMs' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder clearStartTimeMs() { - startTimeMs = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'durationMs' field */ - public java.lang.Long getDurationMs() { - return durationMs; - } - - /** Sets the value of the 'durationMs' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder setDurationMs(java.lang.Long value) { - validate(fields()[4], value); - this.durationMs = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'durationMs' field has been set */ - public boolean hasDurationMs() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'durationMs' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestResult.Builder clearDurationMs() { - durationMs = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public ExecutionRequestResult build() { - try { - ExecutionRequestResult record = new ExecutionRequestResult(); - record.status = fieldSetFlags()[0] ? this.status : (java.lang.String) defaultValue(fields()[0]); - record.report = fieldSetFlags()[1] ? this.report : (java.lang.String) defaultValue(fields()[1]); - record.structuredReport = fieldSetFlags()[2] ? this.structuredReport : (com.linkedin.pegasus2avro.execution.StructuredExecutionReport) defaultValue(fields()[2]); - record.startTimeMs = fieldSetFlags()[3] ? this.startTimeMs : (java.lang.Long) defaultValue(fields()[3]); - record.durationMs = fieldSetFlags()[4] ? this.durationMs : (java.lang.Long) 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/execution/ExecutionRequestSignal.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/execution/ExecutionRequestSignal.java deleted file mode 100644 index 105f3a5d3798d..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/execution/ExecutionRequestSignal.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.execution; -@SuppressWarnings("all") -/** An signal sent to a running execution request */ -@org.apache.avro.specific.AvroGenerated -public class ExecutionRequestSignal 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\":\"ExecutionRequestSignal\",\"namespace\":\"com.linkedin.pegasus2avro.execution\",\"doc\":\"An signal sent to a running execution request\",\"fields\":[{\"name\":\"signal\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The signal to issue, e.g. KILL\"},{\"name\":\"executorId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Advanced: specify a specific executor to route the request to. If none is provided, a \\\"default\\\" executor is used.\",\"default\":null},{\"name\":\"createdAt\",\"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\":\"Audit Stamp\"}],\"Aspect\":{\"name\":\"dataHubExecutionRequestSignal\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The signal to issue, e.g. KILL */ - @Deprecated public java.lang.String signal; - /** Advanced: specify a specific executor to route the request to. If none is provided, a "default" executor is used. */ - @Deprecated public java.lang.String executorId; - /** Audit Stamp */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp createdAt; - - /** - * 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 ExecutionRequestSignal() {} - - /** - * All-args constructor. - */ - public ExecutionRequestSignal(java.lang.String signal, java.lang.String executorId, com.linkedin.pegasus2avro.common.AuditStamp createdAt) { - this.signal = signal; - this.executorId = executorId; - this.createdAt = createdAt; - } - - 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 signal; - case 1: return executorId; - case 2: return createdAt; - 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: signal = (java.lang.String)value$; break; - case 1: executorId = (java.lang.String)value$; break; - case 2: createdAt = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'signal' field. - * The signal to issue, e.g. KILL */ - public java.lang.String getSignal() { - return signal; - } - - /** - * Sets the value of the 'signal' field. - * The signal to issue, e.g. KILL * @param value the value to set. - */ - public void setSignal(java.lang.String value) { - this.signal = value; - } - - /** - * Gets the value of the 'executorId' field. - * Advanced: specify a specific executor to route the request to. If none is provided, a "default" executor is used. */ - public java.lang.String getExecutorId() { - return executorId; - } - - /** - * Sets the value of the 'executorId' field. - * Advanced: specify a specific executor to route the request to. If none is provided, a "default" executor is used. * @param value the value to set. - */ - public void setExecutorId(java.lang.String value) { - this.executorId = value; - } - - /** - * Gets the value of the 'createdAt' field. - * Audit Stamp */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreatedAt() { - return createdAt; - } - - /** - * Sets the value of the 'createdAt' field. - * Audit Stamp * @param value the value to set. - */ - public void setCreatedAt(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.createdAt = value; - } - - /** Creates a new ExecutionRequestSignal RecordBuilder */ - public static com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder newBuilder() { - return new com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder(); - } - - /** Creates a new ExecutionRequestSignal RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder newBuilder(com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder other) { - return new com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder(other); - } - - /** Creates a new ExecutionRequestSignal RecordBuilder by copying an existing ExecutionRequestSignal instance */ - public static com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder newBuilder(com.linkedin.pegasus2avro.execution.ExecutionRequestSignal other) { - return new com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder(other); - } - - /** - * RecordBuilder for ExecutionRequestSignal instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String signal; - private java.lang.String executorId; - private com.linkedin.pegasus2avro.common.AuditStamp createdAt; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder other) { - super(other); - if (isValidValue(fields()[0], other.signal)) { - this.signal = data().deepCopy(fields()[0].schema(), other.signal); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.executorId)) { - this.executorId = data().deepCopy(fields()[1].schema(), other.executorId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.createdAt)) { - this.createdAt = data().deepCopy(fields()[2].schema(), other.createdAt); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing ExecutionRequestSignal instance */ - private Builder(com.linkedin.pegasus2avro.execution.ExecutionRequestSignal other) { - super(com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.SCHEMA$); - if (isValidValue(fields()[0], other.signal)) { - this.signal = data().deepCopy(fields()[0].schema(), other.signal); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.executorId)) { - this.executorId = data().deepCopy(fields()[1].schema(), other.executorId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.createdAt)) { - this.createdAt = data().deepCopy(fields()[2].schema(), other.createdAt); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'signal' field */ - public java.lang.String getSignal() { - return signal; - } - - /** Sets the value of the 'signal' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder setSignal(java.lang.String value) { - validate(fields()[0], value); - this.signal = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'signal' field has been set */ - public boolean hasSignal() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'signal' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder clearSignal() { - signal = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'executorId' field */ - public java.lang.String getExecutorId() { - return executorId; - } - - /** Sets the value of the 'executorId' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder setExecutorId(java.lang.String value) { - validate(fields()[1], value); - this.executorId = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'executorId' field has been set */ - public boolean hasExecutorId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'executorId' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder clearExecutorId() { - executorId = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'createdAt' field */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreatedAt() { - return createdAt; - } - - /** Sets the value of the 'createdAt' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder setCreatedAt(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[2], value); - this.createdAt = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'createdAt' field has been set */ - public boolean hasCreatedAt() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'createdAt' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestSignal.Builder clearCreatedAt() { - createdAt = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public ExecutionRequestSignal build() { - try { - ExecutionRequestSignal record = new ExecutionRequestSignal(); - record.signal = fieldSetFlags()[0] ? this.signal : (java.lang.String) defaultValue(fields()[0]); - record.executorId = fieldSetFlags()[1] ? this.executorId : (java.lang.String) defaultValue(fields()[1]); - record.createdAt = fieldSetFlags()[2] ? this.createdAt : (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/execution/ExecutionRequestSource.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/execution/ExecutionRequestSource.java deleted file mode 100644 index f59a9e881ec09..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/execution/ExecutionRequestSource.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.execution; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class ExecutionRequestSource 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\":\"ExecutionRequestSource\",\"namespace\":\"com.linkedin.pegasus2avro.execution\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of the execution request source, e.g. INGESTION_SOURCE\"},{\"name\":\"ingestionSource\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The urn of the ingestion source associated with the ingestion request. Present if type is INGESTION_SOURCE\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"dataHubIngestionSource\"],\"name\":\"ingestionSource\"},\"Searchable\":{\"fieldName\":\"ingestionSource\",\"fieldType\":\"KEYWORD\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The type of the execution request source, e.g. INGESTION_SOURCE */ - @Deprecated public java.lang.String type; - /** The urn of the ingestion source associated with the ingestion request. Present if type is INGESTION_SOURCE */ - @Deprecated public java.lang.String ingestionSource; - - /** - * 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 ExecutionRequestSource() {} - - /** - * All-args constructor. - */ - public ExecutionRequestSource(java.lang.String type, java.lang.String ingestionSource) { - this.type = type; - this.ingestionSource = ingestionSource; - } - - 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 ingestionSource; - 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 = (java.lang.String)value$; break; - case 1: ingestionSource = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * The type of the execution request source, e.g. INGESTION_SOURCE */ - public java.lang.String getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of the execution request source, e.g. INGESTION_SOURCE * @param value the value to set. - */ - public void setType(java.lang.String value) { - this.type = value; - } - - /** - * Gets the value of the 'ingestionSource' field. - * The urn of the ingestion source associated with the ingestion request. Present if type is INGESTION_SOURCE */ - public java.lang.String getIngestionSource() { - return ingestionSource; - } - - /** - * Sets the value of the 'ingestionSource' field. - * The urn of the ingestion source associated with the ingestion request. Present if type is INGESTION_SOURCE * @param value the value to set. - */ - public void setIngestionSource(java.lang.String value) { - this.ingestionSource = value; - } - - /** Creates a new ExecutionRequestSource RecordBuilder */ - public static com.linkedin.pegasus2avro.execution.ExecutionRequestSource.Builder newBuilder() { - return new com.linkedin.pegasus2avro.execution.ExecutionRequestSource.Builder(); - } - - /** Creates a new ExecutionRequestSource RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.execution.ExecutionRequestSource.Builder newBuilder(com.linkedin.pegasus2avro.execution.ExecutionRequestSource.Builder other) { - return new com.linkedin.pegasus2avro.execution.ExecutionRequestSource.Builder(other); - } - - /** Creates a new ExecutionRequestSource RecordBuilder by copying an existing ExecutionRequestSource instance */ - public static com.linkedin.pegasus2avro.execution.ExecutionRequestSource.Builder newBuilder(com.linkedin.pegasus2avro.execution.ExecutionRequestSource other) { - return new com.linkedin.pegasus2avro.execution.ExecutionRequestSource.Builder(other); - } - - /** - * RecordBuilder for ExecutionRequestSource instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String type; - private java.lang.String ingestionSource; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.execution.ExecutionRequestSource.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.execution.ExecutionRequestSource.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.ingestionSource)) { - this.ingestionSource = data().deepCopy(fields()[1].schema(), other.ingestionSource); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing ExecutionRequestSource instance */ - private Builder(com.linkedin.pegasus2avro.execution.ExecutionRequestSource other) { - super(com.linkedin.pegasus2avro.execution.ExecutionRequestSource.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.ingestionSource)) { - this.ingestionSource = data().deepCopy(fields()[1].schema(), other.ingestionSource); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'type' field */ - public java.lang.String getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestSource.Builder setType(java.lang.String 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.execution.ExecutionRequestSource.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'ingestionSource' field */ - public java.lang.String getIngestionSource() { - return ingestionSource; - } - - /** Sets the value of the 'ingestionSource' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestSource.Builder setIngestionSource(java.lang.String value) { - validate(fields()[1], value); - this.ingestionSource = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'ingestionSource' field has been set */ - public boolean hasIngestionSource() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'ingestionSource' field */ - public com.linkedin.pegasus2avro.execution.ExecutionRequestSource.Builder clearIngestionSource() { - ingestionSource = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public ExecutionRequestSource build() { - try { - ExecutionRequestSource record = new ExecutionRequestSource(); - record.type = fieldSetFlags()[0] ? this.type : (java.lang.String) defaultValue(fields()[0]); - record.ingestionSource = fieldSetFlags()[1] ? this.ingestionSource : (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/execution/StructuredExecutionReport.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/execution/StructuredExecutionReport.java deleted file mode 100644 index 664afcca4388a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/execution/StructuredExecutionReport.java +++ /dev/null @@ -1,256 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.execution; -@SuppressWarnings("all") -/** A flexible carrier for structured results of an execution request. -The goal is to allow for free flow of structured responses from execution tasks to the orchestrator or observer. -The full spectrum of different execution report types is not intended to be modeled by this object. */ -@org.apache.avro.specific.AvroGenerated -public class StructuredExecutionReport 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\":\"StructuredExecutionReport\",\"namespace\":\"com.linkedin.pegasus2avro.execution\",\"doc\":\"A flexible carrier for structured results of an execution request.\\nThe goal is to allow for free flow of structured responses from execution tasks to the orchestrator or observer.\\nThe full spectrum of different execution report types is not intended to be modeled by this object.\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of the structured report. (e.g. INGESTION_REPORT, TEST_CONNECTION_REPORT, etc.)\"},{\"name\":\"serializedValue\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The serialized value of the structured report\"},{\"name\":\"contentType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The content-type of the serialized value (e.g. application/json, application/json;gzip etc.)\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The type of the structured report. (e.g. INGESTION_REPORT, TEST_CONNECTION_REPORT, etc.) */ - @Deprecated public java.lang.String type; - /** The serialized value of the structured report */ - @Deprecated public java.lang.String serializedValue; - /** The content-type of the serialized value (e.g. application/json, application/json;gzip etc.) */ - @Deprecated public java.lang.String contentType; - - /** - * 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 StructuredExecutionReport() {} - - /** - * All-args constructor. - */ - public StructuredExecutionReport(java.lang.String type, java.lang.String serializedValue, java.lang.String contentType) { - this.type = type; - this.serializedValue = serializedValue; - this.contentType = contentType; - } - - 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 serializedValue; - case 2: return contentType; - 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 = (java.lang.String)value$; break; - case 1: serializedValue = (java.lang.String)value$; break; - case 2: contentType = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * The type of the structured report. (e.g. INGESTION_REPORT, TEST_CONNECTION_REPORT, etc.) */ - public java.lang.String getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of the structured report. (e.g. INGESTION_REPORT, TEST_CONNECTION_REPORT, etc.) * @param value the value to set. - */ - public void setType(java.lang.String value) { - this.type = value; - } - - /** - * Gets the value of the 'serializedValue' field. - * The serialized value of the structured report */ - public java.lang.String getSerializedValue() { - return serializedValue; - } - - /** - * Sets the value of the 'serializedValue' field. - * The serialized value of the structured report * @param value the value to set. - */ - public void setSerializedValue(java.lang.String value) { - this.serializedValue = value; - } - - /** - * Gets the value of the 'contentType' field. - * The content-type of the serialized value (e.g. application/json, application/json;gzip etc.) */ - public java.lang.String getContentType() { - return contentType; - } - - /** - * Sets the value of the 'contentType' field. - * The content-type of the serialized value (e.g. application/json, application/json;gzip etc.) * @param value the value to set. - */ - public void setContentType(java.lang.String value) { - this.contentType = value; - } - - /** Creates a new StructuredExecutionReport RecordBuilder */ - public static com.linkedin.pegasus2avro.execution.StructuredExecutionReport.Builder newBuilder() { - return new com.linkedin.pegasus2avro.execution.StructuredExecutionReport.Builder(); - } - - /** Creates a new StructuredExecutionReport RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.execution.StructuredExecutionReport.Builder newBuilder(com.linkedin.pegasus2avro.execution.StructuredExecutionReport.Builder other) { - return new com.linkedin.pegasus2avro.execution.StructuredExecutionReport.Builder(other); - } - - /** Creates a new StructuredExecutionReport RecordBuilder by copying an existing StructuredExecutionReport instance */ - public static com.linkedin.pegasus2avro.execution.StructuredExecutionReport.Builder newBuilder(com.linkedin.pegasus2avro.execution.StructuredExecutionReport other) { - return new com.linkedin.pegasus2avro.execution.StructuredExecutionReport.Builder(other); - } - - /** - * RecordBuilder for StructuredExecutionReport instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String type; - private java.lang.String serializedValue; - private java.lang.String contentType; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.execution.StructuredExecutionReport.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.execution.StructuredExecutionReport.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.serializedValue)) { - this.serializedValue = data().deepCopy(fields()[1].schema(), other.serializedValue); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.contentType)) { - this.contentType = data().deepCopy(fields()[2].schema(), other.contentType); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing StructuredExecutionReport instance */ - private Builder(com.linkedin.pegasus2avro.execution.StructuredExecutionReport other) { - super(com.linkedin.pegasus2avro.execution.StructuredExecutionReport.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.serializedValue)) { - this.serializedValue = data().deepCopy(fields()[1].schema(), other.serializedValue); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.contentType)) { - this.contentType = data().deepCopy(fields()[2].schema(), other.contentType); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'type' field */ - public java.lang.String getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.execution.StructuredExecutionReport.Builder setType(java.lang.String 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.execution.StructuredExecutionReport.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'serializedValue' field */ - public java.lang.String getSerializedValue() { - return serializedValue; - } - - /** Sets the value of the 'serializedValue' field */ - public com.linkedin.pegasus2avro.execution.StructuredExecutionReport.Builder setSerializedValue(java.lang.String value) { - validate(fields()[1], value); - this.serializedValue = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'serializedValue' field has been set */ - public boolean hasSerializedValue() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'serializedValue' field */ - public com.linkedin.pegasus2avro.execution.StructuredExecutionReport.Builder clearSerializedValue() { - serializedValue = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'contentType' field */ - public java.lang.String getContentType() { - return contentType; - } - - /** Sets the value of the 'contentType' field */ - public com.linkedin.pegasus2avro.execution.StructuredExecutionReport.Builder setContentType(java.lang.String value) { - validate(fields()[2], value); - this.contentType = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'contentType' field has been set */ - public boolean hasContentType() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'contentType' field */ - public com.linkedin.pegasus2avro.execution.StructuredExecutionReport.Builder clearContentType() { - contentType = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public StructuredExecutionReport build() { - try { - StructuredExecutionReport record = new StructuredExecutionReport(); - record.type = fieldSetFlags()[0] ? this.type : (java.lang.String) defaultValue(fields()[0]); - record.serializedValue = fieldSetFlags()[1] ? this.serializedValue : (java.lang.String) defaultValue(fields()[1]); - record.contentType = fieldSetFlags()[2] ? this.contentType : (java.lang.String) 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/glossary/GlossaryNodeInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/glossary/GlossaryNodeInfo.java deleted file mode 100644 index 0d0668f2223bc..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/glossary/GlossaryNodeInfo.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.glossary; -@SuppressWarnings("all") -/** Properties associated with a GlossaryNode */ -@org.apache.avro.specific.AvroGenerated -public class GlossaryNodeInfo 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\":\"GlossaryNodeInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryNode\",\"fields\":[{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business node\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the node\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"displayName\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the GlossaryNode\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Definition of business node */ - @Deprecated public java.lang.String definition; - /** Parent node of the glossary term */ - @Deprecated public java.lang.String parentNode; - /** Display name of the node */ - @Deprecated public java.lang.String name; - /** Optional id for the GlossaryNode */ - @Deprecated public java.lang.String id; - - /** - * 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 GlossaryNodeInfo() {} - - /** - * All-args constructor. - */ - public GlossaryNodeInfo(java.lang.String definition, java.lang.String parentNode, java.lang.String name, java.lang.String id) { - this.definition = definition; - this.parentNode = parentNode; - this.name = name; - this.id = id; - } - - 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 definition; - case 1: return parentNode; - case 2: return name; - case 3: return id; - 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: definition = (java.lang.String)value$; break; - case 1: parentNode = (java.lang.String)value$; break; - case 2: name = (java.lang.String)value$; break; - case 3: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'definition' field. - * Definition of business node */ - public java.lang.String getDefinition() { - return definition; - } - - /** - * Sets the value of the 'definition' field. - * Definition of business node * @param value the value to set. - */ - public void setDefinition(java.lang.String value) { - this.definition = value; - } - - /** - * Gets the value of the 'parentNode' field. - * Parent node of the glossary term */ - public java.lang.String getParentNode() { - return parentNode; - } - - /** - * Sets the value of the 'parentNode' field. - * Parent node of the glossary term * @param value the value to set. - */ - public void setParentNode(java.lang.String value) { - this.parentNode = value; - } - - /** - * Gets the value of the 'name' field. - * Display name of the node */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Display name of the node * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'id' field. - * Optional id for the GlossaryNode */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * Optional id for the GlossaryNode * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new GlossaryNodeInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder(); - } - - /** Creates a new GlossaryNodeInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder newBuilder(com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder other) { - return new com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder(other); - } - - /** Creates a new GlossaryNodeInfo RecordBuilder by copying an existing GlossaryNodeInfo instance */ - public static com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder newBuilder(com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo other) { - return new com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder(other); - } - - /** - * RecordBuilder for GlossaryNodeInfo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String definition; - private java.lang.String parentNode; - private java.lang.String name; - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder other) { - super(other); - if (isValidValue(fields()[0], other.definition)) { - this.definition = data().deepCopy(fields()[0].schema(), other.definition); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.parentNode)) { - this.parentNode = data().deepCopy(fields()[1].schema(), other.parentNode); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.id)) { - this.id = data().deepCopy(fields()[3].schema(), other.id); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing GlossaryNodeInfo instance */ - private Builder(com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo other) { - super(com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.SCHEMA$); - if (isValidValue(fields()[0], other.definition)) { - this.definition = data().deepCopy(fields()[0].schema(), other.definition); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.parentNode)) { - this.parentNode = data().deepCopy(fields()[1].schema(), other.parentNode); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.id)) { - this.id = data().deepCopy(fields()[3].schema(), other.id); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'definition' field */ - public java.lang.String getDefinition() { - return definition; - } - - /** Sets the value of the 'definition' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder setDefinition(java.lang.String value) { - validate(fields()[0], value); - this.definition = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'definition' field has been set */ - public boolean hasDefinition() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'definition' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder clearDefinition() { - definition = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'parentNode' field */ - public java.lang.String getParentNode() { - return parentNode; - } - - /** Sets the value of the 'parentNode' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder setParentNode(java.lang.String value) { - validate(fields()[1], value); - this.parentNode = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'parentNode' field has been set */ - public boolean hasParentNode() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'parentNode' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder clearParentNode() { - parentNode = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.glossary.GlossaryNodeInfo.Builder setName(java.lang.String value) { - validate(fields()[2], value); - this.name = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder clearName() { - name = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder setId(java.lang.String value) { - validate(fields()[3], value); - this.id = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryNodeInfo.Builder clearId() { - id = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public GlossaryNodeInfo build() { - try { - GlossaryNodeInfo record = new GlossaryNodeInfo(); - record.definition = fieldSetFlags()[0] ? this.definition : (java.lang.String) defaultValue(fields()[0]); - record.parentNode = fieldSetFlags()[1] ? this.parentNode : (java.lang.String) defaultValue(fields()[1]); - record.name = fieldSetFlags()[2] ? this.name : (java.lang.String) defaultValue(fields()[2]); - record.id = fieldSetFlags()[3] ? this.id : (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/glossary/GlossaryRelatedTerms.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/glossary/GlossaryRelatedTerms.java deleted file mode 100644 index 1092e9aa656d5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/glossary/GlossaryRelatedTerms.java +++ /dev/null @@ -1,312 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.glossary; -@SuppressWarnings("all") -/** Has A / Is A lineage information about a glossary Term reporting the lineage */ -@org.apache.avro.specific.AvroGenerated -public class GlossaryRelatedTerms 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\":\"GlossaryRelatedTerms\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Has A / Is A lineage information about a glossary Term reporting the lineage\",\"fields\":[{\"name\":\"isRelatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Is A with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"IsA\"}},\"Searchable\":{\"/*\":{\"boostScore\":2.0,\"fieldName\":\"isRelatedTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"hasRelatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Has A with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"HasA\"}},\"Searchable\":{\"/*\":{\"boostScore\":2.0,\"fieldName\":\"hasRelatedTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"values\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Has Value with glossary term.\\nThese are fixed value a term has. For example a ColorEnum where RED, GREEN and YELLOW are fixed values.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"HasValue\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"values\",\"fieldType\":\"URN\"}}},{\"name\":\"relatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship isRelatedTo with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"IsRelatedTo\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"relatedTerms\",\"fieldType\":\"URN\"}}}],\"Aspect\":{\"name\":\"glossaryRelatedTerms\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The relationship Is A with glossary term */ - @Deprecated public java.util.List isRelatedTerms; - /** The relationship Has A with glossary term */ - @Deprecated public java.util.List hasRelatedTerms; - /** The relationship Has Value with glossary term. -These are fixed value a term has. For example a ColorEnum where RED, GREEN and YELLOW are fixed values. */ - @Deprecated public java.util.List values; - /** The relationship isRelatedTo with glossary term */ - @Deprecated public java.util.List relatedTerms; - - /** - * 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 GlossaryRelatedTerms() {} - - /** - * All-args constructor. - */ - public GlossaryRelatedTerms(java.util.List isRelatedTerms, java.util.List hasRelatedTerms, java.util.List values, java.util.List relatedTerms) { - this.isRelatedTerms = isRelatedTerms; - this.hasRelatedTerms = hasRelatedTerms; - this.values = values; - this.relatedTerms = relatedTerms; - } - - 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 isRelatedTerms; - case 1: return hasRelatedTerms; - case 2: return values; - case 3: return relatedTerms; - 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: isRelatedTerms = (java.util.List)value$; break; - case 1: hasRelatedTerms = (java.util.List)value$; break; - case 2: values = (java.util.List)value$; break; - case 3: relatedTerms = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'isRelatedTerms' field. - * The relationship Is A with glossary term */ - public java.util.List getIsRelatedTerms() { - return isRelatedTerms; - } - - /** - * Sets the value of the 'isRelatedTerms' field. - * The relationship Is A with glossary term * @param value the value to set. - */ - public void setIsRelatedTerms(java.util.List value) { - this.isRelatedTerms = value; - } - - /** - * Gets the value of the 'hasRelatedTerms' field. - * The relationship Has A with glossary term */ - public java.util.List getHasRelatedTerms() { - return hasRelatedTerms; - } - - /** - * Sets the value of the 'hasRelatedTerms' field. - * The relationship Has A with glossary term * @param value the value to set. - */ - public void setHasRelatedTerms(java.util.List value) { - this.hasRelatedTerms = value; - } - - /** - * Gets the value of the 'values' field. - * The relationship Has Value with glossary term. -These are fixed value a term has. For example a ColorEnum where RED, GREEN and YELLOW are fixed values. */ - public java.util.List getValues() { - return values; - } - - /** - * Sets the value of the 'values' field. - * The relationship Has Value with glossary term. -These are fixed value a term has. For example a ColorEnum where RED, GREEN and YELLOW are fixed values. * @param value the value to set. - */ - public void setValues(java.util.List value) { - this.values = value; - } - - /** - * Gets the value of the 'relatedTerms' field. - * The relationship isRelatedTo with glossary term */ - public java.util.List getRelatedTerms() { - return relatedTerms; - } - - /** - * Sets the value of the 'relatedTerms' field. - * The relationship isRelatedTo with glossary term * @param value the value to set. - */ - public void setRelatedTerms(java.util.List value) { - this.relatedTerms = value; - } - - /** Creates a new GlossaryRelatedTerms RecordBuilder */ - public static com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder newBuilder() { - return new com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder(); - } - - /** Creates a new GlossaryRelatedTerms RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder newBuilder(com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder other) { - return new com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder(other); - } - - /** Creates a new GlossaryRelatedTerms RecordBuilder by copying an existing GlossaryRelatedTerms instance */ - public static com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder newBuilder(com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms other) { - return new com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder(other); - } - - /** - * RecordBuilder for GlossaryRelatedTerms instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List isRelatedTerms; - private java.util.List hasRelatedTerms; - private java.util.List values; - private java.util.List relatedTerms; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder other) { - super(other); - if (isValidValue(fields()[0], other.isRelatedTerms)) { - this.isRelatedTerms = data().deepCopy(fields()[0].schema(), other.isRelatedTerms); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.hasRelatedTerms)) { - this.hasRelatedTerms = data().deepCopy(fields()[1].schema(), other.hasRelatedTerms); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.values)) { - this.values = data().deepCopy(fields()[2].schema(), other.values); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.relatedTerms)) { - this.relatedTerms = data().deepCopy(fields()[3].schema(), other.relatedTerms); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing GlossaryRelatedTerms instance */ - private Builder(com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms other) { - super(com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.SCHEMA$); - if (isValidValue(fields()[0], other.isRelatedTerms)) { - this.isRelatedTerms = data().deepCopy(fields()[0].schema(), other.isRelatedTerms); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.hasRelatedTerms)) { - this.hasRelatedTerms = data().deepCopy(fields()[1].schema(), other.hasRelatedTerms); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.values)) { - this.values = data().deepCopy(fields()[2].schema(), other.values); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.relatedTerms)) { - this.relatedTerms = data().deepCopy(fields()[3].schema(), other.relatedTerms); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'isRelatedTerms' field */ - public java.util.List getIsRelatedTerms() { - return isRelatedTerms; - } - - /** Sets the value of the 'isRelatedTerms' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder setIsRelatedTerms(java.util.List value) { - validate(fields()[0], value); - this.isRelatedTerms = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'isRelatedTerms' field has been set */ - public boolean hasIsRelatedTerms() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'isRelatedTerms' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder clearIsRelatedTerms() { - isRelatedTerms = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'hasRelatedTerms' field */ - public java.util.List getHasRelatedTerms() { - return hasRelatedTerms; - } - - /** Sets the value of the 'hasRelatedTerms' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder setHasRelatedTerms(java.util.List value) { - validate(fields()[1], value); - this.hasRelatedTerms = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'hasRelatedTerms' field has been set */ - public boolean hasHasRelatedTerms() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'hasRelatedTerms' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder clearHasRelatedTerms() { - hasRelatedTerms = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'values' field */ - public java.util.List getValues() { - return values; - } - - /** Sets the value of the 'values' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder setValues(java.util.List value) { - validate(fields()[2], value); - this.values = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'values' field has been set */ - public boolean hasValues() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'values' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder clearValues() { - values = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'relatedTerms' field */ - public java.util.List getRelatedTerms() { - return relatedTerms; - } - - /** Sets the value of the 'relatedTerms' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder setRelatedTerms(java.util.List value) { - validate(fields()[3], value); - this.relatedTerms = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'relatedTerms' field has been set */ - public boolean hasRelatedTerms() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'relatedTerms' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryRelatedTerms.Builder clearRelatedTerms() { - relatedTerms = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public GlossaryRelatedTerms build() { - try { - GlossaryRelatedTerms record = new GlossaryRelatedTerms(); - record.isRelatedTerms = fieldSetFlags()[0] ? this.isRelatedTerms : (java.util.List) defaultValue(fields()[0]); - record.hasRelatedTerms = fieldSetFlags()[1] ? this.hasRelatedTerms : (java.util.List) defaultValue(fields()[1]); - record.values = fieldSetFlags()[2] ? this.values : (java.util.List) defaultValue(fields()[2]); - record.relatedTerms = fieldSetFlags()[3] ? this.relatedTerms : (java.util.List) 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/glossary/GlossaryTermInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/glossary/GlossaryTermInfo.java deleted file mode 100644 index c0c9cc70c1684..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/glossary/GlossaryTermInfo.java +++ /dev/null @@ -1,584 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.glossary; -@SuppressWarnings("all") -/** Properties associated with a GlossaryTerm */ -@org.apache.avro.specific.AvroGenerated -public class GlossaryTermInfo 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\":\"GlossaryTermInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryTerm\",\"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\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the term\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the term\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business term.\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"termSource\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"External Reference to the business-term\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"rawSchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Schema definition of the glossary term\",\"default\":null,\"deprecated\":true}],\"Aspect\":{\"name\":\"glossaryTermInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Custom property bag. */ - @Deprecated public java.util.Map customProperties; - /** Optional id for the term */ - @Deprecated public java.lang.String id; - /** Display name of the term */ - @Deprecated public java.lang.String name; - /** Definition of business term. */ - @Deprecated public java.lang.String definition; - /** Parent node of the glossary term */ - @Deprecated public java.lang.String parentNode; - /** Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL */ - @Deprecated public java.lang.String termSource; - /** External Reference to the business-term */ - @Deprecated public java.lang.String sourceRef; - /** The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument. */ - @Deprecated public java.lang.String sourceUrl; - /** Schema definition of the glossary term */ - @Deprecated public java.lang.String rawSchema; - - /** - * 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 GlossaryTermInfo() {} - - /** - * All-args constructor. - */ - public GlossaryTermInfo(java.util.Map customProperties, java.lang.String id, java.lang.String name, java.lang.String definition, java.lang.String parentNode, java.lang.String termSource, java.lang.String sourceRef, java.lang.String sourceUrl, java.lang.String rawSchema) { - this.customProperties = customProperties; - this.id = id; - this.name = name; - this.definition = definition; - this.parentNode = parentNode; - this.termSource = termSource; - this.sourceRef = sourceRef; - this.sourceUrl = sourceUrl; - this.rawSchema = rawSchema; - } - - 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 id; - case 2: return name; - case 3: return definition; - case 4: return parentNode; - case 5: return termSource; - case 6: return sourceRef; - case 7: return sourceUrl; - case 8: return rawSchema; - 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: id = (java.lang.String)value$; break; - case 2: name = (java.lang.String)value$; break; - case 3: definition = (java.lang.String)value$; break; - case 4: parentNode = (java.lang.String)value$; break; - case 5: termSource = (java.lang.String)value$; break; - case 6: sourceRef = (java.lang.String)value$; break; - case 7: sourceUrl = (java.lang.String)value$; break; - case 8: rawSchema = (java.lang.String)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 'id' field. - * Optional id for the term */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * Optional id for the term * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** - * Gets the value of the 'name' field. - * Display name of the term */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Display name of the term * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'definition' field. - * Definition of business term. */ - public java.lang.String getDefinition() { - return definition; - } - - /** - * Sets the value of the 'definition' field. - * Definition of business term. * @param value the value to set. - */ - public void setDefinition(java.lang.String value) { - this.definition = value; - } - - /** - * Gets the value of the 'parentNode' field. - * Parent node of the glossary term */ - public java.lang.String getParentNode() { - return parentNode; - } - - /** - * Sets the value of the 'parentNode' field. - * Parent node of the glossary term * @param value the value to set. - */ - public void setParentNode(java.lang.String value) { - this.parentNode = value; - } - - /** - * Gets the value of the 'termSource' field. - * Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL */ - public java.lang.String getTermSource() { - return termSource; - } - - /** - * Sets the value of the 'termSource' field. - * Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL * @param value the value to set. - */ - public void setTermSource(java.lang.String value) { - this.termSource = value; - } - - /** - * Gets the value of the 'sourceRef' field. - * External Reference to the business-term */ - public java.lang.String getSourceRef() { - return sourceRef; - } - - /** - * Sets the value of the 'sourceRef' field. - * External Reference to the business-term * @param value the value to set. - */ - public void setSourceRef(java.lang.String value) { - this.sourceRef = value; - } - - /** - * Gets the value of the 'sourceUrl' field. - * The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument. */ - public java.lang.String getSourceUrl() { - return sourceUrl; - } - - /** - * Sets the value of the 'sourceUrl' field. - * The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument. * @param value the value to set. - */ - public void setSourceUrl(java.lang.String value) { - this.sourceUrl = value; - } - - /** - * Gets the value of the 'rawSchema' field. - * Schema definition of the glossary term */ - public java.lang.String getRawSchema() { - return rawSchema; - } - - /** - * Sets the value of the 'rawSchema' field. - * Schema definition of the glossary term * @param value the value to set. - */ - public void setRawSchema(java.lang.String value) { - this.rawSchema = value; - } - - /** Creates a new GlossaryTermInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder(); - } - - /** Creates a new GlossaryTermInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder newBuilder(com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder other) { - return new com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder(other); - } - - /** Creates a new GlossaryTermInfo RecordBuilder by copying an existing GlossaryTermInfo instance */ - public static com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder newBuilder(com.linkedin.pegasus2avro.glossary.GlossaryTermInfo other) { - return new com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder(other); - } - - /** - * RecordBuilder for GlossaryTermInfo 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 id; - private java.lang.String name; - private java.lang.String definition; - private java.lang.String parentNode; - private java.lang.String termSource; - private java.lang.String sourceRef; - private java.lang.String sourceUrl; - private java.lang.String rawSchema; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.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.id)) { - this.id = data().deepCopy(fields()[1].schema(), other.id); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.definition)) { - this.definition = data().deepCopy(fields()[3].schema(), other.definition); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.parentNode)) { - this.parentNode = data().deepCopy(fields()[4].schema(), other.parentNode); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.termSource)) { - this.termSource = data().deepCopy(fields()[5].schema(), other.termSource); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.sourceRef)) { - this.sourceRef = data().deepCopy(fields()[6].schema(), other.sourceRef); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.sourceUrl)) { - this.sourceUrl = data().deepCopy(fields()[7].schema(), other.sourceUrl); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.rawSchema)) { - this.rawSchema = data().deepCopy(fields()[8].schema(), other.rawSchema); - fieldSetFlags()[8] = true; - } - } - - /** Creates a Builder by copying an existing GlossaryTermInfo instance */ - private Builder(com.linkedin.pegasus2avro.glossary.GlossaryTermInfo other) { - super(com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.SCHEMA$); - if (isValidValue(fields()[0], other.customProperties)) { - this.customProperties = data().deepCopy(fields()[0].schema(), other.customProperties); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.id)) { - this.id = data().deepCopy(fields()[1].schema(), other.id); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.definition)) { - this.definition = data().deepCopy(fields()[3].schema(), other.definition); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.parentNode)) { - this.parentNode = data().deepCopy(fields()[4].schema(), other.parentNode); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.termSource)) { - this.termSource = data().deepCopy(fields()[5].schema(), other.termSource); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.sourceRef)) { - this.sourceRef = data().deepCopy(fields()[6].schema(), other.sourceRef); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.sourceUrl)) { - this.sourceUrl = data().deepCopy(fields()[7].schema(), other.sourceUrl); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.rawSchema)) { - this.rawSchema = data().deepCopy(fields()[8].schema(), other.rawSchema); - fieldSetFlags()[8] = 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.glossary.GlossaryTermInfo.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.glossary.GlossaryTermInfo.Builder clearCustomProperties() { - customProperties = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder setId(java.lang.String value) { - validate(fields()[1], value); - this.id = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder clearId() { - id = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.glossary.GlossaryTermInfo.Builder setName(java.lang.String value) { - validate(fields()[2], value); - this.name = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder clearName() { - name = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'definition' field */ - public java.lang.String getDefinition() { - return definition; - } - - /** Sets the value of the 'definition' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder setDefinition(java.lang.String value) { - validate(fields()[3], value); - this.definition = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'definition' field has been set */ - public boolean hasDefinition() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'definition' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder clearDefinition() { - definition = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'parentNode' field */ - public java.lang.String getParentNode() { - return parentNode; - } - - /** Sets the value of the 'parentNode' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder setParentNode(java.lang.String value) { - validate(fields()[4], value); - this.parentNode = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'parentNode' field has been set */ - public boolean hasParentNode() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'parentNode' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder clearParentNode() { - parentNode = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'termSource' field */ - public java.lang.String getTermSource() { - return termSource; - } - - /** Sets the value of the 'termSource' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder setTermSource(java.lang.String value) { - validate(fields()[5], value); - this.termSource = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'termSource' field has been set */ - public boolean hasTermSource() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'termSource' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder clearTermSource() { - termSource = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'sourceRef' field */ - public java.lang.String getSourceRef() { - return sourceRef; - } - - /** Sets the value of the 'sourceRef' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder setSourceRef(java.lang.String value) { - validate(fields()[6], value); - this.sourceRef = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'sourceRef' field has been set */ - public boolean hasSourceRef() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'sourceRef' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder clearSourceRef() { - sourceRef = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'sourceUrl' field */ - public java.lang.String getSourceUrl() { - return sourceUrl; - } - - /** Sets the value of the 'sourceUrl' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder setSourceUrl(java.lang.String value) { - validate(fields()[7], value); - this.sourceUrl = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'sourceUrl' field has been set */ - public boolean hasSourceUrl() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'sourceUrl' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder clearSourceUrl() { - sourceUrl = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'rawSchema' field */ - public java.lang.String getRawSchema() { - return rawSchema; - } - - /** Sets the value of the 'rawSchema' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder setRawSchema(java.lang.String value) { - validate(fields()[8], value); - this.rawSchema = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'rawSchema' field has been set */ - public boolean hasRawSchema() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'rawSchema' field */ - public com.linkedin.pegasus2avro.glossary.GlossaryTermInfo.Builder clearRawSchema() { - rawSchema = null; - fieldSetFlags()[8] = false; - return this; - } - - @Override - public GlossaryTermInfo build() { - try { - GlossaryTermInfo record = new GlossaryTermInfo(); - record.customProperties = fieldSetFlags()[0] ? this.customProperties : (java.util.Map) defaultValue(fields()[0]); - record.id = fieldSetFlags()[1] ? this.id : (java.lang.String) defaultValue(fields()[1]); - record.name = fieldSetFlags()[2] ? this.name : (java.lang.String) defaultValue(fields()[2]); - record.definition = fieldSetFlags()[3] ? this.definition : (java.lang.String) defaultValue(fields()[3]); - record.parentNode = fieldSetFlags()[4] ? this.parentNode : (java.lang.String) defaultValue(fields()[4]); - record.termSource = fieldSetFlags()[5] ? this.termSource : (java.lang.String) defaultValue(fields()[5]); - record.sourceRef = fieldSetFlags()[6] ? this.sourceRef : (java.lang.String) defaultValue(fields()[6]); - record.sourceUrl = fieldSetFlags()[7] ? this.sourceUrl : (java.lang.String) defaultValue(fields()[7]); - record.rawSchema = fieldSetFlags()[8] ? this.rawSchema : (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/identity/CorpGroupEditableInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpGroupEditableInfo.java deleted file mode 100644 index f8f8bcb9e185f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpGroupEditableInfo.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** Group information that can be edited from UI */ -@org.apache.avro.specific.AvroGenerated -public class CorpGroupEditableInfo 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\":\"CorpGroupEditableInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Group information that can be edited from UI\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A description of the group\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}},{\"name\":\"pictureLink\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A URL which points to a picture which user wants to set as the photo for the group\",\"default\":\"https://raw.githubusercontent.com/datahub-project/datahub/master/datahub-web-react/src/images/default_avatar.png\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack channel for the group\",\"default\":null},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Email address to contact the group\",\"default\":null}],\"Aspect\":{\"name\":\"corpGroupEditableInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A description of the group */ - @Deprecated public java.lang.String description; - /** A URL which points to a picture which user wants to set as the photo for the group */ - @Deprecated public java.lang.String pictureLink; - /** Slack channel for the group */ - @Deprecated public java.lang.String slack; - /** Email address to contact the group */ - @Deprecated public java.lang.String email; - - /** - * 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 CorpGroupEditableInfo() {} - - /** - * All-args constructor. - */ - public CorpGroupEditableInfo(java.lang.String description, java.lang.String pictureLink, java.lang.String slack, java.lang.String email) { - this.description = description; - this.pictureLink = pictureLink; - this.slack = slack; - this.email = email; - } - - 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 description; - case 1: return pictureLink; - case 2: return slack; - case 3: return email; - 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: description = (java.lang.String)value$; break; - case 1: pictureLink = (java.lang.String)value$; break; - case 2: slack = (java.lang.String)value$; break; - case 3: email = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'description' field. - * A description of the group */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * A description of the group * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'pictureLink' field. - * A URL which points to a picture which user wants to set as the photo for the group */ - public java.lang.String getPictureLink() { - return pictureLink; - } - - /** - * Sets the value of the 'pictureLink' field. - * A URL which points to a picture which user wants to set as the photo for the group * @param value the value to set. - */ - public void setPictureLink(java.lang.String value) { - this.pictureLink = value; - } - - /** - * Gets the value of the 'slack' field. - * Slack channel for the group */ - public java.lang.String getSlack() { - return slack; - } - - /** - * Sets the value of the 'slack' field. - * Slack channel for the group * @param value the value to set. - */ - public void setSlack(java.lang.String value) { - this.slack = value; - } - - /** - * Gets the value of the 'email' field. - * Email address to contact the group */ - public java.lang.String getEmail() { - return email; - } - - /** - * Sets the value of the 'email' field. - * Email address to contact the group * @param value the value to set. - */ - public void setEmail(java.lang.String value) { - this.email = value; - } - - /** Creates a new CorpGroupEditableInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder(); - } - - /** Creates a new CorpGroupEditableInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder other) { - return new com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder(other); - } - - /** Creates a new CorpGroupEditableInfo RecordBuilder by copying an existing CorpGroupEditableInfo instance */ - public static com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo other) { - return new com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder(other); - } - - /** - * RecordBuilder for CorpGroupEditableInfo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String description; - private java.lang.String pictureLink; - private java.lang.String slack; - private java.lang.String email; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder other) { - super(other); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.pictureLink)) { - this.pictureLink = data().deepCopy(fields()[1].schema(), other.pictureLink); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.slack)) { - this.slack = data().deepCopy(fields()[2].schema(), other.slack); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.email)) { - this.email = data().deepCopy(fields()[3].schema(), other.email); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing CorpGroupEditableInfo instance */ - private Builder(com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo other) { - super(com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.SCHEMA$); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.pictureLink)) { - this.pictureLink = data().deepCopy(fields()[1].schema(), other.pictureLink); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.slack)) { - this.slack = data().deepCopy(fields()[2].schema(), other.slack); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.email)) { - this.email = data().deepCopy(fields()[3].schema(), other.email); - fieldSetFlags()[3] = true; - } - } - - /** 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.identity.CorpGroupEditableInfo.Builder setDescription(java.lang.String value) { - validate(fields()[0], value); - this.description = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder clearDescription() { - description = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'pictureLink' field */ - public java.lang.String getPictureLink() { - return pictureLink; - } - - /** Sets the value of the 'pictureLink' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder setPictureLink(java.lang.String value) { - validate(fields()[1], value); - this.pictureLink = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'pictureLink' field has been set */ - public boolean hasPictureLink() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'pictureLink' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder clearPictureLink() { - pictureLink = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'slack' field */ - public java.lang.String getSlack() { - return slack; - } - - /** Sets the value of the 'slack' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder setSlack(java.lang.String value) { - validate(fields()[2], value); - this.slack = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'slack' field has been set */ - public boolean hasSlack() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'slack' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder clearSlack() { - slack = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'email' field */ - public java.lang.String getEmail() { - return email; - } - - /** Sets the value of the 'email' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder setEmail(java.lang.String value) { - validate(fields()[3], value); - this.email = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'email' field has been set */ - public boolean hasEmail() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'email' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupEditableInfo.Builder clearEmail() { - email = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public CorpGroupEditableInfo build() { - try { - CorpGroupEditableInfo record = new CorpGroupEditableInfo(); - record.description = fieldSetFlags()[0] ? this.description : (java.lang.String) defaultValue(fields()[0]); - record.pictureLink = fieldSetFlags()[1] ? this.pictureLink : (java.lang.String) defaultValue(fields()[1]); - record.slack = fieldSetFlags()[2] ? this.slack : (java.lang.String) defaultValue(fields()[2]); - record.email = fieldSetFlags()[3] ? this.email : (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/identity/CorpGroupInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpGroupInfo.java deleted file mode 100644 index c475081f369b5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpGroupInfo.java +++ /dev/null @@ -1,538 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** Information about a Corp Group ingested from a third party source */ -@org.apache.avro.specific.AvroGenerated -public class CorpGroupInfo 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\":\"CorpGroupInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Information about a Corp Group ingested from a third party source\",\"fields\":[{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The name of the group.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email of this group\",\"default\":null},{\"name\":\"admins\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"owners of this group\\nDeprecated! Replaced by Ownership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"OwnedBy\"}},\"deprecated\":true},{\"name\":\"members\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of ldap urn in this group.\\nDeprecated! Replaced by GroupMembership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of groups in this group.\\nDeprecated! This field is unused.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A description of the group.\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack channel for the group\",\"default\":null},{\"name\":\"created\",\"type\":[\"null\",{\"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\":\"Created Audit stamp\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdTime\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpGroupUrn\"],\"name\":\"corpGroupInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the group. */ - @Deprecated public java.lang.String displayName; - /** email of this group */ - @Deprecated public java.lang.String email; - /** owners of this group -Deprecated! Replaced by Ownership aspect. */ - @Deprecated public java.util.List admins; - /** List of ldap urn in this group. -Deprecated! Replaced by GroupMembership aspect. */ - @Deprecated public java.util.List members; - /** List of groups in this group. -Deprecated! This field is unused. */ - @Deprecated public java.util.List groups; - /** A description of the group. */ - @Deprecated public java.lang.String description; - /** Slack channel for the group */ - @Deprecated public java.lang.String slack; - /** Created Audit stamp */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created; - - /** - * 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 CorpGroupInfo() {} - - /** - * All-args constructor. - */ - public CorpGroupInfo(java.lang.String displayName, java.lang.String email, java.util.List admins, java.util.List members, java.util.List groups, java.lang.String description, java.lang.String slack, com.linkedin.pegasus2avro.common.AuditStamp created) { - this.displayName = displayName; - this.email = email; - this.admins = admins; - this.members = members; - this.groups = groups; - this.description = description; - this.slack = slack; - this.created = created; - } - - 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 displayName; - case 1: return email; - case 2: return admins; - case 3: return members; - case 4: return groups; - case 5: return description; - case 6: return slack; - case 7: return created; - 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: displayName = (java.lang.String)value$; break; - case 1: email = (java.lang.String)value$; break; - case 2: admins = (java.util.List)value$; break; - case 3: members = (java.util.List)value$; break; - case 4: groups = (java.util.List)value$; break; - case 5: description = (java.lang.String)value$; break; - case 6: slack = (java.lang.String)value$; break; - case 7: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'displayName' field. - * The name of the group. */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Sets the value of the 'displayName' field. - * The name of the group. * @param value the value to set. - */ - public void setDisplayName(java.lang.String value) { - this.displayName = value; - } - - /** - * Gets the value of the 'email' field. - * email of this group */ - public java.lang.String getEmail() { - return email; - } - - /** - * Sets the value of the 'email' field. - * email of this group * @param value the value to set. - */ - public void setEmail(java.lang.String value) { - this.email = value; - } - - /** - * Gets the value of the 'admins' field. - * owners of this group -Deprecated! Replaced by Ownership aspect. */ - public java.util.List getAdmins() { - return admins; - } - - /** - * Sets the value of the 'admins' field. - * owners of this group -Deprecated! Replaced by Ownership aspect. * @param value the value to set. - */ - public void setAdmins(java.util.List value) { - this.admins = value; - } - - /** - * Gets the value of the 'members' field. - * List of ldap urn in this group. -Deprecated! Replaced by GroupMembership aspect. */ - public java.util.List getMembers() { - return members; - } - - /** - * Sets the value of the 'members' field. - * List of ldap urn in this group. -Deprecated! Replaced by GroupMembership aspect. * @param value the value to set. - */ - public void setMembers(java.util.List value) { - this.members = value; - } - - /** - * Gets the value of the 'groups' field. - * List of groups in this group. -Deprecated! This field is unused. */ - public java.util.List getGroups() { - return groups; - } - - /** - * Sets the value of the 'groups' field. - * List of groups in this group. -Deprecated! This field is unused. * @param value the value to set. - */ - public void setGroups(java.util.List value) { - this.groups = value; - } - - /** - * Gets the value of the 'description' field. - * A description of the group. */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * A description of the group. * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'slack' field. - * Slack channel for the group */ - public java.lang.String getSlack() { - return slack; - } - - /** - * Sets the value of the 'slack' field. - * Slack channel for the group * @param value the value to set. - */ - public void setSlack(java.lang.String value) { - this.slack = value; - } - - /** - * Gets the value of the 'created' field. - * Created Audit stamp */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * Created Audit stamp * @param value the value to set. - */ - public void setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.created = value; - } - - /** Creates a new CorpGroupInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder(); - } - - /** Creates a new CorpGroupInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder other) { - return new com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder(other); - } - - /** Creates a new CorpGroupInfo RecordBuilder by copying an existing CorpGroupInfo instance */ - public static com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpGroupInfo other) { - return new com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder(other); - } - - /** - * RecordBuilder for CorpGroupInfo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String displayName; - private java.lang.String email; - private java.util.List admins; - private java.util.List members; - private java.util.List groups; - private java.lang.String description; - private java.lang.String slack; - private com.linkedin.pegasus2avro.common.AuditStamp created; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.CorpGroupInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder other) { - super(other); - if (isValidValue(fields()[0], other.displayName)) { - this.displayName = data().deepCopy(fields()[0].schema(), other.displayName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.email)) { - this.email = data().deepCopy(fields()[1].schema(), other.email); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.admins)) { - this.admins = data().deepCopy(fields()[2].schema(), other.admins); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.members)) { - this.members = data().deepCopy(fields()[3].schema(), other.members); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.groups)) { - this.groups = data().deepCopy(fields()[4].schema(), other.groups); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.description)) { - this.description = data().deepCopy(fields()[5].schema(), other.description); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.slack)) { - this.slack = data().deepCopy(fields()[6].schema(), other.slack); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.created)) { - this.created = data().deepCopy(fields()[7].schema(), other.created); - fieldSetFlags()[7] = true; - } - } - - /** Creates a Builder by copying an existing CorpGroupInfo instance */ - private Builder(com.linkedin.pegasus2avro.identity.CorpGroupInfo other) { - super(com.linkedin.pegasus2avro.identity.CorpGroupInfo.SCHEMA$); - if (isValidValue(fields()[0], other.displayName)) { - this.displayName = data().deepCopy(fields()[0].schema(), other.displayName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.email)) { - this.email = data().deepCopy(fields()[1].schema(), other.email); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.admins)) { - this.admins = data().deepCopy(fields()[2].schema(), other.admins); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.members)) { - this.members = data().deepCopy(fields()[3].schema(), other.members); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.groups)) { - this.groups = data().deepCopy(fields()[4].schema(), other.groups); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.description)) { - this.description = data().deepCopy(fields()[5].schema(), other.description); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.slack)) { - this.slack = data().deepCopy(fields()[6].schema(), other.slack); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.created)) { - this.created = data().deepCopy(fields()[7].schema(), other.created); - fieldSetFlags()[7] = true; - } - } - - /** Gets the value of the 'displayName' field */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** Sets the value of the 'displayName' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder setDisplayName(java.lang.String value) { - validate(fields()[0], value); - this.displayName = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'displayName' field has been set */ - public boolean hasDisplayName() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'displayName' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder clearDisplayName() { - displayName = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'email' field */ - public java.lang.String getEmail() { - return email; - } - - /** Sets the value of the 'email' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder setEmail(java.lang.String value) { - validate(fields()[1], value); - this.email = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'email' field has been set */ - public boolean hasEmail() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'email' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder clearEmail() { - email = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'admins' field */ - public java.util.List getAdmins() { - return admins; - } - - /** Sets the value of the 'admins' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder setAdmins(java.util.List value) { - validate(fields()[2], value); - this.admins = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'admins' field has been set */ - public boolean hasAdmins() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'admins' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder clearAdmins() { - admins = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'members' field */ - public java.util.List getMembers() { - return members; - } - - /** Sets the value of the 'members' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder setMembers(java.util.List value) { - validate(fields()[3], value); - this.members = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'members' field has been set */ - public boolean hasMembers() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'members' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder clearMembers() { - members = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'groups' field */ - public java.util.List getGroups() { - return groups; - } - - /** Sets the value of the 'groups' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder setGroups(java.util.List value) { - validate(fields()[4], value); - this.groups = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'groups' field has been set */ - public boolean hasGroups() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'groups' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder clearGroups() { - groups = 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.identity.CorpGroupInfo.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.identity.CorpGroupInfo.Builder clearDescription() { - description = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'slack' field */ - public java.lang.String getSlack() { - return slack; - } - - /** Sets the value of the 'slack' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder setSlack(java.lang.String value) { - validate(fields()[6], value); - this.slack = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'slack' field has been set */ - public boolean hasSlack() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'slack' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder clearSlack() { - slack = null; - fieldSetFlags()[6] = 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.identity.CorpGroupInfo.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[7], value); - this.created = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.identity.CorpGroupInfo.Builder clearCreated() { - created = null; - fieldSetFlags()[7] = false; - return this; - } - - @Override - public CorpGroupInfo build() { - try { - CorpGroupInfo record = new CorpGroupInfo(); - record.displayName = fieldSetFlags()[0] ? this.displayName : (java.lang.String) defaultValue(fields()[0]); - record.email = fieldSetFlags()[1] ? this.email : (java.lang.String) defaultValue(fields()[1]); - record.admins = fieldSetFlags()[2] ? this.admins : (java.util.List) defaultValue(fields()[2]); - record.members = fieldSetFlags()[3] ? this.members : (java.util.List) defaultValue(fields()[3]); - record.groups = fieldSetFlags()[4] ? this.groups : (java.util.List) defaultValue(fields()[4]); - record.description = fieldSetFlags()[5] ? this.description : (java.lang.String) defaultValue(fields()[5]); - record.slack = fieldSetFlags()[6] ? this.slack : (java.lang.String) defaultValue(fields()[6]); - record.created = fieldSetFlags()[7] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) 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/pegasus2avro/identity/CorpUserAppearanceSettings.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserAppearanceSettings.java deleted file mode 100644 index 96daa87f15a0c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserAppearanceSettings.java +++ /dev/null @@ -1,147 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** Settings for a user around the appearance of their DataHub UI */ -@org.apache.avro.specific.AvroGenerated -public class CorpUserAppearanceSettings 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\":\"CorpUserAppearanceSettings\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Settings for a user around the appearance of their DataHub UI\",\"fields\":[{\"name\":\"showSimplifiedHomepage\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Flag whether the user should see a homepage with only datasets, charts and dashboards. Intended for users\\nwho have less operational use cases for the datahub tool.\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Flag whether the user should see a homepage with only datasets, charts and dashboards. Intended for users -who have less operational use cases for the datahub tool. */ - @Deprecated public java.lang.Boolean showSimplifiedHomepage; - - /** - * 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 CorpUserAppearanceSettings() {} - - /** - * All-args constructor. - */ - public CorpUserAppearanceSettings(java.lang.Boolean showSimplifiedHomepage) { - this.showSimplifiedHomepage = showSimplifiedHomepage; - } - - 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 showSimplifiedHomepage; - 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: showSimplifiedHomepage = (java.lang.Boolean)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'showSimplifiedHomepage' field. - * Flag whether the user should see a homepage with only datasets, charts and dashboards. Intended for users -who have less operational use cases for the datahub tool. */ - public java.lang.Boolean getShowSimplifiedHomepage() { - return showSimplifiedHomepage; - } - - /** - * Sets the value of the 'showSimplifiedHomepage' field. - * Flag whether the user should see a homepage with only datasets, charts and dashboards. Intended for users -who have less operational use cases for the datahub tool. * @param value the value to set. - */ - public void setShowSimplifiedHomepage(java.lang.Boolean value) { - this.showSimplifiedHomepage = value; - } - - /** Creates a new CorpUserAppearanceSettings RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings.Builder(); - } - - /** Creates a new CorpUserAppearanceSettings RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings.Builder other) { - return new com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings.Builder(other); - } - - /** Creates a new CorpUserAppearanceSettings RecordBuilder by copying an existing CorpUserAppearanceSettings instance */ - public static com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings other) { - return new com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings.Builder(other); - } - - /** - * RecordBuilder for CorpUserAppearanceSettings instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Boolean showSimplifiedHomepage; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings.Builder other) { - super(other); - if (isValidValue(fields()[0], other.showSimplifiedHomepage)) { - this.showSimplifiedHomepage = data().deepCopy(fields()[0].schema(), other.showSimplifiedHomepage); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing CorpUserAppearanceSettings instance */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings other) { - super(com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings.SCHEMA$); - if (isValidValue(fields()[0], other.showSimplifiedHomepage)) { - this.showSimplifiedHomepage = data().deepCopy(fields()[0].schema(), other.showSimplifiedHomepage); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'showSimplifiedHomepage' field */ - public java.lang.Boolean getShowSimplifiedHomepage() { - return showSimplifiedHomepage; - } - - /** Sets the value of the 'showSimplifiedHomepage' field */ - public com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings.Builder setShowSimplifiedHomepage(java.lang.Boolean value) { - validate(fields()[0], value); - this.showSimplifiedHomepage = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'showSimplifiedHomepage' field has been set */ - public boolean hasShowSimplifiedHomepage() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'showSimplifiedHomepage' field */ - public com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings.Builder clearShowSimplifiedHomepage() { - showSimplifiedHomepage = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public CorpUserAppearanceSettings build() { - try { - CorpUserAppearanceSettings record = new CorpUserAppearanceSettings(); - record.showSimplifiedHomepage = fieldSetFlags()[0] ? this.showSimplifiedHomepage : (java.lang.Boolean) 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/identity/CorpUserCredentials.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserCredentials.java deleted file mode 100644 index 087b70c503030..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserCredentials.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** Corp user credentials */ -@org.apache.avro.specific.AvroGenerated -public class CorpUserCredentials 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\":\"CorpUserCredentials\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Corp user credentials\",\"fields\":[{\"name\":\"salt\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Salt used to hash password\"},{\"name\":\"hashedPassword\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Hashed password generated by concatenating salt and password, then hashing\"},{\"name\":\"passwordResetToken\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional token needed to reset a user's password. Can only be set by the admin.\",\"default\":null},{\"name\":\"passwordResetTokenExpirationTimeMillis\",\"type\":[\"null\",\"long\"],\"doc\":\"When the password reset token expires.\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserCredentials\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Salt used to hash password */ - @Deprecated public java.lang.String salt; - /** Hashed password generated by concatenating salt and password, then hashing */ - @Deprecated public java.lang.String hashedPassword; - /** Optional token needed to reset a user's password. Can only be set by the admin. */ - @Deprecated public java.lang.String passwordResetToken; - /** When the password reset token expires. */ - @Deprecated public java.lang.Long passwordResetTokenExpirationTimeMillis; - - /** - * 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 CorpUserCredentials() {} - - /** - * All-args constructor. - */ - public CorpUserCredentials(java.lang.String salt, java.lang.String hashedPassword, java.lang.String passwordResetToken, java.lang.Long passwordResetTokenExpirationTimeMillis) { - this.salt = salt; - this.hashedPassword = hashedPassword; - this.passwordResetToken = passwordResetToken; - this.passwordResetTokenExpirationTimeMillis = passwordResetTokenExpirationTimeMillis; - } - - 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 salt; - case 1: return hashedPassword; - case 2: return passwordResetToken; - case 3: return passwordResetTokenExpirationTimeMillis; - 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: salt = (java.lang.String)value$; break; - case 1: hashedPassword = (java.lang.String)value$; break; - case 2: passwordResetToken = (java.lang.String)value$; break; - case 3: passwordResetTokenExpirationTimeMillis = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'salt' field. - * Salt used to hash password */ - public java.lang.String getSalt() { - return salt; - } - - /** - * Sets the value of the 'salt' field. - * Salt used to hash password * @param value the value to set. - */ - public void setSalt(java.lang.String value) { - this.salt = value; - } - - /** - * Gets the value of the 'hashedPassword' field. - * Hashed password generated by concatenating salt and password, then hashing */ - public java.lang.String getHashedPassword() { - return hashedPassword; - } - - /** - * Sets the value of the 'hashedPassword' field. - * Hashed password generated by concatenating salt and password, then hashing * @param value the value to set. - */ - public void setHashedPassword(java.lang.String value) { - this.hashedPassword = value; - } - - /** - * Gets the value of the 'passwordResetToken' field. - * Optional token needed to reset a user's password. Can only be set by the admin. */ - public java.lang.String getPasswordResetToken() { - return passwordResetToken; - } - - /** - * Sets the value of the 'passwordResetToken' field. - * Optional token needed to reset a user's password. Can only be set by the admin. * @param value the value to set. - */ - public void setPasswordResetToken(java.lang.String value) { - this.passwordResetToken = value; - } - - /** - * Gets the value of the 'passwordResetTokenExpirationTimeMillis' field. - * When the password reset token expires. */ - public java.lang.Long getPasswordResetTokenExpirationTimeMillis() { - return passwordResetTokenExpirationTimeMillis; - } - - /** - * Sets the value of the 'passwordResetTokenExpirationTimeMillis' field. - * When the password reset token expires. * @param value the value to set. - */ - public void setPasswordResetTokenExpirationTimeMillis(java.lang.Long value) { - this.passwordResetTokenExpirationTimeMillis = value; - } - - /** Creates a new CorpUserCredentials RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder(); - } - - /** Creates a new CorpUserCredentials RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder other) { - return new com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder(other); - } - - /** Creates a new CorpUserCredentials RecordBuilder by copying an existing CorpUserCredentials instance */ - public static com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserCredentials other) { - return new com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder(other); - } - - /** - * RecordBuilder for CorpUserCredentials instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String salt; - private java.lang.String hashedPassword; - private java.lang.String passwordResetToken; - private java.lang.Long passwordResetTokenExpirationTimeMillis; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.CorpUserCredentials.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder other) { - super(other); - if (isValidValue(fields()[0], other.salt)) { - this.salt = data().deepCopy(fields()[0].schema(), other.salt); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.hashedPassword)) { - this.hashedPassword = data().deepCopy(fields()[1].schema(), other.hashedPassword); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.passwordResetToken)) { - this.passwordResetToken = data().deepCopy(fields()[2].schema(), other.passwordResetToken); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.passwordResetTokenExpirationTimeMillis)) { - this.passwordResetTokenExpirationTimeMillis = data().deepCopy(fields()[3].schema(), other.passwordResetTokenExpirationTimeMillis); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing CorpUserCredentials instance */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserCredentials other) { - super(com.linkedin.pegasus2avro.identity.CorpUserCredentials.SCHEMA$); - if (isValidValue(fields()[0], other.salt)) { - this.salt = data().deepCopy(fields()[0].schema(), other.salt); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.hashedPassword)) { - this.hashedPassword = data().deepCopy(fields()[1].schema(), other.hashedPassword); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.passwordResetToken)) { - this.passwordResetToken = data().deepCopy(fields()[2].schema(), other.passwordResetToken); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.passwordResetTokenExpirationTimeMillis)) { - this.passwordResetTokenExpirationTimeMillis = data().deepCopy(fields()[3].schema(), other.passwordResetTokenExpirationTimeMillis); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'salt' field */ - public java.lang.String getSalt() { - return salt; - } - - /** Sets the value of the 'salt' field */ - public com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder setSalt(java.lang.String value) { - validate(fields()[0], value); - this.salt = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'salt' field has been set */ - public boolean hasSalt() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'salt' field */ - public com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder clearSalt() { - salt = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'hashedPassword' field */ - public java.lang.String getHashedPassword() { - return hashedPassword; - } - - /** Sets the value of the 'hashedPassword' field */ - public com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder setHashedPassword(java.lang.String value) { - validate(fields()[1], value); - this.hashedPassword = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'hashedPassword' field has been set */ - public boolean hasHashedPassword() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'hashedPassword' field */ - public com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder clearHashedPassword() { - hashedPassword = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'passwordResetToken' field */ - public java.lang.String getPasswordResetToken() { - return passwordResetToken; - } - - /** Sets the value of the 'passwordResetToken' field */ - public com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder setPasswordResetToken(java.lang.String value) { - validate(fields()[2], value); - this.passwordResetToken = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'passwordResetToken' field has been set */ - public boolean hasPasswordResetToken() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'passwordResetToken' field */ - public com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder clearPasswordResetToken() { - passwordResetToken = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'passwordResetTokenExpirationTimeMillis' field */ - public java.lang.Long getPasswordResetTokenExpirationTimeMillis() { - return passwordResetTokenExpirationTimeMillis; - } - - /** Sets the value of the 'passwordResetTokenExpirationTimeMillis' field */ - public com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder setPasswordResetTokenExpirationTimeMillis(java.lang.Long value) { - validate(fields()[3], value); - this.passwordResetTokenExpirationTimeMillis = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'passwordResetTokenExpirationTimeMillis' field has been set */ - public boolean hasPasswordResetTokenExpirationTimeMillis() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'passwordResetTokenExpirationTimeMillis' field */ - public com.linkedin.pegasus2avro.identity.CorpUserCredentials.Builder clearPasswordResetTokenExpirationTimeMillis() { - passwordResetTokenExpirationTimeMillis = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public CorpUserCredentials build() { - try { - CorpUserCredentials record = new CorpUserCredentials(); - record.salt = fieldSetFlags()[0] ? this.salt : (java.lang.String) defaultValue(fields()[0]); - record.hashedPassword = fieldSetFlags()[1] ? this.hashedPassword : (java.lang.String) defaultValue(fields()[1]); - record.passwordResetToken = fieldSetFlags()[2] ? this.passwordResetToken : (java.lang.String) defaultValue(fields()[2]); - record.passwordResetTokenExpirationTimeMillis = fieldSetFlags()[3] ? this.passwordResetTokenExpirationTimeMillis : (java.lang.Long) 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/identity/CorpUserEditableInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserEditableInfo.java deleted file mode 100644 index 81992163be630..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserEditableInfo.java +++ /dev/null @@ -1,584 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** Linkedin corp user information that can be edited from UI */ -@org.apache.avro.specific.AvroGenerated -public class CorpUserEditableInfo 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\":\"CorpUserEditableInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information that can be edited from UI\",\"fields\":[{\"name\":\"aboutMe\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"About me section of the user\",\"default\":null},{\"name\":\"teams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Teams that the user belongs to e.g. Metadata\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"skills\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Skills that the user possesses e.g. Machine Learning\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"pictureLink\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A URL which points to a picture which user wants to set as a profile photo\",\"default\":\"https://raw.githubusercontent.com/datahub-project/datahub/master/datahub-web-react/src/images/default_avatar.png\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native display name\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native Title, e.g. 'Software Engineer'\",\"default\":null},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack handle for the user\",\"default\":null},{\"name\":\"phone\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Phone number to contact the user\",\"default\":null},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Email address to contact the user\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserEditableInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** About me section of the user */ - @Deprecated public java.lang.String aboutMe; - /** Teams that the user belongs to e.g. Metadata */ - @Deprecated public java.util.List teams; - /** Skills that the user possesses e.g. Machine Learning */ - @Deprecated public java.util.List skills; - /** A URL which points to a picture which user wants to set as a profile photo */ - @Deprecated public java.lang.String pictureLink; - /** DataHub-native display name */ - @Deprecated public java.lang.String displayName; - /** DataHub-native Title, e.g. 'Software Engineer' */ - @Deprecated public java.lang.String title; - /** Slack handle for the user */ - @Deprecated public java.lang.String slack; - /** Phone number to contact the user */ - @Deprecated public java.lang.String phone; - /** Email address to contact the user */ - @Deprecated public java.lang.String email; - - /** - * 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 CorpUserEditableInfo() {} - - /** - * All-args constructor. - */ - public CorpUserEditableInfo(java.lang.String aboutMe, java.util.List teams, java.util.List skills, java.lang.String pictureLink, java.lang.String displayName, java.lang.String title, java.lang.String slack, java.lang.String phone, java.lang.String email) { - this.aboutMe = aboutMe; - this.teams = teams; - this.skills = skills; - this.pictureLink = pictureLink; - this.displayName = displayName; - this.title = title; - this.slack = slack; - this.phone = phone; - this.email = email; - } - - 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 aboutMe; - case 1: return teams; - case 2: return skills; - case 3: return pictureLink; - case 4: return displayName; - case 5: return title; - case 6: return slack; - case 7: return phone; - case 8: return email; - 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: aboutMe = (java.lang.String)value$; break; - case 1: teams = (java.util.List)value$; break; - case 2: skills = (java.util.List)value$; break; - case 3: pictureLink = (java.lang.String)value$; break; - case 4: displayName = (java.lang.String)value$; break; - case 5: title = (java.lang.String)value$; break; - case 6: slack = (java.lang.String)value$; break; - case 7: phone = (java.lang.String)value$; break; - case 8: email = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'aboutMe' field. - * About me section of the user */ - public java.lang.String getAboutMe() { - return aboutMe; - } - - /** - * Sets the value of the 'aboutMe' field. - * About me section of the user * @param value the value to set. - */ - public void setAboutMe(java.lang.String value) { - this.aboutMe = value; - } - - /** - * Gets the value of the 'teams' field. - * Teams that the user belongs to e.g. Metadata */ - public java.util.List getTeams() { - return teams; - } - - /** - * Sets the value of the 'teams' field. - * Teams that the user belongs to e.g. Metadata * @param value the value to set. - */ - public void setTeams(java.util.List value) { - this.teams = value; - } - - /** - * Gets the value of the 'skills' field. - * Skills that the user possesses e.g. Machine Learning */ - public java.util.List getSkills() { - return skills; - } - - /** - * Sets the value of the 'skills' field. - * Skills that the user possesses e.g. Machine Learning * @param value the value to set. - */ - public void setSkills(java.util.List value) { - this.skills = value; - } - - /** - * Gets the value of the 'pictureLink' field. - * A URL which points to a picture which user wants to set as a profile photo */ - public java.lang.String getPictureLink() { - return pictureLink; - } - - /** - * Sets the value of the 'pictureLink' field. - * A URL which points to a picture which user wants to set as a profile photo * @param value the value to set. - */ - public void setPictureLink(java.lang.String value) { - this.pictureLink = value; - } - - /** - * Gets the value of the 'displayName' field. - * DataHub-native display name */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Sets the value of the 'displayName' field. - * DataHub-native display name * @param value the value to set. - */ - public void setDisplayName(java.lang.String value) { - this.displayName = value; - } - - /** - * Gets the value of the 'title' field. - * DataHub-native Title, e.g. 'Software Engineer' */ - public java.lang.String getTitle() { - return title; - } - - /** - * Sets the value of the 'title' field. - * DataHub-native Title, e.g. 'Software Engineer' * @param value the value to set. - */ - public void setTitle(java.lang.String value) { - this.title = value; - } - - /** - * Gets the value of the 'slack' field. - * Slack handle for the user */ - public java.lang.String getSlack() { - return slack; - } - - /** - * Sets the value of the 'slack' field. - * Slack handle for the user * @param value the value to set. - */ - public void setSlack(java.lang.String value) { - this.slack = value; - } - - /** - * Gets the value of the 'phone' field. - * Phone number to contact the user */ - public java.lang.String getPhone() { - return phone; - } - - /** - * Sets the value of the 'phone' field. - * Phone number to contact the user * @param value the value to set. - */ - public void setPhone(java.lang.String value) { - this.phone = value; - } - - /** - * Gets the value of the 'email' field. - * Email address to contact the user */ - public java.lang.String getEmail() { - return email; - } - - /** - * Sets the value of the 'email' field. - * Email address to contact the user * @param value the value to set. - */ - public void setEmail(java.lang.String value) { - this.email = value; - } - - /** Creates a new CorpUserEditableInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder(); - } - - /** Creates a new CorpUserEditableInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder other) { - return new com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder(other); - } - - /** Creates a new CorpUserEditableInfo RecordBuilder by copying an existing CorpUserEditableInfo instance */ - public static com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserEditableInfo other) { - return new com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder(other); - } - - /** - * RecordBuilder for CorpUserEditableInfo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String aboutMe; - private java.util.List teams; - private java.util.List skills; - private java.lang.String pictureLink; - private java.lang.String displayName; - private java.lang.String title; - private java.lang.String slack; - private java.lang.String phone; - private java.lang.String email; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder other) { - super(other); - if (isValidValue(fields()[0], other.aboutMe)) { - this.aboutMe = data().deepCopy(fields()[0].schema(), other.aboutMe); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.teams)) { - this.teams = data().deepCopy(fields()[1].schema(), other.teams); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.skills)) { - this.skills = data().deepCopy(fields()[2].schema(), other.skills); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.pictureLink)) { - this.pictureLink = data().deepCopy(fields()[3].schema(), other.pictureLink); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.displayName)) { - this.displayName = data().deepCopy(fields()[4].schema(), other.displayName); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.title)) { - this.title = data().deepCopy(fields()[5].schema(), other.title); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.slack)) { - this.slack = data().deepCopy(fields()[6].schema(), other.slack); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.phone)) { - this.phone = data().deepCopy(fields()[7].schema(), other.phone); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.email)) { - this.email = data().deepCopy(fields()[8].schema(), other.email); - fieldSetFlags()[8] = true; - } - } - - /** Creates a Builder by copying an existing CorpUserEditableInfo instance */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserEditableInfo other) { - super(com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.SCHEMA$); - if (isValidValue(fields()[0], other.aboutMe)) { - this.aboutMe = data().deepCopy(fields()[0].schema(), other.aboutMe); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.teams)) { - this.teams = data().deepCopy(fields()[1].schema(), other.teams); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.skills)) { - this.skills = data().deepCopy(fields()[2].schema(), other.skills); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.pictureLink)) { - this.pictureLink = data().deepCopy(fields()[3].schema(), other.pictureLink); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.displayName)) { - this.displayName = data().deepCopy(fields()[4].schema(), other.displayName); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.title)) { - this.title = data().deepCopy(fields()[5].schema(), other.title); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.slack)) { - this.slack = data().deepCopy(fields()[6].schema(), other.slack); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.phone)) { - this.phone = data().deepCopy(fields()[7].schema(), other.phone); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.email)) { - this.email = data().deepCopy(fields()[8].schema(), other.email); - fieldSetFlags()[8] = true; - } - } - - /** Gets the value of the 'aboutMe' field */ - public java.lang.String getAboutMe() { - return aboutMe; - } - - /** Sets the value of the 'aboutMe' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder setAboutMe(java.lang.String value) { - validate(fields()[0], value); - this.aboutMe = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'aboutMe' field has been set */ - public boolean hasAboutMe() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'aboutMe' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder clearAboutMe() { - aboutMe = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'teams' field */ - public java.util.List getTeams() { - return teams; - } - - /** Sets the value of the 'teams' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder setTeams(java.util.List value) { - validate(fields()[1], value); - this.teams = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'teams' field has been set */ - public boolean hasTeams() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'teams' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder clearTeams() { - teams = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'skills' field */ - public java.util.List getSkills() { - return skills; - } - - /** Sets the value of the 'skills' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder setSkills(java.util.List value) { - validate(fields()[2], value); - this.skills = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'skills' field has been set */ - public boolean hasSkills() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'skills' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder clearSkills() { - skills = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'pictureLink' field */ - public java.lang.String getPictureLink() { - return pictureLink; - } - - /** Sets the value of the 'pictureLink' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder setPictureLink(java.lang.String value) { - validate(fields()[3], value); - this.pictureLink = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'pictureLink' field has been set */ - public boolean hasPictureLink() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'pictureLink' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder clearPictureLink() { - pictureLink = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'displayName' field */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** Sets the value of the 'displayName' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder setDisplayName(java.lang.String value) { - validate(fields()[4], value); - this.displayName = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'displayName' field has been set */ - public boolean hasDisplayName() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'displayName' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder clearDisplayName() { - displayName = null; - fieldSetFlags()[4] = 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.identity.CorpUserEditableInfo.Builder setTitle(java.lang.String value) { - validate(fields()[5], value); - this.title = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'title' field has been set */ - public boolean hasTitle() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'title' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder clearTitle() { - title = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'slack' field */ - public java.lang.String getSlack() { - return slack; - } - - /** Sets the value of the 'slack' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder setSlack(java.lang.String value) { - validate(fields()[6], value); - this.slack = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'slack' field has been set */ - public boolean hasSlack() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'slack' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder clearSlack() { - slack = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'phone' field */ - public java.lang.String getPhone() { - return phone; - } - - /** Sets the value of the 'phone' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder setPhone(java.lang.String value) { - validate(fields()[7], value); - this.phone = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'phone' field has been set */ - public boolean hasPhone() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'phone' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder clearPhone() { - phone = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'email' field */ - public java.lang.String getEmail() { - return email; - } - - /** Sets the value of the 'email' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder setEmail(java.lang.String value) { - validate(fields()[8], value); - this.email = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'email' field has been set */ - public boolean hasEmail() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'email' field */ - public com.linkedin.pegasus2avro.identity.CorpUserEditableInfo.Builder clearEmail() { - email = null; - fieldSetFlags()[8] = false; - return this; - } - - @Override - public CorpUserEditableInfo build() { - try { - CorpUserEditableInfo record = new CorpUserEditableInfo(); - record.aboutMe = fieldSetFlags()[0] ? this.aboutMe : (java.lang.String) defaultValue(fields()[0]); - record.teams = fieldSetFlags()[1] ? this.teams : (java.util.List) defaultValue(fields()[1]); - record.skills = fieldSetFlags()[2] ? this.skills : (java.util.List) defaultValue(fields()[2]); - record.pictureLink = fieldSetFlags()[3] ? this.pictureLink : (java.lang.String) defaultValue(fields()[3]); - record.displayName = fieldSetFlags()[4] ? this.displayName : (java.lang.String) defaultValue(fields()[4]); - record.title = fieldSetFlags()[5] ? this.title : (java.lang.String) defaultValue(fields()[5]); - record.slack = fieldSetFlags()[6] ? this.slack : (java.lang.String) defaultValue(fields()[6]); - record.phone = fieldSetFlags()[7] ? this.phone : (java.lang.String) defaultValue(fields()[7]); - record.email = fieldSetFlags()[8] ? this.email : (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/identity/CorpUserInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserInfo.java deleted file mode 100644 index a3673065f6500..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserInfo.java +++ /dev/null @@ -1,748 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** Linkedin corp user information */ -@org.apache.avro.specific.AvroGenerated -public class CorpUserInfo 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\":\"CorpUserInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information\",\"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\":\"active\",\"type\":\"boolean\",\"doc\":\"Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":2.0}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"displayName of this user , e.g. Hang Zhang(DataHQ)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email address of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"title of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"managerUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"direct manager of this user\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"corpuser\"],\"name\":\"ReportsTo\"},\"Searchable\":{\"fieldName\":\"managerLdap\",\"fieldType\":\"URN\",\"queryByDefault\":true},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpuserUrn\"}},{\"name\":\"departmentId\",\"type\":[\"null\",\"long\"],\"doc\":\"department id this user belong to\",\"default\":null},{\"name\":\"departmentName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"department name this user belong to\",\"default\":null},{\"name\":\"firstName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"first name of this user\",\"default\":null},{\"name\":\"lastName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"last name of this user\",\"default\":null},{\"name\":\"fullName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Common name of this user, format is firstName + lastName (split by a whitespace)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"countryCode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"two uppercase letters country code. e.g. US\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Custom property bag. */ - @Deprecated public java.util.Map customProperties; - /** Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools */ - @Deprecated public boolean active; - /** displayName of this user , e.g. Hang Zhang(DataHQ) */ - @Deprecated public java.lang.String displayName; - /** email address of this user */ - @Deprecated public java.lang.String email; - /** title of this user */ - @Deprecated public java.lang.String title; - /** direct manager of this user */ - @Deprecated public java.lang.String managerUrn; - /** department id this user belong to */ - @Deprecated public java.lang.Long departmentId; - /** department name this user belong to */ - @Deprecated public java.lang.String departmentName; - /** first name of this user */ - @Deprecated public java.lang.String firstName; - /** last name of this user */ - @Deprecated public java.lang.String lastName; - /** Common name of this user, format is firstName + lastName (split by a whitespace) */ - @Deprecated public java.lang.String fullName; - /** two uppercase letters country code. e.g. US */ - @Deprecated public java.lang.String countryCode; - - /** - * 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 CorpUserInfo() {} - - /** - * All-args constructor. - */ - public CorpUserInfo(java.util.Map customProperties, java.lang.Boolean active, java.lang.String displayName, java.lang.String email, java.lang.String title, java.lang.String managerUrn, java.lang.Long departmentId, java.lang.String departmentName, java.lang.String firstName, java.lang.String lastName, java.lang.String fullName, java.lang.String countryCode) { - this.customProperties = customProperties; - this.active = active; - this.displayName = displayName; - this.email = email; - this.title = title; - this.managerUrn = managerUrn; - this.departmentId = departmentId; - this.departmentName = departmentName; - this.firstName = firstName; - this.lastName = lastName; - this.fullName = fullName; - this.countryCode = countryCode; - } - - 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 active; - case 2: return displayName; - case 3: return email; - case 4: return title; - case 5: return managerUrn; - case 6: return departmentId; - case 7: return departmentName; - case 8: return firstName; - case 9: return lastName; - case 10: return fullName; - case 11: return countryCode; - 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: active = (java.lang.Boolean)value$; break; - case 2: displayName = (java.lang.String)value$; break; - case 3: email = (java.lang.String)value$; break; - case 4: title = (java.lang.String)value$; break; - case 5: managerUrn = (java.lang.String)value$; break; - case 6: departmentId = (java.lang.Long)value$; break; - case 7: departmentName = (java.lang.String)value$; break; - case 8: firstName = (java.lang.String)value$; break; - case 9: lastName = (java.lang.String)value$; break; - case 10: fullName = (java.lang.String)value$; break; - case 11: countryCode = (java.lang.String)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 'active' field. - * Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools */ - public java.lang.Boolean getActive() { - return active; - } - - /** - * Sets the value of the 'active' field. - * Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools * @param value the value to set. - */ - public void setActive(java.lang.Boolean value) { - this.active = value; - } - - /** - * Gets the value of the 'displayName' field. - * displayName of this user , e.g. Hang Zhang(DataHQ) */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Sets the value of the 'displayName' field. - * displayName of this user , e.g. Hang Zhang(DataHQ) * @param value the value to set. - */ - public void setDisplayName(java.lang.String value) { - this.displayName = value; - } - - /** - * Gets the value of the 'email' field. - * email address of this user */ - public java.lang.String getEmail() { - return email; - } - - /** - * Sets the value of the 'email' field. - * email address of this user * @param value the value to set. - */ - public void setEmail(java.lang.String value) { - this.email = value; - } - - /** - * Gets the value of the 'title' field. - * title of this user */ - public java.lang.String getTitle() { - return title; - } - - /** - * Sets the value of the 'title' field. - * title of this user * @param value the value to set. - */ - public void setTitle(java.lang.String value) { - this.title = value; - } - - /** - * Gets the value of the 'managerUrn' field. - * direct manager of this user */ - public java.lang.String getManagerUrn() { - return managerUrn; - } - - /** - * Sets the value of the 'managerUrn' field. - * direct manager of this user * @param value the value to set. - */ - public void setManagerUrn(java.lang.String value) { - this.managerUrn = value; - } - - /** - * Gets the value of the 'departmentId' field. - * department id this user belong to */ - public java.lang.Long getDepartmentId() { - return departmentId; - } - - /** - * Sets the value of the 'departmentId' field. - * department id this user belong to * @param value the value to set. - */ - public void setDepartmentId(java.lang.Long value) { - this.departmentId = value; - } - - /** - * Gets the value of the 'departmentName' field. - * department name this user belong to */ - public java.lang.String getDepartmentName() { - return departmentName; - } - - /** - * Sets the value of the 'departmentName' field. - * department name this user belong to * @param value the value to set. - */ - public void setDepartmentName(java.lang.String value) { - this.departmentName = value; - } - - /** - * Gets the value of the 'firstName' field. - * first name of this user */ - public java.lang.String getFirstName() { - return firstName; - } - - /** - * Sets the value of the 'firstName' field. - * first name of this user * @param value the value to set. - */ - public void setFirstName(java.lang.String value) { - this.firstName = value; - } - - /** - * Gets the value of the 'lastName' field. - * last name of this user */ - public java.lang.String getLastName() { - return lastName; - } - - /** - * Sets the value of the 'lastName' field. - * last name of this user * @param value the value to set. - */ - public void setLastName(java.lang.String value) { - this.lastName = value; - } - - /** - * Gets the value of the 'fullName' field. - * Common name of this user, format is firstName + lastName (split by a whitespace) */ - public java.lang.String getFullName() { - return fullName; - } - - /** - * Sets the value of the 'fullName' field. - * Common name of this user, format is firstName + lastName (split by a whitespace) * @param value the value to set. - */ - public void setFullName(java.lang.String value) { - this.fullName = value; - } - - /** - * Gets the value of the 'countryCode' field. - * two uppercase letters country code. e.g. US */ - public java.lang.String getCountryCode() { - return countryCode; - } - - /** - * Sets the value of the 'countryCode' field. - * two uppercase letters country code. e.g. US * @param value the value to set. - */ - public void setCountryCode(java.lang.String value) { - this.countryCode = value; - } - - /** Creates a new CorpUserInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder(); - } - - /** Creates a new CorpUserInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder other) { - return new com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder(other); - } - - /** Creates a new CorpUserInfo RecordBuilder by copying an existing CorpUserInfo instance */ - public static com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserInfo other) { - return new com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder(other); - } - - /** - * RecordBuilder for CorpUserInfo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.Map customProperties; - private boolean active; - private java.lang.String displayName; - private java.lang.String email; - private java.lang.String title; - private java.lang.String managerUrn; - private java.lang.Long departmentId; - private java.lang.String departmentName; - private java.lang.String firstName; - private java.lang.String lastName; - private java.lang.String fullName; - private java.lang.String countryCode; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.CorpUserInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserInfo.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.active)) { - this.active = data().deepCopy(fields()[1].schema(), other.active); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.displayName)) { - this.displayName = data().deepCopy(fields()[2].schema(), other.displayName); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.email)) { - this.email = data().deepCopy(fields()[3].schema(), other.email); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.title)) { - this.title = data().deepCopy(fields()[4].schema(), other.title); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.managerUrn)) { - this.managerUrn = data().deepCopy(fields()[5].schema(), other.managerUrn); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.departmentId)) { - this.departmentId = data().deepCopy(fields()[6].schema(), other.departmentId); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.departmentName)) { - this.departmentName = data().deepCopy(fields()[7].schema(), other.departmentName); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.firstName)) { - this.firstName = data().deepCopy(fields()[8].schema(), other.firstName); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.lastName)) { - this.lastName = data().deepCopy(fields()[9].schema(), other.lastName); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.fullName)) { - this.fullName = data().deepCopy(fields()[10].schema(), other.fullName); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.countryCode)) { - this.countryCode = data().deepCopy(fields()[11].schema(), other.countryCode); - fieldSetFlags()[11] = true; - } - } - - /** Creates a Builder by copying an existing CorpUserInfo instance */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserInfo other) { - super(com.linkedin.pegasus2avro.identity.CorpUserInfo.SCHEMA$); - if (isValidValue(fields()[0], other.customProperties)) { - this.customProperties = data().deepCopy(fields()[0].schema(), other.customProperties); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.active)) { - this.active = data().deepCopy(fields()[1].schema(), other.active); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.displayName)) { - this.displayName = data().deepCopy(fields()[2].schema(), other.displayName); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.email)) { - this.email = data().deepCopy(fields()[3].schema(), other.email); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.title)) { - this.title = data().deepCopy(fields()[4].schema(), other.title); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.managerUrn)) { - this.managerUrn = data().deepCopy(fields()[5].schema(), other.managerUrn); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.departmentId)) { - this.departmentId = data().deepCopy(fields()[6].schema(), other.departmentId); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.departmentName)) { - this.departmentName = data().deepCopy(fields()[7].schema(), other.departmentName); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.firstName)) { - this.firstName = data().deepCopy(fields()[8].schema(), other.firstName); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.lastName)) { - this.lastName = data().deepCopy(fields()[9].schema(), other.lastName); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.fullName)) { - this.fullName = data().deepCopy(fields()[10].schema(), other.fullName); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.countryCode)) { - this.countryCode = data().deepCopy(fields()[11].schema(), other.countryCode); - fieldSetFlags()[11] = 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.identity.CorpUserInfo.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.identity.CorpUserInfo.Builder clearCustomProperties() { - customProperties = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'active' field */ - public java.lang.Boolean getActive() { - return active; - } - - /** Sets the value of the 'active' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder setActive(boolean value) { - validate(fields()[1], value); - this.active = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'active' field has been set */ - public boolean hasActive() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'active' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder clearActive() { - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'displayName' field */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** Sets the value of the 'displayName' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder setDisplayName(java.lang.String value) { - validate(fields()[2], value); - this.displayName = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'displayName' field has been set */ - public boolean hasDisplayName() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'displayName' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder clearDisplayName() { - displayName = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'email' field */ - public java.lang.String getEmail() { - return email; - } - - /** Sets the value of the 'email' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder setEmail(java.lang.String value) { - validate(fields()[3], value); - this.email = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'email' field has been set */ - public boolean hasEmail() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'email' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder clearEmail() { - email = null; - fieldSetFlags()[3] = 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.identity.CorpUserInfo.Builder setTitle(java.lang.String value) { - validate(fields()[4], value); - this.title = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'title' field has been set */ - public boolean hasTitle() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'title' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder clearTitle() { - title = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'managerUrn' field */ - public java.lang.String getManagerUrn() { - return managerUrn; - } - - /** Sets the value of the 'managerUrn' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder setManagerUrn(java.lang.String value) { - validate(fields()[5], value); - this.managerUrn = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'managerUrn' field has been set */ - public boolean hasManagerUrn() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'managerUrn' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder clearManagerUrn() { - managerUrn = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'departmentId' field */ - public java.lang.Long getDepartmentId() { - return departmentId; - } - - /** Sets the value of the 'departmentId' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder setDepartmentId(java.lang.Long value) { - validate(fields()[6], value); - this.departmentId = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'departmentId' field has been set */ - public boolean hasDepartmentId() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'departmentId' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder clearDepartmentId() { - departmentId = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'departmentName' field */ - public java.lang.String getDepartmentName() { - return departmentName; - } - - /** Sets the value of the 'departmentName' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder setDepartmentName(java.lang.String value) { - validate(fields()[7], value); - this.departmentName = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'departmentName' field has been set */ - public boolean hasDepartmentName() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'departmentName' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder clearDepartmentName() { - departmentName = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'firstName' field */ - public java.lang.String getFirstName() { - return firstName; - } - - /** Sets the value of the 'firstName' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder setFirstName(java.lang.String value) { - validate(fields()[8], value); - this.firstName = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'firstName' field has been set */ - public boolean hasFirstName() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'firstName' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder clearFirstName() { - firstName = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'lastName' field */ - public java.lang.String getLastName() { - return lastName; - } - - /** Sets the value of the 'lastName' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder setLastName(java.lang.String value) { - validate(fields()[9], value); - this.lastName = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'lastName' field has been set */ - public boolean hasLastName() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'lastName' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder clearLastName() { - lastName = null; - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'fullName' field */ - public java.lang.String getFullName() { - return fullName; - } - - /** Sets the value of the 'fullName' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder setFullName(java.lang.String value) { - validate(fields()[10], value); - this.fullName = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'fullName' field has been set */ - public boolean hasFullName() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'fullName' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder clearFullName() { - fullName = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'countryCode' field */ - public java.lang.String getCountryCode() { - return countryCode; - } - - /** Sets the value of the 'countryCode' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder setCountryCode(java.lang.String value) { - validate(fields()[11], value); - this.countryCode = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'countryCode' field has been set */ - public boolean hasCountryCode() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'countryCode' field */ - public com.linkedin.pegasus2avro.identity.CorpUserInfo.Builder clearCountryCode() { - countryCode = null; - fieldSetFlags()[11] = false; - return this; - } - - @Override - public CorpUserInfo build() { - try { - CorpUserInfo record = new CorpUserInfo(); - record.customProperties = fieldSetFlags()[0] ? this.customProperties : (java.util.Map) defaultValue(fields()[0]); - record.active = fieldSetFlags()[1] ? this.active : (java.lang.Boolean) defaultValue(fields()[1]); - record.displayName = fieldSetFlags()[2] ? this.displayName : (java.lang.String) defaultValue(fields()[2]); - record.email = fieldSetFlags()[3] ? this.email : (java.lang.String) defaultValue(fields()[3]); - record.title = fieldSetFlags()[4] ? this.title : (java.lang.String) defaultValue(fields()[4]); - record.managerUrn = fieldSetFlags()[5] ? this.managerUrn : (java.lang.String) defaultValue(fields()[5]); - record.departmentId = fieldSetFlags()[6] ? this.departmentId : (java.lang.Long) defaultValue(fields()[6]); - record.departmentName = fieldSetFlags()[7] ? this.departmentName : (java.lang.String) defaultValue(fields()[7]); - record.firstName = fieldSetFlags()[8] ? this.firstName : (java.lang.String) defaultValue(fields()[8]); - record.lastName = fieldSetFlags()[9] ? this.lastName : (java.lang.String) defaultValue(fields()[9]); - record.fullName = fieldSetFlags()[10] ? this.fullName : (java.lang.String) defaultValue(fields()[10]); - record.countryCode = fieldSetFlags()[11] ? this.countryCode : (java.lang.String) defaultValue(fields()[11]); - 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/identity/CorpUserSettings.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserSettings.java deleted file mode 100644 index cdaa5e31843a3..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserSettings.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** Settings that a user can customize through the datahub ui */ -@org.apache.avro.specific.AvroGenerated -public class CorpUserSettings 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\":\"CorpUserSettings\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Settings that a user can customize through the datahub ui\",\"fields\":[{\"name\":\"appearance\",\"type\":{\"type\":\"record\",\"name\":\"CorpUserAppearanceSettings\",\"doc\":\"Settings for a user around the appearance of their DataHub UI\",\"fields\":[{\"name\":\"showSimplifiedHomepage\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Flag whether the user should see a homepage with only datasets, charts and dashboards. Intended for users\\nwho have less operational use cases for the datahub tool.\",\"default\":null}]},\"doc\":\"Settings for a user around the appearance of their DataHub U\"},{\"name\":\"views\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"CorpUserViewsSettings\",\"doc\":\"Settings related to the 'Views' feature.\",\"fields\":[{\"name\":\"defaultView\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The default View which is selected for the user.\\nIf none is chosen, then this value will be left blank.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"User preferences for the Views feature.\",\"default\":null}],\"Aspect\":{\"name\":\"corpUserSettings\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Settings for a user around the appearance of their DataHub U */ - @Deprecated public com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings appearance; - /** User preferences for the Views feature. */ - @Deprecated public com.linkedin.pegasus2avro.identity.CorpUserViewsSettings views; - - /** - * 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 CorpUserSettings() {} - - /** - * All-args constructor. - */ - public CorpUserSettings(com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings appearance, com.linkedin.pegasus2avro.identity.CorpUserViewsSettings views) { - this.appearance = appearance; - this.views = views; - } - - 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 appearance; - case 1: return views; - 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: appearance = (com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings)value$; break; - case 1: views = (com.linkedin.pegasus2avro.identity.CorpUserViewsSettings)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'appearance' field. - * Settings for a user around the appearance of their DataHub U */ - public com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings getAppearance() { - return appearance; - } - - /** - * Sets the value of the 'appearance' field. - * Settings for a user around the appearance of their DataHub U * @param value the value to set. - */ - public void setAppearance(com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings value) { - this.appearance = value; - } - - /** - * Gets the value of the 'views' field. - * User preferences for the Views feature. */ - public com.linkedin.pegasus2avro.identity.CorpUserViewsSettings getViews() { - return views; - } - - /** - * Sets the value of the 'views' field. - * User preferences for the Views feature. * @param value the value to set. - */ - public void setViews(com.linkedin.pegasus2avro.identity.CorpUserViewsSettings value) { - this.views = value; - } - - /** Creates a new CorpUserSettings RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.CorpUserSettings.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.CorpUserSettings.Builder(); - } - - /** Creates a new CorpUserSettings RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.CorpUserSettings.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserSettings.Builder other) { - return new com.linkedin.pegasus2avro.identity.CorpUserSettings.Builder(other); - } - - /** Creates a new CorpUserSettings RecordBuilder by copying an existing CorpUserSettings instance */ - public static com.linkedin.pegasus2avro.identity.CorpUserSettings.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserSettings other) { - return new com.linkedin.pegasus2avro.identity.CorpUserSettings.Builder(other); - } - - /** - * RecordBuilder for CorpUserSettings instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings appearance; - private com.linkedin.pegasus2avro.identity.CorpUserViewsSettings views; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.CorpUserSettings.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserSettings.Builder other) { - super(other); - if (isValidValue(fields()[0], other.appearance)) { - this.appearance = data().deepCopy(fields()[0].schema(), other.appearance); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.views)) { - this.views = data().deepCopy(fields()[1].schema(), other.views); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing CorpUserSettings instance */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserSettings other) { - super(com.linkedin.pegasus2avro.identity.CorpUserSettings.SCHEMA$); - if (isValidValue(fields()[0], other.appearance)) { - this.appearance = data().deepCopy(fields()[0].schema(), other.appearance); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.views)) { - this.views = data().deepCopy(fields()[1].schema(), other.views); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'appearance' field */ - public com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings getAppearance() { - return appearance; - } - - /** Sets the value of the 'appearance' field */ - public com.linkedin.pegasus2avro.identity.CorpUserSettings.Builder setAppearance(com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings value) { - validate(fields()[0], value); - this.appearance = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'appearance' field has been set */ - public boolean hasAppearance() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'appearance' field */ - public com.linkedin.pegasus2avro.identity.CorpUserSettings.Builder clearAppearance() { - appearance = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'views' field */ - public com.linkedin.pegasus2avro.identity.CorpUserViewsSettings getViews() { - return views; - } - - /** Sets the value of the 'views' field */ - public com.linkedin.pegasus2avro.identity.CorpUserSettings.Builder setViews(com.linkedin.pegasus2avro.identity.CorpUserViewsSettings value) { - validate(fields()[1], value); - this.views = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'views' field has been set */ - public boolean hasViews() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'views' field */ - public com.linkedin.pegasus2avro.identity.CorpUserSettings.Builder clearViews() { - views = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public CorpUserSettings build() { - try { - CorpUserSettings record = new CorpUserSettings(); - record.appearance = fieldSetFlags()[0] ? this.appearance : (com.linkedin.pegasus2avro.identity.CorpUserAppearanceSettings) defaultValue(fields()[0]); - record.views = fieldSetFlags()[1] ? this.views : (com.linkedin.pegasus2avro.identity.CorpUserViewsSettings) 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/identity/CorpUserStatus.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserStatus.java deleted file mode 100644 index 1f836a011a381..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserStatus.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** The status of the user, e.g. provisioned, active, suspended, etc. */ -@org.apache.avro.specific.AvroGenerated -public class CorpUserStatus 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\":\"CorpUserStatus\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"The status of the user, e.g. provisioned, active, suspended, etc.\",\"fields\":[{\"name\":\"status\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"lastModified\",\"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\":\"Audit stamp containing who last modified the status and when.\"}],\"Aspect\":{\"name\":\"corpUserStatus\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED */ - @Deprecated public java.lang.String status; - /** Audit stamp containing who last modified the status and when. */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp lastModified; - - /** - * 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 CorpUserStatus() {} - - /** - * All-args constructor. - */ - public CorpUserStatus(java.lang.String status, com.linkedin.pegasus2avro.common.AuditStamp lastModified) { - this.status = status; - this.lastModified = lastModified; - } - - 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 status; - case 1: return lastModified; - 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: status = (java.lang.String)value$; break; - case 1: lastModified = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'status' field. - * Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED */ - public java.lang.String getStatus() { - return status; - } - - /** - * Sets the value of the 'status' field. - * Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED * @param value the value to set. - */ - public void setStatus(java.lang.String value) { - this.status = value; - } - - /** - * Gets the value of the 'lastModified' field. - * Audit stamp containing who last modified the status and when. */ - public com.linkedin.pegasus2avro.common.AuditStamp getLastModified() { - return lastModified; - } - - /** - * Sets the value of the 'lastModified' field. - * Audit stamp containing who last modified the status and when. * @param value the value to set. - */ - public void setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.lastModified = value; - } - - /** Creates a new CorpUserStatus RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.CorpUserStatus.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.CorpUserStatus.Builder(); - } - - /** Creates a new CorpUserStatus RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.CorpUserStatus.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserStatus.Builder other) { - return new com.linkedin.pegasus2avro.identity.CorpUserStatus.Builder(other); - } - - /** Creates a new CorpUserStatus RecordBuilder by copying an existing CorpUserStatus instance */ - public static com.linkedin.pegasus2avro.identity.CorpUserStatus.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserStatus other) { - return new com.linkedin.pegasus2avro.identity.CorpUserStatus.Builder(other); - } - - /** - * RecordBuilder for CorpUserStatus instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String status; - private com.linkedin.pegasus2avro.common.AuditStamp lastModified; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.CorpUserStatus.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserStatus.Builder other) { - super(other); - if (isValidValue(fields()[0], other.status)) { - this.status = data().deepCopy(fields()[0].schema(), other.status); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[1].schema(), other.lastModified); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing CorpUserStatus instance */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserStatus other) { - super(com.linkedin.pegasus2avro.identity.CorpUserStatus.SCHEMA$); - if (isValidValue(fields()[0], other.status)) { - this.status = data().deepCopy(fields()[0].schema(), other.status); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[1].schema(), other.lastModified); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'status' field */ - public java.lang.String getStatus() { - return status; - } - - /** Sets the value of the 'status' field */ - public com.linkedin.pegasus2avro.identity.CorpUserStatus.Builder setStatus(java.lang.String value) { - validate(fields()[0], value); - this.status = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'status' field has been set */ - public boolean hasStatus() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'status' field */ - public com.linkedin.pegasus2avro.identity.CorpUserStatus.Builder clearStatus() { - status = 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.identity.CorpUserStatus.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.identity.CorpUserStatus.Builder clearLastModified() { - lastModified = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public CorpUserStatus build() { - try { - CorpUserStatus record = new CorpUserStatus(); - record.status = fieldSetFlags()[0] ? this.status : (java.lang.String) defaultValue(fields()[0]); - record.lastModified = fieldSetFlags()[1] ? this.lastModified : (com.linkedin.pegasus2avro.common.AuditStamp) 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/identity/CorpUserViewsSettings.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserViewsSettings.java deleted file mode 100644 index c760855f4a1d4..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/CorpUserViewsSettings.java +++ /dev/null @@ -1,147 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** Settings related to the 'Views' feature. */ -@org.apache.avro.specific.AvroGenerated -public class CorpUserViewsSettings 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\":\"CorpUserViewsSettings\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Settings related to the 'Views' feature.\",\"fields\":[{\"name\":\"defaultView\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The default View which is selected for the user.\\nIf none is chosen, then this value will be left blank.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The default View which is selected for the user. -If none is chosen, then this value will be left blank. */ - @Deprecated public java.lang.String defaultView; - - /** - * 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 CorpUserViewsSettings() {} - - /** - * All-args constructor. - */ - public CorpUserViewsSettings(java.lang.String defaultView) { - this.defaultView = defaultView; - } - - 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 defaultView; - 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: defaultView = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'defaultView' field. - * The default View which is selected for the user. -If none is chosen, then this value will be left blank. */ - public java.lang.String getDefaultView() { - return defaultView; - } - - /** - * Sets the value of the 'defaultView' field. - * The default View which is selected for the user. -If none is chosen, then this value will be left blank. * @param value the value to set. - */ - public void setDefaultView(java.lang.String value) { - this.defaultView = value; - } - - /** Creates a new CorpUserViewsSettings RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.CorpUserViewsSettings.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.CorpUserViewsSettings.Builder(); - } - - /** Creates a new CorpUserViewsSettings RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.CorpUserViewsSettings.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserViewsSettings.Builder other) { - return new com.linkedin.pegasus2avro.identity.CorpUserViewsSettings.Builder(other); - } - - /** Creates a new CorpUserViewsSettings RecordBuilder by copying an existing CorpUserViewsSettings instance */ - public static com.linkedin.pegasus2avro.identity.CorpUserViewsSettings.Builder newBuilder(com.linkedin.pegasus2avro.identity.CorpUserViewsSettings other) { - return new com.linkedin.pegasus2avro.identity.CorpUserViewsSettings.Builder(other); - } - - /** - * RecordBuilder for CorpUserViewsSettings instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String defaultView; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.CorpUserViewsSettings.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserViewsSettings.Builder other) { - super(other); - if (isValidValue(fields()[0], other.defaultView)) { - this.defaultView = data().deepCopy(fields()[0].schema(), other.defaultView); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing CorpUserViewsSettings instance */ - private Builder(com.linkedin.pegasus2avro.identity.CorpUserViewsSettings other) { - super(com.linkedin.pegasus2avro.identity.CorpUserViewsSettings.SCHEMA$); - if (isValidValue(fields()[0], other.defaultView)) { - this.defaultView = data().deepCopy(fields()[0].schema(), other.defaultView); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'defaultView' field */ - public java.lang.String getDefaultView() { - return defaultView; - } - - /** Sets the value of the 'defaultView' field */ - public com.linkedin.pegasus2avro.identity.CorpUserViewsSettings.Builder setDefaultView(java.lang.String value) { - validate(fields()[0], value); - this.defaultView = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'defaultView' field has been set */ - public boolean hasDefaultView() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'defaultView' field */ - public com.linkedin.pegasus2avro.identity.CorpUserViewsSettings.Builder clearDefaultView() { - defaultView = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public CorpUserViewsSettings build() { - try { - CorpUserViewsSettings record = new CorpUserViewsSettings(); - record.defaultView = fieldSetFlags()[0] ? this.defaultView : (java.lang.String) 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/identity/GroupMembership.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/GroupMembership.java deleted file mode 100644 index 6579eb019cda5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/GroupMembership.java +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** Carries information about the CorpGroups a user is in. */ -@org.apache.avro.specific.AvroGenerated -public class GroupMembership 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\":\"GroupMembership\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Carries information about the CorpGroups a user is in.\",\"fields\":[{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsMemberOfGroup\"}}}],\"Aspect\":{\"name\":\"groupMembership\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.util.List groups; - - /** - * 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 GroupMembership() {} - - /** - * All-args constructor. - */ - public GroupMembership(java.util.List groups) { - this.groups = groups; - } - - 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 groups; - 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: groups = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'groups' field. - */ - public java.util.List getGroups() { - return groups; - } - - /** - * Sets the value of the 'groups' field. - * @param value the value to set. - */ - public void setGroups(java.util.List value) { - this.groups = value; - } - - /** Creates a new GroupMembership RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.GroupMembership.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.GroupMembership.Builder(); - } - - /** Creates a new GroupMembership RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.GroupMembership.Builder newBuilder(com.linkedin.pegasus2avro.identity.GroupMembership.Builder other) { - return new com.linkedin.pegasus2avro.identity.GroupMembership.Builder(other); - } - - /** Creates a new GroupMembership RecordBuilder by copying an existing GroupMembership instance */ - public static com.linkedin.pegasus2avro.identity.GroupMembership.Builder newBuilder(com.linkedin.pegasus2avro.identity.GroupMembership other) { - return new com.linkedin.pegasus2avro.identity.GroupMembership.Builder(other); - } - - /** - * RecordBuilder for GroupMembership instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List groups; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.GroupMembership.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.GroupMembership.Builder other) { - super(other); - if (isValidValue(fields()[0], other.groups)) { - this.groups = data().deepCopy(fields()[0].schema(), other.groups); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing GroupMembership instance */ - private Builder(com.linkedin.pegasus2avro.identity.GroupMembership other) { - super(com.linkedin.pegasus2avro.identity.GroupMembership.SCHEMA$); - if (isValidValue(fields()[0], other.groups)) { - this.groups = data().deepCopy(fields()[0].schema(), other.groups); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'groups' field */ - public java.util.List getGroups() { - return groups; - } - - /** Sets the value of the 'groups' field */ - public com.linkedin.pegasus2avro.identity.GroupMembership.Builder setGroups(java.util.List value) { - validate(fields()[0], value); - this.groups = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'groups' field has been set */ - public boolean hasGroups() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'groups' field */ - public com.linkedin.pegasus2avro.identity.GroupMembership.Builder clearGroups() { - groups = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public GroupMembership build() { - try { - GroupMembership record = new GroupMembership(); - record.groups = fieldSetFlags()[0] ? this.groups : (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/identity/InviteToken.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/InviteToken.java deleted file mode 100644 index 3ae0d5843c158..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/InviteToken.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** Aspect used to store invite tokens. */ -@org.apache.avro.specific.AvroGenerated -public class InviteToken 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\":\"InviteToken\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Aspect used to store invite tokens.\",\"fields\":[{\"name\":\"token\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The encrypted invite token.\"},{\"name\":\"role\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The role that this invite token may be associated with\",\"default\":null,\"Searchable\":{\"fieldName\":\"role\",\"fieldType\":\"KEYWORD\",\"hasValuesFieldName\":\"hasRole\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}],\"Aspect\":{\"name\":\"inviteToken\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The encrypted invite token. */ - @Deprecated public java.lang.String token; - /** The role that this invite token may be associated with */ - @Deprecated public java.lang.String role; - - /** - * 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 InviteToken() {} - - /** - * All-args constructor. - */ - public InviteToken(java.lang.String token, java.lang.String role) { - this.token = token; - this.role = role; - } - - 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 token; - case 1: return role; - 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: token = (java.lang.String)value$; break; - case 1: role = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'token' field. - * The encrypted invite token. */ - public java.lang.String getToken() { - return token; - } - - /** - * Sets the value of the 'token' field. - * The encrypted invite token. * @param value the value to set. - */ - public void setToken(java.lang.String value) { - this.token = value; - } - - /** - * Gets the value of the 'role' field. - * The role that this invite token may be associated with */ - public java.lang.String getRole() { - return role; - } - - /** - * Sets the value of the 'role' field. - * The role that this invite token may be associated with * @param value the value to set. - */ - public void setRole(java.lang.String value) { - this.role = value; - } - - /** Creates a new InviteToken RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.InviteToken.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.InviteToken.Builder(); - } - - /** Creates a new InviteToken RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.InviteToken.Builder newBuilder(com.linkedin.pegasus2avro.identity.InviteToken.Builder other) { - return new com.linkedin.pegasus2avro.identity.InviteToken.Builder(other); - } - - /** Creates a new InviteToken RecordBuilder by copying an existing InviteToken instance */ - public static com.linkedin.pegasus2avro.identity.InviteToken.Builder newBuilder(com.linkedin.pegasus2avro.identity.InviteToken other) { - return new com.linkedin.pegasus2avro.identity.InviteToken.Builder(other); - } - - /** - * RecordBuilder for InviteToken instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String token; - private java.lang.String role; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.InviteToken.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.InviteToken.Builder other) { - super(other); - if (isValidValue(fields()[0], other.token)) { - this.token = data().deepCopy(fields()[0].schema(), other.token); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.role)) { - this.role = data().deepCopy(fields()[1].schema(), other.role); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing InviteToken instance */ - private Builder(com.linkedin.pegasus2avro.identity.InviteToken other) { - super(com.linkedin.pegasus2avro.identity.InviteToken.SCHEMA$); - if (isValidValue(fields()[0], other.token)) { - this.token = data().deepCopy(fields()[0].schema(), other.token); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.role)) { - this.role = data().deepCopy(fields()[1].schema(), other.role); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'token' field */ - public java.lang.String getToken() { - return token; - } - - /** Sets the value of the 'token' field */ - public com.linkedin.pegasus2avro.identity.InviteToken.Builder setToken(java.lang.String value) { - validate(fields()[0], value); - this.token = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'token' field has been set */ - public boolean hasToken() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'token' field */ - public com.linkedin.pegasus2avro.identity.InviteToken.Builder clearToken() { - token = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'role' field */ - public java.lang.String getRole() { - return role; - } - - /** Sets the value of the 'role' field */ - public com.linkedin.pegasus2avro.identity.InviteToken.Builder setRole(java.lang.String value) { - validate(fields()[1], value); - this.role = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'role' field has been set */ - public boolean hasRole() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'role' field */ - public com.linkedin.pegasus2avro.identity.InviteToken.Builder clearRole() { - role = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public InviteToken build() { - try { - InviteToken record = new InviteToken(); - record.token = fieldSetFlags()[0] ? this.token : (java.lang.String) defaultValue(fields()[0]); - record.role = fieldSetFlags()[1] ? this.role : (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/identity/NativeGroupMembership.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/NativeGroupMembership.java deleted file mode 100644 index dcdba1562ea87..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/NativeGroupMembership.java +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** Carries information about the native CorpGroups a user is in. */ -@org.apache.avro.specific.AvroGenerated -public class NativeGroupMembership 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\":\"NativeGroupMembership\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Carries information about the native CorpGroups a user is in.\",\"fields\":[{\"name\":\"nativeGroups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsMemberOfNativeGroup\"}}}],\"Aspect\":{\"name\":\"nativeGroupMembership\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.util.List nativeGroups; - - /** - * 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 NativeGroupMembership() {} - - /** - * All-args constructor. - */ - public NativeGroupMembership(java.util.List nativeGroups) { - this.nativeGroups = nativeGroups; - } - - 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 nativeGroups; - 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: nativeGroups = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'nativeGroups' field. - */ - public java.util.List getNativeGroups() { - return nativeGroups; - } - - /** - * Sets the value of the 'nativeGroups' field. - * @param value the value to set. - */ - public void setNativeGroups(java.util.List value) { - this.nativeGroups = value; - } - - /** Creates a new NativeGroupMembership RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.NativeGroupMembership.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.NativeGroupMembership.Builder(); - } - - /** Creates a new NativeGroupMembership RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.NativeGroupMembership.Builder newBuilder(com.linkedin.pegasus2avro.identity.NativeGroupMembership.Builder other) { - return new com.linkedin.pegasus2avro.identity.NativeGroupMembership.Builder(other); - } - - /** Creates a new NativeGroupMembership RecordBuilder by copying an existing NativeGroupMembership instance */ - public static com.linkedin.pegasus2avro.identity.NativeGroupMembership.Builder newBuilder(com.linkedin.pegasus2avro.identity.NativeGroupMembership other) { - return new com.linkedin.pegasus2avro.identity.NativeGroupMembership.Builder(other); - } - - /** - * RecordBuilder for NativeGroupMembership instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List nativeGroups; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.NativeGroupMembership.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.NativeGroupMembership.Builder other) { - super(other); - if (isValidValue(fields()[0], other.nativeGroups)) { - this.nativeGroups = data().deepCopy(fields()[0].schema(), other.nativeGroups); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing NativeGroupMembership instance */ - private Builder(com.linkedin.pegasus2avro.identity.NativeGroupMembership other) { - super(com.linkedin.pegasus2avro.identity.NativeGroupMembership.SCHEMA$); - if (isValidValue(fields()[0], other.nativeGroups)) { - this.nativeGroups = data().deepCopy(fields()[0].schema(), other.nativeGroups); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'nativeGroups' field */ - public java.util.List getNativeGroups() { - return nativeGroups; - } - - /** Sets the value of the 'nativeGroups' field */ - public com.linkedin.pegasus2avro.identity.NativeGroupMembership.Builder setNativeGroups(java.util.List value) { - validate(fields()[0], value); - this.nativeGroups = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'nativeGroups' field has been set */ - public boolean hasNativeGroups() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'nativeGroups' field */ - public com.linkedin.pegasus2avro.identity.NativeGroupMembership.Builder clearNativeGroups() { - nativeGroups = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public NativeGroupMembership build() { - try { - NativeGroupMembership record = new NativeGroupMembership(); - record.nativeGroups = fieldSetFlags()[0] ? this.nativeGroups : (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/identity/RoleMembership.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/RoleMembership.java deleted file mode 100644 index 4d5f8edebfc46..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/identity/RoleMembership.java +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.identity; -@SuppressWarnings("all") -/** Carries information about which roles a user is assigned to. */ -@org.apache.avro.specific.AvroGenerated -public class RoleMembership 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\":\"RoleMembership\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Carries information about which roles a user is assigned to.\",\"fields\":[{\"name\":\"roles\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataHubRole\"],\"name\":\"IsMemberOfRole\"}}}],\"Aspect\":{\"name\":\"roleMembership\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.util.List roles; - - /** - * 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 RoleMembership() {} - - /** - * All-args constructor. - */ - public RoleMembership(java.util.List roles) { - this.roles = roles; - } - - 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 roles; - 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: roles = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'roles' field. - */ - public java.util.List getRoles() { - return roles; - } - - /** - * Sets the value of the 'roles' field. - * @param value the value to set. - */ - public void setRoles(java.util.List value) { - this.roles = value; - } - - /** Creates a new RoleMembership RecordBuilder */ - public static com.linkedin.pegasus2avro.identity.RoleMembership.Builder newBuilder() { - return new com.linkedin.pegasus2avro.identity.RoleMembership.Builder(); - } - - /** Creates a new RoleMembership RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.identity.RoleMembership.Builder newBuilder(com.linkedin.pegasus2avro.identity.RoleMembership.Builder other) { - return new com.linkedin.pegasus2avro.identity.RoleMembership.Builder(other); - } - - /** Creates a new RoleMembership RecordBuilder by copying an existing RoleMembership instance */ - public static com.linkedin.pegasus2avro.identity.RoleMembership.Builder newBuilder(com.linkedin.pegasus2avro.identity.RoleMembership other) { - return new com.linkedin.pegasus2avro.identity.RoleMembership.Builder(other); - } - - /** - * RecordBuilder for RoleMembership instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List roles; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.identity.RoleMembership.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.identity.RoleMembership.Builder other) { - super(other); - if (isValidValue(fields()[0], other.roles)) { - this.roles = data().deepCopy(fields()[0].schema(), other.roles); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing RoleMembership instance */ - private Builder(com.linkedin.pegasus2avro.identity.RoleMembership other) { - super(com.linkedin.pegasus2avro.identity.RoleMembership.SCHEMA$); - if (isValidValue(fields()[0], other.roles)) { - this.roles = data().deepCopy(fields()[0].schema(), other.roles); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'roles' field */ - public java.util.List getRoles() { - return roles; - } - - /** Sets the value of the 'roles' field */ - public com.linkedin.pegasus2avro.identity.RoleMembership.Builder setRoles(java.util.List value) { - validate(fields()[0], value); - this.roles = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'roles' field has been set */ - public boolean hasRoles() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'roles' field */ - public com.linkedin.pegasus2avro.identity.RoleMembership.Builder clearRoles() { - roles = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public RoleMembership build() { - try { - RoleMembership record = new RoleMembership(); - record.roles = fieldSetFlags()[0] ? this.roles : (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/ingestion/DataHubIngestionSourceConfig.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ingestion/DataHubIngestionSourceConfig.java deleted file mode 100644 index 578ffc70a3b2f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ingestion/DataHubIngestionSourceConfig.java +++ /dev/null @@ -1,308 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ingestion; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class DataHubIngestionSourceConfig 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\":\"DataHubIngestionSourceConfig\",\"namespace\":\"com.linkedin.pegasus2avro.ingestion\",\"fields\":[{\"name\":\"recipe\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The JSON recipe to use for ingestion\"},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The PyPI version of the datahub CLI to use when executing a recipe\",\"default\":null},{\"name\":\"executorId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The id of the executor to use to execute the ingestion run\",\"default\":null},{\"name\":\"debugMode\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Whether or not to run this ingestion source in debug mode\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The JSON recipe to use for ingestion */ - @Deprecated public java.lang.String recipe; - /** The PyPI version of the datahub CLI to use when executing a recipe */ - @Deprecated public java.lang.String version; - /** The id of the executor to use to execute the ingestion run */ - @Deprecated public java.lang.String executorId; - /** Whether or not to run this ingestion source in debug mode */ - @Deprecated public java.lang.Boolean debugMode; - - /** - * 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 DataHubIngestionSourceConfig() {} - - /** - * All-args constructor. - */ - public DataHubIngestionSourceConfig(java.lang.String recipe, java.lang.String version, java.lang.String executorId, java.lang.Boolean debugMode) { - this.recipe = recipe; - this.version = version; - this.executorId = executorId; - this.debugMode = debugMode; - } - - 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 recipe; - case 1: return version; - case 2: return executorId; - case 3: return debugMode; - 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: recipe = (java.lang.String)value$; break; - case 1: version = (java.lang.String)value$; break; - case 2: executorId = (java.lang.String)value$; break; - case 3: debugMode = (java.lang.Boolean)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'recipe' field. - * The JSON recipe to use for ingestion */ - public java.lang.String getRecipe() { - return recipe; - } - - /** - * Sets the value of the 'recipe' field. - * The JSON recipe to use for ingestion * @param value the value to set. - */ - public void setRecipe(java.lang.String value) { - this.recipe = value; - } - - /** - * Gets the value of the 'version' field. - * The PyPI version of the datahub CLI to use when executing a recipe */ - public java.lang.String getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * The PyPI version of the datahub CLI to use when executing a recipe * @param value the value to set. - */ - public void setVersion(java.lang.String value) { - this.version = value; - } - - /** - * Gets the value of the 'executorId' field. - * The id of the executor to use to execute the ingestion run */ - public java.lang.String getExecutorId() { - return executorId; - } - - /** - * Sets the value of the 'executorId' field. - * The id of the executor to use to execute the ingestion run * @param value the value to set. - */ - public void setExecutorId(java.lang.String value) { - this.executorId = value; - } - - /** - * Gets the value of the 'debugMode' field. - * Whether or not to run this ingestion source in debug mode */ - public java.lang.Boolean getDebugMode() { - return debugMode; - } - - /** - * Sets the value of the 'debugMode' field. - * Whether or not to run this ingestion source in debug mode * @param value the value to set. - */ - public void setDebugMode(java.lang.Boolean value) { - this.debugMode = value; - } - - /** Creates a new DataHubIngestionSourceConfig RecordBuilder */ - public static com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder(); - } - - /** Creates a new DataHubIngestionSourceConfig RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder newBuilder(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder other) { - return new com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder(other); - } - - /** Creates a new DataHubIngestionSourceConfig RecordBuilder by copying an existing DataHubIngestionSourceConfig instance */ - public static com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder newBuilder(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig other) { - return new com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder(other); - } - - /** - * RecordBuilder for DataHubIngestionSourceConfig instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String recipe; - private java.lang.String version; - private java.lang.String executorId; - private java.lang.Boolean debugMode; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder other) { - super(other); - if (isValidValue(fields()[0], other.recipe)) { - this.recipe = data().deepCopy(fields()[0].schema(), other.recipe); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.version)) { - this.version = data().deepCopy(fields()[1].schema(), other.version); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.executorId)) { - this.executorId = data().deepCopy(fields()[2].schema(), other.executorId); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.debugMode)) { - this.debugMode = data().deepCopy(fields()[3].schema(), other.debugMode); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing DataHubIngestionSourceConfig instance */ - private Builder(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig other) { - super(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.SCHEMA$); - if (isValidValue(fields()[0], other.recipe)) { - this.recipe = data().deepCopy(fields()[0].schema(), other.recipe); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.version)) { - this.version = data().deepCopy(fields()[1].schema(), other.version); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.executorId)) { - this.executorId = data().deepCopy(fields()[2].schema(), other.executorId); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.debugMode)) { - this.debugMode = data().deepCopy(fields()[3].schema(), other.debugMode); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'recipe' field */ - public java.lang.String getRecipe() { - return recipe; - } - - /** Sets the value of the 'recipe' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder setRecipe(java.lang.String value) { - validate(fields()[0], value); - this.recipe = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'recipe' field has been set */ - public boolean hasRecipe() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'recipe' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder clearRecipe() { - recipe = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public java.lang.String getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder setVersion(java.lang.String value) { - validate(fields()[1], value); - this.version = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder clearVersion() { - version = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'executorId' field */ - public java.lang.String getExecutorId() { - return executorId; - } - - /** Sets the value of the 'executorId' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder setExecutorId(java.lang.String value) { - validate(fields()[2], value); - this.executorId = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'executorId' field has been set */ - public boolean hasExecutorId() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'executorId' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder clearExecutorId() { - executorId = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'debugMode' field */ - public java.lang.Boolean getDebugMode() { - return debugMode; - } - - /** Sets the value of the 'debugMode' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder setDebugMode(java.lang.Boolean value) { - validate(fields()[3], value); - this.debugMode = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'debugMode' field has been set */ - public boolean hasDebugMode() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'debugMode' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig.Builder clearDebugMode() { - debugMode = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public DataHubIngestionSourceConfig build() { - try { - DataHubIngestionSourceConfig record = new DataHubIngestionSourceConfig(); - record.recipe = fieldSetFlags()[0] ? this.recipe : (java.lang.String) defaultValue(fields()[0]); - record.version = fieldSetFlags()[1] ? this.version : (java.lang.String) defaultValue(fields()[1]); - record.executorId = fieldSetFlags()[2] ? this.executorId : (java.lang.String) defaultValue(fields()[2]); - record.debugMode = fieldSetFlags()[3] ? this.debugMode : (java.lang.Boolean) 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/ingestion/DataHubIngestionSourceInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ingestion/DataHubIngestionSourceInfo.java deleted file mode 100644 index eed3af7da76e7..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ingestion/DataHubIngestionSourceInfo.java +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ingestion; -@SuppressWarnings("all") -/** Info about a DataHub ingestion source */ -@org.apache.avro.specific.AvroGenerated -public class DataHubIngestionSourceInfo 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\":\"DataHubIngestionSourceInfo\",\"namespace\":\"com.linkedin.pegasus2avro.ingestion\",\"doc\":\"Info about a DataHub ingestion source\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The display name of the ingestion source\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of the source itself, e.g. mysql, bigquery, bigquery-usage. Should match the recipe.\"},{\"name\":\"platform\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Data Platform URN associated with the source\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"schedule\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DataHubIngestionSourceSchedule\",\"doc\":\"The schedule associated with an ingestion source.\",\"fields\":[{\"name\":\"interval\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A cron-formatted execution interval, as a cron string, e.g. * * * * *\"},{\"name\":\"timezone\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Timezone in which the cron interval applies, e.g. America/Los Angeles\"}]}],\"doc\":\"The schedule on which the ingestion source is executed\",\"default\":null},{\"name\":\"config\",\"type\":{\"type\":\"record\",\"name\":\"DataHubIngestionSourceConfig\",\"fields\":[{\"name\":\"recipe\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The JSON recipe to use for ingestion\"},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The PyPI version of the datahub CLI to use when executing a recipe\",\"default\":null},{\"name\":\"executorId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The id of the executor to use to execute the ingestion run\",\"default\":null},{\"name\":\"debugMode\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Whether or not to run this ingestion source in debug mode\",\"default\":null}]},\"doc\":\"Parameters associated with the Ingestion Source\"}],\"Aspect\":{\"name\":\"dataHubIngestionSourceInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The display name of the ingestion source */ - @Deprecated public java.lang.String name; - /** The type of the source itself, e.g. mysql, bigquery, bigquery-usage. Should match the recipe. */ - @Deprecated public java.lang.String type; - /** Data Platform URN associated with the source */ - @Deprecated public java.lang.String platform; - /** The schedule on which the ingestion source is executed */ - @Deprecated public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule schedule; - /** Parameters associated with the Ingestion Source */ - @Deprecated public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig config; - - /** - * 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 DataHubIngestionSourceInfo() {} - - /** - * All-args constructor. - */ - public DataHubIngestionSourceInfo(java.lang.String name, java.lang.String type, java.lang.String platform, com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule schedule, com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig config) { - this.name = name; - this.type = type; - this.platform = platform; - this.schedule = schedule; - this.config = config; - } - - 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 type; - case 2: return platform; - case 3: return schedule; - case 4: return config; - 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: type = (java.lang.String)value$; break; - case 2: platform = (java.lang.String)value$; break; - case 3: schedule = (com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule)value$; break; - case 4: config = (com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * The display name of the ingestion source */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * The display name of the ingestion source * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'type' field. - * The type of the source itself, e.g. mysql, bigquery, bigquery-usage. Should match the recipe. */ - public java.lang.String getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of the source itself, e.g. mysql, bigquery, bigquery-usage. Should match the recipe. * @param value the value to set. - */ - public void setType(java.lang.String value) { - this.type = value; - } - - /** - * Gets the value of the 'platform' field. - * Data Platform URN associated with the source */ - public java.lang.String getPlatform() { - return platform; - } - - /** - * Sets the value of the 'platform' field. - * Data Platform URN associated with the source * @param value the value to set. - */ - public void setPlatform(java.lang.String value) { - this.platform = value; - } - - /** - * Gets the value of the 'schedule' field. - * The schedule on which the ingestion source is executed */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule getSchedule() { - return schedule; - } - - /** - * Sets the value of the 'schedule' field. - * The schedule on which the ingestion source is executed * @param value the value to set. - */ - public void setSchedule(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule value) { - this.schedule = value; - } - - /** - * Gets the value of the 'config' field. - * Parameters associated with the Ingestion Source */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig getConfig() { - return config; - } - - /** - * Sets the value of the 'config' field. - * Parameters associated with the Ingestion Source * @param value the value to set. - */ - public void setConfig(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig value) { - this.config = value; - } - - /** Creates a new DataHubIngestionSourceInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder(); - } - - /** Creates a new DataHubIngestionSourceInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder newBuilder(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder other) { - return new com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder(other); - } - - /** Creates a new DataHubIngestionSourceInfo RecordBuilder by copying an existing DataHubIngestionSourceInfo instance */ - public static com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder newBuilder(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo other) { - return new com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder(other); - } - - /** - * RecordBuilder for DataHubIngestionSourceInfo 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 type; - private java.lang.String platform; - private com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule schedule; - private com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig config; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.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.type)) { - this.type = data().deepCopy(fields()[1].schema(), other.type); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.platform)) { - this.platform = data().deepCopy(fields()[2].schema(), other.platform); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.schedule)) { - this.schedule = data().deepCopy(fields()[3].schema(), other.schedule); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.config)) { - this.config = data().deepCopy(fields()[4].schema(), other.config); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing DataHubIngestionSourceInfo instance */ - private Builder(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo other) { - super(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.type)) { - this.type = data().deepCopy(fields()[1].schema(), other.type); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.platform)) { - this.platform = data().deepCopy(fields()[2].schema(), other.platform); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.schedule)) { - this.schedule = data().deepCopy(fields()[3].schema(), other.schedule); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.config)) { - this.config = data().deepCopy(fields()[4].schema(), other.config); - fieldSetFlags()[4] = 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.ingestion.DataHubIngestionSourceInfo.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.ingestion.DataHubIngestionSourceInfo.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public java.lang.String getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder setType(java.lang.String 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.ingestion.DataHubIngestionSourceInfo.Builder clearType() { - type = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.ingestion.DataHubIngestionSourceInfo.Builder setPlatform(java.lang.String value) { - validate(fields()[2], value); - this.platform = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'platform' field has been set */ - public boolean hasPlatform() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'platform' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder clearPlatform() { - platform = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'schedule' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule getSchedule() { - return schedule; - } - - /** Sets the value of the 'schedule' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder setSchedule(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule value) { - validate(fields()[3], value); - this.schedule = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'schedule' field has been set */ - public boolean hasSchedule() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'schedule' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder clearSchedule() { - schedule = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'config' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig getConfig() { - return config; - } - - /** Sets the value of the 'config' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder setConfig(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig value) { - validate(fields()[4], value); - this.config = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'config' field has been set */ - public boolean hasConfig() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'config' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceInfo.Builder clearConfig() { - config = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public DataHubIngestionSourceInfo build() { - try { - DataHubIngestionSourceInfo record = new DataHubIngestionSourceInfo(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.type = fieldSetFlags()[1] ? this.type : (java.lang.String) defaultValue(fields()[1]); - record.platform = fieldSetFlags()[2] ? this.platform : (java.lang.String) defaultValue(fields()[2]); - record.schedule = fieldSetFlags()[3] ? this.schedule : (com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule) defaultValue(fields()[3]); - record.config = fieldSetFlags()[4] ? this.config : (com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceConfig) 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/ingestion/DataHubIngestionSourceSchedule.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ingestion/DataHubIngestionSourceSchedule.java deleted file mode 100644 index e77c73dab27f7..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ingestion/DataHubIngestionSourceSchedule.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ingestion; -@SuppressWarnings("all") -/** The schedule associated with an ingestion source. */ -@org.apache.avro.specific.AvroGenerated -public class DataHubIngestionSourceSchedule 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\":\"DataHubIngestionSourceSchedule\",\"namespace\":\"com.linkedin.pegasus2avro.ingestion\",\"doc\":\"The schedule associated with an ingestion source.\",\"fields\":[{\"name\":\"interval\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A cron-formatted execution interval, as a cron string, e.g. * * * * *\"},{\"name\":\"timezone\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Timezone in which the cron interval applies, e.g. America/Los Angeles\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A cron-formatted execution interval, as a cron string, e.g. * * * * * */ - @Deprecated public java.lang.String interval; - /** Timezone in which the cron interval applies, e.g. America/Los Angeles */ - @Deprecated public java.lang.String timezone; - - /** - * 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 DataHubIngestionSourceSchedule() {} - - /** - * All-args constructor. - */ - public DataHubIngestionSourceSchedule(java.lang.String interval, java.lang.String timezone) { - this.interval = interval; - this.timezone = timezone; - } - - 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 interval; - case 1: return timezone; - 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: interval = (java.lang.String)value$; break; - case 1: timezone = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'interval' field. - * A cron-formatted execution interval, as a cron string, e.g. * * * * * */ - public java.lang.String getInterval() { - return interval; - } - - /** - * Sets the value of the 'interval' field. - * A cron-formatted execution interval, as a cron string, e.g. * * * * * * @param value the value to set. - */ - public void setInterval(java.lang.String value) { - this.interval = value; - } - - /** - * Gets the value of the 'timezone' field. - * Timezone in which the cron interval applies, e.g. America/Los Angeles */ - public java.lang.String getTimezone() { - return timezone; - } - - /** - * Sets the value of the 'timezone' field. - * Timezone in which the cron interval applies, e.g. America/Los Angeles * @param value the value to set. - */ - public void setTimezone(java.lang.String value) { - this.timezone = value; - } - - /** Creates a new DataHubIngestionSourceSchedule RecordBuilder */ - public static com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.Builder(); - } - - /** Creates a new DataHubIngestionSourceSchedule RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.Builder newBuilder(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.Builder other) { - return new com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.Builder(other); - } - - /** Creates a new DataHubIngestionSourceSchedule RecordBuilder by copying an existing DataHubIngestionSourceSchedule instance */ - public static com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.Builder newBuilder(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule other) { - return new com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.Builder(other); - } - - /** - * RecordBuilder for DataHubIngestionSourceSchedule instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String interval; - private java.lang.String timezone; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.Builder other) { - super(other); - if (isValidValue(fields()[0], other.interval)) { - this.interval = data().deepCopy(fields()[0].schema(), other.interval); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.timezone)) { - this.timezone = data().deepCopy(fields()[1].schema(), other.timezone); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataHubIngestionSourceSchedule instance */ - private Builder(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule other) { - super(com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.SCHEMA$); - if (isValidValue(fields()[0], other.interval)) { - this.interval = data().deepCopy(fields()[0].schema(), other.interval); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.timezone)) { - this.timezone = data().deepCopy(fields()[1].schema(), other.timezone); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'interval' field */ - public java.lang.String getInterval() { - return interval; - } - - /** Sets the value of the 'interval' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.Builder setInterval(java.lang.String value) { - validate(fields()[0], value); - this.interval = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'interval' field has been set */ - public boolean hasInterval() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'interval' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.Builder clearInterval() { - interval = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'timezone' field */ - public java.lang.String getTimezone() { - return timezone; - } - - /** Sets the value of the 'timezone' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.Builder setTimezone(java.lang.String value) { - validate(fields()[1], value); - this.timezone = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'timezone' field has been set */ - public boolean hasTimezone() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'timezone' field */ - public com.linkedin.pegasus2avro.ingestion.DataHubIngestionSourceSchedule.Builder clearTimezone() { - timezone = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataHubIngestionSourceSchedule build() { - try { - DataHubIngestionSourceSchedule record = new DataHubIngestionSourceSchedule(); - record.interval = fieldSetFlags()[0] ? this.interval : (java.lang.String) defaultValue(fields()[0]); - record.timezone = fieldSetFlags()[1] ? this.timezone : (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/metadata/aspect/AspectVersion.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/aspect/AspectVersion.java deleted file mode 100644 index a0e7a10f945a5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/aspect/AspectVersion.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.aspect; -@SuppressWarnings("all") -/** A tuple of a specific metadata aspect and its version. */ -@org.apache.avro.specific.AvroGenerated -public class AspectVersion 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\":\"AspectVersion\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.aspect\",\"doc\":\"A tuple of a specific metadata aspect and its version.\",\"fields\":[{\"name\":\"aspect\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The FQCN of the metadata aspect, e.g. com.linkedin.pegasus2avro.common.Ownership\"},{\"name\":\"version\",\"type\":\"long\",\"doc\":\"The version of the metadata aspect\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The FQCN of the metadata aspect, e.g. com.linkedin.pegasus2avro.common.Ownership */ - @Deprecated public java.lang.String aspect; - /** The version of the metadata aspect */ - @Deprecated public long version; - - /** - * 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 AspectVersion() {} - - /** - * All-args constructor. - */ - public AspectVersion(java.lang.String aspect, java.lang.Long version) { - this.aspect = aspect; - this.version = version; - } - - 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 aspect; - case 1: return version; - 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: aspect = (java.lang.String)value$; break; - case 1: version = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'aspect' field. - * The FQCN of the metadata aspect, e.g. com.linkedin.pegasus2avro.common.Ownership */ - public java.lang.String getAspect() { - return aspect; - } - - /** - * Sets the value of the 'aspect' field. - * The FQCN of the metadata aspect, e.g. com.linkedin.pegasus2avro.common.Ownership * @param value the value to set. - */ - public void setAspect(java.lang.String value) { - this.aspect = value; - } - - /** - * Gets the value of the 'version' field. - * The version of the metadata aspect */ - public java.lang.Long getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * The version of the metadata aspect * @param value the value to set. - */ - public void setVersion(java.lang.Long value) { - this.version = value; - } - - /** Creates a new AspectVersion RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.Builder(); - } - - /** Creates a new AspectVersion RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.Builder newBuilder(com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.Builder other) { - return new com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.Builder(other); - } - - /** Creates a new AspectVersion RecordBuilder by copying an existing AspectVersion instance */ - public static com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.Builder newBuilder(com.linkedin.pegasus2avro.metadata.aspect.AspectVersion other) { - return new com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.Builder(other); - } - - /** - * RecordBuilder for AspectVersion instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String aspect; - private long version; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.Builder other) { - super(other); - if (isValidValue(fields()[0], other.aspect)) { - this.aspect = data().deepCopy(fields()[0].schema(), other.aspect); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.version)) { - this.version = data().deepCopy(fields()[1].schema(), other.version); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing AspectVersion instance */ - private Builder(com.linkedin.pegasus2avro.metadata.aspect.AspectVersion other) { - super(com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.SCHEMA$); - if (isValidValue(fields()[0], other.aspect)) { - this.aspect = data().deepCopy(fields()[0].schema(), other.aspect); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.version)) { - this.version = data().deepCopy(fields()[1].schema(), other.version); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'aspect' field */ - public java.lang.String getAspect() { - return aspect; - } - - /** Sets the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.Builder setAspect(java.lang.String value) { - validate(fields()[0], value); - this.aspect = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'aspect' field has been set */ - public boolean hasAspect() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.Builder clearAspect() { - aspect = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public java.lang.Long getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.Builder setVersion(long value) { - validate(fields()[1], value); - this.version = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.metadata.aspect.AspectVersion.Builder clearVersion() { - fieldSetFlags()[1] = false; - return this; - } - - @Override - public AspectVersion build() { - try { - AspectVersion record = new AspectVersion(); - record.aspect = fieldSetFlags()[0] ? this.aspect : (java.lang.String) defaultValue(fields()[0]); - record.version = fieldSetFlags()[1] ? this.version : (java.lang.Long) 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/metadata/aspect/EnvelopedAspect.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/aspect/EnvelopedAspect.java deleted file mode 100644 index 4225be77e915b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/aspect/EnvelopedAspect.java +++ /dev/null @@ -1,197 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.aspect; -@SuppressWarnings("all") -/** Enveloped record for an aspect. */ -@org.apache.avro.specific.AvroGenerated -public class EnvelopedAspect 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\":\"EnvelopedAspect\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.aspect\",\"doc\":\"Enveloped record for an aspect.\",\"fields\":[{\"name\":\"aspect\",\"type\":{\"type\":\"record\",\"name\":\"GenericAspect\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Generic record structure for serializing an Aspect\",\"fields\":[{\"name\":\"value\",\"type\":\"bytes\",\"doc\":\"The value of the aspect, serialized as bytes.\"},{\"name\":\"contentType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The content type, which represents the fashion in which the aspect was serialized.\\nThe only type currently supported is application/json.\"}]}},{\"name\":\"systemMetadata\",\"type\":{\"type\":\"record\",\"name\":\"SystemMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Metadata associated with each metadata change that is processed by the system\",\"fields\":[{\"name\":\"lastObserved\",\"type\":[\"long\",\"null\"],\"doc\":\"The timestamp the metadata was observed at\",\"default\":0},{\"name\":\"runId\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"],\"doc\":\"The run id that produced the metadata. Populated in case of batch-ingestion.\",\"default\":\"no-run-id-provided\"},{\"name\":\"registryName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry name that was used to process this event\",\"default\":null},{\"name\":\"registryVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry version that was used to process this event\",\"default\":null},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Additional properties\",\"default\":null}]}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public com.linkedin.pegasus2avro.mxe.GenericAspect aspect; - @Deprecated public com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata; - - /** - * 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 EnvelopedAspect() {} - - /** - * All-args constructor. - */ - public EnvelopedAspect(com.linkedin.pegasus2avro.mxe.GenericAspect aspect, com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata) { - this.aspect = aspect; - this.systemMetadata = systemMetadata; - } - - 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 aspect; - case 1: return systemMetadata; - 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: aspect = (com.linkedin.pegasus2avro.mxe.GenericAspect)value$; break; - case 1: systemMetadata = (com.linkedin.pegasus2avro.mxe.SystemMetadata)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'aspect' field. - */ - public com.linkedin.pegasus2avro.mxe.GenericAspect getAspect() { - return aspect; - } - - /** - * Sets the value of the 'aspect' field. - * @param value the value to set. - */ - public void setAspect(com.linkedin.pegasus2avro.mxe.GenericAspect value) { - this.aspect = value; - } - - /** - * Gets the value of the 'systemMetadata' field. - */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getSystemMetadata() { - return systemMetadata; - } - - /** - * Sets the value of the 'systemMetadata' field. - * @param value the value to set. - */ - public void setSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - this.systemMetadata = value; - } - - /** Creates a new EnvelopedAspect RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.Builder(); - } - - /** Creates a new EnvelopedAspect RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.Builder newBuilder(com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.Builder other) { - return new com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.Builder(other); - } - - /** Creates a new EnvelopedAspect RecordBuilder by copying an existing EnvelopedAspect instance */ - public static com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.Builder newBuilder(com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect other) { - return new com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.Builder(other); - } - - /** - * RecordBuilder for EnvelopedAspect instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.mxe.GenericAspect aspect; - private com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.Builder other) { - super(other); - if (isValidValue(fields()[0], other.aspect)) { - this.aspect = data().deepCopy(fields()[0].schema(), other.aspect); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.systemMetadata)) { - this.systemMetadata = data().deepCopy(fields()[1].schema(), other.systemMetadata); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing EnvelopedAspect instance */ - private Builder(com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect other) { - super(com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.SCHEMA$); - if (isValidValue(fields()[0], other.aspect)) { - this.aspect = data().deepCopy(fields()[0].schema(), other.aspect); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.systemMetadata)) { - this.systemMetadata = data().deepCopy(fields()[1].schema(), other.systemMetadata); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.mxe.GenericAspect getAspect() { - return aspect; - } - - /** Sets the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.Builder setAspect(com.linkedin.pegasus2avro.mxe.GenericAspect value) { - validate(fields()[0], value); - this.aspect = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'aspect' field has been set */ - public boolean hasAspect() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.Builder clearAspect() { - aspect = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getSystemMetadata() { - return systemMetadata; - } - - /** Sets the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.Builder setSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - validate(fields()[1], value); - this.systemMetadata = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'systemMetadata' field has been set */ - public boolean hasSystemMetadata() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.metadata.aspect.EnvelopedAspect.Builder clearSystemMetadata() { - systemMetadata = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public EnvelopedAspect build() { - try { - EnvelopedAspect record = new EnvelopedAspect(); - record.aspect = fieldSetFlags()[0] ? this.aspect : (com.linkedin.pegasus2avro.mxe.GenericAspect) defaultValue(fields()[0]); - record.systemMetadata = fieldSetFlags()[1] ? this.systemMetadata : (com.linkedin.pegasus2avro.mxe.SystemMetadata) 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/metadata/aspect/VersionedAspect.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/aspect/VersionedAspect.java deleted file mode 100644 index cf5ea7c9f9e27..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/aspect/VersionedAspect.java +++ /dev/null @@ -1,195 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.aspect; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class VersionedAspect 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\":\"VersionedAspect\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.aspect\",\"fields\":[{\"name\":\"aspect\",\"type\":[{\"type\":\"record\",\"name\":\"ChartKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Chart\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"chartId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234'\"}],\"Aspect\":{\"name\":\"chartKey\"}},{\"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\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"CorpGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpGroup\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub.\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}}],\"Aspect\":{\"name\":\"corpGroupKey\"}},{\"type\":\"record\",\"name\":\"CorpGroupInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Information about a Corp Group ingested from a third party source\",\"fields\":[{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The name of the group.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email of this group\",\"default\":null},{\"name\":\"admins\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"owners of this group\\nDeprecated! Replaced by Ownership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"OwnedBy\"}},\"deprecated\":true},{\"name\":\"members\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of ldap urn in this group.\\nDeprecated! Replaced by GroupMembership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of groups in this group.\\nDeprecated! This field is unused.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A description of the group.\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack channel for the group\",\"default\":null},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Created Audit stamp\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdTime\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpGroupUrn\"],\"name\":\"corpGroupInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpUser\",\"fields\":[{\"name\":\"username\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the AD/LDAP user.\",\"Searchable\":{\"boostScore\":2.0,\"enableAutocomplete\":true,\"fieldName\":\"ldap\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"corpUserKey\"}},{\"type\":\"record\",\"name\":\"CorpUserEditableInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information that can be edited from UI\",\"fields\":[{\"name\":\"aboutMe\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"About me section of the user\",\"default\":null},{\"name\":\"teams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Teams that the user belongs to e.g. Metadata\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"skills\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Skills that the user possesses e.g. Machine Learning\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"pictureLink\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A URL which points to a picture which user wants to set as a profile photo\",\"default\":\"https://raw.githubusercontent.com/datahub-project/datahub/master/datahub-web-react/src/images/default_avatar.png\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native display name\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native Title, e.g. 'Software Engineer'\",\"default\":null},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack handle for the user\",\"default\":null},{\"name\":\"phone\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Phone number to contact the user\",\"default\":null},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Email address to contact the user\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserEditableInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information\",\"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\":\"active\",\"type\":\"boolean\",\"doc\":\"Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":2.0}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"displayName of this user , e.g. Hang Zhang(DataHQ)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email address of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"title of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"managerUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"direct manager of this user\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"corpuser\"],\"name\":\"ReportsTo\"},\"Searchable\":{\"fieldName\":\"managerLdap\",\"fieldType\":\"URN\",\"queryByDefault\":true},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpuserUrn\"}},{\"name\":\"departmentId\",\"type\":[\"null\",\"long\"],\"doc\":\"department id this user belong to\",\"default\":null},{\"name\":\"departmentName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"department name this user belong to\",\"default\":null},{\"name\":\"firstName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"first name of this user\",\"default\":null},{\"name\":\"lastName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"last name of this user\",\"default\":null},{\"name\":\"fullName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Common name of this user, format is firstName + lastName (split by a whitespace)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"countryCode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"two uppercase letters country code. e.g. US\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserStatus\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"The status of the user, e.g. provisioned, active, suspended, etc.\",\"fields\":[{\"name\":\"status\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit"," stamp containing who last modified the status and when.\"}],\"Aspect\":{\"name\":\"corpUserStatus\"}},{\"type\":\"record\",\"name\":\"GroupMembership\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Carries information about the CorpGroups a user is in.\",\"fields\":[{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsMemberOfGroup\"}}}],\"Aspect\":{\"name\":\"groupMembership\"}},{\"type\":\"record\",\"name\":\"DashboardKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dashboard\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"dashboardId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234'\"}],\"Aspect\":{\"name\":\"dashboardKey\"}},{\"type\":\"record\",\"name\":\"DashboardInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"doc\":\"Information about a dashboard\",\"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 dashboard\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Detailed description about the dashboard\",\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"charts\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Charts in a dashboard\\nDeprecated! Use chartEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\"}},\"deprecated\":true},{\"name\":\"chartEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Charts in a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"chartEdges/*/created/actor\",\"createdOn\":\"chartEdges/*/created/time\",\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\",\"properties\":\"chartEdges/*/properties\",\"updatedActor\":\"chartEdges/*/lastModified/actor\",\"updatedOn\":\"chartEdges/*/lastModified/time\"}}},{\"name\":\"datasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Datasets consumed by a dashboard\\nDeprecated! Use datasetEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"deprecated\":true},{\"name\":\"datasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Datasets consumed by a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"datasetEdges/*/created/actor\",\"createdOn\":\"datasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"datasetEdges/*/properties\",\"updatedActor\":\"datasetEdges/*/lastModified/actor\",\"updatedOn\":\"datasetEdges/*/lastModified/time\"}}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.ChangeAuditStamps\",\"doc\":\"Captures information about who created/last modified/deleted this dashboard and when\"},{\"name\":\"dashboardUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"access\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AccessLevel\"],\"doc\":\"Access level for the dashboard\",\"default\":null,\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"KEYWORD\",\"filterNameOverride\":\"Access Level\"}},{\"name\":\"lastRefreshed\",\"type\":[\"null\",\"long\"],\"doc\":\"The time when this dashboard last refreshed\",\"default\":null}],\"Aspect\":{\"name\":\"dashboardInfo\"}},{\"type\":\"record\",\"name\":\"DataFlowKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Flow\",\"fields\":[{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Workflow manager like azkaban, airflow which orchestrates the flow\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"flowId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data flow\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"cluster\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Cluster where the flow is executed\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataFlowKey\"}},{\"type\":\"record\",\"name\":\"DataFlowInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing flow\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flow name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flow description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"project\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional project/namespace associated with the flow\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}},{\"name\":\"created\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event timestamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"name\":\"dataFlowInfo\"}},{\"type\":\"record\",\"name\":\"DataJobKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Job\",\"fields\":[{\"name\":\"flow\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized data processing flow urn representing the flow for the job\",\"Relationship\":{\"entityTypes\":[\"dataFlow\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"dataFlow\",\"fieldType\":\"URN_PARTIAL\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"jobId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data job\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataJobKey\"}},{\"type\":\"record\"",",\"name\":\"DataJobInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing job\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Job name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Job description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"type\",\"type\":[{\"type\":\"enum\",\"name\":\"AzkabanJobType\",\"namespace\":\"com.linkedin.pegasus2avro.datajob.azkaban\",\"doc\":\"The various types of support azkaban jobs\",\"symbols\":[\"COMMAND\",\"HADOOP_JAVA\",\"HADOOP_SHELL\",\"HIVE\",\"PIG\",\"SQL\",\"GLUE\"],\"symbolDocs\":{\"COMMAND\":\"The command job type is one of the basic built-in types. It runs multiple UNIX commands using java processbuilder.\\nUpon execution, Azkaban spawns off a process to run the command.\",\"GLUE\":\"Glue type is for running AWS Glue job transforms.\",\"HADOOP_JAVA\":\"Runs a java program with ability to access Hadoop cluster.\\nhttps://azkaban.readthedocs.io/en/latest/jobTypes.html#java-job-type\",\"HADOOP_SHELL\":\"In large part, this is the same Command type. The difference is its ability to talk to a Hadoop cluster\\nsecurely, via Hadoop tokens.\",\"HIVE\":\"Hive type is for running Hive jobs.\",\"PIG\":\"Pig type is for running Pig jobs.\",\"SQL\":\"SQL is for running Presto, mysql queries etc\"}},{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Datajob type\\n*NOTE**: AzkabanJobType is deprecated. Please use strings instead.\"},{\"name\":\"flowUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataFlow urn that this job is part of\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataFlowUrn\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"JobStatus\",\"doc\":\"Job statuses\",\"symbols\":[\"STARTING\",\"IN_PROGRESS\",\"STOPPING\",\"STOPPED\",\"COMPLETED\",\"FAILED\",\"UNKNOWN\",\"SKIPPED\"],\"symbolDocs\":{\"COMPLETED\":\"Jobs with successful completion.\",\"FAILED\":\"Jobs that have failed.\",\"IN_PROGRESS\":\"Jobs currently running.\",\"SKIPPED\":\"Jobs that have been skipped.\",\"STARTING\":\"Jobs being initialized.\",\"STOPPED\":\"Jobs that have stopped.\",\"STOPPING\":\"Jobs being stopped.\",\"UNKNOWN\":\"Jobs with unknown status (either unmappable or unavailable)\"}}],\"doc\":\"Status of the job - Deprecated for Data Process Instance model.\",\"default\":null,\"deprecated\":\"Use Data Process Instance model, instead\"}],\"Aspect\":{\"name\":\"dataJobInfo\"}},{\"type\":\"record\",\"name\":\"DataJobInputOutput\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about the inputs and outputs of a Data processing job\",\"fields\":[{\"name\":\"inputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Input datasets consumed by the data job during processing\\nDeprecated! Use inputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"inputDatasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Input datasets consumed by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatasetEdges/*/created/actor\",\"createdOn\":\"inputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"inputDatasetEdges/*/properties\",\"updatedActor\":\"inputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"inputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Output datasets produced by the data job during processing\\nDeprecated! Use outputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"outputDatasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Output datasets produced by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"outputDatasetEdges/*/created/actor\",\"createdOn\":\"outputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\",\"properties\":\"outputDatasetEdges/*/properties\",\"updatedActor\":\"outputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"outputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"outputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}},{\"name\":\"inputDatajobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Input datajobs that this data job depends on\\nDeprecated! Use inputDatajobEdges instead.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\"}},\"deprecated\":true},{\"name\":\"inputDatajobEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Input datajobs that this data job depends on\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatajobEdges/*/created/actor\",\"createdOn\":\"inputDatajobEdges/*/created/time\",\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"inputDatajobEdges/*/properties\",\"updatedActor\":\"inputDatajobEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatajobEdges/*/lastModified/time\"}}},{\"name\":\"inputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the input datasets used by this job\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputFields\",\"queryByDefault\":false}}},{\"name\":\"outputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the output datasets this job writes to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputFields\",\"queryByDefault\":false}}},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FineGrainedLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"A fine-grained lineage from upstream fields/datasets to downstream field(s)\",\"fields\":[{\"name\":\"upstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageUpstreamType\",\"doc\":\"The type of upstream entity in a fine-grained lineage\",\"symbols\":[\"FIELD_SET\",\"DATASET\",\"NONE\"],\"symbolDocs\":{\"DATASET\":\" Indicates that this lineage is or","iginating from upstream dataset(s)\",\"FIELD_SET\":\" Indicates that this lineage is originating from upstream field(s)\",\"NONE\":\" Indicates that there is no upstream lineage i.e. the downstream field is not a derived field\"}},\"doc\":\"The type of upstream entity\"},{\"name\":\"upstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Upstream entities in the lineage\",\"default\":null},{\"name\":\"downstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageDownstreamType\",\"doc\":\"The type of downstream field(s) in a fine-grained lineage\",\"symbols\":[\"FIELD\",\"FIELD_SET\"],\"symbolDocs\":{\"FIELD\":\" Indicates that the lineage is for a single, specific, downstream field\",\"FIELD_SET\":\" Indicates that the lineage is for a set of downstream fields\"}},\"doc\":\"The type of downstream field(s)\"},{\"name\":\"downstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Downstream fields in the lineage\",\"default\":null},{\"name\":\"transformOperation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The transform operation applied to the upstream entities to produce the downstream field(s)\",\"default\":null},{\"name\":\"confidenceScore\",\"type\":\"float\",\"doc\":\"The confidence in this lineage between 0 (low confidence) and 1 (high confidence)\",\"default\":1.0}]}}],\"doc\":\"Fine-grained column-level lineages\",\"default\":null}],\"Aspect\":{\"name\":\"dataJobInputOutput\"}},{\"type\":\"record\",\"name\":\"DatasetDeprecation\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Dataset deprecation status\\nDeprecated! This aspect is deprecated in favor of the more-general-purpose 'Deprecation' aspect.\",\"fields\":[{\"name\":\"deprecated\",\"type\":\"boolean\",\"doc\":\"Whether the dataset is deprecated by owner.\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"decommissionTime\",\"type\":[\"null\",\"long\"],\"doc\":\"The time user plan to decommission this dataset.\",\"default\":null},{\"name\":\"note\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Additional information about the dataset deprecation plan, such as the wiki, doc, RB.\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The corpuser URN which will be credited for modifying this deprecation content.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}],\"Aspect\":{\"name\":\"datasetDeprecation\"},\"Deprecated\":true},{\"type\":\"record\",\"name\":\"DatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Properties associated with a Dataset\",\"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\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the Dataset\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"qualifiedName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Fully-qualified name of the Dataset\",\"default\":null,\"Searchable\":{\"addToFilters\":false,\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"uri\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic).\",\"default\":null,\"deprecated\":\"Use ExternalReference.externalUrl field instead.\",\"java\":{\"class\":\"java.net.URI\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"[Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect.\\nThis is now deprecated.\",\"default\":[],\"deprecated\":\"Use GlobalTags aspect instead.\"}],\"Aspect\":{\"name\":\"datasetProperties\"}},{\"type\":\"record\",\"name\":\"UpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Upstream lineage of a dataset\",\"fields\":[{\"name\":\"upstreams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Upstream\",\"doc\":\"Upstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"auditStamp\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit stamp containing who reported the lineage and when.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Audit stamp containing who created the lineage and when.\",\"default\":null},{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The upstream dataset the lineage points to\",\"Relationship\":{\"createdActor\":\"upstreams/*/created/actor\",\"createdOn\":\"upstreams/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"upstreams/*/properties\",\"updatedActor\":\"upstreams/*/auditStamp/actor\",\"updatedOn\":\"upstreams/*/auditStamp/time\"},\"Searchable\":{\"fieldName\":\"upstreams\",\"fieldType\":\"URN\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}},\"doc\":\"The type of the lineage\"},{\"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\":\"List of upstream dataset lineage information\"},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"FineGrainedLineage\"}],\"doc\":\" List of fine-grained lineage information, including field-level lineage\",\"default\":null,\"Relationship\":{\"/*/upstreams/*\":{\"entityTypes\":[\"dataset\",\"schemaField\"],\"name\":\"DownstreamOf\"}}}],\"Aspect\":{\"name\":\"upstreamLineage\"}},{\"type\":\"record\",\"name\":\"SchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"SchemaMetadata to describe metadata related to store schema\",\"fields\":[{\"name\":\"schemaName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking\",\"validate\":{\"strlen\":{\"max\":500,\"min\":1}}},{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name})\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"version\",\"type\":\"long\",\"doc\":\"Every change to SchemaMetadata"," in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version.\"},{\"name\":\"created\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"dataset\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Dataset this schema metadata is associated with.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"cluster\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The cluster this schema metadata resides from\",\"default\":null},{\"name\":\"hash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"the SHA1 hash of the schema content\"},{\"name\":\"platformSchema\",\"type\":[{\"type\":\"record\",\"name\":\"EspressoSchema\",\"doc\":\"Schema text of an espresso table schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native espresso document schema.\"},{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The espresso table schema definition.\"}]},{\"type\":\"record\",\"name\":\"OracleDDL\",\"doc\":\"Schema holder for oracle data definition language that describes an oracle table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"MySqlDDL\",\"doc\":\"Schema holder for MySql data definition language that describes an MySql table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"PrestoDDL\",\"doc\":\"Schema holder for presto data definition language that describes a presto view.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL.\"}]},{\"type\":\"record\",\"name\":\"KafkaSchema\",\"doc\":\"Schema holder for kafka schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native kafka document schema. This is a human readable avro document schema.\"},{\"name\":\"keySchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The native kafka key schema as retrieved from Schema Registry\",\"default\":null}]},{\"type\":\"record\",\"name\":\"BinaryJsonSchema\",\"doc\":\"Schema text of binary JSON schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema text for binary JSON file format.\"}]},{\"type\":\"record\",\"name\":\"OrcSchema\",\"doc\":\"Schema text of an ORC schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema for ORC file format.\"}]},{\"type\":\"record\",\"name\":\"Schemaless\",\"doc\":\"The dataset has no specific schema associated with it\",\"fields\":[]},{\"type\":\"record\",\"name\":\"KeyValueSchema\",\"doc\":\"Schema text of a key-value store schema.\",\"fields\":[{\"name\":\"keySchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the key in the key-value store.\"},{\"name\":\"valueSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the value in the key-value store.\"}]},{\"type\":\"record\",\"name\":\"OtherSchema\",\"doc\":\"Schema holder for undefined schema types.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform.\"}]}],\"doc\":\"The native schema in the dataset's platform.\"},{\"name\":\"fields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SchemaField\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flattened name of the field. Field is computed from jsonPath field.\",\"Searchable\":{\"fieldName\":\"fieldPaths\",\"fieldType\":\"TEXT\"}},{\"name\":\"jsonPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flattened name of a field in JSON Path notation.\",\"default\":null,\"Deprecated\":true},{\"name\":\"nullable\",\"type\":\"boolean\",\"doc\":\"Indicates if this field is optional or nullable\",\"default\":false},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"fieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"label\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Label of the field. Provides a more human-readable name for the field than field path. Some sources will\\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\\na field in a source, that is most likely a description.\",\"default\":null,\"Searchable\":{\"boostScore\":0.2,\"fieldName\":\"fieldLabels\",\"fieldType\":\"TEXT\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the creation of this schema field.\",\"default\":null},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the last modification of this schema field.\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"record\",\"name\":\"SchemaFieldDataType\",\"doc\":\"Schema field data types\",\"fields\":[{\"name\":\"type\",\"type\":[{\"type\":\"record\",\"name\":\"BooleanType\",\"doc\":\"Boolean field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"FixedType\",\"doc\":\"Fixed field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"StringType\",\"doc\":\"String field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"BytesType\",\"doc\":\"Bytes field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NumberType\",\"doc\":\"Number data type: long, integer, short, etc..\",\"fields\":[]},{\"type\":\"record\",\"name\":\"DateType\",\"doc\":\"Date field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"TimeType\",\"doc\":\"Time field type. This should also be used for datetimes.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"EnumType\",\"doc\":\"Enum field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NullType\",\"doc\":\"Null field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"MapType\",\"doc\":\"Map field type.\",\"fields\":[{\"name\":\"keyType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Key type in a map\",\"default\":null},{\"name\":\"valueType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of the value in a map\",\"default\":null}]},{\"type\":\"record\",\"name\":\"ArrayType\",\"doc\":\"Array field type.\",\"fields\":[{\"name\":\"nestedType\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types this array holds.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"UnionType\",\"doc\":\"Union field type.\",\"fields\":[{\"name\":\"nestedTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types in union type.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"RecordType\",\"doc\":\"Record field type.\",\"fields\":[]}],\"doc\":\"Data platform specific types\"}]},\"doc\":\"Platform independent field type of the field.\"},{\"name\":\"nativeDataType\",\"ty","pe\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native type of the field in the dataset's platform as declared by platform schema.\"},{\"name\":\"recursive\",\"type\":\"boolean\",\"doc\":\"There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.\",\"default\":false},{\"name\":\"globalTags\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}}],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"SchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"fieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}}],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"SchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"fieldGlossaryTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"isPartOfKey\",\"type\":\"boolean\",\"doc\":\"For schema fields that are part of complex keys, set this field to true\\nWe do this to easily distinguish between value and key fields\",\"default\":false},{\"name\":\"isPartitioningKey\",\"type\":[\"null\",\"boolean\"],\"doc\":\"For Datasets which are partitioned, this determines the partitioning key.\",\"default\":null},{\"name\":\"jsonProps\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"For schema fields that have other properties that are not modeled explicitly,\\nuse this field to serialize those properties into a JSON string\",\"default\":null}]}},\"doc\":\"Client provided a list of fields from document schema.\"},{\"name\":\"primaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath.\",\"default\":null},{\"name\":\"foreignKeysSpecs\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"ForeignKeySpec\",\"doc\":\"Description of a foreign key in a schema.\",\"fields\":[{\"name\":\"foreignKey\",\"type\":[{\"type\":\"record\",\"name\":\"DatasetFieldForeignKey\",\"doc\":\"For non-urn based foregin keys.\",\"fields\":[{\"name\":\"parentDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"dataset that stores the resource.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"currentFieldPaths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset.\"},{\"name\":\"parentField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"SchemaField@fieldPath that uniquely identify field in parent dataset that this field references.\"}]},{\"type\":\"record\",\"name\":\"UrnForeignKey\",\"doc\":\"If SchemaMetadata fields make any external references and references are of type com.linkedin.pegasus2avro.common.Urn or any children, this models can be used to mark it.\",\"fields\":[{\"name\":\"currentFieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Field in hosting(current) SchemaMetadata.\"}]}],\"doc\":\"Foreign key definition in metadata schema.\"}]},\"avro.java.string\":\"String\"}],\"doc\":\"Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref.\",\"default\":null,\"deprecated\":\"Use foreignKeys instead.\"},{\"name\":\"foreignKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ForeignKeyConstraint\",\"doc\":\"Description of a foreign key constraint in a schema.\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the constraint, likely provided from the source\"},{\"name\":\"foreignFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the foreign dataset\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"ForeignKeyTo\"}}},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the source dataset\"},{\"name\":\"foreignDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Reference to the foreign dataset for ease of lookup\",\"Relationship\":{\"entityTypes\":[\"dataset\"],\"name\":\"ForeignKeyToDataset\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}}],\"doc\":\"List of foreign key constraints for the schema\",\"default\":null}],\"Aspect\":{\"name\":\"schemaMetadata\"}},{\"type\":\"record\",\"name\":\"EditableSchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"EditableSchemaMetadata stores editable changes made to schema metadata. 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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 semant","ics.\",\"default\":null},{\"name\":\"editableSchemaFieldInfo\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"EditableSchemaFieldInfo\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"FieldPath uniquely identifying the SchemaField this metadata is associated with\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"editedFieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"globalTags\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlobalTags\"],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"EditableSchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\"],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"EditableSchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldGlossaryTerms\",\"fieldType\":\"URN\"}}}]}},\"doc\":\"Client provided a list of fields from document schema.\"}],\"Aspect\":{\"name\":\"editableSchemaMetadata\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"type\":\"record\",\"name\":\"GlossaryNodeInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryNode\",\"fields\":[{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business node\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the node\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"displayName\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the GlossaryNode\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeInfo\"}},{\"type\":\"record\",\"name\":\"GlossaryNodeKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryNode\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeKey\"}},{\"type\":\"record\",\"name\":\"GlossaryTermInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryTerm\",\"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\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the term\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the term\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business term.\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"termSource\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"External Reference to the business-term\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"rawSchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Schema definition of the glossary term\",\"default\":null,\"deprecated\":true}],\"Aspect\":{\"name\":\"glossaryTermInfo\"}},{\"type\":\"record\",\"name\":\"GlossaryTermKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryTerm\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The term name, which serves as a unique id\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryTermKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeature\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the feature\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeature\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeature\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"dataType\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"MLFeatureDataType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"MLFeature Data Type\",\"symbols\":[\"USELESS\",\"NOMINAL\",\"ORDINAL\",\"BINARY\",\"COUNT\",\"TIME\",\"INTERVAL\",\"IMAGE\",\"VIDEO\",\"AUDIO\",\"TEXT\",\"MAP\",\"SEQUENCE\",\"SET\",\"CONTINUOUS\",\"BYTE\",\"UNKNOWN\"],\"symbolDocs\":{\"AUDIO\":\"Audio Data\",\"BINARY\":\"Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc\",\"BYTE\":\"Bytes data are binary-encoded values that can represent complex objects.\",\"CONTINUOUS\":\"Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.\",\"COUNT\":\"Count data is discrete whole number data - no n","egative numbers here.\\nCount data often has many small values, such as zero and one.\",\"IMAGE\":\"Image Data\",\"INTERVAL\":\"Interval data has equal spaces between the numbers and does not represent a temporal pattern.\\nExamples include percentages, temperatures, and income.\",\"MAP\":\"Mapping Data Type ex: dict, map\",\"NOMINAL\":\"Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.\",\"ORDINAL\":\"Ordinal data are discrete integers that can be ranked or sorted.\\nFor example, the distance between first and second may not be the same as the distance between second and third.\",\"SEQUENCE\":\"Sequence Data Type ex: list, tuple, range\",\"SET\":\"Set Data Type ex: set, frozenset\",\"TEXT\":\"Text Data\",\"TIME\":\"Time data is a cyclical, repeating continuous form of data.\\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.\",\"UNKNOWN\":\"Unknown data are data that we don't know the type for.\",\"USELESS\":\"Useless data is unique, discrete data with no potential relationship with the outcome variable.\\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.\",\"VIDEO\":\"Video Data\"}}],\"doc\":\"Data Type of the MLFeature\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLFeature\",\"default\":null},{\"name\":\"sources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Source of the MLFeature\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlFeatureProperties\"}},{\"type\":\"record\",\"name\":\"MLModelKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModel\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where model belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelKey\"}},{\"type\":\"record\",\"name\":\"CaveatsAndRecommendations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"caveats\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"CaveatDetails\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"needsFurtherTesting\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Did the results suggest any further testing?\",\"default\":null},{\"name\":\"caveatDescription\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Caveat Description\\nFor ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders.\",\"default\":null},{\"name\":\"groupsNotRepresented\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Relevant groups that were not represented in the evaluation dataset?\",\"default\":null}]}],\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset?\",\"default\":null},{\"name\":\"recommendations\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Recommendations on where this MLModel should be used.\",\"default\":null},{\"name\":\"idealDatasetCharacteristics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Ideal characteristics of an evaluation dataset for this MLModel\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelCaveatsAndRecommendations\"}},{\"type\":\"record\",\"name\":\"EthicalConsiderations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section is intended to demonstrate the ethical considerations that went into MLModel development, surfacing ethical challenges and solutions to stakeholders.\",\"fields\":[{\"name\":\"data\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Does the MLModel use any sensitive data (e.g., protected classes)?\",\"default\":null},{\"name\":\"humanLife\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\" Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way?\",\"default\":null},{\"name\":\"mitigations\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risk mitigation strategies were used during MLModel development?\",\"default\":null},{\"name\":\"risksAndHarms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown.\",\"default\":null},{\"name\":\"useCases\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelEthicalConsiderations\"}},{\"type\":\"record\",\"name\":\"EvaluationData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"All referenced datasets would ideally point to any set of documents that provide visibility into the source and composition of the dataset.\",\"fields\":[{\"name\":\"evaluationData\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BaseData\",\"doc\":\"BaseData record\",\"fields\":[{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"What dataset were used in the MLModel?\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"motivation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Why was this dataset chosen?\",\"default\":null},{\"name\":\"preProcessing\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)?\",\"default\":null}]}},\"doc\":\"Details on the dataset(s) used for the quantitative analyses in the MLModel\"}],\"Aspect\":{\"name\":\"ml","ModelEvaluationData\"}},{\"type\":\"record\",\"name\":\"IntendedUse\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Intended Use for the ML Model\",\"fields\":[{\"name\":\"primaryUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Primary Use cases for the MLModel.\",\"default\":null},{\"name\":\"primaryUsers\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"enum\",\"name\":\"IntendedUserType\",\"symbols\":[\"ENTERPRISE\",\"HOBBY\",\"ENTERTAINMENT\"]}}],\"doc\":\"Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions?\",\"default\":null},{\"name\":\"outOfScopeUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to.\",\"default\":null}],\"Aspect\":{\"name\":\"intendedUse\"}},{\"type\":\"record\",\"name\":\"Metrics\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Metrics to be featured for the MLModel.\",\"fields\":[{\"name\":\"performanceMeasures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Measures of MLModel performance\",\"default\":null},{\"name\":\"decisionThreshold\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Decision Thresholds used (if any)?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelMetrics\"}},{\"type\":\"record\",\"name\":\"MLModelFactorPrompts\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Prompts which affect the performance of the MLModel\",\"fields\":[{\"name\":\"relevantFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLModelFactors\",\"doc\":\"Factors affecting the performance of the MLModel.\",\"fields\":[{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances.\\nFor human-centric machine learning MLModels, groups are people who share one or multiple characteristics.\",\"default\":null},{\"name\":\"instrumentation\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel.\\nFor example, a face detection model may perform differently depending on the camera's hardware and software,\\nincluding lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode.\",\"default\":null},{\"name\":\"environment\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A further factor affecting MLModel performance is the environment in which it is deployed.\",\"default\":null}]}}],\"doc\":\"What are foreseeable salient factors for which MLModel performance may vary, and how were these determined?\",\"default\":null},{\"name\":\"evaluationFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLModelFactors\"}],\"doc\":\"Which factors are being reported, and why were these chosen?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelFactorPrompts\"}},{\"type\":\"record\",\"name\":\"MLModelProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a ML Model\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModel\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"date\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModel was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLModel\",\"default\":null},{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"hyperParameters\",\"type\":[\"null\",{\"type\":\"map\",\"values\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"int\",\"float\",\"double\",\"boolean\"],\"avro.java.string\":\"String\"}],\"doc\":\"Hyper Parameters of the MLModel\\n\\nNOTE: these are deprecated in favor of hyperParams\",\"default\":null},{\"name\":\"hyperParams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLHyperParam\",\"doc\":\"Properties associated with an ML Hyper Param\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLHyperParam\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLHyperParam\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the MLHyperParam\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLHyperParam was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlHyperParam\"}}}],\"doc\":\"Hyperparameters of the MLModel\",\"default\":null},{\"name\":\"trainingMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLMetric\",\"doc\":\"Properties associated with an ML Metric\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the mlMetric\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the mlMetric\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the mlMetric\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the mlMetric was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlMetric\"}}}],\"doc\":\"Metrics of the MLModel used in training\",\"default\":null},{\"name\":\"onlineMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLMetric\"}],\"doc\":\"Metrics of the MLModel used in production\",\"default\":null},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features used for MLModel training\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"isLineage\":true,\"name\":\"Consumes\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Tags for the MLModel\",\"default\":[]},{\"name\":\"deployments\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Deployments for the MLModel\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelDeployment\"],\"name\":\"DeployedTo\"}}},{\"name\":\"trainingJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) used to train the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"TrainedBy\"}}},{\"name\":\"downstreamJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) that use the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"UsedBy\"}}},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups the model belongs to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelGroup\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"MemberOf\"}}}],\"Aspect\":{\"name\":\"mlModelProperties\"}},{\"type\":\"record\",\"name\":\"QuantitativeAnalyses\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Quantitative analyses should be disaggregated, that is, broken down by the chosen factors. Quantitative analyses should provide the results of evaluating the MLModel acco","rding to the chosen metrics, providing confidence interval values when possible.\",\"fields\":[{\"name\":\"unitaryResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to each factor\",\"default\":null},{\"name\":\"intersectionalResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelQuantitativeAnalyses\"}},{\"type\":\"record\",\"name\":\"TrainingData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Ideally, the MLModel card would contain as much information about the training data as the evaluation data. However, there might be cases where it is not feasible to provide this level of detailed information about the training data. For example, the data may be proprietary, or require a non-disclosure agreement. In these cases, we advocate for basic details about the distributions over groups in the data, as well as any other details that could inform stakeholders on the kinds of biases the model may have encoded.\",\"fields\":[{\"name\":\"trainingData\",\"type\":{\"type\":\"array\",\"items\":\"BaseData\"},\"doc\":\"Details on the dataset(s) used for training the MLModel\"}],\"Aspect\":{\"name\":\"mlModelTrainingData\"}},{\"type\":\"record\",\"name\":\"SourceCode\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Source Code\",\"fields\":[{\"name\":\"sourceCode\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SourceCodeUrl\",\"doc\":\"Source Code Url Entity\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"SourceCodeUrlType\",\"symbols\":[\"ML_MODEL_SOURCE_CODE\",\"TRAINING_PIPELINE_SOURCE_CODE\",\"EVALUATION_PIPELINE_SOURCE_CODE\"]},\"doc\":\"Source Code Url Types\"},{\"name\":\"sourceCodeUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source Code Url\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}]}},\"doc\":\"Source Code along with types\"}],\"Aspect\":{\"name\":\"sourceCode\"}},{\"type\":\"record\",\"name\":\"TagKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The tag name, which serves as a unique id\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"tagKey\"}},{\"type\":\"record\",\"name\":\"TagProperties\",\"namespace\":\"com.linkedin.pegasus2avro.tag\",\"doc\":\"Properties associated with a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the tag\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the tag\",\"default\":null,\"Searchable\":{}},{\"name\":\"colorHex\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The color associated with the Tag in Hex. For example #FFFFFF.\",\"default\":null}],\"Aspect\":{\"name\":\"tagProperties\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",{\"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\"}},{\"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\"}}]},{\"name\":\"version\",\"type\":\"long\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.Object aspect; - @Deprecated public long version; - - /** - * 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 VersionedAspect() {} - - /** - * All-args constructor. - */ - public VersionedAspect(java.lang.Object aspect, java.lang.Long version) { - this.aspect = aspect; - this.version = version; - } - - 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 aspect; - case 1: return version; - 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: aspect = (java.lang.Object)value$; break; - case 1: version = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'aspect' field. - */ - public java.lang.Object getAspect() { - return aspect; - } - - /** - * Sets the value of the 'aspect' field. - * @param value the value to set. - */ - public void setAspect(java.lang.Object value) { - this.aspect = value; - } - - /** - * Gets the value of the 'version' field. - */ - public java.lang.Long getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * @param value the value to set. - */ - public void setVersion(java.lang.Long value) { - this.version = value; - } - - /** Creates a new VersionedAspect RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.Builder(); - } - - /** Creates a new VersionedAspect RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.Builder newBuilder(com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.Builder other) { - return new com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.Builder(other); - } - - /** Creates a new VersionedAspect RecordBuilder by copying an existing VersionedAspect instance */ - public static com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.Builder newBuilder(com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect other) { - return new com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.Builder(other); - } - - /** - * RecordBuilder for VersionedAspect instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Object aspect; - private long version; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.Builder other) { - super(other); - if (isValidValue(fields()[0], other.aspect)) { - this.aspect = data().deepCopy(fields()[0].schema(), other.aspect); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.version)) { - this.version = data().deepCopy(fields()[1].schema(), other.version); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing VersionedAspect instance */ - private Builder(com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect other) { - super(com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.SCHEMA$); - if (isValidValue(fields()[0], other.aspect)) { - this.aspect = data().deepCopy(fields()[0].schema(), other.aspect); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.version)) { - this.version = data().deepCopy(fields()[1].schema(), other.version); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'aspect' field */ - public java.lang.Object getAspect() { - return aspect; - } - - /** Sets the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.Builder setAspect(java.lang.Object value) { - validate(fields()[0], value); - this.aspect = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'aspect' field has been set */ - public boolean hasAspect() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.Builder clearAspect() { - aspect = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public java.lang.Long getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.Builder setVersion(long value) { - validate(fields()[1], value); - this.version = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.metadata.aspect.VersionedAspect.Builder clearVersion() { - fieldSetFlags()[1] = false; - return this; - } - - @Override - public VersionedAspect build() { - try { - VersionedAspect record = new VersionedAspect(); - record.aspect = fieldSetFlags()[0] ? this.aspect : (java.lang.Object) defaultValue(fields()[0]); - record.version = fieldSetFlags()[1] ? this.version : (java.lang.Long) 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/metadata/browse/BrowseResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/browse/BrowseResult.java deleted file mode 100644 index 8290a45bcd8f6..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/browse/BrowseResult.java +++ /dev/null @@ -1,524 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.browse; -@SuppressWarnings("all") -/** The model for the result of a browse query */ -@org.apache.avro.specific.AvroGenerated -public class BrowseResult 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\":\"BrowseResult\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.browse\",\"doc\":\"The model for the result of a browse query\",\"fields\":[{\"name\":\"entities\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BrowseResultEntity\",\"doc\":\"Data model for an entity returned as part of a browse query\",\"fields\":[{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Name of the entity\",\"default\":null},{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN of the entity\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}},\"doc\":\"A list of entities under the queried path\"},{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BrowseResultGroup\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the group\"},{\"name\":\"count\",\"type\":\"long\",\"doc\":\"Number of entities that can be reached from this path\"}]}},\"doc\":\"A list of groups and total number of entities inside those groups under the queried path\",\"default\":[]},{\"name\":\"metadata\",\"type\":{\"type\":\"record\",\"name\":\"BrowseResultMetadata\",\"doc\":\"The model for browse result metadata\",\"fields\":[{\"name\":\"path\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Path that is being browsed\"},{\"name\":\"totalNumEntities\",\"type\":\"long\",\"doc\":\"Total number of entities we can reach from path\"}]},\"doc\":\"Metadata specific to the browse result of the queried path\"},{\"name\":\"from\",\"type\":\"int\",\"doc\":\"Offset of the first entity in the result\"},{\"name\":\"pageSize\",\"type\":\"int\",\"doc\":\"Size of each page in the result\"},{\"name\":\"numEntities\",\"type\":\"int\",\"doc\":\"The total number of entities directly under queried path\"},{\"name\":\"numGroups\",\"type\":\"int\",\"doc\":\"The total number of groups directly under queried path\"},{\"name\":\"numElements\",\"type\":\"int\",\"doc\":\"The total number of elements (entities + groups) directly under queried path\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of entities under the queried path */ - @Deprecated public java.util.List entities; - /** A list of groups and total number of entities inside those groups under the queried path */ - @Deprecated public java.util.List groups; - /** Metadata specific to the browse result of the queried path */ - @Deprecated public com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata metadata; - /** Offset of the first entity in the result */ - @Deprecated public int from; - /** Size of each page in the result */ - @Deprecated public int pageSize; - /** The total number of entities directly under queried path */ - @Deprecated public int numEntities; - /** The total number of groups directly under queried path */ - @Deprecated public int numGroups; - /** The total number of elements (entities + groups) directly under queried path */ - @Deprecated public int numElements; - - /** - * 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 BrowseResult() {} - - /** - * All-args constructor. - */ - public BrowseResult(java.util.List entities, java.util.List groups, com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata metadata, java.lang.Integer from, java.lang.Integer pageSize, java.lang.Integer numEntities, java.lang.Integer numGroups, java.lang.Integer numElements) { - this.entities = entities; - this.groups = groups; - this.metadata = metadata; - this.from = from; - this.pageSize = pageSize; - this.numEntities = numEntities; - this.numGroups = numGroups; - this.numElements = numElements; - } - - 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 entities; - case 1: return groups; - case 2: return metadata; - case 3: return from; - case 4: return pageSize; - case 5: return numEntities; - case 6: return numGroups; - case 7: return numElements; - 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: entities = (java.util.List)value$; break; - case 1: groups = (java.util.List)value$; break; - case 2: metadata = (com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata)value$; break; - case 3: from = (java.lang.Integer)value$; break; - case 4: pageSize = (java.lang.Integer)value$; break; - case 5: numEntities = (java.lang.Integer)value$; break; - case 6: numGroups = (java.lang.Integer)value$; break; - case 7: numElements = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entities' field. - * A list of entities under the queried path */ - public java.util.List getEntities() { - return entities; - } - - /** - * Sets the value of the 'entities' field. - * A list of entities under the queried path * @param value the value to set. - */ - public void setEntities(java.util.List value) { - this.entities = value; - } - - /** - * Gets the value of the 'groups' field. - * A list of groups and total number of entities inside those groups under the queried path */ - public java.util.List getGroups() { - return groups; - } - - /** - * Sets the value of the 'groups' field. - * A list of groups and total number of entities inside those groups under the queried path * @param value the value to set. - */ - public void setGroups(java.util.List value) { - this.groups = value; - } - - /** - * Gets the value of the 'metadata' field. - * Metadata specific to the browse result of the queried path */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata getMetadata() { - return metadata; - } - - /** - * Sets the value of the 'metadata' field. - * Metadata specific to the browse result of the queried path * @param value the value to set. - */ - public void setMetadata(com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata value) { - this.metadata = value; - } - - /** - * Gets the value of the 'from' field. - * Offset of the first entity in the result */ - public java.lang.Integer getFrom() { - return from; - } - - /** - * Sets the value of the 'from' field. - * Offset of the first entity in the result * @param value the value to set. - */ - public void setFrom(java.lang.Integer value) { - this.from = value; - } - - /** - * Gets the value of the 'pageSize' field. - * Size of each page in the result */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Sets the value of the 'pageSize' field. - * Size of each page in the result * @param value the value to set. - */ - public void setPageSize(java.lang.Integer value) { - this.pageSize = value; - } - - /** - * Gets the value of the 'numEntities' field. - * The total number of entities directly under queried path */ - public java.lang.Integer getNumEntities() { - return numEntities; - } - - /** - * Sets the value of the 'numEntities' field. - * The total number of entities directly under queried path * @param value the value to set. - */ - public void setNumEntities(java.lang.Integer value) { - this.numEntities = value; - } - - /** - * Gets the value of the 'numGroups' field. - * The total number of groups directly under queried path */ - public java.lang.Integer getNumGroups() { - return numGroups; - } - - /** - * Sets the value of the 'numGroups' field. - * The total number of groups directly under queried path * @param value the value to set. - */ - public void setNumGroups(java.lang.Integer value) { - this.numGroups = value; - } - - /** - * Gets the value of the 'numElements' field. - * The total number of elements (entities + groups) directly under queried path */ - public java.lang.Integer getNumElements() { - return numElements; - } - - /** - * Sets the value of the 'numElements' field. - * The total number of elements (entities + groups) directly under queried path * @param value the value to set. - */ - public void setNumElements(java.lang.Integer value) { - this.numElements = value; - } - - /** Creates a new BrowseResult RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder(); - } - - /** Creates a new BrowseResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder other) { - return new com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder(other); - } - - /** Creates a new BrowseResult RecordBuilder by copying an existing BrowseResult instance */ - public static com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.browse.BrowseResult other) { - return new com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder(other); - } - - /** - * RecordBuilder for BrowseResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List entities; - private java.util.List groups; - private com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata metadata; - private int from; - private int pageSize; - private int numEntities; - private int numGroups; - private int numElements; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.browse.BrowseResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.groups)) { - this.groups = data().deepCopy(fields()[1].schema(), other.groups); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.metadata)) { - this.metadata = data().deepCopy(fields()[2].schema(), other.metadata); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.from)) { - this.from = data().deepCopy(fields()[3].schema(), other.from); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.pageSize)) { - this.pageSize = data().deepCopy(fields()[4].schema(), other.pageSize); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[5].schema(), other.numEntities); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.numGroups)) { - this.numGroups = data().deepCopy(fields()[6].schema(), other.numGroups); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.numElements)) { - this.numElements = data().deepCopy(fields()[7].schema(), other.numElements); - fieldSetFlags()[7] = true; - } - } - - /** Creates a Builder by copying an existing BrowseResult instance */ - private Builder(com.linkedin.pegasus2avro.metadata.browse.BrowseResult other) { - super(com.linkedin.pegasus2avro.metadata.browse.BrowseResult.SCHEMA$); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.groups)) { - this.groups = data().deepCopy(fields()[1].schema(), other.groups); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.metadata)) { - this.metadata = data().deepCopy(fields()[2].schema(), other.metadata); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.from)) { - this.from = data().deepCopy(fields()[3].schema(), other.from); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.pageSize)) { - this.pageSize = data().deepCopy(fields()[4].schema(), other.pageSize); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[5].schema(), other.numEntities); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.numGroups)) { - this.numGroups = data().deepCopy(fields()[6].schema(), other.numGroups); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.numElements)) { - this.numElements = data().deepCopy(fields()[7].schema(), other.numElements); - fieldSetFlags()[7] = true; - } - } - - /** Gets the value of the 'entities' field */ - public java.util.List getEntities() { - return entities; - } - - /** Sets the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder setEntities(java.util.List value) { - validate(fields()[0], value); - this.entities = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entities' field has been set */ - public boolean hasEntities() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder clearEntities() { - entities = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'groups' field */ - public java.util.List getGroups() { - return groups; - } - - /** Sets the value of the 'groups' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder setGroups(java.util.List value) { - validate(fields()[1], value); - this.groups = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'groups' field has been set */ - public boolean hasGroups() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'groups' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder clearGroups() { - groups = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata getMetadata() { - return metadata; - } - - /** Sets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder setMetadata(com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata value) { - validate(fields()[2], value); - this.metadata = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'metadata' field has been set */ - public boolean hasMetadata() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder clearMetadata() { - metadata = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'from' field */ - public java.lang.Integer getFrom() { - return from; - } - - /** Sets the value of the 'from' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder setFrom(int value) { - validate(fields()[3], value); - this.from = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'from' field has been set */ - public boolean hasFrom() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'from' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder clearFrom() { - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'pageSize' field */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** Sets the value of the 'pageSize' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder setPageSize(int value) { - validate(fields()[4], value); - this.pageSize = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'pageSize' field has been set */ - public boolean hasPageSize() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'pageSize' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder clearPageSize() { - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'numEntities' field */ - public java.lang.Integer getNumEntities() { - return numEntities; - } - - /** Sets the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder setNumEntities(int value) { - validate(fields()[5], value); - this.numEntities = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'numEntities' field has been set */ - public boolean hasNumEntities() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder clearNumEntities() { - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'numGroups' field */ - public java.lang.Integer getNumGroups() { - return numGroups; - } - - /** Sets the value of the 'numGroups' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder setNumGroups(int value) { - validate(fields()[6], value); - this.numGroups = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'numGroups' field has been set */ - public boolean hasNumGroups() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'numGroups' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder clearNumGroups() { - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'numElements' field */ - public java.lang.Integer getNumElements() { - return numElements; - } - - /** Sets the value of the 'numElements' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder setNumElements(int value) { - validate(fields()[7], value); - this.numElements = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'numElements' field has been set */ - public boolean hasNumElements() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'numElements' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResult.Builder clearNumElements() { - fieldSetFlags()[7] = false; - return this; - } - - @Override - public BrowseResult build() { - try { - BrowseResult record = new BrowseResult(); - record.entities = fieldSetFlags()[0] ? this.entities : (java.util.List) defaultValue(fields()[0]); - record.groups = fieldSetFlags()[1] ? this.groups : (java.util.List) defaultValue(fields()[1]); - record.metadata = fieldSetFlags()[2] ? this.metadata : (com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata) defaultValue(fields()[2]); - record.from = fieldSetFlags()[3] ? this.from : (java.lang.Integer) defaultValue(fields()[3]); - record.pageSize = fieldSetFlags()[4] ? this.pageSize : (java.lang.Integer) defaultValue(fields()[4]); - record.numEntities = fieldSetFlags()[5] ? this.numEntities : (java.lang.Integer) defaultValue(fields()[5]); - record.numGroups = fieldSetFlags()[6] ? this.numGroups : (java.lang.Integer) defaultValue(fields()[6]); - record.numElements = fieldSetFlags()[7] ? this.numElements : (java.lang.Integer) 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/pegasus2avro/metadata/browse/BrowseResultEntity.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/browse/BrowseResultEntity.java deleted file mode 100644 index fd9fc8e10c913..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/browse/BrowseResultEntity.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.browse; -@SuppressWarnings("all") -/** Data model for an entity returned as part of a browse query */ -@org.apache.avro.specific.AvroGenerated -public class BrowseResultEntity 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\":\"BrowseResultEntity\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.browse\",\"doc\":\"Data model for an entity returned as part of a browse query\",\"fields\":[{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Name of the entity\",\"default\":null},{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN of the entity\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Name of the entity */ - @Deprecated public java.lang.String name; - /** URN of the entity */ - @Deprecated public java.lang.String urn; - - /** - * 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 BrowseResultEntity() {} - - /** - * All-args constructor. - */ - public BrowseResultEntity(java.lang.String name, java.lang.String urn) { - this.name = name; - this.urn = urn; - } - - 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 urn; - 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: urn = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Name of the entity */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the entity * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'urn' field. - * URN of the entity */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN of the entity * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** Creates a new BrowseResultEntity RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity.Builder(); - } - - /** Creates a new BrowseResultEntity RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity.Builder newBuilder(com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity.Builder other) { - return new com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity.Builder(other); - } - - /** Creates a new BrowseResultEntity RecordBuilder by copying an existing BrowseResultEntity instance */ - public static com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity.Builder newBuilder(com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity other) { - return new com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity.Builder(other); - } - - /** - * RecordBuilder for BrowseResultEntity 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 urn; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity.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.urn)) { - this.urn = data().deepCopy(fields()[1].schema(), other.urn); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing BrowseResultEntity instance */ - private Builder(com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity other) { - super(com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.urn)) { - this.urn = data().deepCopy(fields()[1].schema(), other.urn); - fieldSetFlags()[1] = 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.metadata.browse.BrowseResultEntity.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.metadata.browse.BrowseResultEntity.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity.Builder setUrn(java.lang.String value) { - validate(fields()[1], value); - this.urn = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResultEntity.Builder clearUrn() { - urn = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public BrowseResultEntity build() { - try { - BrowseResultEntity record = new BrowseResultEntity(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.urn = fieldSetFlags()[1] ? this.urn : (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/metadata/browse/BrowseResultGroup.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/browse/BrowseResultGroup.java deleted file mode 100644 index 7bdf7809dbc36..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/browse/BrowseResultGroup.java +++ /dev/null @@ -1,197 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.browse; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class BrowseResultGroup 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\":\"BrowseResultGroup\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.browse\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the group\"},{\"name\":\"count\",\"type\":\"long\",\"doc\":\"Number of entities that can be reached from this path\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Name of the group */ - @Deprecated public java.lang.String name; - /** Number of entities that can be reached from this path */ - @Deprecated public long count; - - /** - * 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 BrowseResultGroup() {} - - /** - * All-args constructor. - */ - public BrowseResultGroup(java.lang.String name, java.lang.Long count) { - this.name = name; - this.count = count; - } - - 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 count; - 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: count = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Name of the group */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the group * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'count' field. - * Number of entities that can be reached from this path */ - public java.lang.Long getCount() { - return count; - } - - /** - * Sets the value of the 'count' field. - * Number of entities that can be reached from this path * @param value the value to set. - */ - public void setCount(java.lang.Long value) { - this.count = value; - } - - /** Creates a new BrowseResultGroup RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup.Builder(); - } - - /** Creates a new BrowseResultGroup RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup.Builder newBuilder(com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup.Builder other) { - return new com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup.Builder(other); - } - - /** Creates a new BrowseResultGroup RecordBuilder by copying an existing BrowseResultGroup instance */ - public static com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup.Builder newBuilder(com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup other) { - return new com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup.Builder(other); - } - - /** - * RecordBuilder for BrowseResultGroup instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String name; - private long count; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup.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.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing BrowseResultGroup instance */ - private Builder(com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup other) { - super(com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = 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.metadata.browse.BrowseResultGroup.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.metadata.browse.BrowseResultGroup.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'count' field */ - public java.lang.Long getCount() { - return count; - } - - /** Sets the value of the 'count' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup.Builder setCount(long value) { - validate(fields()[1], value); - this.count = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'count' field has been set */ - public boolean hasCount() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'count' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResultGroup.Builder clearCount() { - fieldSetFlags()[1] = false; - return this; - } - - @Override - public BrowseResultGroup build() { - try { - BrowseResultGroup record = new BrowseResultGroup(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.count = fieldSetFlags()[1] ? this.count : (java.lang.Long) 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/metadata/browse/BrowseResultMetadata.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/browse/BrowseResultMetadata.java deleted file mode 100644 index 7822695a291a8..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/browse/BrowseResultMetadata.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.browse; -@SuppressWarnings("all") -/** The model for browse result metadata */ -@org.apache.avro.specific.AvroGenerated -public class BrowseResultMetadata 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\":\"BrowseResultMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.browse\",\"doc\":\"The model for browse result metadata\",\"fields\":[{\"name\":\"path\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Path that is being browsed\"},{\"name\":\"totalNumEntities\",\"type\":\"long\",\"doc\":\"Total number of entities we can reach from path\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Path that is being browsed */ - @Deprecated public java.lang.String path; - /** Total number of entities we can reach from path */ - @Deprecated public long totalNumEntities; - - /** - * 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 BrowseResultMetadata() {} - - /** - * All-args constructor. - */ - public BrowseResultMetadata(java.lang.String path, java.lang.Long totalNumEntities) { - this.path = path; - this.totalNumEntities = totalNumEntities; - } - - 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; - case 1: return totalNumEntities; - 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.lang.String)value$; break; - case 1: totalNumEntities = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'path' field. - * Path that is being browsed */ - public java.lang.String getPath() { - return path; - } - - /** - * Sets the value of the 'path' field. - * Path that is being browsed * @param value the value to set. - */ - public void setPath(java.lang.String value) { - this.path = value; - } - - /** - * Gets the value of the 'totalNumEntities' field. - * Total number of entities we can reach from path */ - public java.lang.Long getTotalNumEntities() { - return totalNumEntities; - } - - /** - * Sets the value of the 'totalNumEntities' field. - * Total number of entities we can reach from path * @param value the value to set. - */ - public void setTotalNumEntities(java.lang.Long value) { - this.totalNumEntities = value; - } - - /** Creates a new BrowseResultMetadata RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.Builder(); - } - - /** Creates a new BrowseResultMetadata RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.Builder newBuilder(com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.Builder other) { - return new com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.Builder(other); - } - - /** Creates a new BrowseResultMetadata RecordBuilder by copying an existing BrowseResultMetadata instance */ - public static com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.Builder newBuilder(com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata other) { - return new com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.Builder(other); - } - - /** - * RecordBuilder for BrowseResultMetadata instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String path; - private long totalNumEntities; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.Builder other) { - super(other); - if (isValidValue(fields()[0], other.path)) { - this.path = data().deepCopy(fields()[0].schema(), other.path); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.totalNumEntities)) { - this.totalNumEntities = data().deepCopy(fields()[1].schema(), other.totalNumEntities); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing BrowseResultMetadata instance */ - private Builder(com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata other) { - super(com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.SCHEMA$); - if (isValidValue(fields()[0], other.path)) { - this.path = data().deepCopy(fields()[0].schema(), other.path); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.totalNumEntities)) { - this.totalNumEntities = data().deepCopy(fields()[1].schema(), other.totalNumEntities); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'path' field */ - public java.lang.String getPath() { - return path; - } - - /** Sets the value of the 'path' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.Builder setPath(java.lang.String 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.metadata.browse.BrowseResultMetadata.Builder clearPath() { - path = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'totalNumEntities' field */ - public java.lang.Long getTotalNumEntities() { - return totalNumEntities; - } - - /** Sets the value of the 'totalNumEntities' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.Builder setTotalNumEntities(long value) { - validate(fields()[1], value); - this.totalNumEntities = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'totalNumEntities' field has been set */ - public boolean hasTotalNumEntities() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'totalNumEntities' field */ - public com.linkedin.pegasus2avro.metadata.browse.BrowseResultMetadata.Builder clearTotalNumEntities() { - fieldSetFlags()[1] = false; - return this; - } - - @Override - public BrowseResultMetadata build() { - try { - BrowseResultMetadata record = new BrowseResultMetadata(); - record.path = fieldSetFlags()[0] ? this.path : (java.lang.String) defaultValue(fields()[0]); - record.totalNumEntities = fieldSetFlags()[1] ? this.totalNumEntities : (java.lang.Long) 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/metadata/graph/EntityLineageResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/graph/EntityLineageResult.java deleted file mode 100644 index c95030f22d982..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/graph/EntityLineageResult.java +++ /dev/null @@ -1,361 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.graph; -@SuppressWarnings("all") -/** A list of lineage information associated with a source Entity */ -@org.apache.avro.specific.AvroGenerated -public class EntityLineageResult 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\":\"EntityLineageResult\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.graph\",\"doc\":\"A list of lineage information associated with a source Entity\",\"fields\":[{\"name\":\"start\",\"type\":\"int\",\"doc\":\"Start offset of the result set\"},{\"name\":\"count\",\"type\":\"int\",\"doc\":\"Number of results in the returned result set\"},{\"name\":\"total\",\"type\":\"int\",\"doc\":\"Total number of results in the result set\"},{\"name\":\"filtered\",\"type\":[\"int\",\"null\"],\"doc\":\"The number of results that were filtered out of the page (soft-deleted or non-existent)\",\"default\":0},{\"name\":\"relationships\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"LineageRelationship\",\"doc\":\"Metadata about a lineage relationship between two entities\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of the relationship\"},{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Entity that is related via lineage\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"paths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},\"doc\":\"Optional list of entities between the source and destination node.\\nThere can be multiple paths from the source to the destination.\",\"default\":[]},{\"name\":\"path\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Optional list of entities between the source and destination node\",\"default\":[],\"deprecated\":true},{\"name\":\"degree\",\"type\":\"int\",\"doc\":\"Degree of relationship (number of hops to get to entity)\",\"default\":1},{\"name\":\"createdOn\",\"type\":[\"null\",\"long\"],\"doc\":\"Timestamp for when this lineage relationship was created. Could be null.\",\"default\":null},{\"name\":\"createdActor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Urn of the actor that created this lineage relationship. Could be null.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"updatedOn\",\"type\":[\"null\",\"long\"],\"doc\":\"Timestamp for when this lineage relationship was last updated. Could be null.\",\"default\":null},{\"name\":\"updatedActor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Urn of the actor that last updated this lineage relationship. Could be null.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"isManual\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Whether this lineage edge is a manual edge.\",\"default\":null}]}},\"doc\":\"Relationships in the result set\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Start offset of the result set */ - @Deprecated public int start; - /** Number of results in the returned result set */ - @Deprecated public int count; - /** Total number of results in the result set */ - @Deprecated public int total; - /** The number of results that were filtered out of the page (soft-deleted or non-existent) */ - @Deprecated public java.lang.Integer filtered; - /** Relationships in the result set */ - @Deprecated public java.util.List relationships; - - /** - * 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 EntityLineageResult() {} - - /** - * All-args constructor. - */ - public EntityLineageResult(java.lang.Integer start, java.lang.Integer count, java.lang.Integer total, java.lang.Integer filtered, java.util.List relationships) { - this.start = start; - this.count = count; - this.total = total; - this.filtered = filtered; - this.relationships = relationships; - } - - 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 start; - case 1: return count; - case 2: return total; - case 3: return filtered; - case 4: return relationships; - 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: start = (java.lang.Integer)value$; break; - case 1: count = (java.lang.Integer)value$; break; - case 2: total = (java.lang.Integer)value$; break; - case 3: filtered = (java.lang.Integer)value$; break; - case 4: relationships = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'start' field. - * Start offset of the result set */ - public java.lang.Integer getStart() { - return start; - } - - /** - * Sets the value of the 'start' field. - * Start offset of the result set * @param value the value to set. - */ - public void setStart(java.lang.Integer value) { - this.start = value; - } - - /** - * Gets the value of the 'count' field. - * Number of results in the returned result set */ - public java.lang.Integer getCount() { - return count; - } - - /** - * Sets the value of the 'count' field. - * Number of results in the returned result set * @param value the value to set. - */ - public void setCount(java.lang.Integer value) { - this.count = value; - } - - /** - * Gets the value of the 'total' field. - * Total number of results in the result set */ - public java.lang.Integer getTotal() { - return total; - } - - /** - * Sets the value of the 'total' field. - * Total number of results in the result set * @param value the value to set. - */ - public void setTotal(java.lang.Integer value) { - this.total = value; - } - - /** - * Gets the value of the 'filtered' field. - * The number of results that were filtered out of the page (soft-deleted or non-existent) */ - public java.lang.Integer getFiltered() { - return filtered; - } - - /** - * Sets the value of the 'filtered' field. - * The number of results that were filtered out of the page (soft-deleted or non-existent) * @param value the value to set. - */ - public void setFiltered(java.lang.Integer value) { - this.filtered = value; - } - - /** - * Gets the value of the 'relationships' field. - * Relationships in the result set */ - public java.util.List getRelationships() { - return relationships; - } - - /** - * Sets the value of the 'relationships' field. - * Relationships in the result set * @param value the value to set. - */ - public void setRelationships(java.util.List value) { - this.relationships = value; - } - - /** Creates a new EntityLineageResult RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder(); - } - - /** Creates a new EntityLineageResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder other) { - return new com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder(other); - } - - /** Creates a new EntityLineageResult RecordBuilder by copying an existing EntityLineageResult instance */ - public static com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult other) { - return new com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder(other); - } - - /** - * RecordBuilder for EntityLineageResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private int start; - private int count; - private int total; - private java.lang.Integer filtered; - private java.util.List relationships; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.start)) { - this.start = data().deepCopy(fields()[0].schema(), other.start); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.total)) { - this.total = data().deepCopy(fields()[2].schema(), other.total); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.filtered)) { - this.filtered = data().deepCopy(fields()[3].schema(), other.filtered); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.relationships)) { - this.relationships = data().deepCopy(fields()[4].schema(), other.relationships); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing EntityLineageResult instance */ - private Builder(com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult other) { - super(com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.SCHEMA$); - if (isValidValue(fields()[0], other.start)) { - this.start = data().deepCopy(fields()[0].schema(), other.start); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.total)) { - this.total = data().deepCopy(fields()[2].schema(), other.total); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.filtered)) { - this.filtered = data().deepCopy(fields()[3].schema(), other.filtered); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.relationships)) { - this.relationships = data().deepCopy(fields()[4].schema(), other.relationships); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'start' field */ - public java.lang.Integer getStart() { - return start; - } - - /** Sets the value of the 'start' field */ - public com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder setStart(int value) { - validate(fields()[0], value); - this.start = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'start' field has been set */ - public boolean hasStart() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'start' field */ - public com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder clearStart() { - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'count' field */ - public java.lang.Integer getCount() { - return count; - } - - /** Sets the value of the 'count' field */ - public com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder setCount(int value) { - validate(fields()[1], value); - this.count = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'count' field has been set */ - public boolean hasCount() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'count' field */ - public com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder clearCount() { - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'total' field */ - public java.lang.Integer getTotal() { - return total; - } - - /** Sets the value of the 'total' field */ - public com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder setTotal(int value) { - validate(fields()[2], value); - this.total = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'total' field has been set */ - public boolean hasTotal() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'total' field */ - public com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder clearTotal() { - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'filtered' field */ - public java.lang.Integer getFiltered() { - return filtered; - } - - /** Sets the value of the 'filtered' field */ - public com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder setFiltered(java.lang.Integer value) { - validate(fields()[3], value); - this.filtered = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'filtered' field has been set */ - public boolean hasFiltered() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'filtered' field */ - public com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder clearFiltered() { - filtered = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'relationships' field */ - public java.util.List getRelationships() { - return relationships; - } - - /** Sets the value of the 'relationships' field */ - public com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder setRelationships(java.util.List value) { - validate(fields()[4], value); - this.relationships = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'relationships' field has been set */ - public boolean hasRelationships() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'relationships' field */ - public com.linkedin.pegasus2avro.metadata.graph.EntityLineageResult.Builder clearRelationships() { - relationships = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public EntityLineageResult build() { - try { - EntityLineageResult record = new EntityLineageResult(); - record.start = fieldSetFlags()[0] ? this.start : (java.lang.Integer) defaultValue(fields()[0]); - record.count = fieldSetFlags()[1] ? this.count : (java.lang.Integer) defaultValue(fields()[1]); - record.total = fieldSetFlags()[2] ? this.total : (java.lang.Integer) defaultValue(fields()[2]); - record.filtered = fieldSetFlags()[3] ? this.filtered : (java.lang.Integer) defaultValue(fields()[3]); - record.relationships = fieldSetFlags()[4] ? this.relationships : (java.util.List) 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/metadata/graph/LineageRelationship.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/graph/LineageRelationship.java deleted file mode 100644 index 9e03ecac9d3a8..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/graph/LineageRelationship.java +++ /dev/null @@ -1,641 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.graph; -@SuppressWarnings("all") -/** Metadata about a lineage relationship between two entities */ -@org.apache.avro.specific.AvroGenerated -public class LineageRelationship 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\":\"LineageRelationship\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.graph\",\"doc\":\"Metadata about a lineage relationship between two entities\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of the relationship\"},{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Entity that is related via lineage\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"paths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},\"doc\":\"Optional list of entities between the source and destination node.\\nThere can be multiple paths from the source to the destination.\",\"default\":[]},{\"name\":\"path\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Optional list of entities between the source and destination node\",\"default\":[],\"deprecated\":true},{\"name\":\"degree\",\"type\":\"int\",\"doc\":\"Degree of relationship (number of hops to get to entity)\",\"default\":1},{\"name\":\"createdOn\",\"type\":[\"null\",\"long\"],\"doc\":\"Timestamp for when this lineage relationship was created. Could be null.\",\"default\":null},{\"name\":\"createdActor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Urn of the actor that created this lineage relationship. Could be null.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"updatedOn\",\"type\":[\"null\",\"long\"],\"doc\":\"Timestamp for when this lineage relationship was last updated. Could be null.\",\"default\":null},{\"name\":\"updatedActor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Urn of the actor that last updated this lineage relationship. Could be null.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"isManual\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Whether this lineage edge is a manual edge.\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The type of the relationship */ - @Deprecated public java.lang.String type; - /** Entity that is related via lineage */ - @Deprecated public java.lang.String entity; - /** Optional list of entities between the source and destination node. -There can be multiple paths from the source to the destination. */ - @Deprecated public java.util.List> paths; - /** Optional list of entities between the source and destination node */ - @Deprecated public java.util.List path; - /** Degree of relationship (number of hops to get to entity) */ - @Deprecated public int degree; - /** Timestamp for when this lineage relationship was created. Could be null. */ - @Deprecated public java.lang.Long createdOn; - /** Urn of the actor that created this lineage relationship. Could be null. */ - @Deprecated public java.lang.String createdActor; - /** Timestamp for when this lineage relationship was last updated. Could be null. */ - @Deprecated public java.lang.Long updatedOn; - /** Urn of the actor that last updated this lineage relationship. Could be null. */ - @Deprecated public java.lang.String updatedActor; - /** Whether this lineage edge is a manual edge. */ - @Deprecated public java.lang.Boolean isManual; - - /** - * 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 LineageRelationship() {} - - /** - * All-args constructor. - */ - public LineageRelationship(java.lang.String type, java.lang.String entity, java.util.List> paths, java.util.List path, java.lang.Integer degree, java.lang.Long createdOn, java.lang.String createdActor, java.lang.Long updatedOn, java.lang.String updatedActor, java.lang.Boolean isManual) { - this.type = type; - this.entity = entity; - this.paths = paths; - this.path = path; - this.degree = degree; - this.createdOn = createdOn; - this.createdActor = createdActor; - this.updatedOn = updatedOn; - this.updatedActor = updatedActor; - this.isManual = isManual; - } - - 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 entity; - case 2: return paths; - case 3: return path; - case 4: return degree; - case 5: return createdOn; - case 6: return createdActor; - case 7: return updatedOn; - case 8: return updatedActor; - case 9: return isManual; - 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 = (java.lang.String)value$; break; - case 1: entity = (java.lang.String)value$; break; - case 2: paths = (java.util.List>)value$; break; - case 3: path = (java.util.List)value$; break; - case 4: degree = (java.lang.Integer)value$; break; - case 5: createdOn = (java.lang.Long)value$; break; - case 6: createdActor = (java.lang.String)value$; break; - case 7: updatedOn = (java.lang.Long)value$; break; - case 8: updatedActor = (java.lang.String)value$; break; - case 9: isManual = (java.lang.Boolean)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * The type of the relationship */ - public java.lang.String getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of the relationship * @param value the value to set. - */ - public void setType(java.lang.String value) { - this.type = value; - } - - /** - * Gets the value of the 'entity' field. - * Entity that is related via lineage */ - public java.lang.String getEntity() { - return entity; - } - - /** - * Sets the value of the 'entity' field. - * Entity that is related via lineage * @param value the value to set. - */ - public void setEntity(java.lang.String value) { - this.entity = value; - } - - /** - * Gets the value of the 'paths' field. - * Optional list of entities between the source and destination node. -There can be multiple paths from the source to the destination. */ - public java.util.List> getPaths() { - return paths; - } - - /** - * Sets the value of the 'paths' field. - * Optional list of entities between the source and destination node. -There can be multiple paths from the source to the destination. * @param value the value to set. - */ - public void setPaths(java.util.List> value) { - this.paths = value; - } - - /** - * Gets the value of the 'path' field. - * Optional list of entities between the source and destination node */ - public java.util.List getPath() { - return path; - } - - /** - * Sets the value of the 'path' field. - * Optional list of entities between the source and destination node * @param value the value to set. - */ - public void setPath(java.util.List value) { - this.path = value; - } - - /** - * Gets the value of the 'degree' field. - * Degree of relationship (number of hops to get to entity) */ - public java.lang.Integer getDegree() { - return degree; - } - - /** - * Sets the value of the 'degree' field. - * Degree of relationship (number of hops to get to entity) * @param value the value to set. - */ - public void setDegree(java.lang.Integer value) { - this.degree = value; - } - - /** - * Gets the value of the 'createdOn' field. - * Timestamp for when this lineage relationship was created. Could be null. */ - public java.lang.Long getCreatedOn() { - return createdOn; - } - - /** - * Sets the value of the 'createdOn' field. - * Timestamp for when this lineage relationship was created. Could be null. * @param value the value to set. - */ - public void setCreatedOn(java.lang.Long value) { - this.createdOn = value; - } - - /** - * Gets the value of the 'createdActor' field. - * Urn of the actor that created this lineage relationship. Could be null. */ - public java.lang.String getCreatedActor() { - return createdActor; - } - - /** - * Sets the value of the 'createdActor' field. - * Urn of the actor that created this lineage relationship. Could be null. * @param value the value to set. - */ - public void setCreatedActor(java.lang.String value) { - this.createdActor = value; - } - - /** - * Gets the value of the 'updatedOn' field. - * Timestamp for when this lineage relationship was last updated. Could be null. */ - public java.lang.Long getUpdatedOn() { - return updatedOn; - } - - /** - * Sets the value of the 'updatedOn' field. - * Timestamp for when this lineage relationship was last updated. Could be null. * @param value the value to set. - */ - public void setUpdatedOn(java.lang.Long value) { - this.updatedOn = value; - } - - /** - * Gets the value of the 'updatedActor' field. - * Urn of the actor that last updated this lineage relationship. Could be null. */ - public java.lang.String getUpdatedActor() { - return updatedActor; - } - - /** - * Sets the value of the 'updatedActor' field. - * Urn of the actor that last updated this lineage relationship. Could be null. * @param value the value to set. - */ - public void setUpdatedActor(java.lang.String value) { - this.updatedActor = value; - } - - /** - * Gets the value of the 'isManual' field. - * Whether this lineage edge is a manual edge. */ - public java.lang.Boolean getIsManual() { - return isManual; - } - - /** - * Sets the value of the 'isManual' field. - * Whether this lineage edge is a manual edge. * @param value the value to set. - */ - public void setIsManual(java.lang.Boolean value) { - this.isManual = value; - } - - /** Creates a new LineageRelationship RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder(); - } - - /** Creates a new LineageRelationship RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder newBuilder(com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder other) { - return new com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder(other); - } - - /** Creates a new LineageRelationship RecordBuilder by copying an existing LineageRelationship instance */ - public static com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder newBuilder(com.linkedin.pegasus2avro.metadata.graph.LineageRelationship other) { - return new com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder(other); - } - - /** - * RecordBuilder for LineageRelationship instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String type; - private java.lang.String entity; - private java.util.List> paths; - private java.util.List path; - private int degree; - private java.lang.Long createdOn; - private java.lang.String createdActor; - private java.lang.Long updatedOn; - private java.lang.String updatedActor; - private java.lang.Boolean isManual; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.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.entity)) { - this.entity = data().deepCopy(fields()[1].schema(), other.entity); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.paths)) { - this.paths = data().deepCopy(fields()[2].schema(), other.paths); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.path)) { - this.path = data().deepCopy(fields()[3].schema(), other.path); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.degree)) { - this.degree = data().deepCopy(fields()[4].schema(), other.degree); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.createdOn)) { - this.createdOn = data().deepCopy(fields()[5].schema(), other.createdOn); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.createdActor)) { - this.createdActor = data().deepCopy(fields()[6].schema(), other.createdActor); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.updatedOn)) { - this.updatedOn = data().deepCopy(fields()[7].schema(), other.updatedOn); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.updatedActor)) { - this.updatedActor = data().deepCopy(fields()[8].schema(), other.updatedActor); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.isManual)) { - this.isManual = data().deepCopy(fields()[9].schema(), other.isManual); - fieldSetFlags()[9] = true; - } - } - - /** Creates a Builder by copying an existing LineageRelationship instance */ - private Builder(com.linkedin.pegasus2avro.metadata.graph.LineageRelationship other) { - super(com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entity)) { - this.entity = data().deepCopy(fields()[1].schema(), other.entity); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.paths)) { - this.paths = data().deepCopy(fields()[2].schema(), other.paths); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.path)) { - this.path = data().deepCopy(fields()[3].schema(), other.path); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.degree)) { - this.degree = data().deepCopy(fields()[4].schema(), other.degree); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.createdOn)) { - this.createdOn = data().deepCopy(fields()[5].schema(), other.createdOn); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.createdActor)) { - this.createdActor = data().deepCopy(fields()[6].schema(), other.createdActor); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.updatedOn)) { - this.updatedOn = data().deepCopy(fields()[7].schema(), other.updatedOn); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.updatedActor)) { - this.updatedActor = data().deepCopy(fields()[8].schema(), other.updatedActor); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.isManual)) { - this.isManual = data().deepCopy(fields()[9].schema(), other.isManual); - fieldSetFlags()[9] = true; - } - } - - /** Gets the value of the 'type' field */ - public java.lang.String getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder setType(java.lang.String 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.metadata.graph.LineageRelationship.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'entity' field */ - public java.lang.String getEntity() { - return entity; - } - - /** Sets the value of the 'entity' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder setEntity(java.lang.String value) { - validate(fields()[1], value); - this.entity = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'entity' field has been set */ - public boolean hasEntity() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'entity' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder clearEntity() { - entity = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.metadata.graph.LineageRelationship.Builder setPaths(java.util.List> value) { - validate(fields()[2], value); - this.paths = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'paths' field has been set */ - public boolean hasPaths() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'paths' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder clearPaths() { - paths = null; - fieldSetFlags()[2] = false; - return this; - } - - /** 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.metadata.graph.LineageRelationship.Builder setPath(java.util.List value) { - validate(fields()[3], value); - this.path = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'path' field has been set */ - public boolean hasPath() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'path' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder clearPath() { - path = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'degree' field */ - public java.lang.Integer getDegree() { - return degree; - } - - /** Sets the value of the 'degree' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder setDegree(int value) { - validate(fields()[4], value); - this.degree = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'degree' field has been set */ - public boolean hasDegree() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'degree' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder clearDegree() { - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'createdOn' field */ - public java.lang.Long getCreatedOn() { - return createdOn; - } - - /** Sets the value of the 'createdOn' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder setCreatedOn(java.lang.Long value) { - validate(fields()[5], value); - this.createdOn = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'createdOn' field has been set */ - public boolean hasCreatedOn() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'createdOn' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder clearCreatedOn() { - createdOn = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'createdActor' field */ - public java.lang.String getCreatedActor() { - return createdActor; - } - - /** Sets the value of the 'createdActor' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder setCreatedActor(java.lang.String value) { - validate(fields()[6], value); - this.createdActor = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'createdActor' field has been set */ - public boolean hasCreatedActor() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'createdActor' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder clearCreatedActor() { - createdActor = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'updatedOn' field */ - public java.lang.Long getUpdatedOn() { - return updatedOn; - } - - /** Sets the value of the 'updatedOn' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder setUpdatedOn(java.lang.Long value) { - validate(fields()[7], value); - this.updatedOn = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'updatedOn' field has been set */ - public boolean hasUpdatedOn() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'updatedOn' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder clearUpdatedOn() { - updatedOn = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'updatedActor' field */ - public java.lang.String getUpdatedActor() { - return updatedActor; - } - - /** Sets the value of the 'updatedActor' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder setUpdatedActor(java.lang.String value) { - validate(fields()[8], value); - this.updatedActor = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'updatedActor' field has been set */ - public boolean hasUpdatedActor() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'updatedActor' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder clearUpdatedActor() { - updatedActor = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'isManual' field */ - public java.lang.Boolean getIsManual() { - return isManual; - } - - /** Sets the value of the 'isManual' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder setIsManual(java.lang.Boolean value) { - validate(fields()[9], value); - this.isManual = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'isManual' field has been set */ - public boolean hasIsManual() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'isManual' field */ - public com.linkedin.pegasus2avro.metadata.graph.LineageRelationship.Builder clearIsManual() { - isManual = null; - fieldSetFlags()[9] = false; - return this; - } - - @Override - public LineageRelationship build() { - try { - LineageRelationship record = new LineageRelationship(); - record.type = fieldSetFlags()[0] ? this.type : (java.lang.String) defaultValue(fields()[0]); - record.entity = fieldSetFlags()[1] ? this.entity : (java.lang.String) defaultValue(fields()[1]); - record.paths = fieldSetFlags()[2] ? this.paths : (java.util.List>) defaultValue(fields()[2]); - record.path = fieldSetFlags()[3] ? this.path : (java.util.List) defaultValue(fields()[3]); - record.degree = fieldSetFlags()[4] ? this.degree : (java.lang.Integer) defaultValue(fields()[4]); - record.createdOn = fieldSetFlags()[5] ? this.createdOn : (java.lang.Long) defaultValue(fields()[5]); - record.createdActor = fieldSetFlags()[6] ? this.createdActor : (java.lang.String) defaultValue(fields()[6]); - record.updatedOn = fieldSetFlags()[7] ? this.updatedOn : (java.lang.Long) defaultValue(fields()[7]); - record.updatedActor = fieldSetFlags()[8] ? this.updatedActor : (java.lang.String) defaultValue(fields()[8]); - record.isManual = fieldSetFlags()[9] ? this.isManual : (java.lang.Boolean) defaultValue(fields()[9]); - 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/metadata/key/AssertionKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/AssertionKey.java deleted file mode 100644 index d17b612f5757b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/AssertionKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Assertion */ -@org.apache.avro.specific.AvroGenerated -public class AssertionKey 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\":\"AssertionKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Assertion\",\"fields\":[{\"name\":\"assertionId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the assertion.\"}],\"Aspect\":{\"name\":\"assertionKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Unique id for the assertion. */ - @Deprecated public java.lang.String assertionId; - - /** - * 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 AssertionKey() {} - - /** - * All-args constructor. - */ - public AssertionKey(java.lang.String assertionId) { - this.assertionId = assertionId; - } - - 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 assertionId; - 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: assertionId = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'assertionId' field. - * Unique id for the assertion. */ - public java.lang.String getAssertionId() { - return assertionId; - } - - /** - * Sets the value of the 'assertionId' field. - * Unique id for the assertion. * @param value the value to set. - */ - public void setAssertionId(java.lang.String value) { - this.assertionId = value; - } - - /** Creates a new AssertionKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.AssertionKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.AssertionKey.Builder(); - } - - /** Creates a new AssertionKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.AssertionKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.AssertionKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.AssertionKey.Builder(other); - } - - /** Creates a new AssertionKey RecordBuilder by copying an existing AssertionKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.AssertionKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.AssertionKey other) { - return new com.linkedin.pegasus2avro.metadata.key.AssertionKey.Builder(other); - } - - /** - * RecordBuilder for AssertionKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String assertionId; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.AssertionKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.AssertionKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.assertionId)) { - this.assertionId = data().deepCopy(fields()[0].schema(), other.assertionId); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing AssertionKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.AssertionKey other) { - super(com.linkedin.pegasus2avro.metadata.key.AssertionKey.SCHEMA$); - if (isValidValue(fields()[0], other.assertionId)) { - this.assertionId = data().deepCopy(fields()[0].schema(), other.assertionId); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'assertionId' field */ - public java.lang.String getAssertionId() { - return assertionId; - } - - /** Sets the value of the 'assertionId' field */ - public com.linkedin.pegasus2avro.metadata.key.AssertionKey.Builder setAssertionId(java.lang.String value) { - validate(fields()[0], value); - this.assertionId = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'assertionId' field has been set */ - public boolean hasAssertionId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'assertionId' field */ - public com.linkedin.pegasus2avro.metadata.key.AssertionKey.Builder clearAssertionId() { - assertionId = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public AssertionKey build() { - try { - AssertionKey record = new AssertionKey(); - record.assertionId = fieldSetFlags()[0] ? this.assertionId : (java.lang.String) 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/metadata/key/ChartKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/ChartKey.java deleted file mode 100644 index 24a190010d2c2..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/ChartKey.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Chart */ -@org.apache.avro.specific.AvroGenerated -public class ChartKey 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\":\"ChartKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Chart\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"chartId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234'\"}],\"Aspect\":{\"name\":\"chartKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the dashboard tool such as looker, redash etc. */ - @Deprecated public java.lang.String dashboardTool; - /** Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234' */ - @Deprecated public java.lang.String chartId; - - /** - * 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 ChartKey() {} - - /** - * All-args constructor. - */ - public ChartKey(java.lang.String dashboardTool, java.lang.String chartId) { - this.dashboardTool = dashboardTool; - this.chartId = chartId; - } - - 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 dashboardTool; - case 1: return chartId; - 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: dashboardTool = (java.lang.String)value$; break; - case 1: chartId = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'dashboardTool' field. - * The name of the dashboard tool such as looker, redash etc. */ - public java.lang.String getDashboardTool() { - return dashboardTool; - } - - /** - * Sets the value of the 'dashboardTool' field. - * The name of the dashboard tool such as looker, redash etc. * @param value the value to set. - */ - public void setDashboardTool(java.lang.String value) { - this.dashboardTool = value; - } - - /** - * Gets the value of the 'chartId' field. - * Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234' */ - public java.lang.String getChartId() { - return chartId; - } - - /** - * Sets the value of the 'chartId' field. - * Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234' * @param value the value to set. - */ - public void setChartId(java.lang.String value) { - this.chartId = value; - } - - /** Creates a new ChartKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.ChartKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.ChartKey.Builder(); - } - - /** Creates a new ChartKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.ChartKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.ChartKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.ChartKey.Builder(other); - } - - /** Creates a new ChartKey RecordBuilder by copying an existing ChartKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.ChartKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.ChartKey other) { - return new com.linkedin.pegasus2avro.metadata.key.ChartKey.Builder(other); - } - - /** - * RecordBuilder for ChartKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String dashboardTool; - private java.lang.String chartId; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.ChartKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.ChartKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.dashboardTool)) { - this.dashboardTool = data().deepCopy(fields()[0].schema(), other.dashboardTool); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.chartId)) { - this.chartId = data().deepCopy(fields()[1].schema(), other.chartId); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing ChartKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.ChartKey other) { - super(com.linkedin.pegasus2avro.metadata.key.ChartKey.SCHEMA$); - if (isValidValue(fields()[0], other.dashboardTool)) { - this.dashboardTool = data().deepCopy(fields()[0].schema(), other.dashboardTool); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.chartId)) { - this.chartId = data().deepCopy(fields()[1].schema(), other.chartId); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'dashboardTool' field */ - public java.lang.String getDashboardTool() { - return dashboardTool; - } - - /** Sets the value of the 'dashboardTool' field */ - public com.linkedin.pegasus2avro.metadata.key.ChartKey.Builder setDashboardTool(java.lang.String value) { - validate(fields()[0], value); - this.dashboardTool = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'dashboardTool' field has been set */ - public boolean hasDashboardTool() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'dashboardTool' field */ - public com.linkedin.pegasus2avro.metadata.key.ChartKey.Builder clearDashboardTool() { - dashboardTool = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'chartId' field */ - public java.lang.String getChartId() { - return chartId; - } - - /** Sets the value of the 'chartId' field */ - public com.linkedin.pegasus2avro.metadata.key.ChartKey.Builder setChartId(java.lang.String value) { - validate(fields()[1], value); - this.chartId = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'chartId' field has been set */ - public boolean hasChartId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'chartId' field */ - public com.linkedin.pegasus2avro.metadata.key.ChartKey.Builder clearChartId() { - chartId = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public ChartKey build() { - try { - ChartKey record = new ChartKey(); - record.dashboardTool = fieldSetFlags()[0] ? this.dashboardTool : (java.lang.String) defaultValue(fields()[0]); - record.chartId = fieldSetFlags()[1] ? this.chartId : (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/metadata/key/ContainerKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/ContainerKey.java deleted file mode 100644 index 9109225db7d28..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/ContainerKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for an Asset Container */ -@org.apache.avro.specific.AvroGenerated -public class ContainerKey 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\":\"ContainerKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an Asset Container\",\"fields\":[{\"name\":\"guid\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Unique guid for container\",\"default\":null}],\"Aspect\":{\"name\":\"containerKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Unique guid for container */ - @Deprecated public java.lang.String guid; - - /** - * 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 ContainerKey() {} - - /** - * All-args constructor. - */ - public ContainerKey(java.lang.String guid) { - this.guid = guid; - } - - 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 guid; - 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: guid = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'guid' field. - * Unique guid for container */ - public java.lang.String getGuid() { - return guid; - } - - /** - * Sets the value of the 'guid' field. - * Unique guid for container * @param value the value to set. - */ - public void setGuid(java.lang.String value) { - this.guid = value; - } - - /** Creates a new ContainerKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.ContainerKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.ContainerKey.Builder(); - } - - /** Creates a new ContainerKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.ContainerKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.ContainerKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.ContainerKey.Builder(other); - } - - /** Creates a new ContainerKey RecordBuilder by copying an existing ContainerKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.ContainerKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.ContainerKey other) { - return new com.linkedin.pegasus2avro.metadata.key.ContainerKey.Builder(other); - } - - /** - * RecordBuilder for ContainerKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String guid; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.ContainerKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.ContainerKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.guid)) { - this.guid = data().deepCopy(fields()[0].schema(), other.guid); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing ContainerKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.ContainerKey other) { - super(com.linkedin.pegasus2avro.metadata.key.ContainerKey.SCHEMA$); - if (isValidValue(fields()[0], other.guid)) { - this.guid = data().deepCopy(fields()[0].schema(), other.guid); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'guid' field */ - public java.lang.String getGuid() { - return guid; - } - - /** Sets the value of the 'guid' field */ - public com.linkedin.pegasus2avro.metadata.key.ContainerKey.Builder setGuid(java.lang.String value) { - validate(fields()[0], value); - this.guid = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'guid' field has been set */ - public boolean hasGuid() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'guid' field */ - public com.linkedin.pegasus2avro.metadata.key.ContainerKey.Builder clearGuid() { - guid = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public ContainerKey build() { - try { - ContainerKey record = new ContainerKey(); - record.guid = fieldSetFlags()[0] ? this.guid : (java.lang.String) 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/metadata/key/CorpGroupKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/CorpGroupKey.java deleted file mode 100644 index 3efe13d0d4039..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/CorpGroupKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a CorpGroup */ -@org.apache.avro.specific.AvroGenerated -public class CorpGroupKey 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\":\"CorpGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpGroup\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub.\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}}],\"Aspect\":{\"name\":\"corpGroupKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub. */ - @Deprecated public java.lang.String name; - - /** - * 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 CorpGroupKey() {} - - /** - * All-args constructor. - */ - public CorpGroupKey(java.lang.String name) { - this.name = name; - } - - 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; - 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; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub. */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub. * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** Creates a new CorpGroupKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.CorpGroupKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.CorpGroupKey.Builder(); - } - - /** Creates a new CorpGroupKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.CorpGroupKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.CorpGroupKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.CorpGroupKey.Builder(other); - } - - /** Creates a new CorpGroupKey RecordBuilder by copying an existing CorpGroupKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.CorpGroupKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.CorpGroupKey other) { - return new com.linkedin.pegasus2avro.metadata.key.CorpGroupKey.Builder(other); - } - - /** - * RecordBuilder for CorpGroupKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String name; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.CorpGroupKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.CorpGroupKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing CorpGroupKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.CorpGroupKey other) { - super(com.linkedin.pegasus2avro.metadata.key.CorpGroupKey.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = 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.metadata.key.CorpGroupKey.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.metadata.key.CorpGroupKey.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public CorpGroupKey build() { - try { - CorpGroupKey record = new CorpGroupKey(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) 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/metadata/key/CorpUserKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/CorpUserKey.java deleted file mode 100644 index 22e745afbb743..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/CorpUserKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a CorpUser */ -@org.apache.avro.specific.AvroGenerated -public class CorpUserKey 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\":\"CorpUserKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpUser\",\"fields\":[{\"name\":\"username\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the AD/LDAP user.\",\"Searchable\":{\"boostScore\":2.0,\"enableAutocomplete\":true,\"fieldName\":\"ldap\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"corpUserKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the AD/LDAP user. */ - @Deprecated public java.lang.String username; - - /** - * 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 CorpUserKey() {} - - /** - * All-args constructor. - */ - public CorpUserKey(java.lang.String username) { - this.username = username; - } - - 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 username; - 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: username = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'username' field. - * The name of the AD/LDAP user. */ - public java.lang.String getUsername() { - return username; - } - - /** - * Sets the value of the 'username' field. - * The name of the AD/LDAP user. * @param value the value to set. - */ - public void setUsername(java.lang.String value) { - this.username = value; - } - - /** Creates a new CorpUserKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.CorpUserKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.CorpUserKey.Builder(); - } - - /** Creates a new CorpUserKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.CorpUserKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.CorpUserKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.CorpUserKey.Builder(other); - } - - /** Creates a new CorpUserKey RecordBuilder by copying an existing CorpUserKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.CorpUserKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.CorpUserKey other) { - return new com.linkedin.pegasus2avro.metadata.key.CorpUserKey.Builder(other); - } - - /** - * RecordBuilder for CorpUserKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String username; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.CorpUserKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.CorpUserKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.username)) { - this.username = data().deepCopy(fields()[0].schema(), other.username); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing CorpUserKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.CorpUserKey other) { - super(com.linkedin.pegasus2avro.metadata.key.CorpUserKey.SCHEMA$); - if (isValidValue(fields()[0], other.username)) { - this.username = data().deepCopy(fields()[0].schema(), other.username); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'username' field */ - public java.lang.String getUsername() { - return username; - } - - /** Sets the value of the 'username' field */ - public com.linkedin.pegasus2avro.metadata.key.CorpUserKey.Builder setUsername(java.lang.String value) { - validate(fields()[0], value); - this.username = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'username' field has been set */ - public boolean hasUsername() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'username' field */ - public com.linkedin.pegasus2avro.metadata.key.CorpUserKey.Builder clearUsername() { - username = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public CorpUserKey build() { - try { - CorpUserKey record = new CorpUserKey(); - record.username = fieldSetFlags()[0] ? this.username : (java.lang.String) 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/metadata/key/DashboardKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DashboardKey.java deleted file mode 100644 index 5f017aaa6495b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DashboardKey.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Dashboard */ -@org.apache.avro.specific.AvroGenerated -public class DashboardKey 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\":\"DashboardKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dashboard\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"dashboardId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234'\"}],\"Aspect\":{\"name\":\"dashboardKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the dashboard tool such as looker, redash etc. */ - @Deprecated public java.lang.String dashboardTool; - /** Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234' */ - @Deprecated public java.lang.String dashboardId; - - /** - * 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 DashboardKey() {} - - /** - * All-args constructor. - */ - public DashboardKey(java.lang.String dashboardTool, java.lang.String dashboardId) { - this.dashboardTool = dashboardTool; - this.dashboardId = dashboardId; - } - - 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 dashboardTool; - case 1: return dashboardId; - 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: dashboardTool = (java.lang.String)value$; break; - case 1: dashboardId = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'dashboardTool' field. - * The name of the dashboard tool such as looker, redash etc. */ - public java.lang.String getDashboardTool() { - return dashboardTool; - } - - /** - * Sets the value of the 'dashboardTool' field. - * The name of the dashboard tool such as looker, redash etc. * @param value the value to set. - */ - public void setDashboardTool(java.lang.String value) { - this.dashboardTool = value; - } - - /** - * Gets the value of the 'dashboardId' field. - * Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234' */ - public java.lang.String getDashboardId() { - return dashboardId; - } - - /** - * Sets the value of the 'dashboardId' field. - * Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234' * @param value the value to set. - */ - public void setDashboardId(java.lang.String value) { - this.dashboardId = value; - } - - /** Creates a new DashboardKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DashboardKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DashboardKey.Builder(); - } - - /** Creates a new DashboardKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DashboardKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DashboardKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DashboardKey.Builder(other); - } - - /** Creates a new DashboardKey RecordBuilder by copying an existing DashboardKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DashboardKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DashboardKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DashboardKey.Builder(other); - } - - /** - * RecordBuilder for DashboardKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String dashboardTool; - private java.lang.String dashboardId; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DashboardKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DashboardKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.dashboardTool)) { - this.dashboardTool = data().deepCopy(fields()[0].schema(), other.dashboardTool); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.dashboardId)) { - this.dashboardId = data().deepCopy(fields()[1].schema(), other.dashboardId); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DashboardKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DashboardKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DashboardKey.SCHEMA$); - if (isValidValue(fields()[0], other.dashboardTool)) { - this.dashboardTool = data().deepCopy(fields()[0].schema(), other.dashboardTool); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.dashboardId)) { - this.dashboardId = data().deepCopy(fields()[1].schema(), other.dashboardId); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'dashboardTool' field */ - public java.lang.String getDashboardTool() { - return dashboardTool; - } - - /** Sets the value of the 'dashboardTool' field */ - public com.linkedin.pegasus2avro.metadata.key.DashboardKey.Builder setDashboardTool(java.lang.String value) { - validate(fields()[0], value); - this.dashboardTool = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'dashboardTool' field has been set */ - public boolean hasDashboardTool() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'dashboardTool' field */ - public com.linkedin.pegasus2avro.metadata.key.DashboardKey.Builder clearDashboardTool() { - dashboardTool = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'dashboardId' field */ - public java.lang.String getDashboardId() { - return dashboardId; - } - - /** Sets the value of the 'dashboardId' field */ - public com.linkedin.pegasus2avro.metadata.key.DashboardKey.Builder setDashboardId(java.lang.String value) { - validate(fields()[1], value); - this.dashboardId = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'dashboardId' field has been set */ - public boolean hasDashboardId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'dashboardId' field */ - public com.linkedin.pegasus2avro.metadata.key.DashboardKey.Builder clearDashboardId() { - dashboardId = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DashboardKey build() { - try { - DashboardKey record = new DashboardKey(); - record.dashboardTool = fieldSetFlags()[0] ? this.dashboardTool : (java.lang.String) defaultValue(fields()[0]); - record.dashboardId = fieldSetFlags()[1] ? this.dashboardId : (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/metadata/key/DataFlowKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataFlowKey.java deleted file mode 100644 index 84cfb554d9a19..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataFlowKey.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Data Flow */ -@org.apache.avro.specific.AvroGenerated -public class DataFlowKey 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\":\"DataFlowKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Flow\",\"fields\":[{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Workflow manager like azkaban, airflow which orchestrates the flow\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"flowId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data flow\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"cluster\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Cluster where the flow is executed\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataFlowKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Workflow manager like azkaban, airflow which orchestrates the flow */ - @Deprecated public java.lang.String orchestrator; - /** Unique Identifier of the data flow */ - @Deprecated public java.lang.String flowId; - /** Cluster where the flow is executed */ - @Deprecated public java.lang.String cluster; - - /** - * 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 DataFlowKey() {} - - /** - * All-args constructor. - */ - public DataFlowKey(java.lang.String orchestrator, java.lang.String flowId, java.lang.String cluster) { - this.orchestrator = orchestrator; - this.flowId = flowId; - this.cluster = cluster; - } - - 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 orchestrator; - case 1: return flowId; - case 2: return cluster; - 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: orchestrator = (java.lang.String)value$; break; - case 1: flowId = (java.lang.String)value$; break; - case 2: cluster = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'orchestrator' field. - * Workflow manager like azkaban, airflow which orchestrates the flow */ - public java.lang.String getOrchestrator() { - return orchestrator; - } - - /** - * Sets the value of the 'orchestrator' field. - * Workflow manager like azkaban, airflow which orchestrates the flow * @param value the value to set. - */ - public void setOrchestrator(java.lang.String value) { - this.orchestrator = value; - } - - /** - * Gets the value of the 'flowId' field. - * Unique Identifier of the data flow */ - public java.lang.String getFlowId() { - return flowId; - } - - /** - * Sets the value of the 'flowId' field. - * Unique Identifier of the data flow * @param value the value to set. - */ - public void setFlowId(java.lang.String value) { - this.flowId = value; - } - - /** - * Gets the value of the 'cluster' field. - * Cluster where the flow is executed */ - public java.lang.String getCluster() { - return cluster; - } - - /** - * Sets the value of the 'cluster' field. - * Cluster where the flow is executed * @param value the value to set. - */ - public void setCluster(java.lang.String value) { - this.cluster = value; - } - - /** Creates a new DataFlowKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder(); - } - - /** Creates a new DataFlowKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder(other); - } - - /** Creates a new DataFlowKey RecordBuilder by copying an existing DataFlowKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataFlowKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder(other); - } - - /** - * RecordBuilder for DataFlowKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String orchestrator; - private java.lang.String flowId; - private java.lang.String cluster; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataFlowKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.orchestrator)) { - this.orchestrator = data().deepCopy(fields()[0].schema(), other.orchestrator); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.flowId)) { - this.flowId = data().deepCopy(fields()[1].schema(), other.flowId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.cluster)) { - this.cluster = data().deepCopy(fields()[2].schema(), other.cluster); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing DataFlowKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataFlowKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataFlowKey.SCHEMA$); - if (isValidValue(fields()[0], other.orchestrator)) { - this.orchestrator = data().deepCopy(fields()[0].schema(), other.orchestrator); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.flowId)) { - this.flowId = data().deepCopy(fields()[1].schema(), other.flowId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.cluster)) { - this.cluster = data().deepCopy(fields()[2].schema(), other.cluster); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'orchestrator' field */ - public java.lang.String getOrchestrator() { - return orchestrator; - } - - /** Sets the value of the 'orchestrator' field */ - public com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder setOrchestrator(java.lang.String value) { - validate(fields()[0], value); - this.orchestrator = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'orchestrator' field has been set */ - public boolean hasOrchestrator() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'orchestrator' field */ - public com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder clearOrchestrator() { - orchestrator = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'flowId' field */ - public java.lang.String getFlowId() { - return flowId; - } - - /** Sets the value of the 'flowId' field */ - public com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder setFlowId(java.lang.String value) { - validate(fields()[1], value); - this.flowId = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'flowId' field has been set */ - public boolean hasFlowId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'flowId' field */ - public com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder clearFlowId() { - flowId = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'cluster' field */ - public java.lang.String getCluster() { - return cluster; - } - - /** Sets the value of the 'cluster' field */ - public com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder setCluster(java.lang.String value) { - validate(fields()[2], value); - this.cluster = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'cluster' field has been set */ - public boolean hasCluster() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'cluster' field */ - public com.linkedin.pegasus2avro.metadata.key.DataFlowKey.Builder clearCluster() { - cluster = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public DataFlowKey build() { - try { - DataFlowKey record = new DataFlowKey(); - record.orchestrator = fieldSetFlags()[0] ? this.orchestrator : (java.lang.String) defaultValue(fields()[0]); - record.flowId = fieldSetFlags()[1] ? this.flowId : (java.lang.String) defaultValue(fields()[1]); - record.cluster = fieldSetFlags()[2] ? this.cluster : (java.lang.String) 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/metadata/key/DataHubAccessTokenKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubAccessTokenKey.java deleted file mode 100644 index a315e4422e5ab..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubAccessTokenKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a DataHub Access Token */ -@org.apache.avro.specific.AvroGenerated -public class DataHubAccessTokenKey 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\":\"DataHubAccessTokenKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Access Token\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Access token's SHA-256 hashed JWT signature\"}],\"Aspect\":{\"name\":\"dataHubAccessTokenKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Access token's SHA-256 hashed JWT signature */ - @Deprecated public java.lang.String id; - - /** - * 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 DataHubAccessTokenKey() {} - - /** - * All-args constructor. - */ - public DataHubAccessTokenKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * Access token's SHA-256 hashed JWT signature */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * Access token's SHA-256 hashed JWT signature * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new DataHubAccessTokenKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey.Builder(); - } - - /** Creates a new DataHubAccessTokenKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey.Builder(other); - } - - /** Creates a new DataHubAccessTokenKey RecordBuilder by copying an existing DataHubAccessTokenKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey.Builder(other); - } - - /** - * RecordBuilder for DataHubAccessTokenKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataHubAccessTokenKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubAccessTokenKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataHubAccessTokenKey build() { - try { - DataHubAccessTokenKey record = new DataHubAccessTokenKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/DataHubIngestionSourceKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubIngestionSourceKey.java deleted file mode 100644 index bbc64dfbbb04b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubIngestionSourceKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a DataHub ingestion source */ -@org.apache.avro.specific.AvroGenerated -public class DataHubIngestionSourceKey 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\":\"DataHubIngestionSourceKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub ingestion source\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the Ingestion Source, either generated or provided\"}],\"Aspect\":{\"name\":\"dataHubIngestionSourceKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A unique id for the Ingestion Source, either generated or provided */ - @Deprecated public java.lang.String id; - - /** - * 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 DataHubIngestionSourceKey() {} - - /** - * All-args constructor. - */ - public DataHubIngestionSourceKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * A unique id for the Ingestion Source, either generated or provided */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * A unique id for the Ingestion Source, either generated or provided * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new DataHubIngestionSourceKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey.Builder(); - } - - /** Creates a new DataHubIngestionSourceKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey.Builder(other); - } - - /** Creates a new DataHubIngestionSourceKey RecordBuilder by copying an existing DataHubIngestionSourceKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey.Builder(other); - } - - /** - * RecordBuilder for DataHubIngestionSourceKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataHubIngestionSourceKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubIngestionSourceKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataHubIngestionSourceKey build() { - try { - DataHubIngestionSourceKey record = new DataHubIngestionSourceKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/DataHubPolicyKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubPolicyKey.java deleted file mode 100644 index 036014fe45d71..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubPolicyKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a DataHub Policy */ -@org.apache.avro.specific.AvroGenerated -public class DataHubPolicyKey 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\":\"DataHubPolicyKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Policy\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the DataHub access policy record. Generated on the server side at policy creation time.\"}],\"Aspect\":{\"name\":\"dataHubPolicyKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A unique id for the DataHub access policy record. Generated on the server side at policy creation time. */ - @Deprecated public java.lang.String id; - - /** - * 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 DataHubPolicyKey() {} - - /** - * All-args constructor. - */ - public DataHubPolicyKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * A unique id for the DataHub access policy record. Generated on the server side at policy creation time. */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * A unique id for the DataHub access policy record. Generated on the server side at policy creation time. * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new DataHubPolicyKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey.Builder(); - } - - /** Creates a new DataHubPolicyKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey.Builder(other); - } - - /** Creates a new DataHubPolicyKey RecordBuilder by copying an existing DataHubPolicyKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey.Builder(other); - } - - /** - * RecordBuilder for DataHubPolicyKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataHubPolicyKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubPolicyKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataHubPolicyKey build() { - try { - DataHubPolicyKey record = new DataHubPolicyKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/DataHubRetentionKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubRetentionKey.java deleted file mode 100644 index cc7099293cc74..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubRetentionKey.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a DataHub Retention */ -@org.apache.avro.specific.AvroGenerated -public class DataHubRetentionKey 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\":\"DataHubRetentionKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Retention\",\"fields\":[{\"name\":\"entityName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Entity name to apply retention to. * (or empty) for applying defaults.\"},{\"name\":\"aspectName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Aspect name to apply retention to. * (or empty) for applying defaults.\"}],\"Aspect\":{\"name\":\"dataHubRetentionKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Entity name to apply retention to. * (or empty) for applying defaults. */ - @Deprecated public java.lang.String entityName; - /** Aspect name to apply retention to. * (or empty) for applying defaults. */ - @Deprecated public java.lang.String aspectName; - - /** - * 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 DataHubRetentionKey() {} - - /** - * All-args constructor. - */ - public DataHubRetentionKey(java.lang.String entityName, java.lang.String aspectName) { - this.entityName = entityName; - this.aspectName = aspectName; - } - - 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 entityName; - case 1: return aspectName; - 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: entityName = (java.lang.String)value$; break; - case 1: aspectName = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entityName' field. - * Entity name to apply retention to. * (or empty) for applying defaults. */ - public java.lang.String getEntityName() { - return entityName; - } - - /** - * Sets the value of the 'entityName' field. - * Entity name to apply retention to. * (or empty) for applying defaults. * @param value the value to set. - */ - public void setEntityName(java.lang.String value) { - this.entityName = value; - } - - /** - * Gets the value of the 'aspectName' field. - * Aspect name to apply retention to. * (or empty) for applying defaults. */ - public java.lang.String getAspectName() { - return aspectName; - } - - /** - * Sets the value of the 'aspectName' field. - * Aspect name to apply retention to. * (or empty) for applying defaults. * @param value the value to set. - */ - public void setAspectName(java.lang.String value) { - this.aspectName = value; - } - - /** Creates a new DataHubRetentionKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.Builder(); - } - - /** Creates a new DataHubRetentionKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.Builder(other); - } - - /** Creates a new DataHubRetentionKey RecordBuilder by copying an existing DataHubRetentionKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.Builder(other); - } - - /** - * RecordBuilder for DataHubRetentionKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String entityName; - private java.lang.String aspectName; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entityName)) { - this.entityName = data().deepCopy(fields()[0].schema(), other.entityName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspectName)) { - this.aspectName = data().deepCopy(fields()[1].schema(), other.aspectName); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataHubRetentionKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.SCHEMA$); - if (isValidValue(fields()[0], other.entityName)) { - this.entityName = data().deepCopy(fields()[0].schema(), other.entityName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspectName)) { - this.aspectName = data().deepCopy(fields()[1].schema(), other.aspectName); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'entityName' field */ - public java.lang.String getEntityName() { - return entityName; - } - - /** Sets the value of the 'entityName' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.Builder setEntityName(java.lang.String value) { - validate(fields()[0], value); - this.entityName = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entityName' field has been set */ - public boolean hasEntityName() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entityName' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.Builder clearEntityName() { - entityName = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspectName' field */ - public java.lang.String getAspectName() { - return aspectName; - } - - /** Sets the value of the 'aspectName' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.Builder setAspectName(java.lang.String value) { - validate(fields()[1], value); - this.aspectName = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspectName' field has been set */ - public boolean hasAspectName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspectName' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubRetentionKey.Builder clearAspectName() { - aspectName = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataHubRetentionKey build() { - try { - DataHubRetentionKey record = new DataHubRetentionKey(); - record.entityName = fieldSetFlags()[0] ? this.entityName : (java.lang.String) defaultValue(fields()[0]); - record.aspectName = fieldSetFlags()[1] ? this.aspectName : (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/metadata/key/DataHubRoleKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubRoleKey.java deleted file mode 100644 index 08d4ff1fd355f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubRoleKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a DataHub Role */ -@org.apache.avro.specific.AvroGenerated -public class DataHubRoleKey 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\":\"DataHubRoleKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Role\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the DataHub role record. Generated on the server side at role creation time.\"}],\"Aspect\":{\"name\":\"dataHubRoleKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A unique id for the DataHub role record. Generated on the server side at role creation time. */ - @Deprecated public java.lang.String id; - - /** - * 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 DataHubRoleKey() {} - - /** - * All-args constructor. - */ - public DataHubRoleKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * A unique id for the DataHub role record. Generated on the server side at role creation time. */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * A unique id for the DataHub role record. Generated on the server side at role creation time. * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new DataHubRoleKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey.Builder(); - } - - /** Creates a new DataHubRoleKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey.Builder(other); - } - - /** Creates a new DataHubRoleKey RecordBuilder by copying an existing DataHubRoleKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey.Builder(other); - } - - /** - * RecordBuilder for DataHubRoleKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataHubRoleKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubRoleKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataHubRoleKey build() { - try { - DataHubRoleKey record = new DataHubRoleKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/DataHubSecretKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubSecretKey.java deleted file mode 100644 index f1f360fc0fcaa..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubSecretKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a DataHub Secret */ -@org.apache.avro.specific.AvroGenerated -public class DataHubSecretKey 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\":\"DataHubSecretKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Secret\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the Secret\"}],\"Aspect\":{\"name\":\"dataHubSecretKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A unique id for the Secret */ - @Deprecated public java.lang.String id; - - /** - * 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 DataHubSecretKey() {} - - /** - * All-args constructor. - */ - public DataHubSecretKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * A unique id for the Secret */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * A unique id for the Secret * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new DataHubSecretKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey.Builder(); - } - - /** Creates a new DataHubSecretKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey.Builder(other); - } - - /** Creates a new DataHubSecretKey RecordBuilder by copying an existing DataHubSecretKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey.Builder(other); - } - - /** - * RecordBuilder for DataHubSecretKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataHubSecretKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubSecretKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataHubSecretKey build() { - try { - DataHubSecretKey record = new DataHubSecretKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/DataHubStepStateKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubStepStateKey.java deleted file mode 100644 index 470f8aa701676..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubStepStateKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a DataHub Step State */ -@org.apache.avro.specific.AvroGenerated -public class DataHubStepStateKey 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\":\"DataHubStepStateKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Step State\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the state\"}],\"Aspect\":{\"name\":\"dataHubStepStateKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A unique id for the state */ - @Deprecated public java.lang.String id; - - /** - * 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 DataHubStepStateKey() {} - - /** - * All-args constructor. - */ - public DataHubStepStateKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * A unique id for the state */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * A unique id for the state * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new DataHubStepStateKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey.Builder(); - } - - /** Creates a new DataHubStepStateKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey.Builder(other); - } - - /** Creates a new DataHubStepStateKey RecordBuilder by copying an existing DataHubStepStateKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey.Builder(other); - } - - /** - * RecordBuilder for DataHubStepStateKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataHubStepStateKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubStepStateKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataHubStepStateKey build() { - try { - DataHubStepStateKey record = new DataHubStepStateKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/DataHubUpgradeKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubUpgradeKey.java deleted file mode 100644 index 6579f0ed69593..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubUpgradeKey.java +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a DataHubUpgrade */ -@org.apache.avro.specific.AvroGenerated -public class DataHubUpgradeKey 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\":\"DataHubUpgradeKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHubUpgrade\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"Aspect\":{\"name\":\"dataHubUpgradeKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.String id; - - /** - * 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 DataHubUpgradeKey() {} - - /** - * All-args constructor. - */ - public DataHubUpgradeKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new DataHubUpgradeKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey.Builder(); - } - - /** Creates a new DataHubUpgradeKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey.Builder(other); - } - - /** Creates a new DataHubUpgradeKey RecordBuilder by copying an existing DataHubUpgradeKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey.Builder(other); - } - - /** - * RecordBuilder for DataHubUpgradeKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataHubUpgradeKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubUpgradeKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataHubUpgradeKey build() { - try { - DataHubUpgradeKey record = new DataHubUpgradeKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/DataHubViewKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubViewKey.java deleted file mode 100644 index 2d05f708a2953..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataHubViewKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a DataHub View */ -@org.apache.avro.specific.AvroGenerated -public class DataHubViewKey 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\":\"DataHubViewKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub View\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the View\"}],\"Aspect\":{\"name\":\"dataHubViewKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A unique id for the View */ - @Deprecated public java.lang.String id; - - /** - * 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 DataHubViewKey() {} - - /** - * All-args constructor. - */ - public DataHubViewKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * A unique id for the View */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * A unique id for the View * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new DataHubViewKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubViewKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataHubViewKey.Builder(); - } - - /** Creates a new DataHubViewKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubViewKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubViewKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubViewKey.Builder(other); - } - - /** Creates a new DataHubViewKey RecordBuilder by copying an existing DataHubViewKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataHubViewKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataHubViewKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataHubViewKey.Builder(other); - } - - /** - * RecordBuilder for DataHubViewKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataHubViewKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubViewKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataHubViewKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataHubViewKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataHubViewKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubViewKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataHubViewKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataHubViewKey build() { - try { - DataHubViewKey record = new DataHubViewKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/DataJobKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataJobKey.java deleted file mode 100644 index eb3154faee3ca..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataJobKey.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Data Job */ -@org.apache.avro.specific.AvroGenerated -public class DataJobKey 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\":\"DataJobKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Job\",\"fields\":[{\"name\":\"flow\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized data processing flow urn representing the flow for the job\",\"Relationship\":{\"entityTypes\":[\"dataFlow\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"dataFlow\",\"fieldType\":\"URN_PARTIAL\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"jobId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data job\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataJobKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Standardized data processing flow urn representing the flow for the job */ - @Deprecated public java.lang.String flow; - /** Unique Identifier of the data job */ - @Deprecated public java.lang.String jobId; - - /** - * 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 DataJobKey() {} - - /** - * All-args constructor. - */ - public DataJobKey(java.lang.String flow, java.lang.String jobId) { - this.flow = flow; - this.jobId = jobId; - } - - 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 flow; - case 1: return jobId; - 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: flow = (java.lang.String)value$; break; - case 1: jobId = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'flow' field. - * Standardized data processing flow urn representing the flow for the job */ - public java.lang.String getFlow() { - return flow; - } - - /** - * Sets the value of the 'flow' field. - * Standardized data processing flow urn representing the flow for the job * @param value the value to set. - */ - public void setFlow(java.lang.String value) { - this.flow = value; - } - - /** - * Gets the value of the 'jobId' field. - * Unique Identifier of the data job */ - public java.lang.String getJobId() { - return jobId; - } - - /** - * Sets the value of the 'jobId' field. - * Unique Identifier of the data job * @param value the value to set. - */ - public void setJobId(java.lang.String value) { - this.jobId = value; - } - - /** Creates a new DataJobKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataJobKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataJobKey.Builder(); - } - - /** Creates a new DataJobKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataJobKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataJobKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataJobKey.Builder(other); - } - - /** Creates a new DataJobKey RecordBuilder by copying an existing DataJobKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataJobKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataJobKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataJobKey.Builder(other); - } - - /** - * RecordBuilder for DataJobKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String flow; - private java.lang.String jobId; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataJobKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataJobKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.flow)) { - this.flow = data().deepCopy(fields()[0].schema(), other.flow); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.jobId)) { - this.jobId = data().deepCopy(fields()[1].schema(), other.jobId); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataJobKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataJobKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataJobKey.SCHEMA$); - if (isValidValue(fields()[0], other.flow)) { - this.flow = data().deepCopy(fields()[0].schema(), other.flow); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.jobId)) { - this.jobId = data().deepCopy(fields()[1].schema(), other.jobId); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'flow' field */ - public java.lang.String getFlow() { - return flow; - } - - /** Sets the value of the 'flow' field */ - public com.linkedin.pegasus2avro.metadata.key.DataJobKey.Builder setFlow(java.lang.String value) { - validate(fields()[0], value); - this.flow = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'flow' field has been set */ - public boolean hasFlow() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'flow' field */ - public com.linkedin.pegasus2avro.metadata.key.DataJobKey.Builder clearFlow() { - flow = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'jobId' field */ - public java.lang.String getJobId() { - return jobId; - } - - /** Sets the value of the 'jobId' field */ - public com.linkedin.pegasus2avro.metadata.key.DataJobKey.Builder setJobId(java.lang.String value) { - validate(fields()[1], value); - this.jobId = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'jobId' field has been set */ - public boolean hasJobId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'jobId' field */ - public com.linkedin.pegasus2avro.metadata.key.DataJobKey.Builder clearJobId() { - jobId = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataJobKey build() { - try { - DataJobKey record = new DataJobKey(); - record.flow = fieldSetFlags()[0] ? this.flow : (java.lang.String) defaultValue(fields()[0]); - record.jobId = fieldSetFlags()[1] ? this.jobId : (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/metadata/key/DataPlatformInstanceKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataPlatformInstanceKey.java deleted file mode 100644 index 5b7d3d93c6ddc..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataPlatformInstanceKey.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Dataset */ -@org.apache.avro.specific.AvroGenerated -public class DataPlatformInstanceKey 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\":\"DataPlatformInstanceKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dataset\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the instance\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"instance\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique instance id\"}],\"Aspect\":{\"name\":\"dataPlatformInstanceKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Data platform urn associated with the instance */ - @Deprecated public java.lang.String platform; - /** Unique instance id */ - @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 DataPlatformInstanceKey() {} - - /** - * All-args constructor. - */ - public DataPlatformInstanceKey(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 urn associated with the instance */ - public java.lang.String getPlatform() { - return platform; - } - - /** - * Sets the value of the 'platform' field. - * Data platform urn associated with the instance * @param value the value to set. - */ - public void setPlatform(java.lang.String value) { - this.platform = value; - } - - /** - * Gets the value of the 'instance' field. - * Unique instance id */ - public java.lang.String getInstance() { - return instance; - } - - /** - * Sets the value of the 'instance' field. - * Unique instance id * @param value the value to set. - */ - public void setInstance(java.lang.String value) { - this.instance = value; - } - - /** Creates a new DataPlatformInstanceKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataPlatformInstanceKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataPlatformInstanceKey.Builder(); - } - - /** Creates a new DataPlatformInstanceKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataPlatformInstanceKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataPlatformInstanceKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataPlatformInstanceKey.Builder(other); - } - - /** Creates a new DataPlatformInstanceKey RecordBuilder by copying an existing DataPlatformInstanceKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataPlatformInstanceKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataPlatformInstanceKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataPlatformInstanceKey.Builder(other); - } - - /** - * RecordBuilder for DataPlatformInstanceKey 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.metadata.key.DataPlatformInstanceKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataPlatformInstanceKey.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 DataPlatformInstanceKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataPlatformInstanceKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataPlatformInstanceKey.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.metadata.key.DataPlatformInstanceKey.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.metadata.key.DataPlatformInstanceKey.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.metadata.key.DataPlatformInstanceKey.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.metadata.key.DataPlatformInstanceKey.Builder clearInstance() { - instance = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataPlatformInstanceKey build() { - try { - DataPlatformInstanceKey record = new DataPlatformInstanceKey(); - 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/metadata/key/DataPlatformKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataPlatformKey.java deleted file mode 100644 index ddc253bbfe12a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataPlatformKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Data Platform */ -@org.apache.avro.specific.AvroGenerated -public class DataPlatformKey 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\":\"DataPlatformKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Platform\",\"fields\":[{\"name\":\"platformName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform name i.e. hdfs, oracle, espresso\"}],\"Aspect\":{\"name\":\"dataPlatformKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Data platform name i.e. hdfs, oracle, espresso */ - @Deprecated public java.lang.String platformName; - - /** - * 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 DataPlatformKey() {} - - /** - * All-args constructor. - */ - public DataPlatformKey(java.lang.String platformName) { - this.platformName = platformName; - } - - 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 platformName; - 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: platformName = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'platformName' field. - * Data platform name i.e. hdfs, oracle, espresso */ - public java.lang.String getPlatformName() { - return platformName; - } - - /** - * Sets the value of the 'platformName' field. - * Data platform name i.e. hdfs, oracle, espresso * @param value the value to set. - */ - public void setPlatformName(java.lang.String value) { - this.platformName = value; - } - - /** Creates a new DataPlatformKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataPlatformKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataPlatformKey.Builder(); - } - - /** Creates a new DataPlatformKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataPlatformKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataPlatformKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataPlatformKey.Builder(other); - } - - /** Creates a new DataPlatformKey RecordBuilder by copying an existing DataPlatformKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataPlatformKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataPlatformKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataPlatformKey.Builder(other); - } - - /** - * RecordBuilder for DataPlatformKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String platformName; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataPlatformKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataPlatformKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.platformName)) { - this.platformName = data().deepCopy(fields()[0].schema(), other.platformName); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataPlatformKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataPlatformKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataPlatformKey.SCHEMA$); - if (isValidValue(fields()[0], other.platformName)) { - this.platformName = data().deepCopy(fields()[0].schema(), other.platformName); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'platformName' field */ - public java.lang.String getPlatformName() { - return platformName; - } - - /** Sets the value of the 'platformName' field */ - public com.linkedin.pegasus2avro.metadata.key.DataPlatformKey.Builder setPlatformName(java.lang.String value) { - validate(fields()[0], value); - this.platformName = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'platformName' field has been set */ - public boolean hasPlatformName() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'platformName' field */ - public com.linkedin.pegasus2avro.metadata.key.DataPlatformKey.Builder clearPlatformName() { - platformName = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataPlatformKey build() { - try { - DataPlatformKey record = new DataPlatformKey(); - record.platformName = fieldSetFlags()[0] ? this.platformName : (java.lang.String) 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/metadata/key/DataProcessInstanceKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataProcessInstanceKey.java deleted file mode 100644 index 242427a3d2dff..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataProcessInstanceKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for an Asset DataProcessInstance */ -@org.apache.avro.specific.AvroGenerated -public class DataProcessInstanceKey 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\":\"DataProcessInstanceKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an Asset DataProcessInstance\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the DataProcessInstance . Should be separate from the name used for displaying a DataProcessInstance.\"}],\"Aspect\":{\"name\":\"dataProcessInstanceKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A unique id for the DataProcessInstance . Should be separate from the name used for displaying a DataProcessInstance. */ - @Deprecated public java.lang.String id; - - /** - * 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 DataProcessInstanceKey() {} - - /** - * All-args constructor. - */ - public DataProcessInstanceKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * A unique id for the DataProcessInstance . Should be separate from the name used for displaying a DataProcessInstance. */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * A unique id for the DataProcessInstance . Should be separate from the name used for displaying a DataProcessInstance. * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new DataProcessInstanceKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey.Builder(); - } - - /** Creates a new DataProcessInstanceKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey.Builder(other); - } - - /** Creates a new DataProcessInstanceKey RecordBuilder by copying an existing DataProcessInstanceKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey.Builder(other); - } - - /** - * RecordBuilder for DataProcessInstanceKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataProcessInstanceKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DataProcessInstanceKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataProcessInstanceKey build() { - try { - DataProcessInstanceKey record = new DataProcessInstanceKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/DataProcessKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataProcessKey.java deleted file mode 100644 index 4bafc9ffc7906..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DataProcessKey.java +++ /dev/null @@ -1,257 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Data Process */ -@org.apache.avro.specific.AvroGenerated -public class DataProcessKey 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\":\"DataProcessKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Process\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Process name i.e. an ETL job name\",\"Searchable\":{\"boostScore\":4.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized Orchestrator where data process is defined.\\nTODO: Migrate towards something that can be validated like DataPlatform urn\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where dataset belongs to or where it was generated.\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"dataProcessKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Process name i.e. an ETL job name */ - @Deprecated public java.lang.String name; - /** Standardized Orchestrator where data process is defined. -TODO: Migrate towards something that can be validated like DataPlatform urn */ - @Deprecated public java.lang.String orchestrator; - /** Fabric type where dataset belongs to or where it was generated. */ - @Deprecated public com.linkedin.pegasus2avro.common.FabricType origin; - - /** - * 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 DataProcessKey() {} - - /** - * All-args constructor. - */ - public DataProcessKey(java.lang.String name, java.lang.String orchestrator, com.linkedin.pegasus2avro.common.FabricType origin) { - this.name = name; - this.orchestrator = orchestrator; - this.origin = origin; - } - - 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 orchestrator; - case 2: return origin; - 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: orchestrator = (java.lang.String)value$; break; - case 2: origin = (com.linkedin.pegasus2avro.common.FabricType)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Process name i.e. an ETL job name */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Process name i.e. an ETL job name * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'orchestrator' field. - * Standardized Orchestrator where data process is defined. -TODO: Migrate towards something that can be validated like DataPlatform urn */ - public java.lang.String getOrchestrator() { - return orchestrator; - } - - /** - * Sets the value of the 'orchestrator' field. - * Standardized Orchestrator where data process is defined. -TODO: Migrate towards something that can be validated like DataPlatform urn * @param value the value to set. - */ - public void setOrchestrator(java.lang.String value) { - this.orchestrator = value; - } - - /** - * Gets the value of the 'origin' field. - * Fabric type where dataset belongs to or where it was generated. */ - public com.linkedin.pegasus2avro.common.FabricType getOrigin() { - return origin; - } - - /** - * Sets the value of the 'origin' field. - * Fabric type where dataset belongs to or where it was generated. * @param value the value to set. - */ - public void setOrigin(com.linkedin.pegasus2avro.common.FabricType value) { - this.origin = value; - } - - /** Creates a new DataProcessKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DataProcessKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DataProcessKey.Builder(); - } - - /** Creates a new DataProcessKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DataProcessKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataProcessKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DataProcessKey.Builder(other); - } - - /** Creates a new DataProcessKey RecordBuilder by copying an existing DataProcessKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DataProcessKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DataProcessKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DataProcessKey.Builder(other); - } - - /** - * RecordBuilder for DataProcessKey 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 orchestrator; - private com.linkedin.pegasus2avro.common.FabricType origin; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DataProcessKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataProcessKey.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.orchestrator)) { - this.orchestrator = data().deepCopy(fields()[1].schema(), other.orchestrator); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.origin)) { - this.origin = data().deepCopy(fields()[2].schema(), other.origin); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing DataProcessKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DataProcessKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DataProcessKey.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.orchestrator)) { - this.orchestrator = data().deepCopy(fields()[1].schema(), other.orchestrator); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.origin)) { - this.origin = data().deepCopy(fields()[2].schema(), other.origin); - fieldSetFlags()[2] = 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.metadata.key.DataProcessKey.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.metadata.key.DataProcessKey.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'orchestrator' field */ - public java.lang.String getOrchestrator() { - return orchestrator; - } - - /** Sets the value of the 'orchestrator' field */ - public com.linkedin.pegasus2avro.metadata.key.DataProcessKey.Builder setOrchestrator(java.lang.String value) { - validate(fields()[1], value); - this.orchestrator = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'orchestrator' field has been set */ - public boolean hasOrchestrator() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'orchestrator' field */ - public com.linkedin.pegasus2avro.metadata.key.DataProcessKey.Builder clearOrchestrator() { - orchestrator = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'origin' field */ - public com.linkedin.pegasus2avro.common.FabricType getOrigin() { - return origin; - } - - /** Sets the value of the 'origin' field */ - public com.linkedin.pegasus2avro.metadata.key.DataProcessKey.Builder setOrigin(com.linkedin.pegasus2avro.common.FabricType value) { - validate(fields()[2], value); - this.origin = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'origin' field has been set */ - public boolean hasOrigin() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'origin' field */ - public com.linkedin.pegasus2avro.metadata.key.DataProcessKey.Builder clearOrigin() { - origin = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public DataProcessKey build() { - try { - DataProcessKey record = new DataProcessKey(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.orchestrator = fieldSetFlags()[1] ? this.orchestrator : (java.lang.String) defaultValue(fields()[1]); - record.origin = fieldSetFlags()[2] ? this.origin : (com.linkedin.pegasus2avro.common.FabricType) 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/metadata/key/DatasetKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DatasetKey.java deleted file mode 100644 index 4306a0e3c9277..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DatasetKey.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Dataset */ -@org.apache.avro.specific.AvroGenerated -public class DatasetKey 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\":\"DatasetKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dataset\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the dataset\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique guid for dataset\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where dataset belongs to or where it was generated.\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"datasetKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Data platform urn associated with the dataset */ - @Deprecated public java.lang.String platform; - /** Unique guid for dataset */ - @Deprecated public java.lang.String name; - /** Fabric type where dataset belongs to or where it was generated. */ - @Deprecated public com.linkedin.pegasus2avro.common.FabricType origin; - - /** - * 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 DatasetKey() {} - - /** - * All-args constructor. - */ - public DatasetKey(java.lang.String platform, java.lang.String name, com.linkedin.pegasus2avro.common.FabricType origin) { - this.platform = platform; - this.name = name; - this.origin = origin; - } - - 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 name; - case 2: return origin; - 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: name = (java.lang.String)value$; break; - case 2: origin = (com.linkedin.pegasus2avro.common.FabricType)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'platform' field. - * Data platform urn associated with the dataset */ - public java.lang.String getPlatform() { - return platform; - } - - /** - * Sets the value of the 'platform' field. - * Data platform urn associated with the dataset * @param value the value to set. - */ - public void setPlatform(java.lang.String value) { - this.platform = value; - } - - /** - * Gets the value of the 'name' field. - * Unique guid for dataset */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Unique guid for dataset * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'origin' field. - * Fabric type where dataset belongs to or where it was generated. */ - public com.linkedin.pegasus2avro.common.FabricType getOrigin() { - return origin; - } - - /** - * Sets the value of the 'origin' field. - * Fabric type where dataset belongs to or where it was generated. * @param value the value to set. - */ - public void setOrigin(com.linkedin.pegasus2avro.common.FabricType value) { - this.origin = value; - } - - /** Creates a new DatasetKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DatasetKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DatasetKey.Builder(); - } - - /** Creates a new DatasetKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DatasetKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DatasetKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DatasetKey.Builder(other); - } - - /** Creates a new DatasetKey RecordBuilder by copying an existing DatasetKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DatasetKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DatasetKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DatasetKey.Builder(other); - } - - /** - * RecordBuilder for DatasetKey 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 name; - private com.linkedin.pegasus2avro.common.FabricType origin; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DatasetKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DatasetKey.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.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.origin)) { - this.origin = data().deepCopy(fields()[2].schema(), other.origin); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing DatasetKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DatasetKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DatasetKey.SCHEMA$); - if (isValidValue(fields()[0], other.platform)) { - this.platform = data().deepCopy(fields()[0].schema(), other.platform); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.origin)) { - this.origin = data().deepCopy(fields()[2].schema(), other.origin); - fieldSetFlags()[2] = 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.metadata.key.DatasetKey.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.metadata.key.DatasetKey.Builder clearPlatform() { - platform = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.metadata.key.DatasetKey.Builder setName(java.lang.String value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.metadata.key.DatasetKey.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'origin' field */ - public com.linkedin.pegasus2avro.common.FabricType getOrigin() { - return origin; - } - - /** Sets the value of the 'origin' field */ - public com.linkedin.pegasus2avro.metadata.key.DatasetKey.Builder setOrigin(com.linkedin.pegasus2avro.common.FabricType value) { - validate(fields()[2], value); - this.origin = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'origin' field has been set */ - public boolean hasOrigin() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'origin' field */ - public com.linkedin.pegasus2avro.metadata.key.DatasetKey.Builder clearOrigin() { - origin = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public DatasetKey build() { - try { - DatasetKey record = new DatasetKey(); - record.platform = fieldSetFlags()[0] ? this.platform : (java.lang.String) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (java.lang.String) defaultValue(fields()[1]); - record.origin = fieldSetFlags()[2] ? this.origin : (com.linkedin.pegasus2avro.common.FabricType) 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/metadata/key/DomainKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DomainKey.java deleted file mode 100644 index 99f68a0870258..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/DomainKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for an Asset Domain */ -@org.apache.avro.specific.AvroGenerated -public class DomainKey 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\":\"DomainKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an Asset Domain\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the domain. Should be separate from the name used for displaying a Domain.\"}],\"Aspect\":{\"name\":\"domainKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A unique id for the domain. Should be separate from the name used for displaying a Domain. */ - @Deprecated public java.lang.String id; - - /** - * 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 DomainKey() {} - - /** - * All-args constructor. - */ - public DomainKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * A unique id for the domain. Should be separate from the name used for displaying a Domain. */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * A unique id for the domain. Should be separate from the name used for displaying a Domain. * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new DomainKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.DomainKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.DomainKey.Builder(); - } - - /** Creates a new DomainKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.DomainKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DomainKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.DomainKey.Builder(other); - } - - /** Creates a new DomainKey RecordBuilder by copying an existing DomainKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.DomainKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.DomainKey other) { - return new com.linkedin.pegasus2avro.metadata.key.DomainKey.Builder(other); - } - - /** - * RecordBuilder for DomainKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.DomainKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DomainKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DomainKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.DomainKey other) { - super(com.linkedin.pegasus2avro.metadata.key.DomainKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DomainKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.DomainKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DomainKey build() { - try { - DomainKey record = new DomainKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/ExecutionRequestKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/ExecutionRequestKey.java deleted file mode 100644 index e25049636f5a1..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/ExecutionRequestKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for an DataHub Execution Request */ -@org.apache.avro.specific.AvroGenerated -public class ExecutionRequestKey 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\":\"ExecutionRequestKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an DataHub Execution Request\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the DataHub execution request.\"}],\"Aspect\":{\"name\":\"dataHubExecutionRequestKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A unique id for the DataHub execution request. */ - @Deprecated public java.lang.String id; - - /** - * 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 ExecutionRequestKey() {} - - /** - * All-args constructor. - */ - public ExecutionRequestKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * A unique id for the DataHub execution request. */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * A unique id for the DataHub execution request. * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new ExecutionRequestKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey.Builder(); - } - - /** Creates a new ExecutionRequestKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey.Builder(other); - } - - /** Creates a new ExecutionRequestKey RecordBuilder by copying an existing ExecutionRequestKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey other) { - return new com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey.Builder(other); - } - - /** - * RecordBuilder for ExecutionRequestKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing ExecutionRequestKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey other) { - super(com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.ExecutionRequestKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public ExecutionRequestKey build() { - try { - ExecutionRequestKey record = new ExecutionRequestKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/GlobalSettingsKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/GlobalSettingsKey.java deleted file mode 100644 index bfcc8e64b2ab9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/GlobalSettingsKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Global Settings */ -@org.apache.avro.specific.AvroGenerated -public class GlobalSettingsKey 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\":\"GlobalSettingsKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Global Settings\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Id for the settings. There should be only 1 global settings urn: urn:li:globalSettings:0\"}],\"Aspect\":{\"name\":\"globalSettingsKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Id for the settings. There should be only 1 global settings urn: urn:li:globalSettings:0 */ - @Deprecated public java.lang.String id; - - /** - * 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 GlobalSettingsKey() {} - - /** - * All-args constructor. - */ - public GlobalSettingsKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * Id for the settings. There should be only 1 global settings urn: urn:li:globalSettings:0 */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * Id for the settings. There should be only 1 global settings urn: urn:li:globalSettings:0 * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new GlobalSettingsKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey.Builder(); - } - - /** Creates a new GlobalSettingsKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey.Builder(other); - } - - /** Creates a new GlobalSettingsKey RecordBuilder by copying an existing GlobalSettingsKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey other) { - return new com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey.Builder(other); - } - - /** - * RecordBuilder for GlobalSettingsKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing GlobalSettingsKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey other) { - super(com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.GlobalSettingsKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public GlobalSettingsKey build() { - try { - GlobalSettingsKey record = new GlobalSettingsKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/GlossaryNodeKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/GlossaryNodeKey.java deleted file mode 100644 index 0ad9e335a1544..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/GlossaryNodeKey.java +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a GlossaryNode */ -@org.apache.avro.specific.AvroGenerated -public class GlossaryNodeKey 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\":\"GlossaryNodeKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryNode\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.String name; - - /** - * 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 GlossaryNodeKey() {} - - /** - * All-args constructor. - */ - public GlossaryNodeKey(java.lang.String name) { - this.name = name; - } - - 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; - 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; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** Creates a new GlossaryNodeKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.GlossaryNodeKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.GlossaryNodeKey.Builder(); - } - - /** Creates a new GlossaryNodeKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.GlossaryNodeKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.GlossaryNodeKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.GlossaryNodeKey.Builder(other); - } - - /** Creates a new GlossaryNodeKey RecordBuilder by copying an existing GlossaryNodeKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.GlossaryNodeKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.GlossaryNodeKey other) { - return new com.linkedin.pegasus2avro.metadata.key.GlossaryNodeKey.Builder(other); - } - - /** - * RecordBuilder for GlossaryNodeKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String name; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.GlossaryNodeKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.GlossaryNodeKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing GlossaryNodeKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.GlossaryNodeKey other) { - super(com.linkedin.pegasus2avro.metadata.key.GlossaryNodeKey.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = 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.metadata.key.GlossaryNodeKey.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.metadata.key.GlossaryNodeKey.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public GlossaryNodeKey build() { - try { - GlossaryNodeKey record = new GlossaryNodeKey(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) 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/metadata/key/GlossaryTermKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/GlossaryTermKey.java deleted file mode 100644 index 69f28c41b5cbe..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/GlossaryTermKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a GlossaryTerm */ -@org.apache.avro.specific.AvroGenerated -public class GlossaryTermKey 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\":\"GlossaryTermKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryTerm\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The term name, which serves as a unique id\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryTermKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The term name, which serves as a unique id */ - @Deprecated public java.lang.String name; - - /** - * 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 GlossaryTermKey() {} - - /** - * All-args constructor. - */ - public GlossaryTermKey(java.lang.String name) { - this.name = name; - } - - 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; - 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; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * The term name, which serves as a unique id */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * The term name, which serves as a unique id * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** Creates a new GlossaryTermKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.GlossaryTermKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.GlossaryTermKey.Builder(); - } - - /** Creates a new GlossaryTermKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.GlossaryTermKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.GlossaryTermKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.GlossaryTermKey.Builder(other); - } - - /** Creates a new GlossaryTermKey RecordBuilder by copying an existing GlossaryTermKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.GlossaryTermKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.GlossaryTermKey other) { - return new com.linkedin.pegasus2avro.metadata.key.GlossaryTermKey.Builder(other); - } - - /** - * RecordBuilder for GlossaryTermKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String name; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.GlossaryTermKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.GlossaryTermKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing GlossaryTermKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.GlossaryTermKey other) { - super(com.linkedin.pegasus2avro.metadata.key.GlossaryTermKey.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = 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.metadata.key.GlossaryTermKey.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.metadata.key.GlossaryTermKey.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public GlossaryTermKey build() { - try { - GlossaryTermKey record = new GlossaryTermKey(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) 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/metadata/key/InviteTokenKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/InviteTokenKey.java deleted file mode 100644 index f2f222506a7f7..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/InviteTokenKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for an InviteToken. */ -@org.apache.avro.specific.AvroGenerated -public class InviteTokenKey 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\":\"InviteTokenKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an InviteToken.\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the invite token.\"}],\"Aspect\":{\"name\":\"inviteTokenKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A unique id for the invite token. */ - @Deprecated public java.lang.String id; - - /** - * 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 InviteTokenKey() {} - - /** - * All-args constructor. - */ - public InviteTokenKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * A unique id for the invite token. */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * A unique id for the invite token. * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new InviteTokenKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.InviteTokenKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.InviteTokenKey.Builder(); - } - - /** Creates a new InviteTokenKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.InviteTokenKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.InviteTokenKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.InviteTokenKey.Builder(other); - } - - /** Creates a new InviteTokenKey RecordBuilder by copying an existing InviteTokenKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.InviteTokenKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.InviteTokenKey other) { - return new com.linkedin.pegasus2avro.metadata.key.InviteTokenKey.Builder(other); - } - - /** - * RecordBuilder for InviteTokenKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.InviteTokenKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.InviteTokenKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing InviteTokenKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.InviteTokenKey other) { - super(com.linkedin.pegasus2avro.metadata.key.InviteTokenKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.InviteTokenKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.InviteTokenKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public InviteTokenKey build() { - try { - InviteTokenKey record = new InviteTokenKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/MLFeatureKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/MLFeatureKey.java deleted file mode 100644 index c37e06bb6f364..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/MLFeatureKey.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for an MLFeature */ -@org.apache.avro.specific.AvroGenerated -public class MLFeatureKey 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\":\"MLFeatureKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeature\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the feature\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Namespace for the feature */ - @Deprecated public java.lang.String featureNamespace; - /** Name of the feature */ - @Deprecated public java.lang.String name; - - /** - * 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 MLFeatureKey() {} - - /** - * All-args constructor. - */ - public MLFeatureKey(java.lang.String featureNamespace, java.lang.String name) { - this.featureNamespace = featureNamespace; - this.name = name; - } - - 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 featureNamespace; - case 1: return name; - 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: featureNamespace = (java.lang.String)value$; break; - case 1: name = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'featureNamespace' field. - * Namespace for the feature */ - public java.lang.String getFeatureNamespace() { - return featureNamespace; - } - - /** - * Sets the value of the 'featureNamespace' field. - * Namespace for the feature * @param value the value to set. - */ - public void setFeatureNamespace(java.lang.String value) { - this.featureNamespace = value; - } - - /** - * Gets the value of the 'name' field. - * Name of the feature */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the feature * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** Creates a new MLFeatureKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.Builder(); - } - - /** Creates a new MLFeatureKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.Builder(other); - } - - /** Creates a new MLFeatureKey RecordBuilder by copying an existing MLFeatureKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.MLFeatureKey other) { - return new com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.Builder(other); - } - - /** - * RecordBuilder for MLFeatureKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String featureNamespace; - private java.lang.String name; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.featureNamespace)) { - this.featureNamespace = data().deepCopy(fields()[0].schema(), other.featureNamespace); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing MLFeatureKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.MLFeatureKey other) { - super(com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.SCHEMA$); - if (isValidValue(fields()[0], other.featureNamespace)) { - this.featureNamespace = data().deepCopy(fields()[0].schema(), other.featureNamespace); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'featureNamespace' field */ - public java.lang.String getFeatureNamespace() { - return featureNamespace; - } - - /** Sets the value of the 'featureNamespace' field */ - public com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.Builder setFeatureNamespace(java.lang.String value) { - validate(fields()[0], value); - this.featureNamespace = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'featureNamespace' field has been set */ - public boolean hasFeatureNamespace() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'featureNamespace' field */ - public com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.Builder clearFeatureNamespace() { - featureNamespace = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.metadata.key.MLFeatureKey.Builder setName(java.lang.String value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.metadata.key.MLFeatureKey.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public MLFeatureKey build() { - try { - MLFeatureKey record = new MLFeatureKey(); - record.featureNamespace = fieldSetFlags()[0] ? this.featureNamespace : (java.lang.String) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (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/metadata/key/MLFeatureTableKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/MLFeatureTableKey.java deleted file mode 100644 index cf6dbcfecaada..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/MLFeatureTableKey.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for an MLFeatureTable */ -@org.apache.avro.specific.AvroGenerated -public class MLFeatureTableKey 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\":\"MLFeatureTableKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeatureTable\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the feature table\",\"Relationship\":{\"entityTypes\":[\"dataPlatform\"],\"name\":\"SourcePlatform\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature table\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureTableKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Data platform urn associated with the feature table */ - @Deprecated public java.lang.String platform; - /** Name of the feature table */ - @Deprecated public java.lang.String name; - - /** - * 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 MLFeatureTableKey() {} - - /** - * All-args constructor. - */ - public MLFeatureTableKey(java.lang.String platform, java.lang.String name) { - this.platform = platform; - this.name = name; - } - - 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 name; - 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: name = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'platform' field. - * Data platform urn associated with the feature table */ - public java.lang.String getPlatform() { - return platform; - } - - /** - * Sets the value of the 'platform' field. - * Data platform urn associated with the feature table * @param value the value to set. - */ - public void setPlatform(java.lang.String value) { - this.platform = value; - } - - /** - * Gets the value of the 'name' field. - * Name of the feature table */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the feature table * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** Creates a new MLFeatureTableKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey.Builder(); - } - - /** Creates a new MLFeatureTableKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey.Builder(other); - } - - /** Creates a new MLFeatureTableKey RecordBuilder by copying an existing MLFeatureTableKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey other) { - return new com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey.Builder(other); - } - - /** - * RecordBuilder for MLFeatureTableKey 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 name; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey.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.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing MLFeatureTableKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey other) { - super(com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey.SCHEMA$); - if (isValidValue(fields()[0], other.platform)) { - this.platform = data().deepCopy(fields()[0].schema(), other.platform); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - 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.metadata.key.MLFeatureTableKey.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.metadata.key.MLFeatureTableKey.Builder clearPlatform() { - platform = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.metadata.key.MLFeatureTableKey.Builder setName(java.lang.String value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.metadata.key.MLFeatureTableKey.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public MLFeatureTableKey build() { - try { - MLFeatureTableKey record = new MLFeatureTableKey(); - record.platform = fieldSetFlags()[0] ? this.platform : (java.lang.String) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (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/metadata/key/MLModelDeploymentKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/MLModelDeploymentKey.java deleted file mode 100644 index 7588472800fc8..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/MLModelDeploymentKey.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for an ML model deployment */ -@org.apache.avro.specific.AvroGenerated -public class MLModelDeploymentKey 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\":\"MLModelDeploymentKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model deployment\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model Deployment\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModelDeployment\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where model Deployment belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelDeploymentKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Standardized platform urn for the model Deployment */ - @Deprecated public java.lang.String platform; - /** Name of the MLModelDeployment */ - @Deprecated public java.lang.String name; - /** Fabric type where model Deployment belongs to or where it was generated */ - @Deprecated public com.linkedin.pegasus2avro.common.FabricType origin; - - /** - * 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 MLModelDeploymentKey() {} - - /** - * All-args constructor. - */ - public MLModelDeploymentKey(java.lang.String platform, java.lang.String name, com.linkedin.pegasus2avro.common.FabricType origin) { - this.platform = platform; - this.name = name; - this.origin = origin; - } - - 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 name; - case 2: return origin; - 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: name = (java.lang.String)value$; break; - case 2: origin = (com.linkedin.pegasus2avro.common.FabricType)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'platform' field. - * Standardized platform urn for the model Deployment */ - public java.lang.String getPlatform() { - return platform; - } - - /** - * Sets the value of the 'platform' field. - * Standardized platform urn for the model Deployment * @param value the value to set. - */ - public void setPlatform(java.lang.String value) { - this.platform = value; - } - - /** - * Gets the value of the 'name' field. - * Name of the MLModelDeployment */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the MLModelDeployment * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'origin' field. - * Fabric type where model Deployment belongs to or where it was generated */ - public com.linkedin.pegasus2avro.common.FabricType getOrigin() { - return origin; - } - - /** - * Sets the value of the 'origin' field. - * Fabric type where model Deployment belongs to or where it was generated * @param value the value to set. - */ - public void setOrigin(com.linkedin.pegasus2avro.common.FabricType value) { - this.origin = value; - } - - /** Creates a new MLModelDeploymentKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.Builder(); - } - - /** Creates a new MLModelDeploymentKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.Builder(other); - } - - /** Creates a new MLModelDeploymentKey RecordBuilder by copying an existing MLModelDeploymentKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey other) { - return new com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.Builder(other); - } - - /** - * RecordBuilder for MLModelDeploymentKey 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 name; - private com.linkedin.pegasus2avro.common.FabricType origin; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.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.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.origin)) { - this.origin = data().deepCopy(fields()[2].schema(), other.origin); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing MLModelDeploymentKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey other) { - super(com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.SCHEMA$); - if (isValidValue(fields()[0], other.platform)) { - this.platform = data().deepCopy(fields()[0].schema(), other.platform); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.origin)) { - this.origin = data().deepCopy(fields()[2].schema(), other.origin); - fieldSetFlags()[2] = 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.metadata.key.MLModelDeploymentKey.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.metadata.key.MLModelDeploymentKey.Builder clearPlatform() { - platform = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.metadata.key.MLModelDeploymentKey.Builder setName(java.lang.String value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'origin' field */ - public com.linkedin.pegasus2avro.common.FabricType getOrigin() { - return origin; - } - - /** Sets the value of the 'origin' field */ - public com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.Builder setOrigin(com.linkedin.pegasus2avro.common.FabricType value) { - validate(fields()[2], value); - this.origin = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'origin' field has been set */ - public boolean hasOrigin() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'origin' field */ - public com.linkedin.pegasus2avro.metadata.key.MLModelDeploymentKey.Builder clearOrigin() { - origin = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public MLModelDeploymentKey build() { - try { - MLModelDeploymentKey record = new MLModelDeploymentKey(); - record.platform = fieldSetFlags()[0] ? this.platform : (java.lang.String) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (java.lang.String) defaultValue(fields()[1]); - record.origin = fieldSetFlags()[2] ? this.origin : (com.linkedin.pegasus2avro.common.FabricType) 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/metadata/key/MLModelGroupKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/MLModelGroupKey.java deleted file mode 100644 index 7d6744d697f06..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/MLModelGroupKey.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for an ML model group */ -@org.apache.avro.specific.AvroGenerated -public class MLModelGroupKey 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\":\"MLModelGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model group\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model group\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModelGroup\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where model group belongs to or where it was generated\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelGroupKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Standardized platform urn for the model group */ - @Deprecated public java.lang.String platform; - /** Name of the MLModelGroup */ - @Deprecated public java.lang.String name; - /** Fabric type where model group belongs to or where it was generated */ - @Deprecated public com.linkedin.pegasus2avro.common.FabricType origin; - - /** - * 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 MLModelGroupKey() {} - - /** - * All-args constructor. - */ - public MLModelGroupKey(java.lang.String platform, java.lang.String name, com.linkedin.pegasus2avro.common.FabricType origin) { - this.platform = platform; - this.name = name; - this.origin = origin; - } - - 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 name; - case 2: return origin; - 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: name = (java.lang.String)value$; break; - case 2: origin = (com.linkedin.pegasus2avro.common.FabricType)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'platform' field. - * Standardized platform urn for the model group */ - public java.lang.String getPlatform() { - return platform; - } - - /** - * Sets the value of the 'platform' field. - * Standardized platform urn for the model group * @param value the value to set. - */ - public void setPlatform(java.lang.String value) { - this.platform = value; - } - - /** - * Gets the value of the 'name' field. - * Name of the MLModelGroup */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the MLModelGroup * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'origin' field. - * Fabric type where model group belongs to or where it was generated */ - public com.linkedin.pegasus2avro.common.FabricType getOrigin() { - return origin; - } - - /** - * Sets the value of the 'origin' field. - * Fabric type where model group belongs to or where it was generated * @param value the value to set. - */ - public void setOrigin(com.linkedin.pegasus2avro.common.FabricType value) { - this.origin = value; - } - - /** Creates a new MLModelGroupKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.Builder(); - } - - /** Creates a new MLModelGroupKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.Builder(other); - } - - /** Creates a new MLModelGroupKey RecordBuilder by copying an existing MLModelGroupKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey other) { - return new com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.Builder(other); - } - - /** - * RecordBuilder for MLModelGroupKey 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 name; - private com.linkedin.pegasus2avro.common.FabricType origin; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.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.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.origin)) { - this.origin = data().deepCopy(fields()[2].schema(), other.origin); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing MLModelGroupKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey other) { - super(com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.SCHEMA$); - if (isValidValue(fields()[0], other.platform)) { - this.platform = data().deepCopy(fields()[0].schema(), other.platform); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.origin)) { - this.origin = data().deepCopy(fields()[2].schema(), other.origin); - fieldSetFlags()[2] = 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.metadata.key.MLModelGroupKey.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.metadata.key.MLModelGroupKey.Builder clearPlatform() { - platform = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.metadata.key.MLModelGroupKey.Builder setName(java.lang.String value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'origin' field */ - public com.linkedin.pegasus2avro.common.FabricType getOrigin() { - return origin; - } - - /** Sets the value of the 'origin' field */ - public com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.Builder setOrigin(com.linkedin.pegasus2avro.common.FabricType value) { - validate(fields()[2], value); - this.origin = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'origin' field has been set */ - public boolean hasOrigin() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'origin' field */ - public com.linkedin.pegasus2avro.metadata.key.MLModelGroupKey.Builder clearOrigin() { - origin = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public MLModelGroupKey build() { - try { - MLModelGroupKey record = new MLModelGroupKey(); - record.platform = fieldSetFlags()[0] ? this.platform : (java.lang.String) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (java.lang.String) defaultValue(fields()[1]); - record.origin = fieldSetFlags()[2] ? this.origin : (com.linkedin.pegasus2avro.common.FabricType) 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/metadata/key/MLModelKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/MLModelKey.java deleted file mode 100644 index ffb53b51d430c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/MLModelKey.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for an ML model */ -@org.apache.avro.specific.AvroGenerated -public class MLModelKey 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\":\"MLModelKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModel\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where model belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Standardized platform urn for the model */ - @Deprecated public java.lang.String platform; - /** Name of the MLModel */ - @Deprecated public java.lang.String name; - /** Fabric type where model belongs to or where it was generated */ - @Deprecated public com.linkedin.pegasus2avro.common.FabricType origin; - - /** - * 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 MLModelKey() {} - - /** - * All-args constructor. - */ - public MLModelKey(java.lang.String platform, java.lang.String name, com.linkedin.pegasus2avro.common.FabricType origin) { - this.platform = platform; - this.name = name; - this.origin = origin; - } - - 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 name; - case 2: return origin; - 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: name = (java.lang.String)value$; break; - case 2: origin = (com.linkedin.pegasus2avro.common.FabricType)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'platform' field. - * Standardized platform urn for the model */ - public java.lang.String getPlatform() { - return platform; - } - - /** - * Sets the value of the 'platform' field. - * Standardized platform urn for the model * @param value the value to set. - */ - public void setPlatform(java.lang.String value) { - this.platform = value; - } - - /** - * Gets the value of the 'name' field. - * Name of the MLModel */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the MLModel * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'origin' field. - * Fabric type where model belongs to or where it was generated */ - public com.linkedin.pegasus2avro.common.FabricType getOrigin() { - return origin; - } - - /** - * Sets the value of the 'origin' field. - * Fabric type where model belongs to or where it was generated * @param value the value to set. - */ - public void setOrigin(com.linkedin.pegasus2avro.common.FabricType value) { - this.origin = value; - } - - /** Creates a new MLModelKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.MLModelKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.MLModelKey.Builder(); - } - - /** Creates a new MLModelKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.MLModelKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.MLModelKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.MLModelKey.Builder(other); - } - - /** Creates a new MLModelKey RecordBuilder by copying an existing MLModelKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.MLModelKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.MLModelKey other) { - return new com.linkedin.pegasus2avro.metadata.key.MLModelKey.Builder(other); - } - - /** - * RecordBuilder for MLModelKey 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 name; - private com.linkedin.pegasus2avro.common.FabricType origin; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.MLModelKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.MLModelKey.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.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.origin)) { - this.origin = data().deepCopy(fields()[2].schema(), other.origin); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing MLModelKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.MLModelKey other) { - super(com.linkedin.pegasus2avro.metadata.key.MLModelKey.SCHEMA$); - if (isValidValue(fields()[0], other.platform)) { - this.platform = data().deepCopy(fields()[0].schema(), other.platform); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.origin)) { - this.origin = data().deepCopy(fields()[2].schema(), other.origin); - fieldSetFlags()[2] = 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.metadata.key.MLModelKey.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.metadata.key.MLModelKey.Builder clearPlatform() { - platform = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.metadata.key.MLModelKey.Builder setName(java.lang.String value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.metadata.key.MLModelKey.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'origin' field */ - public com.linkedin.pegasus2avro.common.FabricType getOrigin() { - return origin; - } - - /** Sets the value of the 'origin' field */ - public com.linkedin.pegasus2avro.metadata.key.MLModelKey.Builder setOrigin(com.linkedin.pegasus2avro.common.FabricType value) { - validate(fields()[2], value); - this.origin = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'origin' field has been set */ - public boolean hasOrigin() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'origin' field */ - public com.linkedin.pegasus2avro.metadata.key.MLModelKey.Builder clearOrigin() { - origin = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public MLModelKey build() { - try { - MLModelKey record = new MLModelKey(); - record.platform = fieldSetFlags()[0] ? this.platform : (java.lang.String) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (java.lang.String) defaultValue(fields()[1]); - record.origin = fieldSetFlags()[2] ? this.origin : (com.linkedin.pegasus2avro.common.FabricType) 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/metadata/key/MLPrimaryKeyKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/MLPrimaryKeyKey.java deleted file mode 100644 index 9326da0c2b4d6..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/MLPrimaryKeyKey.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for an MLPrimaryKey */ -@org.apache.avro.specific.AvroGenerated -public class MLPrimaryKeyKey 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\":\"MLPrimaryKeyKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLPrimaryKey\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the primary key\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the primary key\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlPrimaryKeyKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Namespace for the primary key */ - @Deprecated public java.lang.String featureNamespace; - /** Name of the primary key */ - @Deprecated public java.lang.String name; - - /** - * 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 MLPrimaryKeyKey() {} - - /** - * All-args constructor. - */ - public MLPrimaryKeyKey(java.lang.String featureNamespace, java.lang.String name) { - this.featureNamespace = featureNamespace; - this.name = name; - } - - 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 featureNamespace; - case 1: return name; - 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: featureNamespace = (java.lang.String)value$; break; - case 1: name = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'featureNamespace' field. - * Namespace for the primary key */ - public java.lang.String getFeatureNamespace() { - return featureNamespace; - } - - /** - * Sets the value of the 'featureNamespace' field. - * Namespace for the primary key * @param value the value to set. - */ - public void setFeatureNamespace(java.lang.String value) { - this.featureNamespace = value; - } - - /** - * Gets the value of the 'name' field. - * Name of the primary key */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the primary key * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** Creates a new MLPrimaryKeyKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.Builder(); - } - - /** Creates a new MLPrimaryKeyKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.Builder(other); - } - - /** Creates a new MLPrimaryKeyKey RecordBuilder by copying an existing MLPrimaryKeyKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey other) { - return new com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.Builder(other); - } - - /** - * RecordBuilder for MLPrimaryKeyKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String featureNamespace; - private java.lang.String name; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.featureNamespace)) { - this.featureNamespace = data().deepCopy(fields()[0].schema(), other.featureNamespace); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing MLPrimaryKeyKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey other) { - super(com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.SCHEMA$); - if (isValidValue(fields()[0], other.featureNamespace)) { - this.featureNamespace = data().deepCopy(fields()[0].schema(), other.featureNamespace); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'featureNamespace' field */ - public java.lang.String getFeatureNamespace() { - return featureNamespace; - } - - /** Sets the value of the 'featureNamespace' field */ - public com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.Builder setFeatureNamespace(java.lang.String value) { - validate(fields()[0], value); - this.featureNamespace = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'featureNamespace' field has been set */ - public boolean hasFeatureNamespace() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'featureNamespace' field */ - public com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.Builder clearFeatureNamespace() { - featureNamespace = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.metadata.key.MLPrimaryKeyKey.Builder setName(java.lang.String value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.metadata.key.MLPrimaryKeyKey.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public MLPrimaryKeyKey build() { - try { - MLPrimaryKeyKey record = new MLPrimaryKeyKey(); - record.featureNamespace = fieldSetFlags()[0] ? this.featureNamespace : (java.lang.String) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (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/metadata/key/NotebookKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/NotebookKey.java deleted file mode 100644 index 394d058dd3b90..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/NotebookKey.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Notebook */ -@org.apache.avro.specific.AvroGenerated -public class NotebookKey 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\":\"NotebookKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Notebook\",\"fields\":[{\"name\":\"notebookTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the Notebook tool such as QueryBook, etc.\"},{\"name\":\"notebookId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the Notebook. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773'\"}],\"Aspect\":{\"name\":\"notebookKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the Notebook tool such as QueryBook, etc. */ - @Deprecated public java.lang.String notebookTool; - /** Unique id for the Notebook. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773' */ - @Deprecated public java.lang.String notebookId; - - /** - * 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 NotebookKey() {} - - /** - * All-args constructor. - */ - public NotebookKey(java.lang.String notebookTool, java.lang.String notebookId) { - this.notebookTool = notebookTool; - this.notebookId = notebookId; - } - - 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 notebookTool; - case 1: return notebookId; - 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: notebookTool = (java.lang.String)value$; break; - case 1: notebookId = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'notebookTool' field. - * The name of the Notebook tool such as QueryBook, etc. */ - public java.lang.String getNotebookTool() { - return notebookTool; - } - - /** - * Sets the value of the 'notebookTool' field. - * The name of the Notebook tool such as QueryBook, etc. * @param value the value to set. - */ - public void setNotebookTool(java.lang.String value) { - this.notebookTool = value; - } - - /** - * Gets the value of the 'notebookId' field. - * Unique id for the Notebook. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773' */ - public java.lang.String getNotebookId() { - return notebookId; - } - - /** - * Sets the value of the 'notebookId' field. - * Unique id for the Notebook. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773' * @param value the value to set. - */ - public void setNotebookId(java.lang.String value) { - this.notebookId = value; - } - - /** Creates a new NotebookKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.NotebookKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.NotebookKey.Builder(); - } - - /** Creates a new NotebookKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.NotebookKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.NotebookKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.NotebookKey.Builder(other); - } - - /** Creates a new NotebookKey RecordBuilder by copying an existing NotebookKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.NotebookKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.NotebookKey other) { - return new com.linkedin.pegasus2avro.metadata.key.NotebookKey.Builder(other); - } - - /** - * RecordBuilder for NotebookKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String notebookTool; - private java.lang.String notebookId; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.NotebookKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.NotebookKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.notebookTool)) { - this.notebookTool = data().deepCopy(fields()[0].schema(), other.notebookTool); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.notebookId)) { - this.notebookId = data().deepCopy(fields()[1].schema(), other.notebookId); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing NotebookKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.NotebookKey other) { - super(com.linkedin.pegasus2avro.metadata.key.NotebookKey.SCHEMA$); - if (isValidValue(fields()[0], other.notebookTool)) { - this.notebookTool = data().deepCopy(fields()[0].schema(), other.notebookTool); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.notebookId)) { - this.notebookId = data().deepCopy(fields()[1].schema(), other.notebookId); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'notebookTool' field */ - public java.lang.String getNotebookTool() { - return notebookTool; - } - - /** Sets the value of the 'notebookTool' field */ - public com.linkedin.pegasus2avro.metadata.key.NotebookKey.Builder setNotebookTool(java.lang.String value) { - validate(fields()[0], value); - this.notebookTool = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'notebookTool' field has been set */ - public boolean hasNotebookTool() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'notebookTool' field */ - public com.linkedin.pegasus2avro.metadata.key.NotebookKey.Builder clearNotebookTool() { - notebookTool = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'notebookId' field */ - public java.lang.String getNotebookId() { - return notebookId; - } - - /** Sets the value of the 'notebookId' field */ - public com.linkedin.pegasus2avro.metadata.key.NotebookKey.Builder setNotebookId(java.lang.String value) { - validate(fields()[1], value); - this.notebookId = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'notebookId' field has been set */ - public boolean hasNotebookId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'notebookId' field */ - public com.linkedin.pegasus2avro.metadata.key.NotebookKey.Builder clearNotebookId() { - notebookId = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public NotebookKey build() { - try { - NotebookKey record = new NotebookKey(); - record.notebookTool = fieldSetFlags()[0] ? this.notebookTool : (java.lang.String) defaultValue(fields()[0]); - record.notebookId = fieldSetFlags()[1] ? this.notebookId : (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/metadata/key/PostKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/PostKey.java deleted file mode 100644 index c766b9f43cd4b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/PostKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Post. */ -@org.apache.avro.specific.AvroGenerated -public class PostKey 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\":\"PostKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Post.\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the DataHub Post record. Generated on the server side at Post creation time.\"}],\"Aspect\":{\"name\":\"postKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A unique id for the DataHub Post record. Generated on the server side at Post creation time. */ - @Deprecated public java.lang.String id; - - /** - * 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 PostKey() {} - - /** - * All-args constructor. - */ - public PostKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * A unique id for the DataHub Post record. Generated on the server side at Post creation time. */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * A unique id for the DataHub Post record. Generated on the server side at Post creation time. * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new PostKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.PostKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.PostKey.Builder(); - } - - /** Creates a new PostKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.PostKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.PostKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.PostKey.Builder(other); - } - - /** Creates a new PostKey RecordBuilder by copying an existing PostKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.PostKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.PostKey other) { - return new com.linkedin.pegasus2avro.metadata.key.PostKey.Builder(other); - } - - /** - * RecordBuilder for PostKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.PostKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.PostKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing PostKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.PostKey other) { - super(com.linkedin.pegasus2avro.metadata.key.PostKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.PostKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.PostKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public PostKey build() { - try { - PostKey record = new PostKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/QueryKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/QueryKey.java deleted file mode 100644 index 98f1b42f624f2..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/QueryKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Query */ -@org.apache.avro.specific.AvroGenerated -public class QueryKey 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\":\"QueryKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Query\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the Query.\"}],\"Aspect\":{\"name\":\"queryKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A unique id for the Query. */ - @Deprecated public java.lang.String id; - - /** - * 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 QueryKey() {} - - /** - * All-args constructor. - */ - public QueryKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * A unique id for the Query. */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * A unique id for the Query. * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new QueryKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.QueryKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.QueryKey.Builder(); - } - - /** Creates a new QueryKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.QueryKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.QueryKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.QueryKey.Builder(other); - } - - /** Creates a new QueryKey RecordBuilder by copying an existing QueryKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.QueryKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.QueryKey other) { - return new com.linkedin.pegasus2avro.metadata.key.QueryKey.Builder(other); - } - - /** - * RecordBuilder for QueryKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.QueryKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.QueryKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing QueryKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.QueryKey other) { - super(com.linkedin.pegasus2avro.metadata.key.QueryKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.QueryKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.QueryKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public QueryKey build() { - try { - QueryKey record = new QueryKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/key/SchemaFieldKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/SchemaFieldKey.java deleted file mode 100644 index be039a4b57a54..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/SchemaFieldKey.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a SchemaField */ -@org.apache.avro.specific.AvroGenerated -public class SchemaFieldKey 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\":\"SchemaFieldKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a SchemaField\",\"fields\":[{\"name\":\"parent\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Parent associated with the schema field\",\"Searchable\":{\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"fieldPath identifying the schema field\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}}],\"Aspect\":{\"name\":\"schemaFieldKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Parent associated with the schema field */ - @Deprecated public java.lang.String parent; - /** fieldPath identifying the schema field */ - @Deprecated public java.lang.String fieldPath; - - /** - * 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 SchemaFieldKey() {} - - /** - * All-args constructor. - */ - public SchemaFieldKey(java.lang.String parent, java.lang.String fieldPath) { - this.parent = parent; - this.fieldPath = fieldPath; - } - - 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 parent; - case 1: return fieldPath; - 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: parent = (java.lang.String)value$; break; - case 1: fieldPath = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'parent' field. - * Parent associated with the schema field */ - public java.lang.String getParent() { - return parent; - } - - /** - * Sets the value of the 'parent' field. - * Parent associated with the schema field * @param value the value to set. - */ - public void setParent(java.lang.String value) { - this.parent = value; - } - - /** - * Gets the value of the 'fieldPath' field. - * fieldPath identifying the schema field */ - public java.lang.String getFieldPath() { - return fieldPath; - } - - /** - * Sets the value of the 'fieldPath' field. - * fieldPath identifying the schema field * @param value the value to set. - */ - public void setFieldPath(java.lang.String value) { - this.fieldPath = value; - } - - /** Creates a new SchemaFieldKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.Builder(); - } - - /** Creates a new SchemaFieldKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.Builder(other); - } - - /** Creates a new SchemaFieldKey RecordBuilder by copying an existing SchemaFieldKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey other) { - return new com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.Builder(other); - } - - /** - * RecordBuilder for SchemaFieldKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String parent; - private java.lang.String fieldPath; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.parent)) { - this.parent = data().deepCopy(fields()[0].schema(), other.parent); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.fieldPath)) { - this.fieldPath = data().deepCopy(fields()[1].schema(), other.fieldPath); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing SchemaFieldKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey other) { - super(com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.SCHEMA$); - if (isValidValue(fields()[0], other.parent)) { - this.parent = data().deepCopy(fields()[0].schema(), other.parent); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.fieldPath)) { - this.fieldPath = data().deepCopy(fields()[1].schema(), other.fieldPath); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'parent' field */ - public java.lang.String getParent() { - return parent; - } - - /** Sets the value of the 'parent' field */ - public com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.Builder setParent(java.lang.String value) { - validate(fields()[0], value); - this.parent = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'parent' field has been set */ - public boolean hasParent() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'parent' field */ - public com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.Builder clearParent() { - parent = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'fieldPath' field */ - public java.lang.String getFieldPath() { - return fieldPath; - } - - /** Sets the value of the 'fieldPath' field */ - public com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.Builder setFieldPath(java.lang.String value) { - validate(fields()[1], value); - this.fieldPath = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'fieldPath' field has been set */ - public boolean hasFieldPath() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'fieldPath' field */ - public com.linkedin.pegasus2avro.metadata.key.SchemaFieldKey.Builder clearFieldPath() { - fieldPath = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public SchemaFieldKey build() { - try { - SchemaFieldKey record = new SchemaFieldKey(); - record.parent = fieldSetFlags()[0] ? this.parent : (java.lang.String) defaultValue(fields()[0]); - record.fieldPath = fieldSetFlags()[1] ? this.fieldPath : (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/metadata/key/TagKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/TagKey.java deleted file mode 100644 index e60289be258f4..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/TagKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Tag */ -@org.apache.avro.specific.AvroGenerated -public class TagKey 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\":\"TagKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The tag name, which serves as a unique id\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"tagKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The tag name, which serves as a unique id */ - @Deprecated public java.lang.String name; - - /** - * 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 TagKey() {} - - /** - * All-args constructor. - */ - public TagKey(java.lang.String name) { - this.name = name; - } - - 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; - 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; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * The tag name, which serves as a unique id */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * The tag name, which serves as a unique id * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** Creates a new TagKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.TagKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.TagKey.Builder(); - } - - /** Creates a new TagKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.TagKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.TagKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.TagKey.Builder(other); - } - - /** Creates a new TagKey RecordBuilder by copying an existing TagKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.TagKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.TagKey other) { - return new com.linkedin.pegasus2avro.metadata.key.TagKey.Builder(other); - } - - /** - * RecordBuilder for TagKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String name; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.TagKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.TagKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing TagKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.TagKey other) { - super(com.linkedin.pegasus2avro.metadata.key.TagKey.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = 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.metadata.key.TagKey.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.metadata.key.TagKey.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public TagKey build() { - try { - TagKey record = new TagKey(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) 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/metadata/key/TelemetryKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/TelemetryKey.java deleted file mode 100644 index 282d79b82fd64..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/TelemetryKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for the telemetry client ID, only one should ever exist */ -@org.apache.avro.specific.AvroGenerated -public class TelemetryKey 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\":\"TelemetryKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for the telemetry client ID, only one should ever exist\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The telemetry entity name, which serves as a unique id\"}],\"Aspect\":{\"name\":\"telemetryKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The telemetry entity name, which serves as a unique id */ - @Deprecated public java.lang.String name; - - /** - * 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 TelemetryKey() {} - - /** - * All-args constructor. - */ - public TelemetryKey(java.lang.String name) { - this.name = name; - } - - 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; - 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; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * The telemetry entity name, which serves as a unique id */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * The telemetry entity name, which serves as a unique id * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** Creates a new TelemetryKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.TelemetryKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.TelemetryKey.Builder(); - } - - /** Creates a new TelemetryKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.TelemetryKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.TelemetryKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.TelemetryKey.Builder(other); - } - - /** Creates a new TelemetryKey RecordBuilder by copying an existing TelemetryKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.TelemetryKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.TelemetryKey other) { - return new com.linkedin.pegasus2avro.metadata.key.TelemetryKey.Builder(other); - } - - /** - * RecordBuilder for TelemetryKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String name; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.TelemetryKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.TelemetryKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing TelemetryKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.TelemetryKey other) { - super(com.linkedin.pegasus2avro.metadata.key.TelemetryKey.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = 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.metadata.key.TelemetryKey.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.metadata.key.TelemetryKey.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public TelemetryKey build() { - try { - TelemetryKey record = new TelemetryKey(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) 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/metadata/key/TestKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/TestKey.java deleted file mode 100644 index 71ec80066473f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/key/TestKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.key; -@SuppressWarnings("all") -/** Key for a Test */ -@org.apache.avro.specific.AvroGenerated -public class TestKey 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\":\"TestKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Test\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the test\"}],\"Aspect\":{\"name\":\"testKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Unique id for the test */ - @Deprecated public java.lang.String id; - - /** - * 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 TestKey() {} - - /** - * All-args constructor. - */ - public TestKey(java.lang.String id) { - this.id = id; - } - - 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 id; - 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: id = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - * Unique id for the test */ - public java.lang.String getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * Unique id for the test * @param value the value to set. - */ - public void setId(java.lang.String value) { - this.id = value; - } - - /** Creates a new TestKey RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.key.TestKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.key.TestKey.Builder(); - } - - /** Creates a new TestKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.key.TestKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.TestKey.Builder other) { - return new com.linkedin.pegasus2avro.metadata.key.TestKey.Builder(other); - } - - /** Creates a new TestKey RecordBuilder by copying an existing TestKey instance */ - public static com.linkedin.pegasus2avro.metadata.key.TestKey.Builder newBuilder(com.linkedin.pegasus2avro.metadata.key.TestKey other) { - return new com.linkedin.pegasus2avro.metadata.key.TestKey.Builder(other); - } - - /** - * RecordBuilder for TestKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String id; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.key.TestKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.key.TestKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing TestKey instance */ - private Builder(com.linkedin.pegasus2avro.metadata.key.TestKey other) { - super(com.linkedin.pegasus2avro.metadata.key.TestKey.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.String getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.TestKey.Builder setId(java.lang.String value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public com.linkedin.pegasus2avro.metadata.key.TestKey.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public TestKey build() { - try { - TestKey record = new TestKey(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) 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/metadata/query/AnyResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/AnyResult.java deleted file mode 100644 index 4e969c85531a5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/AnyResult.java +++ /dev/null @@ -1,148 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** A common model for the result of any query. -Expected to be included into other top level query results. */ -@org.apache.avro.specific.AvroGenerated -public class AnyResult 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\":\"AnyResult\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"A common model for the result of any query. \\nExpected to be included into other top level query results.\",\"fields\":[{\"name\":\"freshness\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"FreshnessStats\",\"doc\":\"Stats that describe the freshness of a dataset or query result.\\nUseful to describe consistency and staleness of results when served\\nout of a cache or other eventually consistent system.\",\"fields\":[{\"name\":\"cached\",\"type\":[\"null\",\"boolean\"],\"default\":null},{\"name\":\"systemFreshness\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Freshness Stats to help a caller understand the freshness of the results\\nUseful when the results are being retrieved from a cache, index or other eventually consistent storage\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Freshness Stats to help a caller understand the freshness of the results -Useful when the results are being retrieved from a cache, index or other eventually consistent storage */ - @Deprecated public com.linkedin.pegasus2avro.metadata.query.FreshnessStats freshness; - - /** - * 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 AnyResult() {} - - /** - * All-args constructor. - */ - public AnyResult(com.linkedin.pegasus2avro.metadata.query.FreshnessStats freshness) { - this.freshness = freshness; - } - - 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 freshness; - 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: freshness = (com.linkedin.pegasus2avro.metadata.query.FreshnessStats)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'freshness' field. - * Freshness Stats to help a caller understand the freshness of the results -Useful when the results are being retrieved from a cache, index or other eventually consistent storage */ - public com.linkedin.pegasus2avro.metadata.query.FreshnessStats getFreshness() { - return freshness; - } - - /** - * Sets the value of the 'freshness' field. - * Freshness Stats to help a caller understand the freshness of the results -Useful when the results are being retrieved from a cache, index or other eventually consistent storage * @param value the value to set. - */ - public void setFreshness(com.linkedin.pegasus2avro.metadata.query.FreshnessStats value) { - this.freshness = value; - } - - /** Creates a new AnyResult RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.AnyResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.AnyResult.Builder(); - } - - /** Creates a new AnyResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.AnyResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.AnyResult.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.AnyResult.Builder(other); - } - - /** Creates a new AnyResult RecordBuilder by copying an existing AnyResult instance */ - public static com.linkedin.pegasus2avro.metadata.query.AnyResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.AnyResult other) { - return new com.linkedin.pegasus2avro.metadata.query.AnyResult.Builder(other); - } - - /** - * RecordBuilder for AnyResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.metadata.query.FreshnessStats freshness; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.AnyResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.AnyResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.freshness)) { - this.freshness = data().deepCopy(fields()[0].schema(), other.freshness); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing AnyResult instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.AnyResult other) { - super(com.linkedin.pegasus2avro.metadata.query.AnyResult.SCHEMA$); - if (isValidValue(fields()[0], other.freshness)) { - this.freshness = data().deepCopy(fields()[0].schema(), other.freshness); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'freshness' field */ - public com.linkedin.pegasus2avro.metadata.query.FreshnessStats getFreshness() { - return freshness; - } - - /** Sets the value of the 'freshness' field */ - public com.linkedin.pegasus2avro.metadata.query.AnyResult.Builder setFreshness(com.linkedin.pegasus2avro.metadata.query.FreshnessStats value) { - validate(fields()[0], value); - this.freshness = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'freshness' field has been set */ - public boolean hasFreshness() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'freshness' field */ - public com.linkedin.pegasus2avro.metadata.query.AnyResult.Builder clearFreshness() { - freshness = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public AnyResult build() { - try { - AnyResult record = new AnyResult(); - record.freshness = fieldSetFlags()[0] ? this.freshness : (com.linkedin.pegasus2avro.metadata.query.FreshnessStats) 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/metadata/query/AutoCompleteEntity.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/AutoCompleteEntity.java deleted file mode 100644 index 895868c8d4df0..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/AutoCompleteEntity.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** Data model for an entity returned as an autocomplete suggestion */ -@org.apache.avro.specific.AvroGenerated -public class AutoCompleteEntity 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\":\"AutoCompleteEntity\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"Data model for an entity returned as an autocomplete suggestion\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Urn of the entity */ - @Deprecated public java.lang.String urn; - - /** - * 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 AutoCompleteEntity() {} - - /** - * All-args constructor. - */ - public AutoCompleteEntity(java.lang.String urn) { - this.urn = urn; - } - - 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 urn; - 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: urn = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * Urn of the entity */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * Urn of the entity * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** Creates a new AutoCompleteEntity RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity.Builder(); - } - - /** Creates a new AutoCompleteEntity RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity.Builder(other); - } - - /** Creates a new AutoCompleteEntity RecordBuilder by copying an existing AutoCompleteEntity instance */ - public static com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity other) { - return new com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity.Builder(other); - } - - /** - * RecordBuilder for AutoCompleteEntity instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing AutoCompleteEntity instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity other) { - super(com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.query.AutoCompleteEntity.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public AutoCompleteEntity build() { - try { - AutoCompleteEntity record = new AutoCompleteEntity(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) 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/metadata/query/AutoCompleteResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/AutoCompleteResult.java deleted file mode 100644 index bc915989f473f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/AutoCompleteResult.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** The model for the auto complete result */ -@org.apache.avro.specific.AvroGenerated -public class AutoCompleteResult 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\":\"AutoCompleteResult\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"The model for the auto complete result\",\"fields\":[{\"name\":\"query\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The original chars typed by user\"},{\"name\":\"suggestions\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"A list of typeahead suggestions -- Just the text\"},{\"name\":\"entities\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AutoCompleteEntity\",\"doc\":\"Data model for an entity returned as an autocomplete suggestion\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}},\"doc\":\"Specific entities to recommend\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The original chars typed by user */ - @Deprecated public java.lang.String query; - /** A list of typeahead suggestions -- Just the text */ - @Deprecated public java.util.List suggestions; - /** Specific entities to recommend */ - @Deprecated public java.util.List entities; - - /** - * 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 AutoCompleteResult() {} - - /** - * All-args constructor. - */ - public AutoCompleteResult(java.lang.String query, java.util.List suggestions, java.util.List entities) { - this.query = query; - this.suggestions = suggestions; - this.entities = entities; - } - - 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 query; - case 1: return suggestions; - case 2: return entities; - 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: query = (java.lang.String)value$; break; - case 1: suggestions = (java.util.List)value$; break; - case 2: entities = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'query' field. - * The original chars typed by user */ - public java.lang.String getQuery() { - return query; - } - - /** - * Sets the value of the 'query' field. - * The original chars typed by user * @param value the value to set. - */ - public void setQuery(java.lang.String value) { - this.query = value; - } - - /** - * Gets the value of the 'suggestions' field. - * A list of typeahead suggestions -- Just the text */ - public java.util.List getSuggestions() { - return suggestions; - } - - /** - * Sets the value of the 'suggestions' field. - * A list of typeahead suggestions -- Just the text * @param value the value to set. - */ - public void setSuggestions(java.util.List value) { - this.suggestions = value; - } - - /** - * Gets the value of the 'entities' field. - * Specific entities to recommend */ - public java.util.List getEntities() { - return entities; - } - - /** - * Sets the value of the 'entities' field. - * Specific entities to recommend * @param value the value to set. - */ - public void setEntities(java.util.List value) { - this.entities = value; - } - - /** Creates a new AutoCompleteResult RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder(); - } - - /** Creates a new AutoCompleteResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder(other); - } - - /** Creates a new AutoCompleteResult RecordBuilder by copying an existing AutoCompleteResult instance */ - public static com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult other) { - return new com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder(other); - } - - /** - * RecordBuilder for AutoCompleteResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String query; - private java.util.List suggestions; - private java.util.List entities; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.query)) { - this.query = data().deepCopy(fields()[0].schema(), other.query); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.suggestions)) { - this.suggestions = data().deepCopy(fields()[1].schema(), other.suggestions); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.entities)) { - this.entities = data().deepCopy(fields()[2].schema(), other.entities); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing AutoCompleteResult instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult other) { - super(com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.SCHEMA$); - if (isValidValue(fields()[0], other.query)) { - this.query = data().deepCopy(fields()[0].schema(), other.query); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.suggestions)) { - this.suggestions = data().deepCopy(fields()[1].schema(), other.suggestions); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.entities)) { - this.entities = data().deepCopy(fields()[2].schema(), other.entities); - fieldSetFlags()[2] = true; - } - } - - /** 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.metadata.query.AutoCompleteResult.Builder setQuery(java.lang.String value) { - validate(fields()[0], value); - this.query = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'query' field has been set */ - public boolean hasQuery() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'query' field */ - public com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder clearQuery() { - query = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'suggestions' field */ - public java.util.List getSuggestions() { - return suggestions; - } - - /** Sets the value of the 'suggestions' field */ - public com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder setSuggestions(java.util.List value) { - validate(fields()[1], value); - this.suggestions = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'suggestions' field has been set */ - public boolean hasSuggestions() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'suggestions' field */ - public com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder clearSuggestions() { - suggestions = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'entities' field */ - public java.util.List getEntities() { - return entities; - } - - /** Sets the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder setEntities(java.util.List value) { - validate(fields()[2], value); - this.entities = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'entities' field has been set */ - public boolean hasEntities() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.query.AutoCompleteResult.Builder clearEntities() { - entities = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public AutoCompleteResult build() { - try { - AutoCompleteResult record = new AutoCompleteResult(); - record.query = fieldSetFlags()[0] ? this.query : (java.lang.String) defaultValue(fields()[0]); - record.suggestions = fieldSetFlags()[1] ? this.suggestions : (java.util.List) defaultValue(fields()[1]); - record.entities = fieldSetFlags()[2] ? this.entities : (java.util.List) 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/metadata/query/BrowseResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/BrowseResult.java deleted file mode 100644 index ba385036d86f6..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/BrowseResult.java +++ /dev/null @@ -1,361 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** The model for the result of a browse query */ -@org.apache.avro.specific.AvroGenerated -public class BrowseResult 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\":\"BrowseResult\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"The model for the result of a browse query\",\"fields\":[{\"name\":\"entities\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BrowseResultEntity\",\"doc\":\"Data model for an entity returned as part of a browse query\",\"fields\":[{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Name of the entity\",\"default\":null},{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN of the entity\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}},\"doc\":\"A list of entities under the queried path\"},{\"name\":\"metadata\",\"type\":{\"type\":\"record\",\"name\":\"BrowseResultMetadata\",\"doc\":\"The model for browse result metadata\",\"fields\":[{\"name\":\"path\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Path that is being browsed\"},{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BrowseResultGroup\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the group\"},{\"name\":\"count\",\"type\":\"long\",\"doc\":\"Number of entities that can be reached from this path\"}]}},\"doc\":\"A list of groups and total number of entities inside those groups under the queried path\",\"default\":[]},{\"name\":\"totalNumEntities\",\"type\":\"long\",\"doc\":\"Total number of entities we can reach from path\"}]},\"doc\":\"Metadata specific to the browse result of the queried path\"},{\"name\":\"from\",\"type\":\"int\",\"doc\":\"Offset of the first entity in the result\"},{\"name\":\"pageSize\",\"type\":\"int\",\"doc\":\"Size of each page in the result\"},{\"name\":\"numEntities\",\"type\":\"int\",\"doc\":\"The total number of entities directly under queried path\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of entities under the queried path */ - @Deprecated public java.util.List entities; - /** Metadata specific to the browse result of the queried path */ - @Deprecated public com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata metadata; - /** Offset of the first entity in the result */ - @Deprecated public int from; - /** Size of each page in the result */ - @Deprecated public int pageSize; - /** The total number of entities directly under queried path */ - @Deprecated public int numEntities; - - /** - * 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 BrowseResult() {} - - /** - * All-args constructor. - */ - public BrowseResult(java.util.List entities, com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata metadata, java.lang.Integer from, java.lang.Integer pageSize, java.lang.Integer numEntities) { - this.entities = entities; - this.metadata = metadata; - this.from = from; - this.pageSize = pageSize; - this.numEntities = numEntities; - } - - 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 entities; - case 1: return metadata; - case 2: return from; - case 3: return pageSize; - case 4: return numEntities; - 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: entities = (java.util.List)value$; break; - case 1: metadata = (com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata)value$; break; - case 2: from = (java.lang.Integer)value$; break; - case 3: pageSize = (java.lang.Integer)value$; break; - case 4: numEntities = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entities' field. - * A list of entities under the queried path */ - public java.util.List getEntities() { - return entities; - } - - /** - * Sets the value of the 'entities' field. - * A list of entities under the queried path * @param value the value to set. - */ - public void setEntities(java.util.List value) { - this.entities = value; - } - - /** - * Gets the value of the 'metadata' field. - * Metadata specific to the browse result of the queried path */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata getMetadata() { - return metadata; - } - - /** - * Sets the value of the 'metadata' field. - * Metadata specific to the browse result of the queried path * @param value the value to set. - */ - public void setMetadata(com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata value) { - this.metadata = value; - } - - /** - * Gets the value of the 'from' field. - * Offset of the first entity in the result */ - public java.lang.Integer getFrom() { - return from; - } - - /** - * Sets the value of the 'from' field. - * Offset of the first entity in the result * @param value the value to set. - */ - public void setFrom(java.lang.Integer value) { - this.from = value; - } - - /** - * Gets the value of the 'pageSize' field. - * Size of each page in the result */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Sets the value of the 'pageSize' field. - * Size of each page in the result * @param value the value to set. - */ - public void setPageSize(java.lang.Integer value) { - this.pageSize = value; - } - - /** - * Gets the value of the 'numEntities' field. - * The total number of entities directly under queried path */ - public java.lang.Integer getNumEntities() { - return numEntities; - } - - /** - * Sets the value of the 'numEntities' field. - * The total number of entities directly under queried path * @param value the value to set. - */ - public void setNumEntities(java.lang.Integer value) { - this.numEntities = value; - } - - /** Creates a new BrowseResult RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder(); - } - - /** Creates a new BrowseResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder(other); - } - - /** Creates a new BrowseResult RecordBuilder by copying an existing BrowseResult instance */ - public static com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.BrowseResult other) { - return new com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder(other); - } - - /** - * RecordBuilder for BrowseResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List entities; - private com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata metadata; - private int from; - private int pageSize; - private int numEntities; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.BrowseResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.metadata)) { - this.metadata = data().deepCopy(fields()[1].schema(), other.metadata); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.from)) { - this.from = data().deepCopy(fields()[2].schema(), other.from); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.pageSize)) { - this.pageSize = data().deepCopy(fields()[3].schema(), other.pageSize); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[4].schema(), other.numEntities); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing BrowseResult instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.BrowseResult other) { - super(com.linkedin.pegasus2avro.metadata.query.BrowseResult.SCHEMA$); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.metadata)) { - this.metadata = data().deepCopy(fields()[1].schema(), other.metadata); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.from)) { - this.from = data().deepCopy(fields()[2].schema(), other.from); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.pageSize)) { - this.pageSize = data().deepCopy(fields()[3].schema(), other.pageSize); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[4].schema(), other.numEntities); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'entities' field */ - public java.util.List getEntities() { - return entities; - } - - /** Sets the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder setEntities(java.util.List value) { - validate(fields()[0], value); - this.entities = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entities' field has been set */ - public boolean hasEntities() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder clearEntities() { - entities = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata getMetadata() { - return metadata; - } - - /** Sets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder setMetadata(com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata value) { - validate(fields()[1], value); - this.metadata = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'metadata' field has been set */ - public boolean hasMetadata() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder clearMetadata() { - metadata = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'from' field */ - public java.lang.Integer getFrom() { - return from; - } - - /** Sets the value of the 'from' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder setFrom(int value) { - validate(fields()[2], value); - this.from = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'from' field has been set */ - public boolean hasFrom() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'from' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder clearFrom() { - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'pageSize' field */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** Sets the value of the 'pageSize' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder setPageSize(int value) { - validate(fields()[3], value); - this.pageSize = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'pageSize' field has been set */ - public boolean hasPageSize() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'pageSize' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder clearPageSize() { - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'numEntities' field */ - public java.lang.Integer getNumEntities() { - return numEntities; - } - - /** Sets the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder setNumEntities(int value) { - validate(fields()[4], value); - this.numEntities = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'numEntities' field has been set */ - public boolean hasNumEntities() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResult.Builder clearNumEntities() { - fieldSetFlags()[4] = false; - return this; - } - - @Override - public BrowseResult build() { - try { - BrowseResult record = new BrowseResult(); - record.entities = fieldSetFlags()[0] ? this.entities : (java.util.List) defaultValue(fields()[0]); - record.metadata = fieldSetFlags()[1] ? this.metadata : (com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata) defaultValue(fields()[1]); - record.from = fieldSetFlags()[2] ? this.from : (java.lang.Integer) defaultValue(fields()[2]); - record.pageSize = fieldSetFlags()[3] ? this.pageSize : (java.lang.Integer) defaultValue(fields()[3]); - record.numEntities = fieldSetFlags()[4] ? this.numEntities : (java.lang.Integer) 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/metadata/query/BrowseResultEntity.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/BrowseResultEntity.java deleted file mode 100644 index d205aba81f77e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/BrowseResultEntity.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** Data model for an entity returned as part of a browse query */ -@org.apache.avro.specific.AvroGenerated -public class BrowseResultEntity 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\":\"BrowseResultEntity\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"Data model for an entity returned as part of a browse query\",\"fields\":[{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Name of the entity\",\"default\":null},{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN of the entity\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Name of the entity */ - @Deprecated public java.lang.String name; - /** URN of the entity */ - @Deprecated public java.lang.String urn; - - /** - * 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 BrowseResultEntity() {} - - /** - * All-args constructor. - */ - public BrowseResultEntity(java.lang.String name, java.lang.String urn) { - this.name = name; - this.urn = urn; - } - - 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 urn; - 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: urn = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Name of the entity */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the entity * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'urn' field. - * URN of the entity */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN of the entity * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** Creates a new BrowseResultEntity RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity.Builder(); - } - - /** Creates a new BrowseResultEntity RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity.Builder(other); - } - - /** Creates a new BrowseResultEntity RecordBuilder by copying an existing BrowseResultEntity instance */ - public static com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity other) { - return new com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity.Builder(other); - } - - /** - * RecordBuilder for BrowseResultEntity 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 urn; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity.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.urn)) { - this.urn = data().deepCopy(fields()[1].schema(), other.urn); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing BrowseResultEntity instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity other) { - super(com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.urn)) { - this.urn = data().deepCopy(fields()[1].schema(), other.urn); - fieldSetFlags()[1] = 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.metadata.query.BrowseResultEntity.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.metadata.query.BrowseResultEntity.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity.Builder setUrn(java.lang.String value) { - validate(fields()[1], value); - this.urn = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResultEntity.Builder clearUrn() { - urn = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public BrowseResultEntity build() { - try { - BrowseResultEntity record = new BrowseResultEntity(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.urn = fieldSetFlags()[1] ? this.urn : (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/metadata/query/BrowseResultGroup.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/BrowseResultGroup.java deleted file mode 100644 index 49f6248c1b79a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/BrowseResultGroup.java +++ /dev/null @@ -1,197 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class BrowseResultGroup 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\":\"BrowseResultGroup\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the group\"},{\"name\":\"count\",\"type\":\"long\",\"doc\":\"Number of entities that can be reached from this path\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Name of the group */ - @Deprecated public java.lang.String name; - /** Number of entities that can be reached from this path */ - @Deprecated public long count; - - /** - * 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 BrowseResultGroup() {} - - /** - * All-args constructor. - */ - public BrowseResultGroup(java.lang.String name, java.lang.Long count) { - this.name = name; - this.count = count; - } - - 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 count; - 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: count = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Name of the group */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the group * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'count' field. - * Number of entities that can be reached from this path */ - public java.lang.Long getCount() { - return count; - } - - /** - * Sets the value of the 'count' field. - * Number of entities that can be reached from this path * @param value the value to set. - */ - public void setCount(java.lang.Long value) { - this.count = value; - } - - /** Creates a new BrowseResultGroup RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup.Builder(); - } - - /** Creates a new BrowseResultGroup RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup.Builder(other); - } - - /** Creates a new BrowseResultGroup RecordBuilder by copying an existing BrowseResultGroup instance */ - public static com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup other) { - return new com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup.Builder(other); - } - - /** - * RecordBuilder for BrowseResultGroup instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String name; - private long count; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup.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.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing BrowseResultGroup instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup other) { - super(com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = 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.metadata.query.BrowseResultGroup.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.metadata.query.BrowseResultGroup.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'count' field */ - public java.lang.Long getCount() { - return count; - } - - /** Sets the value of the 'count' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup.Builder setCount(long value) { - validate(fields()[1], value); - this.count = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'count' field has been set */ - public boolean hasCount() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'count' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResultGroup.Builder clearCount() { - fieldSetFlags()[1] = false; - return this; - } - - @Override - public BrowseResultGroup build() { - try { - BrowseResultGroup record = new BrowseResultGroup(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.count = fieldSetFlags()[1] ? this.count : (java.lang.Long) 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/metadata/query/BrowseResultMetadata.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/BrowseResultMetadata.java deleted file mode 100644 index 67da9b7452da7..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/BrowseResultMetadata.java +++ /dev/null @@ -1,253 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** The model for browse result metadata */ -@org.apache.avro.specific.AvroGenerated -public class BrowseResultMetadata 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\":\"BrowseResultMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"The model for browse result metadata\",\"fields\":[{\"name\":\"path\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Path that is being browsed\"},{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BrowseResultGroup\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the group\"},{\"name\":\"count\",\"type\":\"long\",\"doc\":\"Number of entities that can be reached from this path\"}]}},\"doc\":\"A list of groups and total number of entities inside those groups under the queried path\",\"default\":[]},{\"name\":\"totalNumEntities\",\"type\":\"long\",\"doc\":\"Total number of entities we can reach from path\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Path that is being browsed */ - @Deprecated public java.lang.String path; - /** A list of groups and total number of entities inside those groups under the queried path */ - @Deprecated public java.util.List groups; - /** Total number of entities we can reach from path */ - @Deprecated public long totalNumEntities; - - /** - * 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 BrowseResultMetadata() {} - - /** - * All-args constructor. - */ - public BrowseResultMetadata(java.lang.String path, java.util.List groups, java.lang.Long totalNumEntities) { - this.path = path; - this.groups = groups; - this.totalNumEntities = totalNumEntities; - } - - 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; - case 1: return groups; - case 2: return totalNumEntities; - 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.lang.String)value$; break; - case 1: groups = (java.util.List)value$; break; - case 2: totalNumEntities = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'path' field. - * Path that is being browsed */ - public java.lang.String getPath() { - return path; - } - - /** - * Sets the value of the 'path' field. - * Path that is being browsed * @param value the value to set. - */ - public void setPath(java.lang.String value) { - this.path = value; - } - - /** - * Gets the value of the 'groups' field. - * A list of groups and total number of entities inside those groups under the queried path */ - public java.util.List getGroups() { - return groups; - } - - /** - * Sets the value of the 'groups' field. - * A list of groups and total number of entities inside those groups under the queried path * @param value the value to set. - */ - public void setGroups(java.util.List value) { - this.groups = value; - } - - /** - * Gets the value of the 'totalNumEntities' field. - * Total number of entities we can reach from path */ - public java.lang.Long getTotalNumEntities() { - return totalNumEntities; - } - - /** - * Sets the value of the 'totalNumEntities' field. - * Total number of entities we can reach from path * @param value the value to set. - */ - public void setTotalNumEntities(java.lang.Long value) { - this.totalNumEntities = value; - } - - /** Creates a new BrowseResultMetadata RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder(); - } - - /** Creates a new BrowseResultMetadata RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder(other); - } - - /** Creates a new BrowseResultMetadata RecordBuilder by copying an existing BrowseResultMetadata instance */ - public static com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata other) { - return new com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder(other); - } - - /** - * RecordBuilder for BrowseResultMetadata instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String path; - private java.util.List groups; - private long totalNumEntities; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder other) { - super(other); - if (isValidValue(fields()[0], other.path)) { - this.path = data().deepCopy(fields()[0].schema(), other.path); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.groups)) { - this.groups = data().deepCopy(fields()[1].schema(), other.groups); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.totalNumEntities)) { - this.totalNumEntities = data().deepCopy(fields()[2].schema(), other.totalNumEntities); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing BrowseResultMetadata instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata other) { - super(com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.SCHEMA$); - if (isValidValue(fields()[0], other.path)) { - this.path = data().deepCopy(fields()[0].schema(), other.path); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.groups)) { - this.groups = data().deepCopy(fields()[1].schema(), other.groups); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.totalNumEntities)) { - this.totalNumEntities = data().deepCopy(fields()[2].schema(), other.totalNumEntities); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'path' field */ - public java.lang.String getPath() { - return path; - } - - /** Sets the value of the 'path' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder setPath(java.lang.String 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.metadata.query.BrowseResultMetadata.Builder clearPath() { - path = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'groups' field */ - public java.util.List getGroups() { - return groups; - } - - /** Sets the value of the 'groups' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder setGroups(java.util.List value) { - validate(fields()[1], value); - this.groups = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'groups' field has been set */ - public boolean hasGroups() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'groups' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder clearGroups() { - groups = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'totalNumEntities' field */ - public java.lang.Long getTotalNumEntities() { - return totalNumEntities; - } - - /** Sets the value of the 'totalNumEntities' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder setTotalNumEntities(long value) { - validate(fields()[2], value); - this.totalNumEntities = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'totalNumEntities' field has been set */ - public boolean hasTotalNumEntities() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'totalNumEntities' field */ - public com.linkedin.pegasus2avro.metadata.query.BrowseResultMetadata.Builder clearTotalNumEntities() { - fieldSetFlags()[2] = false; - return this; - } - - @Override - public BrowseResultMetadata build() { - try { - BrowseResultMetadata record = new BrowseResultMetadata(); - record.path = fieldSetFlags()[0] ? this.path : (java.lang.String) defaultValue(fields()[0]); - record.groups = fieldSetFlags()[1] ? this.groups : (java.util.List) defaultValue(fields()[1]); - record.totalNumEntities = fieldSetFlags()[2] ? this.totalNumEntities : (java.lang.Long) 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/metadata/query/ExtraInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/ExtraInfo.java deleted file mode 100644 index a619677b195cf..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/ExtraInfo.java +++ /dev/null @@ -1,253 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** Extra information associated to a metadata aspect. */ -@org.apache.avro.specific.AvroGenerated -public class ExtraInfo 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\":\"ExtraInfo\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"Extra information associated to a metadata aspect.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The urn for the entity that owns the metadata aspect\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"version\",\"type\":\"long\",\"doc\":\"The version number of the metadata aspect.\"},{\"name\":\"audit\",\"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\":\"The audit trail associated with the version\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The urn for the entity that owns the metadata aspect */ - @Deprecated public java.lang.String urn; - /** The version number of the metadata aspect. */ - @Deprecated public long version; - /** The audit trail associated with the version */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp audit; - - /** - * 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 ExtraInfo() {} - - /** - * All-args constructor. - */ - public ExtraInfo(java.lang.String urn, java.lang.Long version, com.linkedin.pegasus2avro.common.AuditStamp audit) { - this.urn = urn; - this.version = version; - this.audit = audit; - } - - 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 urn; - case 1: return version; - case 2: return audit; - 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: urn = (java.lang.String)value$; break; - case 1: version = (java.lang.Long)value$; break; - case 2: audit = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * The urn for the entity that owns the metadata aspect */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * The urn for the entity that owns the metadata aspect * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'version' field. - * The version number of the metadata aspect. */ - public java.lang.Long getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * The version number of the metadata aspect. * @param value the value to set. - */ - public void setVersion(java.lang.Long value) { - this.version = value; - } - - /** - * Gets the value of the 'audit' field. - * The audit trail associated with the version */ - public com.linkedin.pegasus2avro.common.AuditStamp getAudit() { - return audit; - } - - /** - * Sets the value of the 'audit' field. - * The audit trail associated with the version * @param value the value to set. - */ - public void setAudit(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.audit = value; - } - - /** Creates a new ExtraInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder(); - } - - /** Creates a new ExtraInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder(other); - } - - /** Creates a new ExtraInfo RecordBuilder by copying an existing ExtraInfo instance */ - public static com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.ExtraInfo other) { - return new com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder(other); - } - - /** - * RecordBuilder for ExtraInfo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private long version; - private com.linkedin.pegasus2avro.common.AuditStamp audit; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.ExtraInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.version)) { - this.version = data().deepCopy(fields()[1].schema(), other.version); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.audit)) { - this.audit = data().deepCopy(fields()[2].schema(), other.audit); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing ExtraInfo instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.ExtraInfo other) { - super(com.linkedin.pegasus2avro.metadata.query.ExtraInfo.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.version)) { - this.version = data().deepCopy(fields()[1].schema(), other.version); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.audit)) { - this.audit = data().deepCopy(fields()[2].schema(), other.audit); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public java.lang.Long getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder setVersion(long value) { - validate(fields()[1], value); - this.version = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder clearVersion() { - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'audit' field */ - public com.linkedin.pegasus2avro.common.AuditStamp getAudit() { - return audit; - } - - /** Sets the value of the 'audit' field */ - public com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder setAudit(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[2], value); - this.audit = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'audit' field has been set */ - public boolean hasAudit() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'audit' field */ - public com.linkedin.pegasus2avro.metadata.query.ExtraInfo.Builder clearAudit() { - audit = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public ExtraInfo build() { - try { - ExtraInfo record = new ExtraInfo(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.version = fieldSetFlags()[1] ? this.version : (java.lang.Long) defaultValue(fields()[1]); - record.audit = fieldSetFlags()[2] ? this.audit : (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/metadata/query/FreshnessStats.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/FreshnessStats.java deleted file mode 100644 index 1890cc3974717..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/FreshnessStats.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** Stats that describe the freshness of a dataset or query result. -Useful to describe consistency and staleness of results when served -out of a cache or other eventually consistent system. */ -@org.apache.avro.specific.AvroGenerated -public class FreshnessStats 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\":\"FreshnessStats\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"Stats that describe the freshness of a dataset or query result.\\nUseful to describe consistency and staleness of results when served\\nout of a cache or other eventually consistent system.\",\"fields\":[{\"name\":\"cached\",\"type\":[\"null\",\"boolean\"],\"default\":null},{\"name\":\"systemFreshness\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"}],\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.Boolean cached; - @Deprecated public java.util.Map systemFreshness; - - /** - * 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 FreshnessStats() {} - - /** - * All-args constructor. - */ - public FreshnessStats(java.lang.Boolean cached, java.util.Map systemFreshness) { - this.cached = cached; - this.systemFreshness = systemFreshness; - } - - 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 cached; - case 1: return systemFreshness; - 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: cached = (java.lang.Boolean)value$; break; - case 1: systemFreshness = (java.util.Map)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'cached' field. - */ - public java.lang.Boolean getCached() { - return cached; - } - - /** - * Sets the value of the 'cached' field. - * @param value the value to set. - */ - public void setCached(java.lang.Boolean value) { - this.cached = value; - } - - /** - * Gets the value of the 'systemFreshness' field. - */ - public java.util.Map getSystemFreshness() { - return systemFreshness; - } - - /** - * Sets the value of the 'systemFreshness' field. - * @param value the value to set. - */ - public void setSystemFreshness(java.util.Map value) { - this.systemFreshness = value; - } - - /** Creates a new FreshnessStats RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.FreshnessStats.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.FreshnessStats.Builder(); - } - - /** Creates a new FreshnessStats RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.FreshnessStats.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.FreshnessStats.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.FreshnessStats.Builder(other); - } - - /** Creates a new FreshnessStats RecordBuilder by copying an existing FreshnessStats instance */ - public static com.linkedin.pegasus2avro.metadata.query.FreshnessStats.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.FreshnessStats other) { - return new com.linkedin.pegasus2avro.metadata.query.FreshnessStats.Builder(other); - } - - /** - * RecordBuilder for FreshnessStats instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Boolean cached; - private java.util.Map systemFreshness; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.FreshnessStats.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.FreshnessStats.Builder other) { - super(other); - if (isValidValue(fields()[0], other.cached)) { - this.cached = data().deepCopy(fields()[0].schema(), other.cached); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.systemFreshness)) { - this.systemFreshness = data().deepCopy(fields()[1].schema(), other.systemFreshness); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing FreshnessStats instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.FreshnessStats other) { - super(com.linkedin.pegasus2avro.metadata.query.FreshnessStats.SCHEMA$); - if (isValidValue(fields()[0], other.cached)) { - this.cached = data().deepCopy(fields()[0].schema(), other.cached); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.systemFreshness)) { - this.systemFreshness = data().deepCopy(fields()[1].schema(), other.systemFreshness); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'cached' field */ - public java.lang.Boolean getCached() { - return cached; - } - - /** Sets the value of the 'cached' field */ - public com.linkedin.pegasus2avro.metadata.query.FreshnessStats.Builder setCached(java.lang.Boolean value) { - validate(fields()[0], value); - this.cached = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'cached' field has been set */ - public boolean hasCached() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'cached' field */ - public com.linkedin.pegasus2avro.metadata.query.FreshnessStats.Builder clearCached() { - cached = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'systemFreshness' field */ - public java.util.Map getSystemFreshness() { - return systemFreshness; - } - - /** Sets the value of the 'systemFreshness' field */ - public com.linkedin.pegasus2avro.metadata.query.FreshnessStats.Builder setSystemFreshness(java.util.Map value) { - validate(fields()[1], value); - this.systemFreshness = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'systemFreshness' field has been set */ - public boolean hasSystemFreshness() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'systemFreshness' field */ - public com.linkedin.pegasus2avro.metadata.query.FreshnessStats.Builder clearSystemFreshness() { - systemFreshness = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public FreshnessStats build() { - try { - FreshnessStats record = new FreshnessStats(); - record.cached = fieldSetFlags()[0] ? this.cached : (java.lang.Boolean) defaultValue(fields()[0]); - record.systemFreshness = fieldSetFlags()[1] ? this.systemFreshness : (java.util.Map) 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/metadata/query/ListResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/ListResult.java deleted file mode 100644 index 35fec98343bed..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/ListResult.java +++ /dev/null @@ -1,306 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** The model for the result of a list query */ -@org.apache.avro.specific.AvroGenerated -public class ListResult 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\":\"ListResult\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"The model for the result of a list query\",\"fields\":[{\"name\":\"entities\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"A list of entities returned in the list\"},{\"name\":\"start\",\"type\":\"int\",\"doc\":\"Offset of the first entity in the result\"},{\"name\":\"count\",\"type\":\"int\",\"doc\":\"Size of each page in the result\"},{\"name\":\"total\",\"type\":\"int\",\"doc\":\"The total number of entities directly under searched path\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of entities returned in the list */ - @Deprecated public java.util.List entities; - /** Offset of the first entity in the result */ - @Deprecated public int start; - /** Size of each page in the result */ - @Deprecated public int count; - /** The total number of entities directly under searched path */ - @Deprecated public int total; - - /** - * 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 ListResult() {} - - /** - * All-args constructor. - */ - public ListResult(java.util.List entities, java.lang.Integer start, java.lang.Integer count, java.lang.Integer total) { - this.entities = entities; - this.start = start; - this.count = count; - this.total = total; - } - - 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 entities; - case 1: return start; - case 2: return count; - case 3: return total; - 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: entities = (java.util.List)value$; break; - case 1: start = (java.lang.Integer)value$; break; - case 2: count = (java.lang.Integer)value$; break; - case 3: total = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entities' field. - * A list of entities returned in the list */ - public java.util.List getEntities() { - return entities; - } - - /** - * Sets the value of the 'entities' field. - * A list of entities returned in the list * @param value the value to set. - */ - public void setEntities(java.util.List value) { - this.entities = value; - } - - /** - * Gets the value of the 'start' field. - * Offset of the first entity in the result */ - public java.lang.Integer getStart() { - return start; - } - - /** - * Sets the value of the 'start' field. - * Offset of the first entity in the result * @param value the value to set. - */ - public void setStart(java.lang.Integer value) { - this.start = value; - } - - /** - * Gets the value of the 'count' field. - * Size of each page in the result */ - public java.lang.Integer getCount() { - return count; - } - - /** - * Sets the value of the 'count' field. - * Size of each page in the result * @param value the value to set. - */ - public void setCount(java.lang.Integer value) { - this.count = value; - } - - /** - * Gets the value of the 'total' field. - * The total number of entities directly under searched path */ - public java.lang.Integer getTotal() { - return total; - } - - /** - * Sets the value of the 'total' field. - * The total number of entities directly under searched path * @param value the value to set. - */ - public void setTotal(java.lang.Integer value) { - this.total = value; - } - - /** Creates a new ListResult RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.ListResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.ListResult.Builder(); - } - - /** Creates a new ListResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.ListResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.ListResult.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.ListResult.Builder(other); - } - - /** Creates a new ListResult RecordBuilder by copying an existing ListResult instance */ - public static com.linkedin.pegasus2avro.metadata.query.ListResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.ListResult other) { - return new com.linkedin.pegasus2avro.metadata.query.ListResult.Builder(other); - } - - /** - * RecordBuilder for ListResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List entities; - private int start; - private int count; - private int total; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.ListResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.ListResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.start)) { - this.start = data().deepCopy(fields()[1].schema(), other.start); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.count)) { - this.count = data().deepCopy(fields()[2].schema(), other.count); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.total)) { - this.total = data().deepCopy(fields()[3].schema(), other.total); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing ListResult instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.ListResult other) { - super(com.linkedin.pegasus2avro.metadata.query.ListResult.SCHEMA$); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.start)) { - this.start = data().deepCopy(fields()[1].schema(), other.start); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.count)) { - this.count = data().deepCopy(fields()[2].schema(), other.count); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.total)) { - this.total = data().deepCopy(fields()[3].schema(), other.total); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'entities' field */ - public java.util.List getEntities() { - return entities; - } - - /** Sets the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.query.ListResult.Builder setEntities(java.util.List value) { - validate(fields()[0], value); - this.entities = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entities' field has been set */ - public boolean hasEntities() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.query.ListResult.Builder clearEntities() { - entities = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'start' field */ - public java.lang.Integer getStart() { - return start; - } - - /** Sets the value of the 'start' field */ - public com.linkedin.pegasus2avro.metadata.query.ListResult.Builder setStart(int value) { - validate(fields()[1], value); - this.start = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'start' field has been set */ - public boolean hasStart() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'start' field */ - public com.linkedin.pegasus2avro.metadata.query.ListResult.Builder clearStart() { - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'count' field */ - public java.lang.Integer getCount() { - return count; - } - - /** Sets the value of the 'count' field */ - public com.linkedin.pegasus2avro.metadata.query.ListResult.Builder setCount(int value) { - validate(fields()[2], value); - this.count = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'count' field has been set */ - public boolean hasCount() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'count' field */ - public com.linkedin.pegasus2avro.metadata.query.ListResult.Builder clearCount() { - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'total' field */ - public java.lang.Integer getTotal() { - return total; - } - - /** Sets the value of the 'total' field */ - public com.linkedin.pegasus2avro.metadata.query.ListResult.Builder setTotal(int value) { - validate(fields()[3], value); - this.total = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'total' field has been set */ - public boolean hasTotal() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'total' field */ - public com.linkedin.pegasus2avro.metadata.query.ListResult.Builder clearTotal() { - fieldSetFlags()[3] = false; - return this; - } - - @Override - public ListResult build() { - try { - ListResult record = new ListResult(); - record.entities = fieldSetFlags()[0] ? this.entities : (java.util.List) defaultValue(fields()[0]); - record.start = fieldSetFlags()[1] ? this.start : (java.lang.Integer) defaultValue(fields()[1]); - record.count = fieldSetFlags()[2] ? this.count : (java.lang.Integer) defaultValue(fields()[2]); - record.total = fieldSetFlags()[3] ? this.total : (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/metadata/query/ListResultMetadata.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/ListResultMetadata.java deleted file mode 100644 index 2805dd287ff79..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/ListResultMetadata.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** The additional metadata for a list result */ -@org.apache.avro.specific.AvroGenerated -public class ListResultMetadata 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\":\"ListResultMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"The additional metadata for a list result\",\"fields\":[{\"name\":\"extraInfos\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ExtraInfo\",\"doc\":\"Extra information associated to a metadata aspect.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The urn for the entity that owns the metadata aspect\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"version\",\"type\":\"long\",\"doc\":\"The version number of the metadata aspect.\"},{\"name\":\"audit\",\"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\":\"The audit trail associated with the version\"}]}},\"doc\":\"A list of extra information that positionally corresponds to the aspects returned from the list query\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of extra information that positionally corresponds to the aspects returned from the list query */ - @Deprecated public java.util.List extraInfos; - - /** - * 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 ListResultMetadata() {} - - /** - * All-args constructor. - */ - public ListResultMetadata(java.util.List extraInfos) { - this.extraInfos = extraInfos; - } - - 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 extraInfos; - 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: extraInfos = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'extraInfos' field. - * A list of extra information that positionally corresponds to the aspects returned from the list query */ - public java.util.List getExtraInfos() { - return extraInfos; - } - - /** - * Sets the value of the 'extraInfos' field. - * A list of extra information that positionally corresponds to the aspects returned from the list query * @param value the value to set. - */ - public void setExtraInfos(java.util.List value) { - this.extraInfos = value; - } - - /** Creates a new ListResultMetadata RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.ListResultMetadata.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.ListResultMetadata.Builder(); - } - - /** Creates a new ListResultMetadata RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.ListResultMetadata.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.ListResultMetadata.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.ListResultMetadata.Builder(other); - } - - /** Creates a new ListResultMetadata RecordBuilder by copying an existing ListResultMetadata instance */ - public static com.linkedin.pegasus2avro.metadata.query.ListResultMetadata.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.ListResultMetadata other) { - return new com.linkedin.pegasus2avro.metadata.query.ListResultMetadata.Builder(other); - } - - /** - * RecordBuilder for ListResultMetadata instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List extraInfos; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.ListResultMetadata.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.ListResultMetadata.Builder other) { - super(other); - if (isValidValue(fields()[0], other.extraInfos)) { - this.extraInfos = data().deepCopy(fields()[0].schema(), other.extraInfos); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing ListResultMetadata instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.ListResultMetadata other) { - super(com.linkedin.pegasus2avro.metadata.query.ListResultMetadata.SCHEMA$); - if (isValidValue(fields()[0], other.extraInfos)) { - this.extraInfos = data().deepCopy(fields()[0].schema(), other.extraInfos); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'extraInfos' field */ - public java.util.List getExtraInfos() { - return extraInfos; - } - - /** Sets the value of the 'extraInfos' field */ - public com.linkedin.pegasus2avro.metadata.query.ListResultMetadata.Builder setExtraInfos(java.util.List value) { - validate(fields()[0], value); - this.extraInfos = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'extraInfos' field has been set */ - public boolean hasExtraInfos() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'extraInfos' field */ - public com.linkedin.pegasus2avro.metadata.query.ListResultMetadata.Builder clearExtraInfos() { - extraInfos = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public ListResultMetadata build() { - try { - ListResultMetadata record = new ListResultMetadata(); - record.extraInfos = fieldSetFlags()[0] ? this.extraInfos : (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/metadata/query/ListUrnsResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/ListUrnsResult.java deleted file mode 100644 index bda257e9aa2bf..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/ListUrnsResult.java +++ /dev/null @@ -1,306 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** The model for listing a set of entity urns. */ -@org.apache.avro.specific.AvroGenerated -public class ListUrnsResult 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\":\"ListUrnsResult\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"The model for listing a set of entity urns.\",\"fields\":[{\"name\":\"entities\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"A list of entities returned from the list\"},{\"name\":\"start\",\"type\":\"int\",\"doc\":\"Offset of the first entity in the result\"},{\"name\":\"count\",\"type\":\"int\",\"doc\":\"Size of each page in the result\"},{\"name\":\"total\",\"type\":\"int\",\"doc\":\"The total number of entities directly under searched path\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of entities returned from the list */ - @Deprecated public java.util.List entities; - /** Offset of the first entity in the result */ - @Deprecated public int start; - /** Size of each page in the result */ - @Deprecated public int count; - /** The total number of entities directly under searched path */ - @Deprecated public int total; - - /** - * 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 ListUrnsResult() {} - - /** - * All-args constructor. - */ - public ListUrnsResult(java.util.List entities, java.lang.Integer start, java.lang.Integer count, java.lang.Integer total) { - this.entities = entities; - this.start = start; - this.count = count; - this.total = total; - } - - 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 entities; - case 1: return start; - case 2: return count; - case 3: return total; - 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: entities = (java.util.List)value$; break; - case 1: start = (java.lang.Integer)value$; break; - case 2: count = (java.lang.Integer)value$; break; - case 3: total = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entities' field. - * A list of entities returned from the list */ - public java.util.List getEntities() { - return entities; - } - - /** - * Sets the value of the 'entities' field. - * A list of entities returned from the list * @param value the value to set. - */ - public void setEntities(java.util.List value) { - this.entities = value; - } - - /** - * Gets the value of the 'start' field. - * Offset of the first entity in the result */ - public java.lang.Integer getStart() { - return start; - } - - /** - * Sets the value of the 'start' field. - * Offset of the first entity in the result * @param value the value to set. - */ - public void setStart(java.lang.Integer value) { - this.start = value; - } - - /** - * Gets the value of the 'count' field. - * Size of each page in the result */ - public java.lang.Integer getCount() { - return count; - } - - /** - * Sets the value of the 'count' field. - * Size of each page in the result * @param value the value to set. - */ - public void setCount(java.lang.Integer value) { - this.count = value; - } - - /** - * Gets the value of the 'total' field. - * The total number of entities directly under searched path */ - public java.lang.Integer getTotal() { - return total; - } - - /** - * Sets the value of the 'total' field. - * The total number of entities directly under searched path * @param value the value to set. - */ - public void setTotal(java.lang.Integer value) { - this.total = value; - } - - /** Creates a new ListUrnsResult RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder(); - } - - /** Creates a new ListUrnsResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder(other); - } - - /** Creates a new ListUrnsResult RecordBuilder by copying an existing ListUrnsResult instance */ - public static com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.ListUrnsResult other) { - return new com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder(other); - } - - /** - * RecordBuilder for ListUrnsResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List entities; - private int start; - private int count; - private int total; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.start)) { - this.start = data().deepCopy(fields()[1].schema(), other.start); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.count)) { - this.count = data().deepCopy(fields()[2].schema(), other.count); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.total)) { - this.total = data().deepCopy(fields()[3].schema(), other.total); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing ListUrnsResult instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.ListUrnsResult other) { - super(com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.SCHEMA$); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.start)) { - this.start = data().deepCopy(fields()[1].schema(), other.start); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.count)) { - this.count = data().deepCopy(fields()[2].schema(), other.count); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.total)) { - this.total = data().deepCopy(fields()[3].schema(), other.total); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'entities' field */ - public java.util.List getEntities() { - return entities; - } - - /** Sets the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder setEntities(java.util.List value) { - validate(fields()[0], value); - this.entities = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entities' field has been set */ - public boolean hasEntities() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder clearEntities() { - entities = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'start' field */ - public java.lang.Integer getStart() { - return start; - } - - /** Sets the value of the 'start' field */ - public com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder setStart(int value) { - validate(fields()[1], value); - this.start = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'start' field has been set */ - public boolean hasStart() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'start' field */ - public com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder clearStart() { - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'count' field */ - public java.lang.Integer getCount() { - return count; - } - - /** Sets the value of the 'count' field */ - public com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder setCount(int value) { - validate(fields()[2], value); - this.count = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'count' field has been set */ - public boolean hasCount() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'count' field */ - public com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder clearCount() { - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'total' field */ - public java.lang.Integer getTotal() { - return total; - } - - /** Sets the value of the 'total' field */ - public com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder setTotal(int value) { - validate(fields()[3], value); - this.total = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'total' field has been set */ - public boolean hasTotal() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'total' field */ - public com.linkedin.pegasus2avro.metadata.query.ListUrnsResult.Builder clearTotal() { - fieldSetFlags()[3] = false; - return this; - } - - @Override - public ListUrnsResult build() { - try { - ListUrnsResult record = new ListUrnsResult(); - record.entities = fieldSetFlags()[0] ? this.entities : (java.util.List) defaultValue(fields()[0]); - record.start = fieldSetFlags()[1] ? this.start : (java.lang.Integer) defaultValue(fields()[1]); - record.count = fieldSetFlags()[2] ? this.count : (java.lang.Integer) defaultValue(fields()[2]); - record.total = fieldSetFlags()[3] ? this.total : (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/metadata/query/MapMetadata.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/MapMetadata.java deleted file mode 100644 index aaced8d08e36c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/MapMetadata.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** The model for map metadata */ -@org.apache.avro.specific.AvroGenerated -public class MapMetadata 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\":\"MapMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"The model for map metadata\",\"fields\":[{\"name\":\"longMap\",\"type\":{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"},\"doc\":\"Map for string keys to long values\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Map for string keys to long values */ - @Deprecated public java.util.Map longMap; - - /** - * 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 MapMetadata() {} - - /** - * All-args constructor. - */ - public MapMetadata(java.util.Map longMap) { - this.longMap = longMap; - } - - 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 longMap; - 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: longMap = (java.util.Map)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'longMap' field. - * Map for string keys to long values */ - public java.util.Map getLongMap() { - return longMap; - } - - /** - * Sets the value of the 'longMap' field. - * Map for string keys to long values * @param value the value to set. - */ - public void setLongMap(java.util.Map value) { - this.longMap = value; - } - - /** Creates a new MapMetadata RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.MapMetadata.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.MapMetadata.Builder(); - } - - /** Creates a new MapMetadata RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.MapMetadata.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.MapMetadata.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.MapMetadata.Builder(other); - } - - /** Creates a new MapMetadata RecordBuilder by copying an existing MapMetadata instance */ - public static com.linkedin.pegasus2avro.metadata.query.MapMetadata.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.MapMetadata other) { - return new com.linkedin.pegasus2avro.metadata.query.MapMetadata.Builder(other); - } - - /** - * RecordBuilder for MapMetadata instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.Map longMap; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.MapMetadata.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.MapMetadata.Builder other) { - super(other); - if (isValidValue(fields()[0], other.longMap)) { - this.longMap = data().deepCopy(fields()[0].schema(), other.longMap); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing MapMetadata instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.MapMetadata other) { - super(com.linkedin.pegasus2avro.metadata.query.MapMetadata.SCHEMA$); - if (isValidValue(fields()[0], other.longMap)) { - this.longMap = data().deepCopy(fields()[0].schema(), other.longMap); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'longMap' field */ - public java.util.Map getLongMap() { - return longMap; - } - - /** Sets the value of the 'longMap' field */ - public com.linkedin.pegasus2avro.metadata.query.MapMetadata.Builder setLongMap(java.util.Map value) { - validate(fields()[0], value); - this.longMap = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'longMap' field has been set */ - public boolean hasLongMap() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'longMap' field */ - public com.linkedin.pegasus2avro.metadata.query.MapMetadata.Builder clearLongMap() { - longMap = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public MapMetadata build() { - try { - MapMetadata record = new MapMetadata(); - record.longMap = fieldSetFlags()[0] ? this.longMap : (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/metadata/query/SearchFlags.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/SearchFlags.java deleted file mode 100644 index b5f39bbd6c964..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/SearchFlags.java +++ /dev/null @@ -1,362 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query; -@SuppressWarnings("all") -/** Set of flags to control search behavior */ -@org.apache.avro.specific.AvroGenerated -public class SearchFlags 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\":\"SearchFlags\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"Set of flags to control search behavior\",\"fields\":[{\"name\":\"skipCache\",\"type\":\"boolean\",\"doc\":\"Whether to skip cache\",\"default\":false},{\"name\":\"maxAggValues\",\"type\":\"int\",\"doc\":\"The maximum number of values in an facet aggregation\",\"default\":20},{\"name\":\"fulltext\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Structured or unstructured fulltext query\",\"default\":null},{\"name\":\"skipHighlighting\",\"type\":[\"boolean\",\"null\"],\"doc\":\"Whether to skip highlighting\",\"default\":false},{\"name\":\"skipAggregates\",\"type\":[\"boolean\",\"null\"],\"doc\":\"Whether to skip aggregates/facets\",\"default\":false}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Whether to skip cache */ - @Deprecated public boolean skipCache; - /** The maximum number of values in an facet aggregation */ - @Deprecated public int maxAggValues; - /** Structured or unstructured fulltext query */ - @Deprecated public java.lang.Boolean fulltext; - /** Whether to skip highlighting */ - @Deprecated public java.lang.Boolean skipHighlighting; - /** Whether to skip aggregates/facets */ - @Deprecated public java.lang.Boolean skipAggregates; - - /** - * 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 SearchFlags() {} - - /** - * All-args constructor. - */ - public SearchFlags(java.lang.Boolean skipCache, java.lang.Integer maxAggValues, java.lang.Boolean fulltext, java.lang.Boolean skipHighlighting, java.lang.Boolean skipAggregates) { - this.skipCache = skipCache; - this.maxAggValues = maxAggValues; - this.fulltext = fulltext; - this.skipHighlighting = skipHighlighting; - this.skipAggregates = skipAggregates; - } - - 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 skipCache; - case 1: return maxAggValues; - case 2: return fulltext; - case 3: return skipHighlighting; - case 4: return skipAggregates; - 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: skipCache = (java.lang.Boolean)value$; break; - case 1: maxAggValues = (java.lang.Integer)value$; break; - case 2: fulltext = (java.lang.Boolean)value$; break; - case 3: skipHighlighting = (java.lang.Boolean)value$; break; - case 4: skipAggregates = (java.lang.Boolean)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'skipCache' field. - * Whether to skip cache */ - public java.lang.Boolean getSkipCache() { - return skipCache; - } - - /** - * Sets the value of the 'skipCache' field. - * Whether to skip cache * @param value the value to set. - */ - public void setSkipCache(java.lang.Boolean value) { - this.skipCache = value; - } - - /** - * Gets the value of the 'maxAggValues' field. - * The maximum number of values in an facet aggregation */ - public java.lang.Integer getMaxAggValues() { - return maxAggValues; - } - - /** - * Sets the value of the 'maxAggValues' field. - * The maximum number of values in an facet aggregation * @param value the value to set. - */ - public void setMaxAggValues(java.lang.Integer value) { - this.maxAggValues = value; - } - - /** - * Gets the value of the 'fulltext' field. - * Structured or unstructured fulltext query */ - public java.lang.Boolean getFulltext() { - return fulltext; - } - - /** - * Sets the value of the 'fulltext' field. - * Structured or unstructured fulltext query * @param value the value to set. - */ - public void setFulltext(java.lang.Boolean value) { - this.fulltext = value; - } - - /** - * Gets the value of the 'skipHighlighting' field. - * Whether to skip highlighting */ - public java.lang.Boolean getSkipHighlighting() { - return skipHighlighting; - } - - /** - * Sets the value of the 'skipHighlighting' field. - * Whether to skip highlighting * @param value the value to set. - */ - public void setSkipHighlighting(java.lang.Boolean value) { - this.skipHighlighting = value; - } - - /** - * Gets the value of the 'skipAggregates' field. - * Whether to skip aggregates/facets */ - public java.lang.Boolean getSkipAggregates() { - return skipAggregates; - } - - /** - * Sets the value of the 'skipAggregates' field. - * Whether to skip aggregates/facets * @param value the value to set. - */ - public void setSkipAggregates(java.lang.Boolean value) { - this.skipAggregates = value; - } - - /** Creates a new SearchFlags RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder(); - } - - /** Creates a new SearchFlags RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder(other); - } - - /** Creates a new SearchFlags RecordBuilder by copying an existing SearchFlags instance */ - public static com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.SearchFlags other) { - return new com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder(other); - } - - /** - * RecordBuilder for SearchFlags instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private boolean skipCache; - private int maxAggValues; - private java.lang.Boolean fulltext; - private java.lang.Boolean skipHighlighting; - private java.lang.Boolean skipAggregates; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.SearchFlags.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder other) { - super(other); - if (isValidValue(fields()[0], other.skipCache)) { - this.skipCache = data().deepCopy(fields()[0].schema(), other.skipCache); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.maxAggValues)) { - this.maxAggValues = data().deepCopy(fields()[1].schema(), other.maxAggValues); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.fulltext)) { - this.fulltext = data().deepCopy(fields()[2].schema(), other.fulltext); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.skipHighlighting)) { - this.skipHighlighting = data().deepCopy(fields()[3].schema(), other.skipHighlighting); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.skipAggregates)) { - this.skipAggregates = data().deepCopy(fields()[4].schema(), other.skipAggregates); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing SearchFlags instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.SearchFlags other) { - super(com.linkedin.pegasus2avro.metadata.query.SearchFlags.SCHEMA$); - if (isValidValue(fields()[0], other.skipCache)) { - this.skipCache = data().deepCopy(fields()[0].schema(), other.skipCache); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.maxAggValues)) { - this.maxAggValues = data().deepCopy(fields()[1].schema(), other.maxAggValues); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.fulltext)) { - this.fulltext = data().deepCopy(fields()[2].schema(), other.fulltext); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.skipHighlighting)) { - this.skipHighlighting = data().deepCopy(fields()[3].schema(), other.skipHighlighting); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.skipAggregates)) { - this.skipAggregates = data().deepCopy(fields()[4].schema(), other.skipAggregates); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'skipCache' field */ - public java.lang.Boolean getSkipCache() { - return skipCache; - } - - /** Sets the value of the 'skipCache' field */ - public com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder setSkipCache(boolean value) { - validate(fields()[0], value); - this.skipCache = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'skipCache' field has been set */ - public boolean hasSkipCache() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'skipCache' field */ - public com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder clearSkipCache() { - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'maxAggValues' field */ - public java.lang.Integer getMaxAggValues() { - return maxAggValues; - } - - /** Sets the value of the 'maxAggValues' field */ - public com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder setMaxAggValues(int value) { - validate(fields()[1], value); - this.maxAggValues = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'maxAggValues' field has been set */ - public boolean hasMaxAggValues() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'maxAggValues' field */ - public com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder clearMaxAggValues() { - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'fulltext' field */ - public java.lang.Boolean getFulltext() { - return fulltext; - } - - /** Sets the value of the 'fulltext' field */ - public com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder setFulltext(java.lang.Boolean value) { - validate(fields()[2], value); - this.fulltext = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'fulltext' field has been set */ - public boolean hasFulltext() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'fulltext' field */ - public com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder clearFulltext() { - fulltext = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'skipHighlighting' field */ - public java.lang.Boolean getSkipHighlighting() { - return skipHighlighting; - } - - /** Sets the value of the 'skipHighlighting' field */ - public com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder setSkipHighlighting(java.lang.Boolean value) { - validate(fields()[3], value); - this.skipHighlighting = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'skipHighlighting' field has been set */ - public boolean hasSkipHighlighting() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'skipHighlighting' field */ - public com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder clearSkipHighlighting() { - skipHighlighting = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'skipAggregates' field */ - public java.lang.Boolean getSkipAggregates() { - return skipAggregates; - } - - /** Sets the value of the 'skipAggregates' field */ - public com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder setSkipAggregates(java.lang.Boolean value) { - validate(fields()[4], value); - this.skipAggregates = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'skipAggregates' field has been set */ - public boolean hasSkipAggregates() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'skipAggregates' field */ - public com.linkedin.pegasus2avro.metadata.query.SearchFlags.Builder clearSkipAggregates() { - skipAggregates = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public SearchFlags build() { - try { - SearchFlags record = new SearchFlags(); - record.skipCache = fieldSetFlags()[0] ? this.skipCache : (java.lang.Boolean) defaultValue(fields()[0]); - record.maxAggValues = fieldSetFlags()[1] ? this.maxAggValues : (java.lang.Integer) defaultValue(fields()[1]); - record.fulltext = fieldSetFlags()[2] ? this.fulltext : (java.lang.Boolean) defaultValue(fields()[2]); - record.skipHighlighting = fieldSetFlags()[3] ? this.skipHighlighting : (java.lang.Boolean) defaultValue(fields()[3]); - record.skipAggregates = fieldSetFlags()[4] ? this.skipAggregates : (java.lang.Boolean) 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/metadata/query/filter/Condition.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/Condition.java deleted file mode 100644 index f3fced8a9ec5a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/Condition.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query.filter; -@SuppressWarnings("all") -/** The matching condition in a filter criterion */ -@org.apache.avro.specific.AvroGenerated -public enum Condition { - CONTAIN, END_WITH, EQUAL, IS_NULL, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, IN, LESS_THAN, LESS_THAN_OR_EQUAL_TO, START_WITH ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"Condition\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/ConjunctiveCriterion.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/ConjunctiveCriterion.java deleted file mode 100644 index 9e55ff7cbb0e9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/ConjunctiveCriterion.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query.filter; -@SuppressWarnings("all") -/** A list of criterion and'd together. */ -@org.apache.avro.specific.AvroGenerated -public class ConjunctiveCriterion 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\":\"ConjunctiveCriterion\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"A list of criterion and'd together.\",\"fields\":[{\"name\":\"and\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Criterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The value of the intended field\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. one of which the intended field should match\\nNote, if values is set, the above \\\"value\\\" field will be ignored\",\"default\":[]},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"Condition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}},\"doc\":\"The condition for the criterion, e.g. EQUAL, START_WITH\",\"default\":\"EQUAL\"},{\"name\":\"negated\",\"type\":\"boolean\",\"doc\":\"Whether the condition should be negated\",\"default\":false}]}},\"doc\":\"A list of and criteria the filter applies to the query\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of and criteria the filter applies to the query */ - @Deprecated public java.util.List and; - - /** - * 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 ConjunctiveCriterion() {} - - /** - * All-args constructor. - */ - public ConjunctiveCriterion(java.util.List and) { - this.and = and; - } - - 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 and; - 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: and = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'and' field. - * A list of and criteria the filter applies to the query */ - public java.util.List getAnd() { - return and; - } - - /** - * Sets the value of the 'and' field. - * A list of and criteria the filter applies to the query * @param value the value to set. - */ - public void setAnd(java.util.List value) { - this.and = value; - } - - /** Creates a new ConjunctiveCriterion RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion.Builder(); - } - - /** Creates a new ConjunctiveCriterion RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion.Builder(other); - } - - /** Creates a new ConjunctiveCriterion RecordBuilder by copying an existing ConjunctiveCriterion instance */ - public static com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion other) { - return new com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion.Builder(other); - } - - /** - * RecordBuilder for ConjunctiveCriterion instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List and; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion.Builder other) { - super(other); - if (isValidValue(fields()[0], other.and)) { - this.and = data().deepCopy(fields()[0].schema(), other.and); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing ConjunctiveCriterion instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion other) { - super(com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion.SCHEMA$); - if (isValidValue(fields()[0], other.and)) { - this.and = data().deepCopy(fields()[0].schema(), other.and); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'and' field */ - public java.util.List getAnd() { - return and; - } - - /** Sets the value of the 'and' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion.Builder setAnd(java.util.List value) { - validate(fields()[0], value); - this.and = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'and' field has been set */ - public boolean hasAnd() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'and' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.ConjunctiveCriterion.Builder clearAnd() { - and = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public ConjunctiveCriterion build() { - try { - ConjunctiveCriterion record = new ConjunctiveCriterion(); - record.and = fieldSetFlags()[0] ? this.and : (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/metadata/query/filter/Criterion.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/Criterion.java deleted file mode 100644 index 0598c7c647b0d..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/Criterion.java +++ /dev/null @@ -1,366 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query.filter; -@SuppressWarnings("all") -/** A criterion for matching a field with given value */ -@org.apache.avro.specific.AvroGenerated -public class Criterion 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\":\"Criterion\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The value of the intended field\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. one of which the intended field should match\\nNote, if values is set, the above \\\"value\\\" field will be ignored\",\"default\":[]},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"Condition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}},\"doc\":\"The condition for the criterion, e.g. EQUAL, START_WITH\",\"default\":\"EQUAL\"},{\"name\":\"negated\",\"type\":\"boolean\",\"doc\":\"Whether the condition should be negated\",\"default\":false}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the field that the criterion refers to */ - @Deprecated public java.lang.String field; - /** The value of the intended field */ - @Deprecated public java.lang.String value; - /** Values. one of which the intended field should match -Note, if values is set, the above "value" field will be ignored */ - @Deprecated public java.util.List values; - /** The condition for the criterion, e.g. EQUAL, START_WITH */ - @Deprecated public com.linkedin.pegasus2avro.metadata.query.filter.Condition condition; - /** Whether the condition should be negated */ - @Deprecated public boolean negated; - - /** - * 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 Criterion() {} - - /** - * All-args constructor. - */ - public Criterion(java.lang.String field, java.lang.String value, java.util.List values, com.linkedin.pegasus2avro.metadata.query.filter.Condition condition, java.lang.Boolean negated) { - this.field = field; - this.value = value; - this.values = values; - this.condition = condition; - this.negated = negated; - } - - 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 field; - case 1: return value; - case 2: return values; - case 3: return condition; - case 4: return negated; - 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: field = (java.lang.String)value$; break; - case 1: value = (java.lang.String)value$; break; - case 2: values = (java.util.List)value$; break; - case 3: condition = (com.linkedin.pegasus2avro.metadata.query.filter.Condition)value$; break; - case 4: negated = (java.lang.Boolean)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'field' field. - * The name of the field that the criterion refers to */ - public java.lang.String getField() { - return field; - } - - /** - * Sets the value of the 'field' field. - * The name of the field that the criterion refers to * @param value the value to set. - */ - public void setField(java.lang.String value) { - this.field = value; - } - - /** - * Gets the value of the 'value' field. - * The value of the intended field */ - public java.lang.String getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * The value of the intended field * @param value the value to set. - */ - public void setValue(java.lang.String value) { - this.value = value; - } - - /** - * Gets the value of the 'values' field. - * Values. one of which the intended field should match -Note, if values is set, the above "value" field will be ignored */ - public java.util.List getValues() { - return values; - } - - /** - * Sets the value of the 'values' field. - * Values. one of which the intended field should match -Note, if values is set, the above "value" field will be ignored * @param value the value to set. - */ - public void setValues(java.util.List value) { - this.values = value; - } - - /** - * Gets the value of the 'condition' field. - * The condition for the criterion, e.g. EQUAL, START_WITH */ - public com.linkedin.pegasus2avro.metadata.query.filter.Condition getCondition() { - return condition; - } - - /** - * Sets the value of the 'condition' field. - * The condition for the criterion, e.g. EQUAL, START_WITH * @param value the value to set. - */ - public void setCondition(com.linkedin.pegasus2avro.metadata.query.filter.Condition value) { - this.condition = value; - } - - /** - * Gets the value of the 'negated' field. - * Whether the condition should be negated */ - public java.lang.Boolean getNegated() { - return negated; - } - - /** - * Sets the value of the 'negated' field. - * Whether the condition should be negated * @param value the value to set. - */ - public void setNegated(java.lang.Boolean value) { - this.negated = value; - } - - /** Creates a new Criterion RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder(); - } - - /** Creates a new Criterion RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder(other); - } - - /** Creates a new Criterion RecordBuilder by copying an existing Criterion instance */ - public static com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.filter.Criterion other) { - return new com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder(other); - } - - /** - * RecordBuilder for Criterion instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String field; - private java.lang.String value; - private java.util.List values; - private com.linkedin.pegasus2avro.metadata.query.filter.Condition condition; - private boolean negated; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.filter.Criterion.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder other) { - super(other); - if (isValidValue(fields()[0], other.field)) { - this.field = data().deepCopy(fields()[0].schema(), other.field); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.value)) { - this.value = data().deepCopy(fields()[1].schema(), other.value); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.values)) { - this.values = data().deepCopy(fields()[2].schema(), other.values); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.condition)) { - this.condition = data().deepCopy(fields()[3].schema(), other.condition); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.negated)) { - this.negated = data().deepCopy(fields()[4].schema(), other.negated); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing Criterion instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.filter.Criterion other) { - super(com.linkedin.pegasus2avro.metadata.query.filter.Criterion.SCHEMA$); - if (isValidValue(fields()[0], other.field)) { - this.field = data().deepCopy(fields()[0].schema(), other.field); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.value)) { - this.value = data().deepCopy(fields()[1].schema(), other.value); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.values)) { - this.values = data().deepCopy(fields()[2].schema(), other.values); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.condition)) { - this.condition = data().deepCopy(fields()[3].schema(), other.condition); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.negated)) { - this.negated = data().deepCopy(fields()[4].schema(), other.negated); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'field' field */ - public java.lang.String getField() { - return field; - } - - /** Sets the value of the 'field' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder setField(java.lang.String value) { - validate(fields()[0], value); - this.field = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'field' field has been set */ - public boolean hasField() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'field' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder clearField() { - field = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.metadata.query.filter.Criterion.Builder setValue(java.lang.String value) { - validate(fields()[1], value); - this.value = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'value' field has been set */ - public boolean hasValue() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'value' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder clearValue() { - value = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'values' field */ - public java.util.List getValues() { - return values; - } - - /** Sets the value of the 'values' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder setValues(java.util.List value) { - validate(fields()[2], value); - this.values = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'values' field has been set */ - public boolean hasValues() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'values' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder clearValues() { - values = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'condition' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Condition getCondition() { - return condition; - } - - /** Sets the value of the 'condition' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder setCondition(com.linkedin.pegasus2avro.metadata.query.filter.Condition value) { - validate(fields()[3], value); - this.condition = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'condition' field has been set */ - public boolean hasCondition() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'condition' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder clearCondition() { - condition = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'negated' field */ - public java.lang.Boolean getNegated() { - return negated; - } - - /** Sets the value of the 'negated' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder setNegated(boolean value) { - validate(fields()[4], value); - this.negated = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'negated' field has been set */ - public boolean hasNegated() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'negated' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Criterion.Builder clearNegated() { - fieldSetFlags()[4] = false; - return this; - } - - @Override - public Criterion build() { - try { - Criterion record = new Criterion(); - record.field = fieldSetFlags()[0] ? this.field : (java.lang.String) defaultValue(fields()[0]); - record.value = fieldSetFlags()[1] ? this.value : (java.lang.String) defaultValue(fields()[1]); - record.values = fieldSetFlags()[2] ? this.values : (java.util.List) defaultValue(fields()[2]); - record.condition = fieldSetFlags()[3] ? this.condition : (com.linkedin.pegasus2avro.metadata.query.filter.Condition) defaultValue(fields()[3]); - record.negated = fieldSetFlags()[4] ? this.negated : (java.lang.Boolean) 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/metadata/query/filter/Filter.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/Filter.java deleted file mode 100644 index ce84951401060..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/Filter.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query.filter; -@SuppressWarnings("all") -/** The filter for finding a record or a collection of records */ -@org.apache.avro.specific.AvroGenerated -public class Filter 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\":\"Filter\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"The filter for finding a record or a collection of records\",\"fields\":[{\"name\":\"or\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ConjunctiveCriterion\",\"doc\":\"A list of criterion and'd together.\",\"fields\":[{\"name\":\"and\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Criterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The value of the intended field\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. one of which the intended field should match\\nNote, if values is set, the above \\\"value\\\" field will be ignored\",\"default\":[]},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"Condition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}},\"doc\":\"The condition for the criterion, e.g. EQUAL, START_WITH\",\"default\":\"EQUAL\"},{\"name\":\"negated\",\"type\":\"boolean\",\"doc\":\"Whether the condition should be negated\",\"default\":false}]}},\"doc\":\"A list of and criteria the filter applies to the query\"}]}}],\"doc\":\"A list of disjunctive criterion for the filter. (or operation to combine filters)\",\"default\":null},{\"name\":\"criteria\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Criterion\"}],\"doc\":\"Deprecated! A list of conjunctive criterion for the filter. If \\\"or\\\" field is provided, then this field is ignored.\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of disjunctive criterion for the filter. (or operation to combine filters) */ - @Deprecated public java.util.List or; - /** Deprecated! A list of conjunctive criterion for the filter. If "or" field is provided, then this field is ignored. */ - @Deprecated public java.util.List criteria; - - /** - * 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 Filter() {} - - /** - * All-args constructor. - */ - public Filter(java.util.List or, java.util.List criteria) { - this.or = or; - this.criteria = criteria; - } - - 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 or; - case 1: return criteria; - 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: or = (java.util.List)value$; break; - case 1: criteria = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'or' field. - * A list of disjunctive criterion for the filter. (or operation to combine filters) */ - public java.util.List getOr() { - return or; - } - - /** - * Sets the value of the 'or' field. - * A list of disjunctive criterion for the filter. (or operation to combine filters) * @param value the value to set. - */ - public void setOr(java.util.List value) { - this.or = value; - } - - /** - * Gets the value of the 'criteria' field. - * Deprecated! A list of conjunctive criterion for the filter. If "or" field is provided, then this field is ignored. */ - public java.util.List getCriteria() { - return criteria; - } - - /** - * Sets the value of the 'criteria' field. - * Deprecated! A list of conjunctive criterion for the filter. If "or" field is provided, then this field is ignored. * @param value the value to set. - */ - public void setCriteria(java.util.List value) { - this.criteria = value; - } - - /** Creates a new Filter RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.filter.Filter.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.filter.Filter.Builder(); - } - - /** Creates a new Filter RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.filter.Filter.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.filter.Filter.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.filter.Filter.Builder(other); - } - - /** Creates a new Filter RecordBuilder by copying an existing Filter instance */ - public static com.linkedin.pegasus2avro.metadata.query.filter.Filter.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.filter.Filter other) { - return new com.linkedin.pegasus2avro.metadata.query.filter.Filter.Builder(other); - } - - /** - * RecordBuilder for Filter instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List or; - private java.util.List criteria; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.filter.Filter.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.filter.Filter.Builder other) { - super(other); - if (isValidValue(fields()[0], other.or)) { - this.or = data().deepCopy(fields()[0].schema(), other.or); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.criteria)) { - this.criteria = data().deepCopy(fields()[1].schema(), other.criteria); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing Filter instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.filter.Filter other) { - super(com.linkedin.pegasus2avro.metadata.query.filter.Filter.SCHEMA$); - if (isValidValue(fields()[0], other.or)) { - this.or = data().deepCopy(fields()[0].schema(), other.or); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.criteria)) { - this.criteria = data().deepCopy(fields()[1].schema(), other.criteria); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'or' field */ - public java.util.List getOr() { - return or; - } - - /** Sets the value of the 'or' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Filter.Builder setOr(java.util.List value) { - validate(fields()[0], value); - this.or = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'or' field has been set */ - public boolean hasOr() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'or' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Filter.Builder clearOr() { - or = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'criteria' field */ - public java.util.List getCriteria() { - return criteria; - } - - /** Sets the value of the 'criteria' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Filter.Builder setCriteria(java.util.List value) { - validate(fields()[1], value); - this.criteria = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'criteria' field has been set */ - public boolean hasCriteria() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'criteria' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Filter.Builder clearCriteria() { - criteria = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public Filter build() { - try { - Filter record = new Filter(); - record.or = fieldSetFlags()[0] ? this.or : (java.util.List) defaultValue(fields()[0]); - record.criteria = fieldSetFlags()[1] ? this.criteria : (java.util.List) 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/metadata/query/filter/RelationshipDirection.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/RelationshipDirection.java deleted file mode 100644 index 6f7cbf2f9799f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/RelationshipDirection.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query.filter; -@SuppressWarnings("all") -/** The relationship direction in a relationship filter */ -@org.apache.avro.specific.AvroGenerated -public enum RelationshipDirection { - INCOMING, OUTGOING, UNDIRECTED ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"RelationshipDirection\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"The relationship direction in a relationship filter\",\"symbols\":[\"INCOMING\",\"OUTGOING\",\"UNDIRECTED\"],\"symbolDocs\":{\"INCOMING\":\"The incoming edge to a source node in the graph\",\"OUTGOING\":\"The outgoing edge to a source node in the graph\",\"UNDIRECTED\":\"This is used for a query where the direction of the edge does not matter\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/RelationshipFilter.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/RelationshipFilter.java deleted file mode 100644 index a3b85c3f1c095..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/RelationshipFilter.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query.filter; -@SuppressWarnings("all") -/** The relationship filter to apply in a graph query */ -@org.apache.avro.specific.AvroGenerated -public class RelationshipFilter 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\":\"RelationshipFilter\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"The relationship filter to apply in a graph query\",\"fields\":[{\"name\":\"or\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ConjunctiveCriterion\",\"doc\":\"A list of criterion and'd together.\",\"fields\":[{\"name\":\"and\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Criterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The value of the intended field\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. one of which the intended field should match\\nNote, if values is set, the above \\\"value\\\" field will be ignored\",\"default\":[]},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"Condition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}},\"doc\":\"The condition for the criterion, e.g. EQUAL, START_WITH\",\"default\":\"EQUAL\"},{\"name\":\"negated\",\"type\":\"boolean\",\"doc\":\"Whether the condition should be negated\",\"default\":false}]}},\"doc\":\"A list of and criteria the filter applies to the query\"}]}}],\"doc\":\"A list of disjunctive criterion for the filter. (or operation to combine filters)\",\"default\":null},{\"name\":\"criteria\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Criterion\"}],\"doc\":\"Deprecated! A list of conjunctive criterion for the filter. If \\\"or\\\" field is provided, then this field is ignored.\",\"default\":null},{\"name\":\"direction\",\"type\":{\"type\":\"enum\",\"name\":\"RelationshipDirection\",\"doc\":\"The relationship direction in a relationship filter\",\"symbols\":[\"INCOMING\",\"OUTGOING\",\"UNDIRECTED\"],\"symbolDocs\":{\"INCOMING\":\"The incoming edge to a source node in the graph\",\"OUTGOING\":\"The outgoing edge to a source node in the graph\",\"UNDIRECTED\":\"This is used for a query where the direction of the edge does not matter\"}},\"doc\":\"The relationship direction between two nodes in a graph query\",\"default\":\"UNDIRECTED\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of disjunctive criterion for the filter. (or operation to combine filters) */ - @Deprecated public java.util.List or; - /** Deprecated! A list of conjunctive criterion for the filter. If "or" field is provided, then this field is ignored. */ - @Deprecated public java.util.List criteria; - /** The relationship direction between two nodes in a graph query */ - @Deprecated public com.linkedin.pegasus2avro.metadata.query.filter.RelationshipDirection direction; - - /** - * 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 RelationshipFilter() {} - - /** - * All-args constructor. - */ - public RelationshipFilter(java.util.List or, java.util.List criteria, com.linkedin.pegasus2avro.metadata.query.filter.RelationshipDirection direction) { - this.or = or; - this.criteria = criteria; - this.direction = direction; - } - - 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 or; - case 1: return criteria; - case 2: return direction; - 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: or = (java.util.List)value$; break; - case 1: criteria = (java.util.List)value$; break; - case 2: direction = (com.linkedin.pegasus2avro.metadata.query.filter.RelationshipDirection)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'or' field. - * A list of disjunctive criterion for the filter. (or operation to combine filters) */ - public java.util.List getOr() { - return or; - } - - /** - * Sets the value of the 'or' field. - * A list of disjunctive criterion for the filter. (or operation to combine filters) * @param value the value to set. - */ - public void setOr(java.util.List value) { - this.or = value; - } - - /** - * Gets the value of the 'criteria' field. - * Deprecated! A list of conjunctive criterion for the filter. If "or" field is provided, then this field is ignored. */ - public java.util.List getCriteria() { - return criteria; - } - - /** - * Sets the value of the 'criteria' field. - * Deprecated! A list of conjunctive criterion for the filter. If "or" field is provided, then this field is ignored. * @param value the value to set. - */ - public void setCriteria(java.util.List value) { - this.criteria = value; - } - - /** - * Gets the value of the 'direction' field. - * The relationship direction between two nodes in a graph query */ - public com.linkedin.pegasus2avro.metadata.query.filter.RelationshipDirection getDirection() { - return direction; - } - - /** - * Sets the value of the 'direction' field. - * The relationship direction between two nodes in a graph query * @param value the value to set. - */ - public void setDirection(com.linkedin.pegasus2avro.metadata.query.filter.RelationshipDirection value) { - this.direction = value; - } - - /** Creates a new RelationshipFilter RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder(); - } - - /** Creates a new RelationshipFilter RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder(other); - } - - /** Creates a new RelationshipFilter RecordBuilder by copying an existing RelationshipFilter instance */ - public static com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter other) { - return new com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder(other); - } - - /** - * RecordBuilder for RelationshipFilter instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List or; - private java.util.List criteria; - private com.linkedin.pegasus2avro.metadata.query.filter.RelationshipDirection direction; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder other) { - super(other); - if (isValidValue(fields()[0], other.or)) { - this.or = data().deepCopy(fields()[0].schema(), other.or); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.criteria)) { - this.criteria = data().deepCopy(fields()[1].schema(), other.criteria); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.direction)) { - this.direction = data().deepCopy(fields()[2].schema(), other.direction); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing RelationshipFilter instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter other) { - super(com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.SCHEMA$); - if (isValidValue(fields()[0], other.or)) { - this.or = data().deepCopy(fields()[0].schema(), other.or); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.criteria)) { - this.criteria = data().deepCopy(fields()[1].schema(), other.criteria); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.direction)) { - this.direction = data().deepCopy(fields()[2].schema(), other.direction); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'or' field */ - public java.util.List getOr() { - return or; - } - - /** Sets the value of the 'or' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder setOr(java.util.List value) { - validate(fields()[0], value); - this.or = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'or' field has been set */ - public boolean hasOr() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'or' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder clearOr() { - or = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'criteria' field */ - public java.util.List getCriteria() { - return criteria; - } - - /** Sets the value of the 'criteria' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder setCriteria(java.util.List value) { - validate(fields()[1], value); - this.criteria = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'criteria' field has been set */ - public boolean hasCriteria() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'criteria' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder clearCriteria() { - criteria = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'direction' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.RelationshipDirection getDirection() { - return direction; - } - - /** Sets the value of the 'direction' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder setDirection(com.linkedin.pegasus2avro.metadata.query.filter.RelationshipDirection value) { - validate(fields()[2], value); - this.direction = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'direction' field has been set */ - public boolean hasDirection() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'direction' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.RelationshipFilter.Builder clearDirection() { - direction = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public RelationshipFilter build() { - try { - RelationshipFilter record = new RelationshipFilter(); - record.or = fieldSetFlags()[0] ? this.or : (java.util.List) defaultValue(fields()[0]); - record.criteria = fieldSetFlags()[1] ? this.criteria : (java.util.List) defaultValue(fields()[1]); - record.direction = fieldSetFlags()[2] ? this.direction : (com.linkedin.pegasus2avro.metadata.query.filter.RelationshipDirection) 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/metadata/query/filter/SortCriterion.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/SortCriterion.java deleted file mode 100644 index a4e4c47fb926a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/SortCriterion.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query.filter; -@SuppressWarnings("all") -/** Sort order along with the field to sort it on, to be applied to the results. */ -@org.apache.avro.specific.AvroGenerated -public class SortCriterion 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\":\"SortCriterion\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"Sort order along with the field to sort it on, to be applied to the results.\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that sorting has to be applied to\"},{\"name\":\"order\",\"type\":{\"type\":\"enum\",\"name\":\"SortOrder\",\"doc\":\"The order used to sort the results\",\"symbols\":[\"ASCENDING\",\"DESCENDING\"],\"symbolDocs\":{\"ASCENDING\":\"If results need to be sorted in ascending order\",\"DESCENDING\":\"If results need to be sorted in descending order\"}},\"doc\":\"The order to sort the results i.e. ASCENDING or DESCENDING\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the field that sorting has to be applied to */ - @Deprecated public java.lang.String field; - /** The order to sort the results i.e. ASCENDING or DESCENDING */ - @Deprecated public com.linkedin.pegasus2avro.metadata.query.filter.SortOrder order; - - /** - * 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 SortCriterion() {} - - /** - * All-args constructor. - */ - public SortCriterion(java.lang.String field, com.linkedin.pegasus2avro.metadata.query.filter.SortOrder order) { - this.field = field; - this.order = order; - } - - 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 field; - case 1: return order; - 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: field = (java.lang.String)value$; break; - case 1: order = (com.linkedin.pegasus2avro.metadata.query.filter.SortOrder)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'field' field. - * The name of the field that sorting has to be applied to */ - public java.lang.String getField() { - return field; - } - - /** - * Sets the value of the 'field' field. - * The name of the field that sorting has to be applied to * @param value the value to set. - */ - public void setField(java.lang.String value) { - this.field = value; - } - - /** - * Gets the value of the 'order' field. - * The order to sort the results i.e. ASCENDING or DESCENDING */ - public com.linkedin.pegasus2avro.metadata.query.filter.SortOrder getOrder() { - return order; - } - - /** - * Sets the value of the 'order' field. - * The order to sort the results i.e. ASCENDING or DESCENDING * @param value the value to set. - */ - public void setOrder(com.linkedin.pegasus2avro.metadata.query.filter.SortOrder value) { - this.order = value; - } - - /** Creates a new SortCriterion RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.Builder(); - } - - /** Creates a new SortCriterion RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.Builder other) { - return new com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.Builder(other); - } - - /** Creates a new SortCriterion RecordBuilder by copying an existing SortCriterion instance */ - public static com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.Builder newBuilder(com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion other) { - return new com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.Builder(other); - } - - /** - * RecordBuilder for SortCriterion instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String field; - private com.linkedin.pegasus2avro.metadata.query.filter.SortOrder order; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.Builder other) { - super(other); - if (isValidValue(fields()[0], other.field)) { - this.field = data().deepCopy(fields()[0].schema(), other.field); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.order)) { - this.order = data().deepCopy(fields()[1].schema(), other.order); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing SortCriterion instance */ - private Builder(com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion other) { - super(com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.SCHEMA$); - if (isValidValue(fields()[0], other.field)) { - this.field = data().deepCopy(fields()[0].schema(), other.field); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.order)) { - this.order = data().deepCopy(fields()[1].schema(), other.order); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'field' field */ - public java.lang.String getField() { - return field; - } - - /** Sets the value of the 'field' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.Builder setField(java.lang.String value) { - validate(fields()[0], value); - this.field = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'field' field has been set */ - public boolean hasField() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'field' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.Builder clearField() { - field = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'order' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.SortOrder getOrder() { - return order; - } - - /** Sets the value of the 'order' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.Builder setOrder(com.linkedin.pegasus2avro.metadata.query.filter.SortOrder value) { - validate(fields()[1], value); - this.order = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'order' field has been set */ - public boolean hasOrder() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'order' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.SortCriterion.Builder clearOrder() { - order = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public SortCriterion build() { - try { - SortCriterion record = new SortCriterion(); - record.field = fieldSetFlags()[0] ? this.field : (java.lang.String) defaultValue(fields()[0]); - record.order = fieldSetFlags()[1] ? this.order : (com.linkedin.pegasus2avro.metadata.query.filter.SortOrder) 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/metadata/query/filter/SortOrder.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/SortOrder.java deleted file mode 100644 index bf5fa995568e9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/query/filter/SortOrder.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.query.filter; -@SuppressWarnings("all") -/** The order used to sort the results */ -@org.apache.avro.specific.AvroGenerated -public enum SortOrder { - ASCENDING, DESCENDING ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"SortOrder\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"The order used to sort the results\",\"symbols\":[\"ASCENDING\",\"DESCENDING\"],\"symbolDocs\":{\"ASCENDING\":\"If results need to be sorted in ascending order\",\"DESCENDING\":\"If results need to be sorted in descending order\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/ContentParams.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/ContentParams.java deleted file mode 100644 index f3a127452cd1a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/ContentParams.java +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.recommendation; -@SuppressWarnings("all") -/** Params about the recommended content */ -@org.apache.avro.specific.AvroGenerated -public class ContentParams 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\":\"ContentParams\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.recommendation\",\"doc\":\"Params about the recommended content\",\"fields\":[{\"name\":\"count\",\"type\":\"long\",\"doc\":\"Number of entities corresponding to the recommended content\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Number of entities corresponding to the recommended content */ - @Deprecated public long count; - - /** - * 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 ContentParams() {} - - /** - * All-args constructor. - */ - public ContentParams(java.lang.Long count) { - this.count = count; - } - - 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 count; - 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: count = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'count' field. - * Number of entities corresponding to the recommended content */ - public java.lang.Long getCount() { - return count; - } - - /** - * Sets the value of the 'count' field. - * Number of entities corresponding to the recommended content * @param value the value to set. - */ - public void setCount(java.lang.Long value) { - this.count = value; - } - - /** Creates a new ContentParams RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.ContentParams.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.recommendation.ContentParams.Builder(); - } - - /** Creates a new ContentParams RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.ContentParams.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.ContentParams.Builder other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.ContentParams.Builder(other); - } - - /** Creates a new ContentParams RecordBuilder by copying an existing ContentParams instance */ - public static com.linkedin.pegasus2avro.metadata.recommendation.ContentParams.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.ContentParams other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.ContentParams.Builder(other); - } - - /** - * RecordBuilder for ContentParams instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private long count; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.recommendation.ContentParams.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.ContentParams.Builder other) { - super(other); - if (isValidValue(fields()[0], other.count)) { - this.count = data().deepCopy(fields()[0].schema(), other.count); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing ContentParams instance */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.ContentParams other) { - super(com.linkedin.pegasus2avro.metadata.recommendation.ContentParams.SCHEMA$); - if (isValidValue(fields()[0], other.count)) { - this.count = data().deepCopy(fields()[0].schema(), other.count); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'count' field */ - public java.lang.Long getCount() { - return count; - } - - /** Sets the value of the 'count' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.ContentParams.Builder setCount(long value) { - validate(fields()[0], value); - this.count = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'count' field has been set */ - public boolean hasCount() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'count' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.ContentParams.Builder clearCount() { - fieldSetFlags()[0] = false; - return this; - } - - @Override - public ContentParams build() { - try { - ContentParams record = new ContentParams(); - record.count = fieldSetFlags()[0] ? this.count : (java.lang.Long) 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/metadata/recommendation/EntityProfileParams.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/EntityProfileParams.java deleted file mode 100644 index e96a5fa82a282..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/EntityProfileParams.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.recommendation; -@SuppressWarnings("all") -/** Context to define the entity profile page */ -@org.apache.avro.specific.AvroGenerated -public class EntityProfileParams 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\":\"EntityProfileParams\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.recommendation\",\"doc\":\"Context to define the entity profile page\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity being shown\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Urn of the entity being shown */ - @Deprecated public java.lang.String urn; - - /** - * 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 EntityProfileParams() {} - - /** - * All-args constructor. - */ - public EntityProfileParams(java.lang.String urn) { - this.urn = urn; - } - - 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 urn; - 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: urn = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * Urn of the entity being shown */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * Urn of the entity being shown * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** Creates a new EntityProfileParams RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams.Builder(); - } - - /** Creates a new EntityProfileParams RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams.Builder other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams.Builder(other); - } - - /** Creates a new EntityProfileParams RecordBuilder by copying an existing EntityProfileParams instance */ - public static com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams.Builder(other); - } - - /** - * RecordBuilder for EntityProfileParams instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing EntityProfileParams instance */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams other) { - super(com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public EntityProfileParams build() { - try { - EntityProfileParams record = new EntityProfileParams(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) 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/metadata/recommendation/EntityRequestContext.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/EntityRequestContext.java deleted file mode 100644 index 020004fe28839..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/EntityRequestContext.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.recommendation; -@SuppressWarnings("all") -/** Context that defines an entity page requesting recommendations */ -@org.apache.avro.specific.AvroGenerated -public class EntityRequestContext 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\":\"EntityRequestContext\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.recommendation\",\"doc\":\"Context that defines an entity page requesting recommendations\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Type of the entity being displayed\"},{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity being displayed\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Type of the entity being displayed */ - @Deprecated public java.lang.String type; - /** Urn of the entity being displayed */ - @Deprecated public java.lang.String urn; - - /** - * 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 EntityRequestContext() {} - - /** - * All-args constructor. - */ - public EntityRequestContext(java.lang.String type, java.lang.String urn) { - this.type = type; - this.urn = urn; - } - - 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 urn; - 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 = (java.lang.String)value$; break; - case 1: urn = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * Type of the entity being displayed */ - public java.lang.String getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Type of the entity being displayed * @param value the value to set. - */ - public void setType(java.lang.String value) { - this.type = value; - } - - /** - * Gets the value of the 'urn' field. - * Urn of the entity being displayed */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * Urn of the entity being displayed * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** Creates a new EntityRequestContext RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.Builder(); - } - - /** Creates a new EntityRequestContext RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.Builder other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.Builder(other); - } - - /** Creates a new EntityRequestContext RecordBuilder by copying an existing EntityRequestContext instance */ - public static com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.Builder(other); - } - - /** - * RecordBuilder for EntityRequestContext instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String type; - private java.lang.String urn; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.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.urn)) { - this.urn = data().deepCopy(fields()[1].schema(), other.urn); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing EntityRequestContext instance */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext other) { - super(com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.urn)) { - this.urn = data().deepCopy(fields()[1].schema(), other.urn); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'type' field */ - public java.lang.String getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.Builder setType(java.lang.String 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.metadata.recommendation.EntityRequestContext.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.Builder setUrn(java.lang.String value) { - validate(fields()[1], value); - this.urn = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext.Builder clearUrn() { - urn = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public EntityRequestContext build() { - try { - EntityRequestContext record = new EntityRequestContext(); - record.type = fieldSetFlags()[0] ? this.type : (java.lang.String) defaultValue(fields()[0]); - record.urn = fieldSetFlags()[1] ? this.urn : (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/metadata/recommendation/RecommendationContent.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/RecommendationContent.java deleted file mode 100644 index ff1a9e302a7c2..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/RecommendationContent.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.recommendation; -@SuppressWarnings("all") -/** Content to display within each recommendation module */ -@org.apache.avro.specific.AvroGenerated -public class RecommendationContent 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\":\"RecommendationContent\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.recommendation\",\"doc\":\"Content to display within each recommendation module\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"String representation of content\"},{\"name\":\"entity\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Entity being recommended. Empty if the content being recommended is not an entity\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"params\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"RecommendationParams\",\"doc\":\"Parameters required to render a recommendation of a given type\",\"fields\":[{\"name\":\"searchParams\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SearchParams\",\"doc\":\"Context to define the search recommendations\",\"fields\":[{\"name\":\"types\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Entity types to be searched. If this is not provided, all entities will be searched.\",\"default\":[]},{\"name\":\"query\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Search query\"},{\"name\":\"filters\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Criterion\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The value of the intended field\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. one of which the intended field should match\\nNote, if values is set, the above \\\"value\\\" field will be ignored\",\"default\":[]},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"Condition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}},\"doc\":\"The condition for the criterion, e.g. EQUAL, START_WITH\",\"default\":\"EQUAL\"},{\"name\":\"negated\",\"type\":\"boolean\",\"doc\":\"Whether the condition should be negated\",\"default\":false}]}},\"doc\":\"Filters\",\"default\":[]}]}],\"doc\":\"Context to define the search recommendations\",\"default\":null},{\"name\":\"entityProfileParams\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"EntityProfileParams\",\"doc\":\"Context to define the entity profile page\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity being shown\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"Context to define the entity profile page\",\"default\":null},{\"name\":\"contentParams\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"ContentParams\",\"doc\":\"Params about the recommended content\",\"fields\":[{\"name\":\"count\",\"type\":\"long\",\"doc\":\"Number of entities corresponding to the recommended content\"}]}],\"doc\":\"Context about the recommendation\",\"default\":null}]}],\"doc\":\"Additional context required to generate the the recommendation\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** String representation of content */ - @Deprecated public java.lang.String value; - /** Entity being recommended. Empty if the content being recommended is not an entity */ - @Deprecated public java.lang.String entity; - /** Additional context required to generate the the recommendation */ - @Deprecated public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams params; - - /** - * 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 RecommendationContent() {} - - /** - * All-args constructor. - */ - public RecommendationContent(java.lang.String value, java.lang.String entity, com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams params) { - this.value = value; - this.entity = entity; - this.params = params; - } - - 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 entity; - case 2: return params; - 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: entity = (java.lang.String)value$; break; - case 2: params = (com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'value' field. - * String representation of content */ - public java.lang.String getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * String representation of content * @param value the value to set. - */ - public void setValue(java.lang.String value) { - this.value = value; - } - - /** - * Gets the value of the 'entity' field. - * Entity being recommended. Empty if the content being recommended is not an entity */ - public java.lang.String getEntity() { - return entity; - } - - /** - * Sets the value of the 'entity' field. - * Entity being recommended. Empty if the content being recommended is not an entity * @param value the value to set. - */ - public void setEntity(java.lang.String value) { - this.entity = value; - } - - /** - * Gets the value of the 'params' field. - * Additional context required to generate the the recommendation */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams getParams() { - return params; - } - - /** - * Sets the value of the 'params' field. - * Additional context required to generate the the recommendation * @param value the value to set. - */ - public void setParams(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams value) { - this.params = value; - } - - /** Creates a new RecommendationContent RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.Builder(); - } - - /** Creates a new RecommendationContent RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.Builder other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.Builder(other); - } - - /** Creates a new RecommendationContent RecordBuilder by copying an existing RecommendationContent instance */ - public static com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.Builder(other); - } - - /** - * RecordBuilder for RecommendationContent instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String value; - private java.lang.String entity; - private com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams params; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.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.entity)) { - this.entity = data().deepCopy(fields()[1].schema(), other.entity); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.params)) { - this.params = data().deepCopy(fields()[2].schema(), other.params); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing RecommendationContent instance */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent other) { - super(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.SCHEMA$); - if (isValidValue(fields()[0], other.value)) { - this.value = data().deepCopy(fields()[0].schema(), other.value); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entity)) { - this.entity = data().deepCopy(fields()[1].schema(), other.entity); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.params)) { - this.params = data().deepCopy(fields()[2].schema(), other.params); - fieldSetFlags()[2] = 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.metadata.recommendation.RecommendationContent.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.metadata.recommendation.RecommendationContent.Builder clearValue() { - value = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'entity' field */ - public java.lang.String getEntity() { - return entity; - } - - /** Sets the value of the 'entity' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.Builder setEntity(java.lang.String value) { - validate(fields()[1], value); - this.entity = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'entity' field has been set */ - public boolean hasEntity() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'entity' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.Builder clearEntity() { - entity = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'params' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams getParams() { - return params; - } - - /** Sets the value of the 'params' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.Builder setParams(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams value) { - validate(fields()[2], value); - this.params = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'params' field has been set */ - public boolean hasParams() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'params' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationContent.Builder clearParams() { - params = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public RecommendationContent build() { - try { - RecommendationContent record = new RecommendationContent(); - record.value = fieldSetFlags()[0] ? this.value : (java.lang.String) defaultValue(fields()[0]); - record.entity = fieldSetFlags()[1] ? this.entity : (java.lang.String) defaultValue(fields()[1]); - record.params = fieldSetFlags()[2] ? this.params : (com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams) 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/metadata/recommendation/RecommendationModule.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/RecommendationModule.java deleted file mode 100644 index 7ca200ab8a982..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/RecommendationModule.java +++ /dev/null @@ -1,308 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.recommendation; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class RecommendationModule 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\":\"RecommendationModule\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.recommendation\",\"fields\":[{\"name\":\"title\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Title of the module to display\"},{\"name\":\"moduleId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id of the module being recommended\"},{\"name\":\"renderType\",\"type\":{\"type\":\"enum\",\"name\":\"RecommendationRenderType\",\"doc\":\"Enum that defines how the modules should be rendered.\\nThere should be two frontend implementation of large and small modules per type.\",\"symbols\":[\"ENTITY_NAME_LIST\",\"PLATFORM_SEARCH_LIST\",\"TAG_SEARCH_LIST\",\"GLOSSARY_TERM_SEARCH_LIST\",\"SEARCH_QUERY_LIST\",\"DOMAIN_SEARCH_LIST\"],\"symbolDocs\":{\"DOMAIN_SEARCH_LIST\":\"List of domains to search\",\"ENTITY_NAME_LIST\":\"Simple list of entities\",\"GLOSSARY_TERM_SEARCH_LIST\":\"Glossary term search list\",\"PLATFORM_SEARCH_LIST\":\"List of platforms to search\",\"SEARCH_QUERY_LIST\":\"A list of recommended searches\",\"TAG_SEARCH_LIST\":\"Tag search list\"}},\"doc\":\"Type of rendering that defines how the module should be rendered\"},{\"name\":\"content\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"RecommendationContent\",\"doc\":\"Content to display within each recommendation module\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"String representation of content\"},{\"name\":\"entity\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Entity being recommended. Empty if the content being recommended is not an entity\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"params\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"RecommendationParams\",\"doc\":\"Parameters required to render a recommendation of a given type\",\"fields\":[{\"name\":\"searchParams\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SearchParams\",\"doc\":\"Context to define the search recommendations\",\"fields\":[{\"name\":\"types\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Entity types to be searched. If this is not provided, all entities will be searched.\",\"default\":[]},{\"name\":\"query\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Search query\"},{\"name\":\"filters\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Criterion\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The value of the intended field\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. one of which the intended field should match\\nNote, if values is set, the above \\\"value\\\" field will be ignored\",\"default\":[]},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"Condition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}},\"doc\":\"The condition for the criterion, e.g. EQUAL, START_WITH\",\"default\":\"EQUAL\"},{\"name\":\"negated\",\"type\":\"boolean\",\"doc\":\"Whether the condition should be negated\",\"default\":false}]}},\"doc\":\"Filters\",\"default\":[]}]}],\"doc\":\"Context to define the search recommendations\",\"default\":null},{\"name\":\"entityProfileParams\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"EntityProfileParams\",\"doc\":\"Context to define the entity profile page\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity being shown\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"Context to define the entity profile page\",\"default\":null},{\"name\":\"contentParams\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"ContentParams\",\"doc\":\"Params about the recommended content\",\"fields\":[{\"name\":\"count\",\"type\":\"long\",\"doc\":\"Number of entities corresponding to the recommended content\"}]}],\"doc\":\"Context about the recommendation\",\"default\":null}]}],\"doc\":\"Additional context required to generate the the recommendation\",\"default\":null}]}},\"doc\":\"List of content to display inside the module\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Title of the module to display */ - @Deprecated public java.lang.String title; - /** Unique id of the module being recommended */ - @Deprecated public java.lang.String moduleId; - /** Type of rendering that defines how the module should be rendered */ - @Deprecated public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRenderType renderType; - /** List of content to display inside the module */ - @Deprecated public java.util.List content; - - /** - * 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 RecommendationModule() {} - - /** - * All-args constructor. - */ - public RecommendationModule(java.lang.String title, java.lang.String moduleId, com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRenderType renderType, java.util.List content) { - this.title = title; - this.moduleId = moduleId; - this.renderType = renderType; - this.content = content; - } - - 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 title; - case 1: return moduleId; - case 2: return renderType; - case 3: return content; - 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: title = (java.lang.String)value$; break; - case 1: moduleId = (java.lang.String)value$; break; - case 2: renderType = (com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRenderType)value$; break; - case 3: content = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'title' field. - * Title of the module to display */ - public java.lang.String getTitle() { - return title; - } - - /** - * Sets the value of the 'title' field. - * Title of the module to display * @param value the value to set. - */ - public void setTitle(java.lang.String value) { - this.title = value; - } - - /** - * Gets the value of the 'moduleId' field. - * Unique id of the module being recommended */ - public java.lang.String getModuleId() { - return moduleId; - } - - /** - * Sets the value of the 'moduleId' field. - * Unique id of the module being recommended * @param value the value to set. - */ - public void setModuleId(java.lang.String value) { - this.moduleId = value; - } - - /** - * Gets the value of the 'renderType' field. - * Type of rendering that defines how the module should be rendered */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRenderType getRenderType() { - return renderType; - } - - /** - * Sets the value of the 'renderType' field. - * Type of rendering that defines how the module should be rendered * @param value the value to set. - */ - public void setRenderType(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRenderType value) { - this.renderType = value; - } - - /** - * Gets the value of the 'content' field. - * List of content to display inside the module */ - public java.util.List getContent() { - return content; - } - - /** - * Sets the value of the 'content' field. - * List of content to display inside the module * @param value the value to set. - */ - public void setContent(java.util.List value) { - this.content = value; - } - - /** Creates a new RecommendationModule RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder(); - } - - /** Creates a new RecommendationModule RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder(other); - } - - /** Creates a new RecommendationModule RecordBuilder by copying an existing RecommendationModule instance */ - public static com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder(other); - } - - /** - * RecordBuilder for RecommendationModule instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String title; - private java.lang.String moduleId; - private com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRenderType renderType; - private java.util.List content; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder other) { - super(other); - if (isValidValue(fields()[0], other.title)) { - this.title = data().deepCopy(fields()[0].schema(), other.title); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.moduleId)) { - this.moduleId = data().deepCopy(fields()[1].schema(), other.moduleId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.renderType)) { - this.renderType = data().deepCopy(fields()[2].schema(), other.renderType); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.content)) { - this.content = data().deepCopy(fields()[3].schema(), other.content); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing RecommendationModule instance */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule other) { - super(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.SCHEMA$); - if (isValidValue(fields()[0], other.title)) { - this.title = data().deepCopy(fields()[0].schema(), other.title); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.moduleId)) { - this.moduleId = data().deepCopy(fields()[1].schema(), other.moduleId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.renderType)) { - this.renderType = data().deepCopy(fields()[2].schema(), other.renderType); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.content)) { - this.content = data().deepCopy(fields()[3].schema(), other.content); - fieldSetFlags()[3] = true; - } - } - - /** 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.metadata.recommendation.RecommendationModule.Builder setTitle(java.lang.String value) { - validate(fields()[0], value); - this.title = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'title' field has been set */ - public boolean hasTitle() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'title' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder clearTitle() { - title = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'moduleId' field */ - public java.lang.String getModuleId() { - return moduleId; - } - - /** Sets the value of the 'moduleId' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder setModuleId(java.lang.String value) { - validate(fields()[1], value); - this.moduleId = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'moduleId' field has been set */ - public boolean hasModuleId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'moduleId' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder clearModuleId() { - moduleId = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'renderType' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRenderType getRenderType() { - return renderType; - } - - /** Sets the value of the 'renderType' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder setRenderType(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRenderType value) { - validate(fields()[2], value); - this.renderType = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'renderType' field has been set */ - public boolean hasRenderType() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'renderType' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder clearRenderType() { - renderType = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'content' field */ - public java.util.List getContent() { - return content; - } - - /** Sets the value of the 'content' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder setContent(java.util.List value) { - validate(fields()[3], value); - this.content = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'content' field has been set */ - public boolean hasContent() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'content' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationModule.Builder clearContent() { - content = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public RecommendationModule build() { - try { - RecommendationModule record = new RecommendationModule(); - record.title = fieldSetFlags()[0] ? this.title : (java.lang.String) defaultValue(fields()[0]); - record.moduleId = fieldSetFlags()[1] ? this.moduleId : (java.lang.String) defaultValue(fields()[1]); - record.renderType = fieldSetFlags()[2] ? this.renderType : (com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRenderType) defaultValue(fields()[2]); - record.content = fieldSetFlags()[3] ? this.content : (java.util.List) 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/metadata/recommendation/RecommendationParams.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/RecommendationParams.java deleted file mode 100644 index c1f75c693e315..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/RecommendationParams.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.recommendation; -@SuppressWarnings("all") -/** Parameters required to render a recommendation of a given type */ -@org.apache.avro.specific.AvroGenerated -public class RecommendationParams 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\":\"RecommendationParams\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.recommendation\",\"doc\":\"Parameters required to render a recommendation of a given type\",\"fields\":[{\"name\":\"searchParams\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SearchParams\",\"doc\":\"Context to define the search recommendations\",\"fields\":[{\"name\":\"types\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Entity types to be searched. If this is not provided, all entities will be searched.\",\"default\":[]},{\"name\":\"query\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Search query\"},{\"name\":\"filters\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Criterion\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The value of the intended field\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. one of which the intended field should match\\nNote, if values is set, the above \\\"value\\\" field will be ignored\",\"default\":[]},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"Condition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}},\"doc\":\"The condition for the criterion, e.g. EQUAL, START_WITH\",\"default\":\"EQUAL\"},{\"name\":\"negated\",\"type\":\"boolean\",\"doc\":\"Whether the condition should be negated\",\"default\":false}]}},\"doc\":\"Filters\",\"default\":[]}]}],\"doc\":\"Context to define the search recommendations\",\"default\":null},{\"name\":\"entityProfileParams\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"EntityProfileParams\",\"doc\":\"Context to define the entity profile page\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity being shown\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"Context to define the entity profile page\",\"default\":null},{\"name\":\"contentParams\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"ContentParams\",\"doc\":\"Params about the recommended content\",\"fields\":[{\"name\":\"count\",\"type\":\"long\",\"doc\":\"Number of entities corresponding to the recommended content\"}]}],\"doc\":\"Context about the recommendation\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Context to define the search recommendations */ - @Deprecated public com.linkedin.pegasus2avro.metadata.recommendation.SearchParams searchParams; - /** Context to define the entity profile page */ - @Deprecated public com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams entityProfileParams; - /** Context about the recommendation */ - @Deprecated public com.linkedin.pegasus2avro.metadata.recommendation.ContentParams contentParams; - - /** - * 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 RecommendationParams() {} - - /** - * All-args constructor. - */ - public RecommendationParams(com.linkedin.pegasus2avro.metadata.recommendation.SearchParams searchParams, com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams entityProfileParams, com.linkedin.pegasus2avro.metadata.recommendation.ContentParams contentParams) { - this.searchParams = searchParams; - this.entityProfileParams = entityProfileParams; - this.contentParams = contentParams; - } - - 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 searchParams; - case 1: return entityProfileParams; - case 2: return contentParams; - 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: searchParams = (com.linkedin.pegasus2avro.metadata.recommendation.SearchParams)value$; break; - case 1: entityProfileParams = (com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams)value$; break; - case 2: contentParams = (com.linkedin.pegasus2avro.metadata.recommendation.ContentParams)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'searchParams' field. - * Context to define the search recommendations */ - public com.linkedin.pegasus2avro.metadata.recommendation.SearchParams getSearchParams() { - return searchParams; - } - - /** - * Sets the value of the 'searchParams' field. - * Context to define the search recommendations * @param value the value to set. - */ - public void setSearchParams(com.linkedin.pegasus2avro.metadata.recommendation.SearchParams value) { - this.searchParams = value; - } - - /** - * Gets the value of the 'entityProfileParams' field. - * Context to define the entity profile page */ - public com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams getEntityProfileParams() { - return entityProfileParams; - } - - /** - * Sets the value of the 'entityProfileParams' field. - * Context to define the entity profile page * @param value the value to set. - */ - public void setEntityProfileParams(com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams value) { - this.entityProfileParams = value; - } - - /** - * Gets the value of the 'contentParams' field. - * Context about the recommendation */ - public com.linkedin.pegasus2avro.metadata.recommendation.ContentParams getContentParams() { - return contentParams; - } - - /** - * Sets the value of the 'contentParams' field. - * Context about the recommendation * @param value the value to set. - */ - public void setContentParams(com.linkedin.pegasus2avro.metadata.recommendation.ContentParams value) { - this.contentParams = value; - } - - /** Creates a new RecommendationParams RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder(); - } - - /** Creates a new RecommendationParams RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder(other); - } - - /** Creates a new RecommendationParams RecordBuilder by copying an existing RecommendationParams instance */ - public static com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder(other); - } - - /** - * RecordBuilder for RecommendationParams instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.metadata.recommendation.SearchParams searchParams; - private com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams entityProfileParams; - private com.linkedin.pegasus2avro.metadata.recommendation.ContentParams contentParams; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder other) { - super(other); - if (isValidValue(fields()[0], other.searchParams)) { - this.searchParams = data().deepCopy(fields()[0].schema(), other.searchParams); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entityProfileParams)) { - this.entityProfileParams = data().deepCopy(fields()[1].schema(), other.entityProfileParams); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.contentParams)) { - this.contentParams = data().deepCopy(fields()[2].schema(), other.contentParams); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing RecommendationParams instance */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams other) { - super(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.SCHEMA$); - if (isValidValue(fields()[0], other.searchParams)) { - this.searchParams = data().deepCopy(fields()[0].schema(), other.searchParams); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entityProfileParams)) { - this.entityProfileParams = data().deepCopy(fields()[1].schema(), other.entityProfileParams); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.contentParams)) { - this.contentParams = data().deepCopy(fields()[2].schema(), other.contentParams); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'searchParams' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.SearchParams getSearchParams() { - return searchParams; - } - - /** Sets the value of the 'searchParams' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder setSearchParams(com.linkedin.pegasus2avro.metadata.recommendation.SearchParams value) { - validate(fields()[0], value); - this.searchParams = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'searchParams' field has been set */ - public boolean hasSearchParams() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'searchParams' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder clearSearchParams() { - searchParams = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'entityProfileParams' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams getEntityProfileParams() { - return entityProfileParams; - } - - /** Sets the value of the 'entityProfileParams' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder setEntityProfileParams(com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams value) { - validate(fields()[1], value); - this.entityProfileParams = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'entityProfileParams' field has been set */ - public boolean hasEntityProfileParams() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'entityProfileParams' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder clearEntityProfileParams() { - entityProfileParams = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'contentParams' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.ContentParams getContentParams() { - return contentParams; - } - - /** Sets the value of the 'contentParams' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder setContentParams(com.linkedin.pegasus2avro.metadata.recommendation.ContentParams value) { - validate(fields()[2], value); - this.contentParams = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'contentParams' field has been set */ - public boolean hasContentParams() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'contentParams' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationParams.Builder clearContentParams() { - contentParams = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public RecommendationParams build() { - try { - RecommendationParams record = new RecommendationParams(); - record.searchParams = fieldSetFlags()[0] ? this.searchParams : (com.linkedin.pegasus2avro.metadata.recommendation.SearchParams) defaultValue(fields()[0]); - record.entityProfileParams = fieldSetFlags()[1] ? this.entityProfileParams : (com.linkedin.pegasus2avro.metadata.recommendation.EntityProfileParams) defaultValue(fields()[1]); - record.contentParams = fieldSetFlags()[2] ? this.contentParams : (com.linkedin.pegasus2avro.metadata.recommendation.ContentParams) 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/metadata/recommendation/RecommendationRenderType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/RecommendationRenderType.java deleted file mode 100644 index 15af493dffca6..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/RecommendationRenderType.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.recommendation; -@SuppressWarnings("all") -/** Enum that defines how the modules should be rendered. -There should be two frontend implementation of large and small modules per type. */ -@org.apache.avro.specific.AvroGenerated -public enum RecommendationRenderType { - ENTITY_NAME_LIST, PLATFORM_SEARCH_LIST, TAG_SEARCH_LIST, GLOSSARY_TERM_SEARCH_LIST, SEARCH_QUERY_LIST, DOMAIN_SEARCH_LIST ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"RecommendationRenderType\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.recommendation\",\"doc\":\"Enum that defines how the modules should be rendered.\\nThere should be two frontend implementation of large and small modules per type.\",\"symbols\":[\"ENTITY_NAME_LIST\",\"PLATFORM_SEARCH_LIST\",\"TAG_SEARCH_LIST\",\"GLOSSARY_TERM_SEARCH_LIST\",\"SEARCH_QUERY_LIST\",\"DOMAIN_SEARCH_LIST\"],\"symbolDocs\":{\"DOMAIN_SEARCH_LIST\":\"List of domains to search\",\"ENTITY_NAME_LIST\":\"Simple list of entities\",\"GLOSSARY_TERM_SEARCH_LIST\":\"Glossary term search list\",\"PLATFORM_SEARCH_LIST\":\"List of platforms to search\",\"SEARCH_QUERY_LIST\":\"A list of recommended searches\",\"TAG_SEARCH_LIST\":\"Tag search list\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/RecommendationRequestContext.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/RecommendationRequestContext.java deleted file mode 100644 index 0e31d2ac659ca..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/RecommendationRequestContext.java +++ /dev/null @@ -1,255 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.recommendation; -@SuppressWarnings("all") -/** Context that defines the page requesting recommendations -i.e. for search pages, the query/filters. for entity pages, the entity urn and tab */ -@org.apache.avro.specific.AvroGenerated -public class RecommendationRequestContext 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\":\"RecommendationRequestContext\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.recommendation\",\"doc\":\"Context that defines the page requesting recommendations\\ni.e. for search pages, the query/filters. for entity pages, the entity urn and tab\",\"fields\":[{\"name\":\"scenario\",\"type\":{\"type\":\"enum\",\"name\":\"ScenarioType\",\"doc\":\"Type of the scenario requesting recommendation\",\"symbols\":[\"HOME\",\"SEARCH_RESULTS\",\"ENTITY_PROFILE\",\"SEARCH_BAR\"],\"symbolDocs\":{\"ENTITY_PROFILE\":\"Recommendations to show on an Entity Profile page\",\"HOME\":\"Recommendations to show on the users home page\",\"SEARCH_BAR\":\"Recommendations to show on the search bar when clicked\",\"SEARCH_RESULTS\":\"Recommendations to show on the search results page\"}},\"doc\":\"Scenario in which the recommendations will be displayed\"},{\"name\":\"searchRequestContext\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SearchRequestContext\",\"doc\":\"Context that defines a search page requesting recommendations\",\"fields\":[{\"name\":\"query\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Search query\"},{\"name\":\"filters\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Criterion\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The value of the intended field\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. one of which the intended field should match\\nNote, if values is set, the above \\\"value\\\" field will be ignored\",\"default\":[]},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"Condition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}},\"doc\":\"The condition for the criterion, e.g. EQUAL, START_WITH\",\"default\":\"EQUAL\"},{\"name\":\"negated\",\"type\":\"boolean\",\"doc\":\"Whether the condition should be negated\",\"default\":false}]}},\"doc\":\"filters applied to search results\",\"default\":[]}]}],\"doc\":\"Additional context for defining the search page requesting recommendations\",\"default\":null},{\"name\":\"entityRequestContext\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"EntityRequestContext\",\"doc\":\"Context that defines an entity page requesting recommendations\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Type of the entity being displayed\"},{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity being displayed\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"Additional context for defining the entity page requesting recommendations\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Scenario in which the recommendations will be displayed */ - @Deprecated public com.linkedin.pegasus2avro.metadata.recommendation.ScenarioType scenario; - /** Additional context for defining the search page requesting recommendations */ - @Deprecated public com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext searchRequestContext; - /** Additional context for defining the entity page requesting recommendations */ - @Deprecated public com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext entityRequestContext; - - /** - * 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 RecommendationRequestContext() {} - - /** - * All-args constructor. - */ - public RecommendationRequestContext(com.linkedin.pegasus2avro.metadata.recommendation.ScenarioType scenario, com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext searchRequestContext, com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext entityRequestContext) { - this.scenario = scenario; - this.searchRequestContext = searchRequestContext; - this.entityRequestContext = entityRequestContext; - } - - 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 scenario; - case 1: return searchRequestContext; - case 2: return entityRequestContext; - 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: scenario = (com.linkedin.pegasus2avro.metadata.recommendation.ScenarioType)value$; break; - case 1: searchRequestContext = (com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext)value$; break; - case 2: entityRequestContext = (com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'scenario' field. - * Scenario in which the recommendations will be displayed */ - public com.linkedin.pegasus2avro.metadata.recommendation.ScenarioType getScenario() { - return scenario; - } - - /** - * Sets the value of the 'scenario' field. - * Scenario in which the recommendations will be displayed * @param value the value to set. - */ - public void setScenario(com.linkedin.pegasus2avro.metadata.recommendation.ScenarioType value) { - this.scenario = value; - } - - /** - * Gets the value of the 'searchRequestContext' field. - * Additional context for defining the search page requesting recommendations */ - public com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext getSearchRequestContext() { - return searchRequestContext; - } - - /** - * Sets the value of the 'searchRequestContext' field. - * Additional context for defining the search page requesting recommendations * @param value the value to set. - */ - public void setSearchRequestContext(com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext value) { - this.searchRequestContext = value; - } - - /** - * Gets the value of the 'entityRequestContext' field. - * Additional context for defining the entity page requesting recommendations */ - public com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext getEntityRequestContext() { - return entityRequestContext; - } - - /** - * Sets the value of the 'entityRequestContext' field. - * Additional context for defining the entity page requesting recommendations * @param value the value to set. - */ - public void setEntityRequestContext(com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext value) { - this.entityRequestContext = value; - } - - /** Creates a new RecommendationRequestContext RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder(); - } - - /** Creates a new RecommendationRequestContext RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder(other); - } - - /** Creates a new RecommendationRequestContext RecordBuilder by copying an existing RecommendationRequestContext instance */ - public static com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder(other); - } - - /** - * RecordBuilder for RecommendationRequestContext instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.metadata.recommendation.ScenarioType scenario; - private com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext searchRequestContext; - private com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext entityRequestContext; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder other) { - super(other); - if (isValidValue(fields()[0], other.scenario)) { - this.scenario = data().deepCopy(fields()[0].schema(), other.scenario); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.searchRequestContext)) { - this.searchRequestContext = data().deepCopy(fields()[1].schema(), other.searchRequestContext); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.entityRequestContext)) { - this.entityRequestContext = data().deepCopy(fields()[2].schema(), other.entityRequestContext); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing RecommendationRequestContext instance */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext other) { - super(com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.SCHEMA$); - if (isValidValue(fields()[0], other.scenario)) { - this.scenario = data().deepCopy(fields()[0].schema(), other.scenario); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.searchRequestContext)) { - this.searchRequestContext = data().deepCopy(fields()[1].schema(), other.searchRequestContext); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.entityRequestContext)) { - this.entityRequestContext = data().deepCopy(fields()[2].schema(), other.entityRequestContext); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'scenario' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.ScenarioType getScenario() { - return scenario; - } - - /** Sets the value of the 'scenario' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder setScenario(com.linkedin.pegasus2avro.metadata.recommendation.ScenarioType value) { - validate(fields()[0], value); - this.scenario = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'scenario' field has been set */ - public boolean hasScenario() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'scenario' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder clearScenario() { - scenario = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'searchRequestContext' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext getSearchRequestContext() { - return searchRequestContext; - } - - /** Sets the value of the 'searchRequestContext' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder setSearchRequestContext(com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext value) { - validate(fields()[1], value); - this.searchRequestContext = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'searchRequestContext' field has been set */ - public boolean hasSearchRequestContext() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'searchRequestContext' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder clearSearchRequestContext() { - searchRequestContext = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'entityRequestContext' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext getEntityRequestContext() { - return entityRequestContext; - } - - /** Sets the value of the 'entityRequestContext' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder setEntityRequestContext(com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext value) { - validate(fields()[2], value); - this.entityRequestContext = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'entityRequestContext' field has been set */ - public boolean hasEntityRequestContext() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'entityRequestContext' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.RecommendationRequestContext.Builder clearEntityRequestContext() { - entityRequestContext = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public RecommendationRequestContext build() { - try { - RecommendationRequestContext record = new RecommendationRequestContext(); - record.scenario = fieldSetFlags()[0] ? this.scenario : (com.linkedin.pegasus2avro.metadata.recommendation.ScenarioType) defaultValue(fields()[0]); - record.searchRequestContext = fieldSetFlags()[1] ? this.searchRequestContext : (com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext) defaultValue(fields()[1]); - record.entityRequestContext = fieldSetFlags()[2] ? this.entityRequestContext : (com.linkedin.pegasus2avro.metadata.recommendation.EntityRequestContext) 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/metadata/recommendation/ScenarioType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/ScenarioType.java deleted file mode 100644 index 95d18048f1553..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/ScenarioType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.recommendation; -@SuppressWarnings("all") -/** Type of the scenario requesting recommendation */ -@org.apache.avro.specific.AvroGenerated -public enum ScenarioType { - HOME, SEARCH_RESULTS, ENTITY_PROFILE, SEARCH_BAR ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"ScenarioType\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.recommendation\",\"doc\":\"Type of the scenario requesting recommendation\",\"symbols\":[\"HOME\",\"SEARCH_RESULTS\",\"ENTITY_PROFILE\",\"SEARCH_BAR\"],\"symbolDocs\":{\"ENTITY_PROFILE\":\"Recommendations to show on an Entity Profile page\",\"HOME\":\"Recommendations to show on the users home page\",\"SEARCH_BAR\":\"Recommendations to show on the search bar when clicked\",\"SEARCH_RESULTS\":\"Recommendations to show on the search results page\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/SearchParams.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/SearchParams.java deleted file mode 100644 index 309e887479fc9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/SearchParams.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.recommendation; -@SuppressWarnings("all") -/** Context to define the search recommendations */ -@org.apache.avro.specific.AvroGenerated -public class SearchParams 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\":\"SearchParams\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.recommendation\",\"doc\":\"Context to define the search recommendations\",\"fields\":[{\"name\":\"types\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Entity types to be searched. If this is not provided, all entities will be searched.\",\"default\":[]},{\"name\":\"query\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Search query\"},{\"name\":\"filters\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Criterion\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The value of the intended field\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. one of which the intended field should match\\nNote, if values is set, the above \\\"value\\\" field will be ignored\",\"default\":[]},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"Condition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}},\"doc\":\"The condition for the criterion, e.g. EQUAL, START_WITH\",\"default\":\"EQUAL\"},{\"name\":\"negated\",\"type\":\"boolean\",\"doc\":\"Whether the condition should be negated\",\"default\":false}]}},\"doc\":\"Filters\",\"default\":[]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Entity types to be searched. If this is not provided, all entities will be searched. */ - @Deprecated public java.util.List types; - /** Search query */ - @Deprecated public java.lang.String query; - /** Filters */ - @Deprecated public java.util.List filters; - - /** - * 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 SearchParams() {} - - /** - * All-args constructor. - */ - public SearchParams(java.util.List types, java.lang.String query, java.util.List filters) { - this.types = types; - this.query = query; - this.filters = filters; - } - - 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 types; - case 1: return query; - case 2: return filters; - 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: types = (java.util.List)value$; break; - case 1: query = (java.lang.String)value$; break; - case 2: filters = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'types' field. - * Entity types to be searched. If this is not provided, all entities will be searched. */ - public java.util.List getTypes() { - return types; - } - - /** - * Sets the value of the 'types' field. - * Entity types to be searched. If this is not provided, all entities will be searched. * @param value the value to set. - */ - public void setTypes(java.util.List value) { - this.types = value; - } - - /** - * Gets the value of the 'query' field. - * Search query */ - public java.lang.String getQuery() { - return query; - } - - /** - * Sets the value of the 'query' field. - * Search query * @param value the value to set. - */ - public void setQuery(java.lang.String value) { - this.query = value; - } - - /** - * Gets the value of the 'filters' field. - * Filters */ - public java.util.List getFilters() { - return filters; - } - - /** - * Sets the value of the 'filters' field. - * Filters * @param value the value to set. - */ - public void setFilters(java.util.List value) { - this.filters = value; - } - - /** Creates a new SearchParams RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder(); - } - - /** Creates a new SearchParams RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder(other); - } - - /** Creates a new SearchParams RecordBuilder by copying an existing SearchParams instance */ - public static com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.SearchParams other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder(other); - } - - /** - * RecordBuilder for SearchParams instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List types; - private java.lang.String query; - private java.util.List filters; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder other) { - super(other); - if (isValidValue(fields()[0], other.types)) { - this.types = data().deepCopy(fields()[0].schema(), other.types); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.query)) { - this.query = data().deepCopy(fields()[1].schema(), other.query); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.filters)) { - this.filters = data().deepCopy(fields()[2].schema(), other.filters); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing SearchParams instance */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.SearchParams other) { - super(com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.SCHEMA$); - if (isValidValue(fields()[0], other.types)) { - this.types = data().deepCopy(fields()[0].schema(), other.types); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.query)) { - this.query = data().deepCopy(fields()[1].schema(), other.query); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.filters)) { - this.filters = data().deepCopy(fields()[2].schema(), other.filters); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'types' field */ - public java.util.List getTypes() { - return types; - } - - /** Sets the value of the 'types' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder setTypes(java.util.List value) { - validate(fields()[0], value); - this.types = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'types' field has been set */ - public boolean hasTypes() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'types' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder clearTypes() { - types = null; - fieldSetFlags()[0] = 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.metadata.recommendation.SearchParams.Builder setQuery(java.lang.String value) { - validate(fields()[1], value); - this.query = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'query' field has been set */ - public boolean hasQuery() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'query' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder clearQuery() { - query = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'filters' field */ - public java.util.List getFilters() { - return filters; - } - - /** Sets the value of the 'filters' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder setFilters(java.util.List value) { - validate(fields()[2], value); - this.filters = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'filters' field has been set */ - public boolean hasFilters() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'filters' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.SearchParams.Builder clearFilters() { - filters = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public SearchParams build() { - try { - SearchParams record = new SearchParams(); - record.types = fieldSetFlags()[0] ? this.types : (java.util.List) defaultValue(fields()[0]); - record.query = fieldSetFlags()[1] ? this.query : (java.lang.String) defaultValue(fields()[1]); - record.filters = fieldSetFlags()[2] ? this.filters : (java.util.List) 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/metadata/recommendation/SearchRequestContext.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/SearchRequestContext.java deleted file mode 100644 index 5d758cd5e3539..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/recommendation/SearchRequestContext.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.recommendation; -@SuppressWarnings("all") -/** Context that defines a search page requesting recommendations */ -@org.apache.avro.specific.AvroGenerated -public class SearchRequestContext 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\":\"SearchRequestContext\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.recommendation\",\"doc\":\"Context that defines a search page requesting recommendations\",\"fields\":[{\"name\":\"query\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Search query\"},{\"name\":\"filters\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Criterion\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The value of the intended field\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. one of which the intended field should match\\nNote, if values is set, the above \\\"value\\\" field will be ignored\",\"default\":[]},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"Condition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}},\"doc\":\"The condition for the criterion, e.g. EQUAL, START_WITH\",\"default\":\"EQUAL\"},{\"name\":\"negated\",\"type\":\"boolean\",\"doc\":\"Whether the condition should be negated\",\"default\":false}]}},\"doc\":\"filters applied to search results\",\"default\":[]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Search query */ - @Deprecated public java.lang.String query; - /** filters applied to search results */ - @Deprecated public java.util.List filters; - - /** - * 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 SearchRequestContext() {} - - /** - * All-args constructor. - */ - public SearchRequestContext(java.lang.String query, java.util.List filters) { - this.query = query; - this.filters = filters; - } - - 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 query; - case 1: return filters; - 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: query = (java.lang.String)value$; break; - case 1: filters = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'query' field. - * Search query */ - public java.lang.String getQuery() { - return query; - } - - /** - * Sets the value of the 'query' field. - * Search query * @param value the value to set. - */ - public void setQuery(java.lang.String value) { - this.query = value; - } - - /** - * Gets the value of the 'filters' field. - * filters applied to search results */ - public java.util.List getFilters() { - return filters; - } - - /** - * Sets the value of the 'filters' field. - * filters applied to search results * @param value the value to set. - */ - public void setFilters(java.util.List value) { - this.filters = value; - } - - /** Creates a new SearchRequestContext RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.Builder(); - } - - /** Creates a new SearchRequestContext RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.Builder other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.Builder(other); - } - - /** Creates a new SearchRequestContext RecordBuilder by copying an existing SearchRequestContext instance */ - public static com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.Builder newBuilder(com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext other) { - return new com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.Builder(other); - } - - /** - * RecordBuilder for SearchRequestContext instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String query; - private java.util.List filters; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.Builder other) { - super(other); - if (isValidValue(fields()[0], other.query)) { - this.query = data().deepCopy(fields()[0].schema(), other.query); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.filters)) { - this.filters = data().deepCopy(fields()[1].schema(), other.filters); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing SearchRequestContext instance */ - private Builder(com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext other) { - super(com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.SCHEMA$); - if (isValidValue(fields()[0], other.query)) { - this.query = data().deepCopy(fields()[0].schema(), other.query); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.filters)) { - this.filters = data().deepCopy(fields()[1].schema(), other.filters); - fieldSetFlags()[1] = true; - } - } - - /** 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.metadata.recommendation.SearchRequestContext.Builder setQuery(java.lang.String value) { - validate(fields()[0], value); - this.query = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'query' field has been set */ - public boolean hasQuery() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'query' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.Builder clearQuery() { - query = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'filters' field */ - public java.util.List getFilters() { - return filters; - } - - /** Sets the value of the 'filters' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.Builder setFilters(java.util.List value) { - validate(fields()[1], value); - this.filters = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'filters' field has been set */ - public boolean hasFilters() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'filters' field */ - public com.linkedin.pegasus2avro.metadata.recommendation.SearchRequestContext.Builder clearFilters() { - filters = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public SearchRequestContext build() { - try { - SearchRequestContext record = new SearchRequestContext(); - record.query = fieldSetFlags()[0] ? this.query : (java.lang.String) defaultValue(fields()[0]); - record.filters = fieldSetFlags()[1] ? this.filters : (java.util.List) 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/metadata/run/AspectRowSummary.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/AspectRowSummary.java deleted file mode 100644 index 11fa53d176154..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/AspectRowSummary.java +++ /dev/null @@ -1,517 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.run; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class AspectRowSummary 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\":\"AspectRowSummary\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.run\",\"fields\":[{\"name\":\"runId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"aspectName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timestamp\",\"type\":\"long\"},{\"name\":\"metadata\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"version\",\"type\":\"long\"},{\"name\":\"keyAspect\",\"type\":\"boolean\"},{\"name\":\"aspect\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Aspect\",\"namespace\":\"com.linkedin.pegasus2avro.entity\",\"doc\":\"Placeholder PDL record to store the aspect in the response. By using this place-holder, metadata-service can return\\nany type of aspect without having to define a single union class\",\"fields\":[]}],\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.String runId; - @Deprecated public java.lang.String aspectName; - @Deprecated public java.lang.String urn; - @Deprecated public long timestamp; - @Deprecated public java.lang.String metadata; - @Deprecated public long version; - @Deprecated public boolean keyAspect; - @Deprecated public com.linkedin.pegasus2avro.entity.Aspect aspect; - - /** - * 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 AspectRowSummary() {} - - /** - * All-args constructor. - */ - public AspectRowSummary(java.lang.String runId, java.lang.String aspectName, java.lang.String urn, java.lang.Long timestamp, java.lang.String metadata, java.lang.Long version, java.lang.Boolean keyAspect, com.linkedin.pegasus2avro.entity.Aspect aspect) { - this.runId = runId; - this.aspectName = aspectName; - this.urn = urn; - this.timestamp = timestamp; - this.metadata = metadata; - this.version = version; - this.keyAspect = keyAspect; - this.aspect = aspect; - } - - 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 runId; - case 1: return aspectName; - case 2: return urn; - case 3: return timestamp; - case 4: return metadata; - case 5: return version; - case 6: return keyAspect; - case 7: return aspect; - 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: runId = (java.lang.String)value$; break; - case 1: aspectName = (java.lang.String)value$; break; - case 2: urn = (java.lang.String)value$; break; - case 3: timestamp = (java.lang.Long)value$; break; - case 4: metadata = (java.lang.String)value$; break; - case 5: version = (java.lang.Long)value$; break; - case 6: keyAspect = (java.lang.Boolean)value$; break; - case 7: aspect = (com.linkedin.pegasus2avro.entity.Aspect)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'runId' field. - */ - public java.lang.String getRunId() { - return runId; - } - - /** - * Sets the value of the 'runId' field. - * @param value the value to set. - */ - public void setRunId(java.lang.String value) { - this.runId = value; - } - - /** - * Gets the value of the 'aspectName' field. - */ - public java.lang.String getAspectName() { - return aspectName; - } - - /** - * Sets the value of the 'aspectName' field. - * @param value the value to set. - */ - public void setAspectName(java.lang.String value) { - this.aspectName = value; - } - - /** - * Gets the value of the 'urn' field. - */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'timestamp' field. - */ - public java.lang.Long getTimestamp() { - return timestamp; - } - - /** - * Sets the value of the 'timestamp' field. - * @param value the value to set. - */ - public void setTimestamp(java.lang.Long value) { - this.timestamp = value; - } - - /** - * Gets the value of the 'metadata' field. - */ - public java.lang.String getMetadata() { - return metadata; - } - - /** - * Sets the value of the 'metadata' field. - * @param value the value to set. - */ - public void setMetadata(java.lang.String value) { - this.metadata = value; - } - - /** - * Gets the value of the 'version' field. - */ - public java.lang.Long getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * @param value the value to set. - */ - public void setVersion(java.lang.Long value) { - this.version = value; - } - - /** - * Gets the value of the 'keyAspect' field. - */ - public java.lang.Boolean getKeyAspect() { - return keyAspect; - } - - /** - * Sets the value of the 'keyAspect' field. - * @param value the value to set. - */ - public void setKeyAspect(java.lang.Boolean value) { - this.keyAspect = value; - } - - /** - * Gets the value of the 'aspect' field. - */ - public com.linkedin.pegasus2avro.entity.Aspect getAspect() { - return aspect; - } - - /** - * Sets the value of the 'aspect' field. - * @param value the value to set. - */ - public void setAspect(com.linkedin.pegasus2avro.entity.Aspect value) { - this.aspect = value; - } - - /** Creates a new AspectRowSummary RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder(); - } - - /** Creates a new AspectRowSummary RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder other) { - return new com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder(other); - } - - /** Creates a new AspectRowSummary RecordBuilder by copying an existing AspectRowSummary instance */ - public static com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.AspectRowSummary other) { - return new com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder(other); - } - - /** - * RecordBuilder for AspectRowSummary instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String runId; - private java.lang.String aspectName; - private java.lang.String urn; - private long timestamp; - private java.lang.String metadata; - private long version; - private boolean keyAspect; - private com.linkedin.pegasus2avro.entity.Aspect aspect; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder other) { - super(other); - if (isValidValue(fields()[0], other.runId)) { - this.runId = data().deepCopy(fields()[0].schema(), other.runId); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspectName)) { - this.aspectName = data().deepCopy(fields()[1].schema(), other.aspectName); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.urn)) { - this.urn = data().deepCopy(fields()[2].schema(), other.urn); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.timestamp)) { - this.timestamp = data().deepCopy(fields()[3].schema(), other.timestamp); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.metadata)) { - this.metadata = data().deepCopy(fields()[4].schema(), other.metadata); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.version)) { - this.version = data().deepCopy(fields()[5].schema(), other.version); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.keyAspect)) { - this.keyAspect = data().deepCopy(fields()[6].schema(), other.keyAspect); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.aspect)) { - this.aspect = data().deepCopy(fields()[7].schema(), other.aspect); - fieldSetFlags()[7] = true; - } - } - - /** Creates a Builder by copying an existing AspectRowSummary instance */ - private Builder(com.linkedin.pegasus2avro.metadata.run.AspectRowSummary other) { - super(com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.SCHEMA$); - if (isValidValue(fields()[0], other.runId)) { - this.runId = data().deepCopy(fields()[0].schema(), other.runId); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspectName)) { - this.aspectName = data().deepCopy(fields()[1].schema(), other.aspectName); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.urn)) { - this.urn = data().deepCopy(fields()[2].schema(), other.urn); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.timestamp)) { - this.timestamp = data().deepCopy(fields()[3].schema(), other.timestamp); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.metadata)) { - this.metadata = data().deepCopy(fields()[4].schema(), other.metadata); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.version)) { - this.version = data().deepCopy(fields()[5].schema(), other.version); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.keyAspect)) { - this.keyAspect = data().deepCopy(fields()[6].schema(), other.keyAspect); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.aspect)) { - this.aspect = data().deepCopy(fields()[7].schema(), other.aspect); - fieldSetFlags()[7] = true; - } - } - - /** 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.metadata.run.AspectRowSummary.Builder setRunId(java.lang.String value) { - validate(fields()[0], value); - this.runId = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'runId' field has been set */ - public boolean hasRunId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'runId' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder clearRunId() { - runId = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspectName' field */ - public java.lang.String getAspectName() { - return aspectName; - } - - /** Sets the value of the 'aspectName' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder setAspectName(java.lang.String value) { - validate(fields()[1], value); - this.aspectName = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspectName' field has been set */ - public boolean hasAspectName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspectName' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder clearAspectName() { - aspectName = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder setUrn(java.lang.String value) { - validate(fields()[2], value); - this.urn = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder clearUrn() { - urn = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'timestamp' field */ - public java.lang.Long getTimestamp() { - return timestamp; - } - - /** Sets the value of the 'timestamp' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder setTimestamp(long value) { - validate(fields()[3], value); - this.timestamp = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'timestamp' field has been set */ - public boolean hasTimestamp() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'timestamp' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder clearTimestamp() { - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'metadata' field */ - public java.lang.String getMetadata() { - return metadata; - } - - /** Sets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder setMetadata(java.lang.String value) { - validate(fields()[4], value); - this.metadata = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'metadata' field has been set */ - public boolean hasMetadata() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder clearMetadata() { - metadata = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public java.lang.Long getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder setVersion(long value) { - validate(fields()[5], value); - this.version = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder clearVersion() { - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'keyAspect' field */ - public java.lang.Boolean getKeyAspect() { - return keyAspect; - } - - /** Sets the value of the 'keyAspect' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder setKeyAspect(boolean value) { - validate(fields()[6], value); - this.keyAspect = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'keyAspect' field has been set */ - public boolean hasKeyAspect() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'keyAspect' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder clearKeyAspect() { - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.entity.Aspect getAspect() { - return aspect; - } - - /** Sets the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder setAspect(com.linkedin.pegasus2avro.entity.Aspect value) { - validate(fields()[7], value); - this.aspect = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'aspect' field has been set */ - public boolean hasAspect() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummary.Builder clearAspect() { - aspect = null; - fieldSetFlags()[7] = false; - return this; - } - - @Override - public AspectRowSummary build() { - try { - AspectRowSummary record = new AspectRowSummary(); - record.runId = fieldSetFlags()[0] ? this.runId : (java.lang.String) defaultValue(fields()[0]); - record.aspectName = fieldSetFlags()[1] ? this.aspectName : (java.lang.String) defaultValue(fields()[1]); - record.urn = fieldSetFlags()[2] ? this.urn : (java.lang.String) defaultValue(fields()[2]); - record.timestamp = fieldSetFlags()[3] ? this.timestamp : (java.lang.Long) defaultValue(fields()[3]); - record.metadata = fieldSetFlags()[4] ? this.metadata : (java.lang.String) defaultValue(fields()[4]); - record.version = fieldSetFlags()[5] ? this.version : (java.lang.Long) defaultValue(fields()[5]); - record.keyAspect = fieldSetFlags()[6] ? this.keyAspect : (java.lang.Boolean) defaultValue(fields()[6]); - record.aspect = fieldSetFlags()[7] ? this.aspect : (com.linkedin.pegasus2avro.entity.Aspect) 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/pegasus2avro/metadata/run/AspectRowSummaryList.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/AspectRowSummaryList.java deleted file mode 100644 index 3c678361a5f11..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/AspectRowSummaryList.java +++ /dev/null @@ -1,142 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.run; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class AspectRowSummaryList 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\":\"AspectRowSummaryList\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.run\",\"fields\":[{\"name\":\"aspectRowSummaries\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AspectRowSummary\",\"fields\":[{\"name\":\"runId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"aspectName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timestamp\",\"type\":\"long\"},{\"name\":\"metadata\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"version\",\"type\":\"long\"},{\"name\":\"keyAspect\",\"type\":\"boolean\"},{\"name\":\"aspect\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Aspect\",\"namespace\":\"com.linkedin.pegasus2avro.entity\",\"doc\":\"Placeholder PDL record to store the aspect in the response. By using this place-holder, metadata-service can return\\nany type of aspect without having to define a single union class\",\"fields\":[]}],\"default\":null}]}}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.util.List aspectRowSummaries; - - /** - * 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 AspectRowSummaryList() {} - - /** - * All-args constructor. - */ - public AspectRowSummaryList(java.util.List aspectRowSummaries) { - this.aspectRowSummaries = aspectRowSummaries; - } - - 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 aspectRowSummaries; - 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: aspectRowSummaries = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'aspectRowSummaries' field. - */ - public java.util.List getAspectRowSummaries() { - return aspectRowSummaries; - } - - /** - * Sets the value of the 'aspectRowSummaries' field. - * @param value the value to set. - */ - public void setAspectRowSummaries(java.util.List value) { - this.aspectRowSummaries = value; - } - - /** Creates a new AspectRowSummaryList RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList.Builder(); - } - - /** Creates a new AspectRowSummaryList RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList.Builder other) { - return new com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList.Builder(other); - } - - /** Creates a new AspectRowSummaryList RecordBuilder by copying an existing AspectRowSummaryList instance */ - public static com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList other) { - return new com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList.Builder(other); - } - - /** - * RecordBuilder for AspectRowSummaryList instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List aspectRowSummaries; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList.Builder other) { - super(other); - if (isValidValue(fields()[0], other.aspectRowSummaries)) { - this.aspectRowSummaries = data().deepCopy(fields()[0].schema(), other.aspectRowSummaries); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing AspectRowSummaryList instance */ - private Builder(com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList other) { - super(com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList.SCHEMA$); - if (isValidValue(fields()[0], other.aspectRowSummaries)) { - this.aspectRowSummaries = data().deepCopy(fields()[0].schema(), other.aspectRowSummaries); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'aspectRowSummaries' field */ - public java.util.List getAspectRowSummaries() { - return aspectRowSummaries; - } - - /** Sets the value of the 'aspectRowSummaries' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList.Builder setAspectRowSummaries(java.util.List value) { - validate(fields()[0], value); - this.aspectRowSummaries = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'aspectRowSummaries' field has been set */ - public boolean hasAspectRowSummaries() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'aspectRowSummaries' field */ - public com.linkedin.pegasus2avro.metadata.run.AspectRowSummaryList.Builder clearAspectRowSummaries() { - aspectRowSummaries = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public AspectRowSummaryList build() { - try { - AspectRowSummaryList record = new AspectRowSummaryList(); - record.aspectRowSummaries = fieldSetFlags()[0] ? this.aspectRowSummaries : (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/metadata/run/DeleteEntityResponse.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/DeleteEntityResponse.java deleted file mode 100644 index aa40480a13474..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/DeleteEntityResponse.java +++ /dev/null @@ -1,249 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.run; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class DeleteEntityResponse 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\":\"DeleteEntityResponse\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.run\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"rows\",\"type\":\"long\"},{\"name\":\"timeseriesRows\",\"type\":[\"null\",\"long\"],\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.String urn; - @Deprecated public long rows; - @Deprecated public java.lang.Long timeseriesRows; - - /** - * 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 DeleteEntityResponse() {} - - /** - * All-args constructor. - */ - public DeleteEntityResponse(java.lang.String urn, java.lang.Long rows, java.lang.Long timeseriesRows) { - this.urn = urn; - this.rows = rows; - this.timeseriesRows = timeseriesRows; - } - - 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 urn; - case 1: return rows; - case 2: return timeseriesRows; - 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: urn = (java.lang.String)value$; break; - case 1: rows = (java.lang.Long)value$; break; - case 2: timeseriesRows = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'rows' field. - */ - public java.lang.Long getRows() { - return rows; - } - - /** - * Sets the value of the 'rows' field. - * @param value the value to set. - */ - public void setRows(java.lang.Long value) { - this.rows = value; - } - - /** - * Gets the value of the 'timeseriesRows' field. - */ - public java.lang.Long getTimeseriesRows() { - return timeseriesRows; - } - - /** - * Sets the value of the 'timeseriesRows' field. - * @param value the value to set. - */ - public void setTimeseriesRows(java.lang.Long value) { - this.timeseriesRows = value; - } - - /** Creates a new DeleteEntityResponse RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder(); - } - - /** Creates a new DeleteEntityResponse RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder other) { - return new com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder(other); - } - - /** Creates a new DeleteEntityResponse RecordBuilder by copying an existing DeleteEntityResponse instance */ - public static com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse other) { - return new com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder(other); - } - - /** - * RecordBuilder for DeleteEntityResponse instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private long rows; - private java.lang.Long timeseriesRows; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.rows)) { - this.rows = data().deepCopy(fields()[1].schema(), other.rows); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.timeseriesRows)) { - this.timeseriesRows = data().deepCopy(fields()[2].schema(), other.timeseriesRows); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing DeleteEntityResponse instance */ - private Builder(com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse other) { - super(com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.rows)) { - this.rows = data().deepCopy(fields()[1].schema(), other.rows); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.timeseriesRows)) { - this.timeseriesRows = data().deepCopy(fields()[2].schema(), other.timeseriesRows); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'rows' field */ - public java.lang.Long getRows() { - return rows; - } - - /** Sets the value of the 'rows' field */ - public com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder setRows(long value) { - validate(fields()[1], value); - this.rows = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'rows' field has been set */ - public boolean hasRows() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'rows' field */ - public com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder clearRows() { - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'timeseriesRows' field */ - public java.lang.Long getTimeseriesRows() { - return timeseriesRows; - } - - /** Sets the value of the 'timeseriesRows' field */ - public com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder setTimeseriesRows(java.lang.Long value) { - validate(fields()[2], value); - this.timeseriesRows = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'timeseriesRows' field has been set */ - public boolean hasTimeseriesRows() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'timeseriesRows' field */ - public com.linkedin.pegasus2avro.metadata.run.DeleteEntityResponse.Builder clearTimeseriesRows() { - timeseriesRows = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public DeleteEntityResponse build() { - try { - DeleteEntityResponse record = new DeleteEntityResponse(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.rows = fieldSetFlags()[1] ? this.rows : (java.lang.Long) defaultValue(fields()[1]); - record.timeseriesRows = fieldSetFlags()[2] ? this.timeseriesRows : (java.lang.Long) 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/metadata/run/DeleteReferencesResponse.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/DeleteReferencesResponse.java deleted file mode 100644 index 4b6343bd22111..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/DeleteReferencesResponse.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.run; -@SuppressWarnings("all") -/** The model for the result of a relationship query. -Used to get the relationships of a given entity run. */ -@org.apache.avro.specific.AvroGenerated -public class DeleteReferencesResponse 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\":\"DeleteReferencesResponse\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.run\",\"doc\":\"The model for the result of a relationship query.\\nUsed to get the relationships of a given entity run.\",\"fields\":[{\"name\":\"relatedAspects\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"RelatedAspect\",\"doc\":\"Metadata about how an aspect is related to some urn\",\"fields\":[{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\" Urn of the entity that is referenced by the aspect.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspect\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"relationship\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}}},{\"name\":\"total\",\"type\":\"int\",\"doc\":\"Total number of relationships that an entity urn has.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.util.List relatedAspects; - /** Total number of relationships that an entity urn has. */ - @Deprecated public int total; - - /** - * 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 DeleteReferencesResponse() {} - - /** - * All-args constructor. - */ - public DeleteReferencesResponse(java.util.List relatedAspects, java.lang.Integer total) { - this.relatedAspects = relatedAspects; - this.total = total; - } - - 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 relatedAspects; - case 1: return total; - 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: relatedAspects = (java.util.List)value$; break; - case 1: total = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'relatedAspects' field. - */ - public java.util.List getRelatedAspects() { - return relatedAspects; - } - - /** - * Sets the value of the 'relatedAspects' field. - * @param value the value to set. - */ - public void setRelatedAspects(java.util.List value) { - this.relatedAspects = value; - } - - /** - * Gets the value of the 'total' field. - * Total number of relationships that an entity urn has. */ - public java.lang.Integer getTotal() { - return total; - } - - /** - * Sets the value of the 'total' field. - * Total number of relationships that an entity urn has. * @param value the value to set. - */ - public void setTotal(java.lang.Integer value) { - this.total = value; - } - - /** Creates a new DeleteReferencesResponse RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.Builder(); - } - - /** Creates a new DeleteReferencesResponse RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.Builder other) { - return new com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.Builder(other); - } - - /** Creates a new DeleteReferencesResponse RecordBuilder by copying an existing DeleteReferencesResponse instance */ - public static com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse other) { - return new com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.Builder(other); - } - - /** - * RecordBuilder for DeleteReferencesResponse instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List relatedAspects; - private int total; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.Builder other) { - super(other); - if (isValidValue(fields()[0], other.relatedAspects)) { - this.relatedAspects = data().deepCopy(fields()[0].schema(), other.relatedAspects); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.total)) { - this.total = data().deepCopy(fields()[1].schema(), other.total); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DeleteReferencesResponse instance */ - private Builder(com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse other) { - super(com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.SCHEMA$); - if (isValidValue(fields()[0], other.relatedAspects)) { - this.relatedAspects = data().deepCopy(fields()[0].schema(), other.relatedAspects); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.total)) { - this.total = data().deepCopy(fields()[1].schema(), other.total); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'relatedAspects' field */ - public java.util.List getRelatedAspects() { - return relatedAspects; - } - - /** Sets the value of the 'relatedAspects' field */ - public com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.Builder setRelatedAspects(java.util.List value) { - validate(fields()[0], value); - this.relatedAspects = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'relatedAspects' field has been set */ - public boolean hasRelatedAspects() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'relatedAspects' field */ - public com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.Builder clearRelatedAspects() { - relatedAspects = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'total' field */ - public java.lang.Integer getTotal() { - return total; - } - - /** Sets the value of the 'total' field */ - public com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.Builder setTotal(int value) { - validate(fields()[1], value); - this.total = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'total' field has been set */ - public boolean hasTotal() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'total' field */ - public com.linkedin.pegasus2avro.metadata.run.DeleteReferencesResponse.Builder clearTotal() { - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DeleteReferencesResponse build() { - try { - DeleteReferencesResponse record = new DeleteReferencesResponse(); - record.relatedAspects = fieldSetFlags()[0] ? this.relatedAspects : (java.util.List) defaultValue(fields()[0]); - record.total = fieldSetFlags()[1] ? this.total : (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/metadata/run/IngestionRunSummary.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/IngestionRunSummary.java deleted file mode 100644 index d00c3130020ad..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/IngestionRunSummary.java +++ /dev/null @@ -1,248 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.run; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class IngestionRunSummary 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\":\"IngestionRunSummary\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.run\",\"fields\":[{\"name\":\"runId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timestamp\",\"type\":\"long\"},{\"name\":\"rows\",\"type\":\"long\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.String runId; - @Deprecated public long timestamp; - @Deprecated public long rows; - - /** - * 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 IngestionRunSummary() {} - - /** - * All-args constructor. - */ - public IngestionRunSummary(java.lang.String runId, java.lang.Long timestamp, java.lang.Long rows) { - this.runId = runId; - this.timestamp = timestamp; - this.rows = rows; - } - - 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 runId; - case 1: return timestamp; - case 2: return rows; - 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: runId = (java.lang.String)value$; break; - case 1: timestamp = (java.lang.Long)value$; break; - case 2: rows = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'runId' field. - */ - public java.lang.String getRunId() { - return runId; - } - - /** - * Sets the value of the 'runId' field. - * @param value the value to set. - */ - public void setRunId(java.lang.String value) { - this.runId = value; - } - - /** - * Gets the value of the 'timestamp' field. - */ - public java.lang.Long getTimestamp() { - return timestamp; - } - - /** - * Sets the value of the 'timestamp' field. - * @param value the value to set. - */ - public void setTimestamp(java.lang.Long value) { - this.timestamp = value; - } - - /** - * Gets the value of the 'rows' field. - */ - public java.lang.Long getRows() { - return rows; - } - - /** - * Sets the value of the 'rows' field. - * @param value the value to set. - */ - public void setRows(java.lang.Long value) { - this.rows = value; - } - - /** Creates a new IngestionRunSummary RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder(); - } - - /** Creates a new IngestionRunSummary RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder other) { - return new com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder(other); - } - - /** Creates a new IngestionRunSummary RecordBuilder by copying an existing IngestionRunSummary instance */ - public static com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary other) { - return new com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder(other); - } - - /** - * RecordBuilder for IngestionRunSummary instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String runId; - private long timestamp; - private long rows; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder other) { - super(other); - if (isValidValue(fields()[0], other.runId)) { - this.runId = data().deepCopy(fields()[0].schema(), other.runId); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.timestamp)) { - this.timestamp = data().deepCopy(fields()[1].schema(), other.timestamp); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.rows)) { - this.rows = data().deepCopy(fields()[2].schema(), other.rows); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing IngestionRunSummary instance */ - private Builder(com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary other) { - super(com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.SCHEMA$); - if (isValidValue(fields()[0], other.runId)) { - this.runId = data().deepCopy(fields()[0].schema(), other.runId); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.timestamp)) { - this.timestamp = data().deepCopy(fields()[1].schema(), other.timestamp); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.rows)) { - this.rows = data().deepCopy(fields()[2].schema(), other.rows); - fieldSetFlags()[2] = true; - } - } - - /** 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.metadata.run.IngestionRunSummary.Builder setRunId(java.lang.String value) { - validate(fields()[0], value); - this.runId = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'runId' field has been set */ - public boolean hasRunId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'runId' field */ - public com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder clearRunId() { - runId = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'timestamp' field */ - public java.lang.Long getTimestamp() { - return timestamp; - } - - /** Sets the value of the 'timestamp' field */ - public com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder setTimestamp(long value) { - validate(fields()[1], value); - this.timestamp = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'timestamp' field has been set */ - public boolean hasTimestamp() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'timestamp' field */ - public com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder clearTimestamp() { - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'rows' field */ - public java.lang.Long getRows() { - return rows; - } - - /** Sets the value of the 'rows' field */ - public com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder setRows(long value) { - validate(fields()[2], value); - this.rows = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'rows' field has been set */ - public boolean hasRows() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'rows' field */ - public com.linkedin.pegasus2avro.metadata.run.IngestionRunSummary.Builder clearRows() { - fieldSetFlags()[2] = false; - return this; - } - - @Override - public IngestionRunSummary build() { - try { - IngestionRunSummary record = new IngestionRunSummary(); - record.runId = fieldSetFlags()[0] ? this.runId : (java.lang.String) defaultValue(fields()[0]); - record.timestamp = fieldSetFlags()[1] ? this.timestamp : (java.lang.Long) defaultValue(fields()[1]); - record.rows = fieldSetFlags()[2] ? this.rows : (java.lang.Long) 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/metadata/run/IngestionRunSummaryList.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/IngestionRunSummaryList.java deleted file mode 100644 index 8035c0bca66d0..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/IngestionRunSummaryList.java +++ /dev/null @@ -1,142 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.run; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class IngestionRunSummaryList 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\":\"IngestionRunSummaryList\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.run\",\"fields\":[{\"name\":\"ingestionRunSummaries\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"IngestionRunSummary\",\"fields\":[{\"name\":\"runId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timestamp\",\"type\":\"long\"},{\"name\":\"rows\",\"type\":\"long\"}]}}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.util.List ingestionRunSummaries; - - /** - * 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 IngestionRunSummaryList() {} - - /** - * All-args constructor. - */ - public IngestionRunSummaryList(java.util.List ingestionRunSummaries) { - this.ingestionRunSummaries = ingestionRunSummaries; - } - - 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 ingestionRunSummaries; - 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: ingestionRunSummaries = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'ingestionRunSummaries' field. - */ - public java.util.List getIngestionRunSummaries() { - return ingestionRunSummaries; - } - - /** - * Sets the value of the 'ingestionRunSummaries' field. - * @param value the value to set. - */ - public void setIngestionRunSummaries(java.util.List value) { - this.ingestionRunSummaries = value; - } - - /** Creates a new IngestionRunSummaryList RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList.Builder(); - } - - /** Creates a new IngestionRunSummaryList RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList.Builder other) { - return new com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList.Builder(other); - } - - /** Creates a new IngestionRunSummaryList RecordBuilder by copying an existing IngestionRunSummaryList instance */ - public static com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList other) { - return new com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList.Builder(other); - } - - /** - * RecordBuilder for IngestionRunSummaryList instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List ingestionRunSummaries; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList.Builder other) { - super(other); - if (isValidValue(fields()[0], other.ingestionRunSummaries)) { - this.ingestionRunSummaries = data().deepCopy(fields()[0].schema(), other.ingestionRunSummaries); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing IngestionRunSummaryList instance */ - private Builder(com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList other) { - super(com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList.SCHEMA$); - if (isValidValue(fields()[0], other.ingestionRunSummaries)) { - this.ingestionRunSummaries = data().deepCopy(fields()[0].schema(), other.ingestionRunSummaries); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'ingestionRunSummaries' field */ - public java.util.List getIngestionRunSummaries() { - return ingestionRunSummaries; - } - - /** Sets the value of the 'ingestionRunSummaries' field */ - public com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList.Builder setIngestionRunSummaries(java.util.List value) { - validate(fields()[0], value); - this.ingestionRunSummaries = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'ingestionRunSummaries' field has been set */ - public boolean hasIngestionRunSummaries() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'ingestionRunSummaries' field */ - public com.linkedin.pegasus2avro.metadata.run.IngestionRunSummaryList.Builder clearIngestionRunSummaries() { - ingestionRunSummaries = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public IngestionRunSummaryList build() { - try { - IngestionRunSummaryList record = new IngestionRunSummaryList(); - record.ingestionRunSummaries = fieldSetFlags()[0] ? this.ingestionRunSummaries : (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/metadata/run/RelatedAspect.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/RelatedAspect.java deleted file mode 100644 index 191b75c93d8ae..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/RelatedAspect.java +++ /dev/null @@ -1,252 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.run; -@SuppressWarnings("all") -/** Metadata about how an aspect is related to some urn */ -@org.apache.avro.specific.AvroGenerated -public class RelatedAspect 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\":\"RelatedAspect\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.run\",\"doc\":\"Metadata about how an aspect is related to some urn\",\"fields\":[{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\" Urn of the entity that is referenced by the aspect.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspect\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"relationship\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Urn of the entity that is referenced by the aspect. */ - @Deprecated public java.lang.String entity; - @Deprecated public java.lang.String aspect; - @Deprecated public java.lang.String relationship; - - /** - * 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 RelatedAspect() {} - - /** - * All-args constructor. - */ - public RelatedAspect(java.lang.String entity, java.lang.String aspect, java.lang.String relationship) { - this.entity = entity; - this.aspect = aspect; - this.relationship = relationship; - } - - 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 entity; - case 1: return aspect; - case 2: return relationship; - 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: entity = (java.lang.String)value$; break; - case 1: aspect = (java.lang.String)value$; break; - case 2: relationship = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entity' field. - * Urn of the entity that is referenced by the aspect. */ - public java.lang.String getEntity() { - return entity; - } - - /** - * Sets the value of the 'entity' field. - * Urn of the entity that is referenced by the aspect. * @param value the value to set. - */ - public void setEntity(java.lang.String value) { - this.entity = value; - } - - /** - * Gets the value of the 'aspect' field. - */ - public java.lang.String getAspect() { - return aspect; - } - - /** - * Sets the value of the 'aspect' field. - * @param value the value to set. - */ - public void setAspect(java.lang.String value) { - this.aspect = value; - } - - /** - * Gets the value of the 'relationship' field. - */ - public java.lang.String getRelationship() { - return relationship; - } - - /** - * Sets the value of the 'relationship' field. - * @param value the value to set. - */ - public void setRelationship(java.lang.String value) { - this.relationship = value; - } - - /** Creates a new RelatedAspect RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder(); - } - - /** Creates a new RelatedAspect RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder other) { - return new com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder(other); - } - - /** Creates a new RelatedAspect RecordBuilder by copying an existing RelatedAspect instance */ - public static com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.RelatedAspect other) { - return new com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder(other); - } - - /** - * RecordBuilder for RelatedAspect instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String entity; - private java.lang.String aspect; - private java.lang.String relationship; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.run.RelatedAspect.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entity)) { - this.entity = data().deepCopy(fields()[0].schema(), other.entity); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspect)) { - this.aspect = data().deepCopy(fields()[1].schema(), other.aspect); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.relationship)) { - this.relationship = data().deepCopy(fields()[2].schema(), other.relationship); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing RelatedAspect instance */ - private Builder(com.linkedin.pegasus2avro.metadata.run.RelatedAspect other) { - super(com.linkedin.pegasus2avro.metadata.run.RelatedAspect.SCHEMA$); - if (isValidValue(fields()[0], other.entity)) { - this.entity = data().deepCopy(fields()[0].schema(), other.entity); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspect)) { - this.aspect = data().deepCopy(fields()[1].schema(), other.aspect); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.relationship)) { - this.relationship = data().deepCopy(fields()[2].schema(), other.relationship); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'entity' field */ - public java.lang.String getEntity() { - return entity; - } - - /** Sets the value of the 'entity' field */ - public com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder setEntity(java.lang.String value) { - validate(fields()[0], value); - this.entity = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entity' field has been set */ - public boolean hasEntity() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entity' field */ - public com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder clearEntity() { - entity = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspect' field */ - public java.lang.String getAspect() { - return aspect; - } - - /** Sets the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder setAspect(java.lang.String value) { - validate(fields()[1], value); - this.aspect = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspect' field has been set */ - public boolean hasAspect() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder clearAspect() { - aspect = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'relationship' field */ - public java.lang.String getRelationship() { - return relationship; - } - - /** Sets the value of the 'relationship' field */ - public com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder setRelationship(java.lang.String value) { - validate(fields()[2], value); - this.relationship = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'relationship' field has been set */ - public boolean hasRelationship() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'relationship' field */ - public com.linkedin.pegasus2avro.metadata.run.RelatedAspect.Builder clearRelationship() { - relationship = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public RelatedAspect build() { - try { - RelatedAspect record = new RelatedAspect(); - record.entity = fieldSetFlags()[0] ? this.entity : (java.lang.String) defaultValue(fields()[0]); - record.aspect = fieldSetFlags()[1] ? this.aspect : (java.lang.String) defaultValue(fields()[1]); - record.relationship = fieldSetFlags()[2] ? this.relationship : (java.lang.String) 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/metadata/run/RollbackResponse.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/RollbackResponse.java deleted file mode 100644 index 5ddf612e3c03b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/RollbackResponse.java +++ /dev/null @@ -1,464 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.run; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class RollbackResponse 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\":\"RollbackResponse\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.run\",\"fields\":[{\"name\":\"aspectRowSummaries\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AspectRowSummary\",\"fields\":[{\"name\":\"runId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"aspectName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timestamp\",\"type\":\"long\"},{\"name\":\"metadata\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"version\",\"type\":\"long\"},{\"name\":\"keyAspect\",\"type\":\"boolean\"},{\"name\":\"aspect\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Aspect\",\"namespace\":\"com.linkedin.pegasus2avro.entity\",\"doc\":\"Placeholder PDL record to store the aspect in the response. By using this place-holder, metadata-service can return\\nany type of aspect without having to define a single union class\",\"fields\":[]}],\"default\":null}]}}},{\"name\":\"entitiesAffected\",\"type\":\"long\"},{\"name\":\"aspectsAffected\",\"type\":\"long\"},{\"name\":\"entitiesDeleted\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"aspectsReverted\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"unsafeEntitiesCount\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"unsafeEntities\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"UnsafeEntityInfo\",\"doc\":\" This record serves as a holder of information for entities that were unsafe to fully delete as part of a rollback operation.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the entity this aspect information instance refers to.\"}]}}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.util.List aspectRowSummaries; - @Deprecated public long entitiesAffected; - @Deprecated public long aspectsAffected; - @Deprecated public java.lang.Long entitiesDeleted; - @Deprecated public java.lang.Long aspectsReverted; - @Deprecated public java.lang.Long unsafeEntitiesCount; - @Deprecated public java.util.List unsafeEntities; - - /** - * 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 RollbackResponse() {} - - /** - * All-args constructor. - */ - public RollbackResponse(java.util.List aspectRowSummaries, java.lang.Long entitiesAffected, java.lang.Long aspectsAffected, java.lang.Long entitiesDeleted, java.lang.Long aspectsReverted, java.lang.Long unsafeEntitiesCount, java.util.List unsafeEntities) { - this.aspectRowSummaries = aspectRowSummaries; - this.entitiesAffected = entitiesAffected; - this.aspectsAffected = aspectsAffected; - this.entitiesDeleted = entitiesDeleted; - this.aspectsReverted = aspectsReverted; - this.unsafeEntitiesCount = unsafeEntitiesCount; - this.unsafeEntities = unsafeEntities; - } - - 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 aspectRowSummaries; - case 1: return entitiesAffected; - case 2: return aspectsAffected; - case 3: return entitiesDeleted; - case 4: return aspectsReverted; - case 5: return unsafeEntitiesCount; - case 6: return unsafeEntities; - 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: aspectRowSummaries = (java.util.List)value$; break; - case 1: entitiesAffected = (java.lang.Long)value$; break; - case 2: aspectsAffected = (java.lang.Long)value$; break; - case 3: entitiesDeleted = (java.lang.Long)value$; break; - case 4: aspectsReverted = (java.lang.Long)value$; break; - case 5: unsafeEntitiesCount = (java.lang.Long)value$; break; - case 6: unsafeEntities = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'aspectRowSummaries' field. - */ - public java.util.List getAspectRowSummaries() { - return aspectRowSummaries; - } - - /** - * Sets the value of the 'aspectRowSummaries' field. - * @param value the value to set. - */ - public void setAspectRowSummaries(java.util.List value) { - this.aspectRowSummaries = value; - } - - /** - * Gets the value of the 'entitiesAffected' field. - */ - public java.lang.Long getEntitiesAffected() { - return entitiesAffected; - } - - /** - * Sets the value of the 'entitiesAffected' field. - * @param value the value to set. - */ - public void setEntitiesAffected(java.lang.Long value) { - this.entitiesAffected = value; - } - - /** - * Gets the value of the 'aspectsAffected' field. - */ - public java.lang.Long getAspectsAffected() { - return aspectsAffected; - } - - /** - * Sets the value of the 'aspectsAffected' field. - * @param value the value to set. - */ - public void setAspectsAffected(java.lang.Long value) { - this.aspectsAffected = value; - } - - /** - * Gets the value of the 'entitiesDeleted' field. - */ - public java.lang.Long getEntitiesDeleted() { - return entitiesDeleted; - } - - /** - * Sets the value of the 'entitiesDeleted' field. - * @param value the value to set. - */ - public void setEntitiesDeleted(java.lang.Long value) { - this.entitiesDeleted = value; - } - - /** - * Gets the value of the 'aspectsReverted' field. - */ - public java.lang.Long getAspectsReverted() { - return aspectsReverted; - } - - /** - * Sets the value of the 'aspectsReverted' field. - * @param value the value to set. - */ - public void setAspectsReverted(java.lang.Long value) { - this.aspectsReverted = value; - } - - /** - * Gets the value of the 'unsafeEntitiesCount' field. - */ - public java.lang.Long getUnsafeEntitiesCount() { - return unsafeEntitiesCount; - } - - /** - * Sets the value of the 'unsafeEntitiesCount' field. - * @param value the value to set. - */ - public void setUnsafeEntitiesCount(java.lang.Long value) { - this.unsafeEntitiesCount = value; - } - - /** - * Gets the value of the 'unsafeEntities' field. - */ - public java.util.List getUnsafeEntities() { - return unsafeEntities; - } - - /** - * Sets the value of the 'unsafeEntities' field. - * @param value the value to set. - */ - public void setUnsafeEntities(java.util.List value) { - this.unsafeEntities = value; - } - - /** Creates a new RollbackResponse RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder(); - } - - /** Creates a new RollbackResponse RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder other) { - return new com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder(other); - } - - /** Creates a new RollbackResponse RecordBuilder by copying an existing RollbackResponse instance */ - public static com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.RollbackResponse other) { - return new com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder(other); - } - - /** - * RecordBuilder for RollbackResponse instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List aspectRowSummaries; - private long entitiesAffected; - private long aspectsAffected; - private java.lang.Long entitiesDeleted; - private java.lang.Long aspectsReverted; - private java.lang.Long unsafeEntitiesCount; - private java.util.List unsafeEntities; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.run.RollbackResponse.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder other) { - super(other); - if (isValidValue(fields()[0], other.aspectRowSummaries)) { - this.aspectRowSummaries = data().deepCopy(fields()[0].schema(), other.aspectRowSummaries); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entitiesAffected)) { - this.entitiesAffected = data().deepCopy(fields()[1].schema(), other.entitiesAffected); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.aspectsAffected)) { - this.aspectsAffected = data().deepCopy(fields()[2].schema(), other.aspectsAffected); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.entitiesDeleted)) { - this.entitiesDeleted = data().deepCopy(fields()[3].schema(), other.entitiesDeleted); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.aspectsReverted)) { - this.aspectsReverted = data().deepCopy(fields()[4].schema(), other.aspectsReverted); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.unsafeEntitiesCount)) { - this.unsafeEntitiesCount = data().deepCopy(fields()[5].schema(), other.unsafeEntitiesCount); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.unsafeEntities)) { - this.unsafeEntities = data().deepCopy(fields()[6].schema(), other.unsafeEntities); - fieldSetFlags()[6] = true; - } - } - - /** Creates a Builder by copying an existing RollbackResponse instance */ - private Builder(com.linkedin.pegasus2avro.metadata.run.RollbackResponse other) { - super(com.linkedin.pegasus2avro.metadata.run.RollbackResponse.SCHEMA$); - if (isValidValue(fields()[0], other.aspectRowSummaries)) { - this.aspectRowSummaries = data().deepCopy(fields()[0].schema(), other.aspectRowSummaries); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entitiesAffected)) { - this.entitiesAffected = data().deepCopy(fields()[1].schema(), other.entitiesAffected); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.aspectsAffected)) { - this.aspectsAffected = data().deepCopy(fields()[2].schema(), other.aspectsAffected); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.entitiesDeleted)) { - this.entitiesDeleted = data().deepCopy(fields()[3].schema(), other.entitiesDeleted); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.aspectsReverted)) { - this.aspectsReverted = data().deepCopy(fields()[4].schema(), other.aspectsReverted); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.unsafeEntitiesCount)) { - this.unsafeEntitiesCount = data().deepCopy(fields()[5].schema(), other.unsafeEntitiesCount); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.unsafeEntities)) { - this.unsafeEntities = data().deepCopy(fields()[6].schema(), other.unsafeEntities); - fieldSetFlags()[6] = true; - } - } - - /** Gets the value of the 'aspectRowSummaries' field */ - public java.util.List getAspectRowSummaries() { - return aspectRowSummaries; - } - - /** Sets the value of the 'aspectRowSummaries' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder setAspectRowSummaries(java.util.List value) { - validate(fields()[0], value); - this.aspectRowSummaries = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'aspectRowSummaries' field has been set */ - public boolean hasAspectRowSummaries() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'aspectRowSummaries' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder clearAspectRowSummaries() { - aspectRowSummaries = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'entitiesAffected' field */ - public java.lang.Long getEntitiesAffected() { - return entitiesAffected; - } - - /** Sets the value of the 'entitiesAffected' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder setEntitiesAffected(long value) { - validate(fields()[1], value); - this.entitiesAffected = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'entitiesAffected' field has been set */ - public boolean hasEntitiesAffected() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'entitiesAffected' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder clearEntitiesAffected() { - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'aspectsAffected' field */ - public java.lang.Long getAspectsAffected() { - return aspectsAffected; - } - - /** Sets the value of the 'aspectsAffected' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder setAspectsAffected(long value) { - validate(fields()[2], value); - this.aspectsAffected = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'aspectsAffected' field has been set */ - public boolean hasAspectsAffected() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'aspectsAffected' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder clearAspectsAffected() { - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'entitiesDeleted' field */ - public java.lang.Long getEntitiesDeleted() { - return entitiesDeleted; - } - - /** Sets the value of the 'entitiesDeleted' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder setEntitiesDeleted(java.lang.Long value) { - validate(fields()[3], value); - this.entitiesDeleted = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'entitiesDeleted' field has been set */ - public boolean hasEntitiesDeleted() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'entitiesDeleted' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder clearEntitiesDeleted() { - entitiesDeleted = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'aspectsReverted' field */ - public java.lang.Long getAspectsReverted() { - return aspectsReverted; - } - - /** Sets the value of the 'aspectsReverted' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder setAspectsReverted(java.lang.Long value) { - validate(fields()[4], value); - this.aspectsReverted = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'aspectsReverted' field has been set */ - public boolean hasAspectsReverted() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'aspectsReverted' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder clearAspectsReverted() { - aspectsReverted = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'unsafeEntitiesCount' field */ - public java.lang.Long getUnsafeEntitiesCount() { - return unsafeEntitiesCount; - } - - /** Sets the value of the 'unsafeEntitiesCount' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder setUnsafeEntitiesCount(java.lang.Long value) { - validate(fields()[5], value); - this.unsafeEntitiesCount = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'unsafeEntitiesCount' field has been set */ - public boolean hasUnsafeEntitiesCount() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'unsafeEntitiesCount' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder clearUnsafeEntitiesCount() { - unsafeEntitiesCount = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'unsafeEntities' field */ - public java.util.List getUnsafeEntities() { - return unsafeEntities; - } - - /** Sets the value of the 'unsafeEntities' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder setUnsafeEntities(java.util.List value) { - validate(fields()[6], value); - this.unsafeEntities = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'unsafeEntities' field has been set */ - public boolean hasUnsafeEntities() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'unsafeEntities' field */ - public com.linkedin.pegasus2avro.metadata.run.RollbackResponse.Builder clearUnsafeEntities() { - unsafeEntities = null; - fieldSetFlags()[6] = false; - return this; - } - - @Override - public RollbackResponse build() { - try { - RollbackResponse record = new RollbackResponse(); - record.aspectRowSummaries = fieldSetFlags()[0] ? this.aspectRowSummaries : (java.util.List) defaultValue(fields()[0]); - record.entitiesAffected = fieldSetFlags()[1] ? this.entitiesAffected : (java.lang.Long) defaultValue(fields()[1]); - record.aspectsAffected = fieldSetFlags()[2] ? this.aspectsAffected : (java.lang.Long) defaultValue(fields()[2]); - record.entitiesDeleted = fieldSetFlags()[3] ? this.entitiesDeleted : (java.lang.Long) defaultValue(fields()[3]); - record.aspectsReverted = fieldSetFlags()[4] ? this.aspectsReverted : (java.lang.Long) defaultValue(fields()[4]); - record.unsafeEntitiesCount = fieldSetFlags()[5] ? this.unsafeEntitiesCount : (java.lang.Long) defaultValue(fields()[5]); - record.unsafeEntities = fieldSetFlags()[6] ? this.unsafeEntities : (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/metadata/run/UnsafeEntityInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/UnsafeEntityInfo.java deleted file mode 100644 index b12a3751f3c5a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/run/UnsafeEntityInfo.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.run; -@SuppressWarnings("all") -/** This record serves as a holder of information for entities that were unsafe to fully delete as part of a rollback operation. */ -@org.apache.avro.specific.AvroGenerated -public class UnsafeEntityInfo 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\":\"UnsafeEntityInfo\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.run\",\"doc\":\" This record serves as a holder of information for entities that were unsafe to fully delete as part of a rollback operation.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the entity this aspect information instance refers to.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Name of the entity this aspect information instance refers to. */ - @Deprecated public java.lang.String urn; - - /** - * 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 UnsafeEntityInfo() {} - - /** - * All-args constructor. - */ - public UnsafeEntityInfo(java.lang.String urn) { - this.urn = urn; - } - - 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 urn; - 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: urn = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * Name of the entity this aspect information instance refers to. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * Name of the entity this aspect information instance refers to. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** Creates a new UnsafeEntityInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo.Builder(); - } - - /** Creates a new UnsafeEntityInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo.Builder other) { - return new com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo.Builder(other); - } - - /** Creates a new UnsafeEntityInfo RecordBuilder by copying an existing UnsafeEntityInfo instance */ - public static com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo.Builder newBuilder(com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo other) { - return new com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo.Builder(other); - } - - /** - * RecordBuilder for UnsafeEntityInfo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing UnsafeEntityInfo instance */ - private Builder(com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo other) { - super(com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.run.UnsafeEntityInfo.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public UnsafeEntityInfo build() { - try { - UnsafeEntityInfo record = new UnsafeEntityInfo(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) 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/metadata/search/AggregationMetadata.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/AggregationMetadata.java deleted file mode 100644 index 060da77fa1377..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/AggregationMetadata.java +++ /dev/null @@ -1,307 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.search; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class AggregationMetadata 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\":\"AggregationMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.search\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the aggregation, e.g, platform, origin\"},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Name of the filter to be displayed in the UI\",\"default\":null},{\"name\":\"aggregations\",\"type\":{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"},\"doc\":\"List of aggregations showing the number of documents falling into each bucket. e.g, for platform aggregation, the bucket can be hive, kafka, etc\"},{\"name\":\"filterValues\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FilterValue\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"entity\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"facetCount\",\"type\":\"long\"},{\"name\":\"filtered\",\"type\":[\"null\",\"boolean\"],\"default\":null}]}}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the aggregation, e.g, platform, origin */ - @Deprecated public java.lang.String name; - /** Name of the filter to be displayed in the UI */ - @Deprecated public java.lang.String displayName; - /** List of aggregations showing the number of documents falling into each bucket. e.g, for platform aggregation, the bucket can be hive, kafka, etc */ - @Deprecated public java.util.Map aggregations; - @Deprecated public java.util.List filterValues; - - /** - * 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 AggregationMetadata() {} - - /** - * All-args constructor. - */ - public AggregationMetadata(java.lang.String name, java.lang.String displayName, java.util.Map aggregations, java.util.List filterValues) { - this.name = name; - this.displayName = displayName; - this.aggregations = aggregations; - this.filterValues = filterValues; - } - - 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 displayName; - case 2: return aggregations; - case 3: return filterValues; - 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: displayName = (java.lang.String)value$; break; - case 2: aggregations = (java.util.Map)value$; break; - case 3: filterValues = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * The name of the aggregation, e.g, platform, origin */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * The name of the aggregation, e.g, platform, origin * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'displayName' field. - * Name of the filter to be displayed in the UI */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Sets the value of the 'displayName' field. - * Name of the filter to be displayed in the UI * @param value the value to set. - */ - public void setDisplayName(java.lang.String value) { - this.displayName = value; - } - - /** - * Gets the value of the 'aggregations' field. - * List of aggregations showing the number of documents falling into each bucket. e.g, for platform aggregation, the bucket can be hive, kafka, etc */ - public java.util.Map getAggregations() { - return aggregations; - } - - /** - * Sets the value of the 'aggregations' field. - * List of aggregations showing the number of documents falling into each bucket. e.g, for platform aggregation, the bucket can be hive, kafka, etc * @param value the value to set. - */ - public void setAggregations(java.util.Map value) { - this.aggregations = value; - } - - /** - * Gets the value of the 'filterValues' field. - */ - public java.util.List getFilterValues() { - return filterValues; - } - - /** - * Sets the value of the 'filterValues' field. - * @param value the value to set. - */ - public void setFilterValues(java.util.List value) { - this.filterValues = value; - } - - /** Creates a new AggregationMetadata RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder(); - } - - /** Creates a new AggregationMetadata RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder other) { - return new com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder(other); - } - - /** Creates a new AggregationMetadata RecordBuilder by copying an existing AggregationMetadata instance */ - public static com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.AggregationMetadata other) { - return new com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder(other); - } - - /** - * RecordBuilder for AggregationMetadata 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 displayName; - private java.util.Map aggregations; - private java.util.List filterValues; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.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.displayName)) { - this.displayName = data().deepCopy(fields()[1].schema(), other.displayName); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.aggregations)) { - this.aggregations = data().deepCopy(fields()[2].schema(), other.aggregations); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.filterValues)) { - this.filterValues = data().deepCopy(fields()[3].schema(), other.filterValues); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing AggregationMetadata instance */ - private Builder(com.linkedin.pegasus2avro.metadata.search.AggregationMetadata other) { - super(com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.displayName)) { - this.displayName = data().deepCopy(fields()[1].schema(), other.displayName); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.aggregations)) { - this.aggregations = data().deepCopy(fields()[2].schema(), other.aggregations); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.filterValues)) { - this.filterValues = data().deepCopy(fields()[3].schema(), other.filterValues); - fieldSetFlags()[3] = 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.metadata.search.AggregationMetadata.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.metadata.search.AggregationMetadata.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'displayName' field */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** Sets the value of the 'displayName' field */ - public com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder setDisplayName(java.lang.String value) { - validate(fields()[1], value); - this.displayName = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'displayName' field has been set */ - public boolean hasDisplayName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'displayName' field */ - public com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder clearDisplayName() { - displayName = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'aggregations' field */ - public java.util.Map getAggregations() { - return aggregations; - } - - /** Sets the value of the 'aggregations' field */ - public com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder setAggregations(java.util.Map value) { - validate(fields()[2], value); - this.aggregations = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'aggregations' field has been set */ - public boolean hasAggregations() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'aggregations' field */ - public com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder clearAggregations() { - aggregations = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'filterValues' field */ - public java.util.List getFilterValues() { - return filterValues; - } - - /** Sets the value of the 'filterValues' field */ - public com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder setFilterValues(java.util.List value) { - validate(fields()[3], value); - this.filterValues = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'filterValues' field has been set */ - public boolean hasFilterValues() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'filterValues' field */ - public com.linkedin.pegasus2avro.metadata.search.AggregationMetadata.Builder clearFilterValues() { - filterValues = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public AggregationMetadata build() { - try { - AggregationMetadata record = new AggregationMetadata(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.displayName = fieldSetFlags()[1] ? this.displayName : (java.lang.String) defaultValue(fields()[1]); - record.aggregations = fieldSetFlags()[2] ? this.aggregations : (java.util.Map) defaultValue(fields()[2]); - record.filterValues = fieldSetFlags()[3] ? this.filterValues : (java.util.List) 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/metadata/search/FilterValue.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/FilterValue.java deleted file mode 100644 index 6ed7dddea7aec..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/FilterValue.java +++ /dev/null @@ -1,303 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.search; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class FilterValue 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\":\"FilterValue\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.search\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"entity\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"facetCount\",\"type\":\"long\"},{\"name\":\"filtered\",\"type\":[\"null\",\"boolean\"],\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.String value; - @Deprecated public java.lang.String entity; - @Deprecated public long facetCount; - @Deprecated public java.lang.Boolean filtered; - - /** - * 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 FilterValue() {} - - /** - * All-args constructor. - */ - public FilterValue(java.lang.String value, java.lang.String entity, java.lang.Long facetCount, java.lang.Boolean filtered) { - this.value = value; - this.entity = entity; - this.facetCount = facetCount; - this.filtered = filtered; - } - - 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 entity; - case 2: return facetCount; - case 3: return filtered; - 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: entity = (java.lang.String)value$; break; - case 2: facetCount = (java.lang.Long)value$; break; - case 3: filtered = (java.lang.Boolean)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'value' field. - */ - public java.lang.String getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * @param value the value to set. - */ - public void setValue(java.lang.String value) { - this.value = value; - } - - /** - * Gets the value of the 'entity' field. - */ - public java.lang.String getEntity() { - return entity; - } - - /** - * Sets the value of the 'entity' field. - * @param value the value to set. - */ - public void setEntity(java.lang.String value) { - this.entity = value; - } - - /** - * Gets the value of the 'facetCount' field. - */ - public java.lang.Long getFacetCount() { - return facetCount; - } - - /** - * Sets the value of the 'facetCount' field. - * @param value the value to set. - */ - public void setFacetCount(java.lang.Long value) { - this.facetCount = value; - } - - /** - * Gets the value of the 'filtered' field. - */ - public java.lang.Boolean getFiltered() { - return filtered; - } - - /** - * Sets the value of the 'filtered' field. - * @param value the value to set. - */ - public void setFiltered(java.lang.Boolean value) { - this.filtered = value; - } - - /** Creates a new FilterValue RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder(); - } - - /** Creates a new FilterValue RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder other) { - return new com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder(other); - } - - /** Creates a new FilterValue RecordBuilder by copying an existing FilterValue instance */ - public static com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.FilterValue other) { - return new com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder(other); - } - - /** - * RecordBuilder for FilterValue instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String value; - private java.lang.String entity; - private long facetCount; - private java.lang.Boolean filtered; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.search.FilterValue.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.search.FilterValue.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.entity)) { - this.entity = data().deepCopy(fields()[1].schema(), other.entity); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.facetCount)) { - this.facetCount = data().deepCopy(fields()[2].schema(), other.facetCount); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.filtered)) { - this.filtered = data().deepCopy(fields()[3].schema(), other.filtered); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing FilterValue instance */ - private Builder(com.linkedin.pegasus2avro.metadata.search.FilterValue other) { - super(com.linkedin.pegasus2avro.metadata.search.FilterValue.SCHEMA$); - if (isValidValue(fields()[0], other.value)) { - this.value = data().deepCopy(fields()[0].schema(), other.value); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entity)) { - this.entity = data().deepCopy(fields()[1].schema(), other.entity); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.facetCount)) { - this.facetCount = data().deepCopy(fields()[2].schema(), other.facetCount); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.filtered)) { - this.filtered = data().deepCopy(fields()[3].schema(), other.filtered); - fieldSetFlags()[3] = 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.metadata.search.FilterValue.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.metadata.search.FilterValue.Builder clearValue() { - value = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'entity' field */ - public java.lang.String getEntity() { - return entity; - } - - /** Sets the value of the 'entity' field */ - public com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder setEntity(java.lang.String value) { - validate(fields()[1], value); - this.entity = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'entity' field has been set */ - public boolean hasEntity() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'entity' field */ - public com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder clearEntity() { - entity = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'facetCount' field */ - public java.lang.Long getFacetCount() { - return facetCount; - } - - /** Sets the value of the 'facetCount' field */ - public com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder setFacetCount(long value) { - validate(fields()[2], value); - this.facetCount = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'facetCount' field has been set */ - public boolean hasFacetCount() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'facetCount' field */ - public com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder clearFacetCount() { - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'filtered' field */ - public java.lang.Boolean getFiltered() { - return filtered; - } - - /** Sets the value of the 'filtered' field */ - public com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder setFiltered(java.lang.Boolean value) { - validate(fields()[3], value); - this.filtered = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'filtered' field has been set */ - public boolean hasFiltered() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'filtered' field */ - public com.linkedin.pegasus2avro.metadata.search.FilterValue.Builder clearFiltered() { - filtered = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public FilterValue build() { - try { - FilterValue record = new FilterValue(); - record.value = fieldSetFlags()[0] ? this.value : (java.lang.String) defaultValue(fields()[0]); - record.entity = fieldSetFlags()[1] ? this.entity : (java.lang.String) defaultValue(fields()[1]); - record.facetCount = fieldSetFlags()[2] ? this.facetCount : (java.lang.Long) defaultValue(fields()[2]); - record.filtered = fieldSetFlags()[3] ? this.filtered : (java.lang.Boolean) 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/metadata/search/LineageScrollResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/LineageScrollResult.java deleted file mode 100644 index c9bde3c679d40..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/LineageScrollResult.java +++ /dev/null @@ -1,362 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.search; -@SuppressWarnings("all") -/** The model for the result of a lineage search query */ -@org.apache.avro.specific.AvroGenerated -public class LineageScrollResult 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\":\"LineageScrollResult\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.search\",\"doc\":\"The model for the result of a lineage search query\",\"fields\":[{\"name\":\"entities\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"LineageSearchEntity\",\"doc\":\"The model for each entity returned by the lineage search query\",\"fields\":[{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity being returned\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"matchedFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MatchedField\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field name\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field value\"}]}},\"doc\":\"Matched field name and values\",\"default\":[]},{\"name\":\"features\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"double\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"score\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"paths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},\"doc\":\"Optional list of entities between the source and destination node.\\nThere can be multiple paths from the source to the destination.\",\"default\":[]},{\"name\":\"path\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Optional list of entities between the source and destination node\",\"default\":[],\"deprecated\":true},{\"name\":\"degree\",\"type\":\"int\",\"doc\":\"Degree of relationship (number of hops to get to entity)\",\"default\":1}]}},\"doc\":\"A list of entities returned from the search results\"},{\"name\":\"metadata\",\"type\":{\"type\":\"record\",\"name\":\"SearchResultMetadata\",\"doc\":\"The model for the search result\",\"fields\":[{\"name\":\"aggregations\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AggregationMetadata\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the aggregation, e.g, platform, origin\"},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Name of the filter to be displayed in the UI\",\"default\":null},{\"name\":\"aggregations\",\"type\":{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"},\"doc\":\"List of aggregations showing the number of documents falling into each bucket. e.g, for platform aggregation, the bucket can be hive, kafka, etc\"},{\"name\":\"filterValues\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FilterValue\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"entity\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"facetCount\",\"type\":\"long\"},{\"name\":\"filtered\",\"type\":[\"null\",\"boolean\"],\"default\":null}]}}}]}},\"doc\":\"A list of search result metadata such as aggregations\",\"default\":[]}]},\"doc\":\"Metadata specific to the browse result of the queried path\"},{\"name\":\"scrollId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Scroll Identifier for subsequent requests, if not present then no further results to fetch\",\"default\":null},{\"name\":\"pageSize\",\"type\":\"int\",\"doc\":\"Size of each page in the result\"},{\"name\":\"numEntities\",\"type\":\"int\",\"doc\":\"The total number of entities directly under searched path\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of entities returned from the search results */ - @Deprecated public java.util.List entities; - /** Metadata specific to the browse result of the queried path */ - @Deprecated public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata metadata; - /** Scroll Identifier for subsequent requests, if not present then no further results to fetch */ - @Deprecated public java.lang.String scrollId; - /** Size of each page in the result */ - @Deprecated public int pageSize; - /** The total number of entities directly under searched path */ - @Deprecated public int numEntities; - - /** - * 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 LineageScrollResult() {} - - /** - * All-args constructor. - */ - public LineageScrollResult(java.util.List entities, com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata metadata, java.lang.String scrollId, java.lang.Integer pageSize, java.lang.Integer numEntities) { - this.entities = entities; - this.metadata = metadata; - this.scrollId = scrollId; - this.pageSize = pageSize; - this.numEntities = numEntities; - } - - 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 entities; - case 1: return metadata; - case 2: return scrollId; - case 3: return pageSize; - case 4: return numEntities; - 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: entities = (java.util.List)value$; break; - case 1: metadata = (com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata)value$; break; - case 2: scrollId = (java.lang.String)value$; break; - case 3: pageSize = (java.lang.Integer)value$; break; - case 4: numEntities = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entities' field. - * A list of entities returned from the search results */ - public java.util.List getEntities() { - return entities; - } - - /** - * Sets the value of the 'entities' field. - * A list of entities returned from the search results * @param value the value to set. - */ - public void setEntities(java.util.List value) { - this.entities = value; - } - - /** - * Gets the value of the 'metadata' field. - * Metadata specific to the browse result of the queried path */ - public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata getMetadata() { - return metadata; - } - - /** - * Sets the value of the 'metadata' field. - * Metadata specific to the browse result of the queried path * @param value the value to set. - */ - public void setMetadata(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata value) { - this.metadata = value; - } - - /** - * Gets the value of the 'scrollId' field. - * Scroll Identifier for subsequent requests, if not present then no further results to fetch */ - public java.lang.String getScrollId() { - return scrollId; - } - - /** - * Sets the value of the 'scrollId' field. - * Scroll Identifier for subsequent requests, if not present then no further results to fetch * @param value the value to set. - */ - public void setScrollId(java.lang.String value) { - this.scrollId = value; - } - - /** - * Gets the value of the 'pageSize' field. - * Size of each page in the result */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Sets the value of the 'pageSize' field. - * Size of each page in the result * @param value the value to set. - */ - public void setPageSize(java.lang.Integer value) { - this.pageSize = value; - } - - /** - * Gets the value of the 'numEntities' field. - * The total number of entities directly under searched path */ - public java.lang.Integer getNumEntities() { - return numEntities; - } - - /** - * Sets the value of the 'numEntities' field. - * The total number of entities directly under searched path * @param value the value to set. - */ - public void setNumEntities(java.lang.Integer value) { - this.numEntities = value; - } - - /** Creates a new LineageScrollResult RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder(); - } - - /** Creates a new LineageScrollResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder other) { - return new com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder(other); - } - - /** Creates a new LineageScrollResult RecordBuilder by copying an existing LineageScrollResult instance */ - public static com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.LineageScrollResult other) { - return new com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder(other); - } - - /** - * RecordBuilder for LineageScrollResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List entities; - private com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata metadata; - private java.lang.String scrollId; - private int pageSize; - private int numEntities; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.metadata)) { - this.metadata = data().deepCopy(fields()[1].schema(), other.metadata); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.scrollId)) { - this.scrollId = data().deepCopy(fields()[2].schema(), other.scrollId); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.pageSize)) { - this.pageSize = data().deepCopy(fields()[3].schema(), other.pageSize); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[4].schema(), other.numEntities); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing LineageScrollResult instance */ - private Builder(com.linkedin.pegasus2avro.metadata.search.LineageScrollResult other) { - super(com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.SCHEMA$); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.metadata)) { - this.metadata = data().deepCopy(fields()[1].schema(), other.metadata); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.scrollId)) { - this.scrollId = data().deepCopy(fields()[2].schema(), other.scrollId); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.pageSize)) { - this.pageSize = data().deepCopy(fields()[3].schema(), other.pageSize); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[4].schema(), other.numEntities); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'entities' field */ - public java.util.List getEntities() { - return entities; - } - - /** Sets the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder setEntities(java.util.List value) { - validate(fields()[0], value); - this.entities = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entities' field has been set */ - public boolean hasEntities() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder clearEntities() { - entities = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata getMetadata() { - return metadata; - } - - /** Sets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder setMetadata(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata value) { - validate(fields()[1], value); - this.metadata = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'metadata' field has been set */ - public boolean hasMetadata() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder clearMetadata() { - metadata = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'scrollId' field */ - public java.lang.String getScrollId() { - return scrollId; - } - - /** Sets the value of the 'scrollId' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder setScrollId(java.lang.String value) { - validate(fields()[2], value); - this.scrollId = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'scrollId' field has been set */ - public boolean hasScrollId() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'scrollId' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder clearScrollId() { - scrollId = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'pageSize' field */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** Sets the value of the 'pageSize' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder setPageSize(int value) { - validate(fields()[3], value); - this.pageSize = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'pageSize' field has been set */ - public boolean hasPageSize() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'pageSize' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder clearPageSize() { - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'numEntities' field */ - public java.lang.Integer getNumEntities() { - return numEntities; - } - - /** Sets the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder setNumEntities(int value) { - validate(fields()[4], value); - this.numEntities = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'numEntities' field has been set */ - public boolean hasNumEntities() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageScrollResult.Builder clearNumEntities() { - fieldSetFlags()[4] = false; - return this; - } - - @Override - public LineageScrollResult build() { - try { - LineageScrollResult record = new LineageScrollResult(); - record.entities = fieldSetFlags()[0] ? this.entities : (java.util.List) defaultValue(fields()[0]); - record.metadata = fieldSetFlags()[1] ? this.metadata : (com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata) defaultValue(fields()[1]); - record.scrollId = fieldSetFlags()[2] ? this.scrollId : (java.lang.String) defaultValue(fields()[2]); - record.pageSize = fieldSetFlags()[3] ? this.pageSize : (java.lang.Integer) defaultValue(fields()[3]); - record.numEntities = fieldSetFlags()[4] ? this.numEntities : (java.lang.Integer) 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/metadata/search/LineageSearchEntity.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/LineageSearchEntity.java deleted file mode 100644 index 52815887efbfe..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/LineageSearchEntity.java +++ /dev/null @@ -1,474 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.search; -@SuppressWarnings("all") -/** The model for each entity returned by the lineage search query */ -@org.apache.avro.specific.AvroGenerated -public class LineageSearchEntity 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\":\"LineageSearchEntity\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.search\",\"doc\":\"The model for each entity returned by the lineage search query\",\"fields\":[{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity being returned\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"matchedFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MatchedField\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field name\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field value\"}]}},\"doc\":\"Matched field name and values\",\"default\":[]},{\"name\":\"features\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"double\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"score\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"paths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},\"doc\":\"Optional list of entities between the source and destination node.\\nThere can be multiple paths from the source to the destination.\",\"default\":[]},{\"name\":\"path\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Optional list of entities between the source and destination node\",\"default\":[],\"deprecated\":true},{\"name\":\"degree\",\"type\":\"int\",\"doc\":\"Degree of relationship (number of hops to get to entity)\",\"default\":1}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Urn of the entity being returned */ - @Deprecated public java.lang.String entity; - /** Matched field name and values */ - @Deprecated public java.util.List matchedFields; - @Deprecated public java.util.Map features; - @Deprecated public java.lang.Double score; - /** Optional list of entities between the source and destination node. -There can be multiple paths from the source to the destination. */ - @Deprecated public java.util.List> paths; - /** Optional list of entities between the source and destination node */ - @Deprecated public java.util.List path; - /** Degree of relationship (number of hops to get to entity) */ - @Deprecated public int degree; - - /** - * 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 LineageSearchEntity() {} - - /** - * All-args constructor. - */ - public LineageSearchEntity(java.lang.String entity, java.util.List matchedFields, java.util.Map features, java.lang.Double score, java.util.List> paths, java.util.List path, java.lang.Integer degree) { - this.entity = entity; - this.matchedFields = matchedFields; - this.features = features; - this.score = score; - this.paths = paths; - this.path = path; - this.degree = degree; - } - - 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 entity; - case 1: return matchedFields; - case 2: return features; - case 3: return score; - case 4: return paths; - case 5: return path; - case 6: return degree; - 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: entity = (java.lang.String)value$; break; - case 1: matchedFields = (java.util.List)value$; break; - case 2: features = (java.util.Map)value$; break; - case 3: score = (java.lang.Double)value$; break; - case 4: paths = (java.util.List>)value$; break; - case 5: path = (java.util.List)value$; break; - case 6: degree = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entity' field. - * Urn of the entity being returned */ - public java.lang.String getEntity() { - return entity; - } - - /** - * Sets the value of the 'entity' field. - * Urn of the entity being returned * @param value the value to set. - */ - public void setEntity(java.lang.String value) { - this.entity = value; - } - - /** - * Gets the value of the 'matchedFields' field. - * Matched field name and values */ - public java.util.List getMatchedFields() { - return matchedFields; - } - - /** - * Sets the value of the 'matchedFields' field. - * Matched field name and values * @param value the value to set. - */ - public void setMatchedFields(java.util.List value) { - this.matchedFields = value; - } - - /** - * Gets the value of the 'features' field. - */ - public java.util.Map getFeatures() { - return features; - } - - /** - * Sets the value of the 'features' field. - * @param value the value to set. - */ - public void setFeatures(java.util.Map value) { - this.features = value; - } - - /** - * Gets the value of the 'score' field. - */ - public java.lang.Double getScore() { - return score; - } - - /** - * Sets the value of the 'score' field. - * @param value the value to set. - */ - public void setScore(java.lang.Double value) { - this.score = value; - } - - /** - * Gets the value of the 'paths' field. - * Optional list of entities between the source and destination node. -There can be multiple paths from the source to the destination. */ - public java.util.List> getPaths() { - return paths; - } - - /** - * Sets the value of the 'paths' field. - * Optional list of entities between the source and destination node. -There can be multiple paths from the source to the destination. * @param value the value to set. - */ - public void setPaths(java.util.List> value) { - this.paths = value; - } - - /** - * Gets the value of the 'path' field. - * Optional list of entities between the source and destination node */ - public java.util.List getPath() { - return path; - } - - /** - * Sets the value of the 'path' field. - * Optional list of entities between the source and destination node * @param value the value to set. - */ - public void setPath(java.util.List value) { - this.path = value; - } - - /** - * Gets the value of the 'degree' field. - * Degree of relationship (number of hops to get to entity) */ - public java.lang.Integer getDegree() { - return degree; - } - - /** - * Sets the value of the 'degree' field. - * Degree of relationship (number of hops to get to entity) * @param value the value to set. - */ - public void setDegree(java.lang.Integer value) { - this.degree = value; - } - - /** Creates a new LineageSearchEntity RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder(); - } - - /** Creates a new LineageSearchEntity RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder other) { - return new com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder(other); - } - - /** Creates a new LineageSearchEntity RecordBuilder by copying an existing LineageSearchEntity instance */ - public static com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity other) { - return new com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder(other); - } - - /** - * RecordBuilder for LineageSearchEntity instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String entity; - private java.util.List matchedFields; - private java.util.Map features; - private java.lang.Double score; - private java.util.List> paths; - private java.util.List path; - private int degree; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entity)) { - this.entity = data().deepCopy(fields()[0].schema(), other.entity); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.matchedFields)) { - this.matchedFields = data().deepCopy(fields()[1].schema(), other.matchedFields); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.features)) { - this.features = data().deepCopy(fields()[2].schema(), other.features); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.score)) { - this.score = data().deepCopy(fields()[3].schema(), other.score); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.paths)) { - this.paths = data().deepCopy(fields()[4].schema(), other.paths); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.path)) { - this.path = data().deepCopy(fields()[5].schema(), other.path); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.degree)) { - this.degree = data().deepCopy(fields()[6].schema(), other.degree); - fieldSetFlags()[6] = true; - } - } - - /** Creates a Builder by copying an existing LineageSearchEntity instance */ - private Builder(com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity other) { - super(com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.SCHEMA$); - if (isValidValue(fields()[0], other.entity)) { - this.entity = data().deepCopy(fields()[0].schema(), other.entity); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.matchedFields)) { - this.matchedFields = data().deepCopy(fields()[1].schema(), other.matchedFields); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.features)) { - this.features = data().deepCopy(fields()[2].schema(), other.features); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.score)) { - this.score = data().deepCopy(fields()[3].schema(), other.score); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.paths)) { - this.paths = data().deepCopy(fields()[4].schema(), other.paths); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.path)) { - this.path = data().deepCopy(fields()[5].schema(), other.path); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.degree)) { - this.degree = data().deepCopy(fields()[6].schema(), other.degree); - fieldSetFlags()[6] = true; - } - } - - /** Gets the value of the 'entity' field */ - public java.lang.String getEntity() { - return entity; - } - - /** Sets the value of the 'entity' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder setEntity(java.lang.String value) { - validate(fields()[0], value); - this.entity = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entity' field has been set */ - public boolean hasEntity() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entity' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder clearEntity() { - entity = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'matchedFields' field */ - public java.util.List getMatchedFields() { - return matchedFields; - } - - /** Sets the value of the 'matchedFields' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder setMatchedFields(java.util.List value) { - validate(fields()[1], value); - this.matchedFields = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'matchedFields' field has been set */ - public boolean hasMatchedFields() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'matchedFields' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder clearMatchedFields() { - matchedFields = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'features' field */ - public java.util.Map getFeatures() { - return features; - } - - /** Sets the value of the 'features' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder setFeatures(java.util.Map value) { - validate(fields()[2], value); - this.features = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'features' field has been set */ - public boolean hasFeatures() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'features' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder clearFeatures() { - features = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'score' field */ - public java.lang.Double getScore() { - return score; - } - - /** Sets the value of the 'score' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder setScore(java.lang.Double value) { - validate(fields()[3], value); - this.score = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'score' field has been set */ - public boolean hasScore() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'score' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder clearScore() { - score = null; - fieldSetFlags()[3] = false; - return this; - } - - /** 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.metadata.search.LineageSearchEntity.Builder setPaths(java.util.List> value) { - validate(fields()[4], value); - this.paths = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'paths' field has been set */ - public boolean hasPaths() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'paths' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder clearPaths() { - paths = null; - fieldSetFlags()[4] = false; - return this; - } - - /** 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.metadata.search.LineageSearchEntity.Builder setPath(java.util.List value) { - validate(fields()[5], value); - this.path = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'path' field has been set */ - public boolean hasPath() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'path' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder clearPath() { - path = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'degree' field */ - public java.lang.Integer getDegree() { - return degree; - } - - /** Sets the value of the 'degree' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder setDegree(int value) { - validate(fields()[6], value); - this.degree = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'degree' field has been set */ - public boolean hasDegree() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'degree' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchEntity.Builder clearDegree() { - fieldSetFlags()[6] = false; - return this; - } - - @Override - public LineageSearchEntity build() { - try { - LineageSearchEntity record = new LineageSearchEntity(); - record.entity = fieldSetFlags()[0] ? this.entity : (java.lang.String) defaultValue(fields()[0]); - record.matchedFields = fieldSetFlags()[1] ? this.matchedFields : (java.util.List) defaultValue(fields()[1]); - record.features = fieldSetFlags()[2] ? this.features : (java.util.Map) defaultValue(fields()[2]); - record.score = fieldSetFlags()[3] ? this.score : (java.lang.Double) defaultValue(fields()[3]); - record.paths = fieldSetFlags()[4] ? this.paths : (java.util.List>) defaultValue(fields()[4]); - record.path = fieldSetFlags()[5] ? this.path : (java.util.List) defaultValue(fields()[5]); - record.degree = fieldSetFlags()[6] ? this.degree : (java.lang.Integer) 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/metadata/search/LineageSearchResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/LineageSearchResult.java deleted file mode 100644 index befb5ad5cf68e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/LineageSearchResult.java +++ /dev/null @@ -1,419 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.search; -@SuppressWarnings("all") -/** The model for the result of a lineage search query */ -@org.apache.avro.specific.AvroGenerated -public class LineageSearchResult 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\":\"LineageSearchResult\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.search\",\"doc\":\"The model for the result of a lineage search query\",\"fields\":[{\"name\":\"freshness\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"FreshnessStats\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query\",\"doc\":\"Stats that describe the freshness of a dataset or query result.\\nUseful to describe consistency and staleness of results when served\\nout of a cache or other eventually consistent system.\",\"fields\":[{\"name\":\"cached\",\"type\":[\"null\",\"boolean\"],\"default\":null},{\"name\":\"systemFreshness\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Freshness Stats to help a caller understand the freshness of the results\\nUseful when the results are being retrieved from a cache, index or other eventually consistent storage\",\"default\":null},{\"name\":\"entities\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"LineageSearchEntity\",\"doc\":\"The model for each entity returned by the lineage search query\",\"fields\":[{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity being returned\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"matchedFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MatchedField\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field name\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field value\"}]}},\"doc\":\"Matched field name and values\",\"default\":[]},{\"name\":\"features\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"double\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"score\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"paths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},\"doc\":\"Optional list of entities between the source and destination node.\\nThere can be multiple paths from the source to the destination.\",\"default\":[]},{\"name\":\"path\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Optional list of entities between the source and destination node\",\"default\":[],\"deprecated\":true},{\"name\":\"degree\",\"type\":\"int\",\"doc\":\"Degree of relationship (number of hops to get to entity)\",\"default\":1}]}},\"doc\":\"A list of entities returned from the search results\"},{\"name\":\"metadata\",\"type\":{\"type\":\"record\",\"name\":\"SearchResultMetadata\",\"doc\":\"The model for the search result\",\"fields\":[{\"name\":\"aggregations\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AggregationMetadata\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the aggregation, e.g, platform, origin\"},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Name of the filter to be displayed in the UI\",\"default\":null},{\"name\":\"aggregations\",\"type\":{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"},\"doc\":\"List of aggregations showing the number of documents falling into each bucket. e.g, for platform aggregation, the bucket can be hive, kafka, etc\"},{\"name\":\"filterValues\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FilterValue\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"entity\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"facetCount\",\"type\":\"long\"},{\"name\":\"filtered\",\"type\":[\"null\",\"boolean\"],\"default\":null}]}}}]}},\"doc\":\"A list of search result metadata such as aggregations\",\"default\":[]}]},\"doc\":\"Metadata specific to the browse result of the queried path\"},{\"name\":\"from\",\"type\":\"int\",\"doc\":\"Offset of the first entity in the result\"},{\"name\":\"pageSize\",\"type\":\"int\",\"doc\":\"Size of each page in the result\"},{\"name\":\"numEntities\",\"type\":\"int\",\"doc\":\"The total number of entities directly under searched path\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Freshness Stats to help a caller understand the freshness of the results -Useful when the results are being retrieved from a cache, index or other eventually consistent storage */ - @Deprecated public com.linkedin.pegasus2avro.metadata.query.FreshnessStats freshness; - /** A list of entities returned from the search results */ - @Deprecated public java.util.List entities; - /** Metadata specific to the browse result of the queried path */ - @Deprecated public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata metadata; - /** Offset of the first entity in the result */ - @Deprecated public int from; - /** Size of each page in the result */ - @Deprecated public int pageSize; - /** The total number of entities directly under searched path */ - @Deprecated public int numEntities; - - /** - * 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 LineageSearchResult() {} - - /** - * All-args constructor. - */ - public LineageSearchResult(com.linkedin.pegasus2avro.metadata.query.FreshnessStats freshness, java.util.List entities, com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata metadata, java.lang.Integer from, java.lang.Integer pageSize, java.lang.Integer numEntities) { - this.freshness = freshness; - this.entities = entities; - this.metadata = metadata; - this.from = from; - this.pageSize = pageSize; - this.numEntities = numEntities; - } - - 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 freshness; - case 1: return entities; - case 2: return metadata; - case 3: return from; - case 4: return pageSize; - case 5: return numEntities; - 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: freshness = (com.linkedin.pegasus2avro.metadata.query.FreshnessStats)value$; break; - case 1: entities = (java.util.List)value$; break; - case 2: metadata = (com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata)value$; break; - case 3: from = (java.lang.Integer)value$; break; - case 4: pageSize = (java.lang.Integer)value$; break; - case 5: numEntities = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'freshness' field. - * Freshness Stats to help a caller understand the freshness of the results -Useful when the results are being retrieved from a cache, index or other eventually consistent storage */ - public com.linkedin.pegasus2avro.metadata.query.FreshnessStats getFreshness() { - return freshness; - } - - /** - * Sets the value of the 'freshness' field. - * Freshness Stats to help a caller understand the freshness of the results -Useful when the results are being retrieved from a cache, index or other eventually consistent storage * @param value the value to set. - */ - public void setFreshness(com.linkedin.pegasus2avro.metadata.query.FreshnessStats value) { - this.freshness = value; - } - - /** - * Gets the value of the 'entities' field. - * A list of entities returned from the search results */ - public java.util.List getEntities() { - return entities; - } - - /** - * Sets the value of the 'entities' field. - * A list of entities returned from the search results * @param value the value to set. - */ - public void setEntities(java.util.List value) { - this.entities = value; - } - - /** - * Gets the value of the 'metadata' field. - * Metadata specific to the browse result of the queried path */ - public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata getMetadata() { - return metadata; - } - - /** - * Sets the value of the 'metadata' field. - * Metadata specific to the browse result of the queried path * @param value the value to set. - */ - public void setMetadata(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata value) { - this.metadata = value; - } - - /** - * Gets the value of the 'from' field. - * Offset of the first entity in the result */ - public java.lang.Integer getFrom() { - return from; - } - - /** - * Sets the value of the 'from' field. - * Offset of the first entity in the result * @param value the value to set. - */ - public void setFrom(java.lang.Integer value) { - this.from = value; - } - - /** - * Gets the value of the 'pageSize' field. - * Size of each page in the result */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Sets the value of the 'pageSize' field. - * Size of each page in the result * @param value the value to set. - */ - public void setPageSize(java.lang.Integer value) { - this.pageSize = value; - } - - /** - * Gets the value of the 'numEntities' field. - * The total number of entities directly under searched path */ - public java.lang.Integer getNumEntities() { - return numEntities; - } - - /** - * Sets the value of the 'numEntities' field. - * The total number of entities directly under searched path * @param value the value to set. - */ - public void setNumEntities(java.lang.Integer value) { - this.numEntities = value; - } - - /** Creates a new LineageSearchResult RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder(); - } - - /** Creates a new LineageSearchResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder other) { - return new com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder(other); - } - - /** Creates a new LineageSearchResult RecordBuilder by copying an existing LineageSearchResult instance */ - public static com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.LineageSearchResult other) { - return new com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder(other); - } - - /** - * RecordBuilder for LineageSearchResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.metadata.query.FreshnessStats freshness; - private java.util.List entities; - private com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata metadata; - private int from; - private int pageSize; - private int numEntities; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.freshness)) { - this.freshness = data().deepCopy(fields()[0].schema(), other.freshness); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entities)) { - this.entities = data().deepCopy(fields()[1].schema(), other.entities); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.metadata)) { - this.metadata = data().deepCopy(fields()[2].schema(), other.metadata); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.from)) { - this.from = data().deepCopy(fields()[3].schema(), other.from); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.pageSize)) { - this.pageSize = data().deepCopy(fields()[4].schema(), other.pageSize); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[5].schema(), other.numEntities); - fieldSetFlags()[5] = true; - } - } - - /** Creates a Builder by copying an existing LineageSearchResult instance */ - private Builder(com.linkedin.pegasus2avro.metadata.search.LineageSearchResult other) { - super(com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.SCHEMA$); - if (isValidValue(fields()[0], other.freshness)) { - this.freshness = data().deepCopy(fields()[0].schema(), other.freshness); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entities)) { - this.entities = data().deepCopy(fields()[1].schema(), other.entities); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.metadata)) { - this.metadata = data().deepCopy(fields()[2].schema(), other.metadata); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.from)) { - this.from = data().deepCopy(fields()[3].schema(), other.from); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.pageSize)) { - this.pageSize = data().deepCopy(fields()[4].schema(), other.pageSize); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[5].schema(), other.numEntities); - fieldSetFlags()[5] = true; - } - } - - /** Gets the value of the 'freshness' field */ - public com.linkedin.pegasus2avro.metadata.query.FreshnessStats getFreshness() { - return freshness; - } - - /** Sets the value of the 'freshness' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder setFreshness(com.linkedin.pegasus2avro.metadata.query.FreshnessStats value) { - validate(fields()[0], value); - this.freshness = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'freshness' field has been set */ - public boolean hasFreshness() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'freshness' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder clearFreshness() { - freshness = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'entities' field */ - public java.util.List getEntities() { - return entities; - } - - /** Sets the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder setEntities(java.util.List value) { - validate(fields()[1], value); - this.entities = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'entities' field has been set */ - public boolean hasEntities() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder clearEntities() { - entities = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata getMetadata() { - return metadata; - } - - /** Sets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder setMetadata(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata value) { - validate(fields()[2], value); - this.metadata = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'metadata' field has been set */ - public boolean hasMetadata() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder clearMetadata() { - metadata = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'from' field */ - public java.lang.Integer getFrom() { - return from; - } - - /** Sets the value of the 'from' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder setFrom(int value) { - validate(fields()[3], value); - this.from = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'from' field has been set */ - public boolean hasFrom() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'from' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder clearFrom() { - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'pageSize' field */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** Sets the value of the 'pageSize' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder setPageSize(int value) { - validate(fields()[4], value); - this.pageSize = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'pageSize' field has been set */ - public boolean hasPageSize() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'pageSize' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder clearPageSize() { - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'numEntities' field */ - public java.lang.Integer getNumEntities() { - return numEntities; - } - - /** Sets the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder setNumEntities(int value) { - validate(fields()[5], value); - this.numEntities = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'numEntities' field has been set */ - public boolean hasNumEntities() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.metadata.search.LineageSearchResult.Builder clearNumEntities() { - fieldSetFlags()[5] = false; - return this; - } - - @Override - public LineageSearchResult build() { - try { - LineageSearchResult record = new LineageSearchResult(); - record.freshness = fieldSetFlags()[0] ? this.freshness : (com.linkedin.pegasus2avro.metadata.query.FreshnessStats) defaultValue(fields()[0]); - record.entities = fieldSetFlags()[1] ? this.entities : (java.util.List) defaultValue(fields()[1]); - record.metadata = fieldSetFlags()[2] ? this.metadata : (com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata) defaultValue(fields()[2]); - record.from = fieldSetFlags()[3] ? this.from : (java.lang.Integer) defaultValue(fields()[3]); - record.pageSize = fieldSetFlags()[4] ? this.pageSize : (java.lang.Integer) defaultValue(fields()[4]); - record.numEntities = fieldSetFlags()[5] ? this.numEntities : (java.lang.Integer) 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/metadata/search/MatchedField.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/MatchedField.java deleted file mode 100644 index 7c32708a570a8..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/MatchedField.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.search; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class MatchedField 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\":\"MatchedField\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.search\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field name\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field value\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Matched field name */ - @Deprecated public java.lang.String name; - /** Matched field value */ - @Deprecated public java.lang.String value; - - /** - * 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 MatchedField() {} - - /** - * All-args constructor. - */ - public MatchedField(java.lang.String name, java.lang.String value) { - this.name = name; - this.value = value; - } - - 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 value; - 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: value = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Matched field name */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Matched field name * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'value' field. - * Matched field value */ - public java.lang.String getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * Matched field value * @param value the value to set. - */ - public void setValue(java.lang.String value) { - this.value = value; - } - - /** Creates a new MatchedField RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.search.MatchedField.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.search.MatchedField.Builder(); - } - - /** Creates a new MatchedField RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.search.MatchedField.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.MatchedField.Builder other) { - return new com.linkedin.pegasus2avro.metadata.search.MatchedField.Builder(other); - } - - /** Creates a new MatchedField RecordBuilder by copying an existing MatchedField instance */ - public static com.linkedin.pegasus2avro.metadata.search.MatchedField.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.MatchedField other) { - return new com.linkedin.pegasus2avro.metadata.search.MatchedField.Builder(other); - } - - /** - * RecordBuilder for MatchedField 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 value; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.search.MatchedField.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.search.MatchedField.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.value)) { - this.value = data().deepCopy(fields()[1].schema(), other.value); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing MatchedField instance */ - private Builder(com.linkedin.pegasus2avro.metadata.search.MatchedField other) { - super(com.linkedin.pegasus2avro.metadata.search.MatchedField.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.value)) { - this.value = data().deepCopy(fields()[1].schema(), other.value); - fieldSetFlags()[1] = 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.metadata.search.MatchedField.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.metadata.search.MatchedField.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.metadata.search.MatchedField.Builder setValue(java.lang.String value) { - validate(fields()[1], value); - this.value = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'value' field has been set */ - public boolean hasValue() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'value' field */ - public com.linkedin.pegasus2avro.metadata.search.MatchedField.Builder clearValue() { - value = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public MatchedField build() { - try { - MatchedField record = new MatchedField(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.value = fieldSetFlags()[1] ? this.value : (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/metadata/search/ScrollResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/ScrollResult.java deleted file mode 100644 index fb0e0fea46e6f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/ScrollResult.java +++ /dev/null @@ -1,362 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.search; -@SuppressWarnings("all") -/** The model for the result of a search query */ -@org.apache.avro.specific.AvroGenerated -public class ScrollResult 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\":\"ScrollResult\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.search\",\"doc\":\"The model for the result of a search query\",\"fields\":[{\"name\":\"entities\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SearchEntity\",\"doc\":\"The model for each entity returned by the search query\",\"fields\":[{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity being returned\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"matchedFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MatchedField\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field name\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field value\"}]}},\"doc\":\"Matched field name and values\",\"default\":[]},{\"name\":\"features\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"double\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"score\",\"type\":[\"null\",\"double\"],\"default\":null}]}},\"doc\":\"A list of entities returned from the search results\"},{\"name\":\"metadata\",\"type\":{\"type\":\"record\",\"name\":\"SearchResultMetadata\",\"doc\":\"The model for the search result\",\"fields\":[{\"name\":\"aggregations\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AggregationMetadata\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the aggregation, e.g, platform, origin\"},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Name of the filter to be displayed in the UI\",\"default\":null},{\"name\":\"aggregations\",\"type\":{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"},\"doc\":\"List of aggregations showing the number of documents falling into each bucket. e.g, for platform aggregation, the bucket can be hive, kafka, etc\"},{\"name\":\"filterValues\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FilterValue\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"entity\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"facetCount\",\"type\":\"long\"},{\"name\":\"filtered\",\"type\":[\"null\",\"boolean\"],\"default\":null}]}}}]}},\"doc\":\"A list of search result metadata such as aggregations\",\"default\":[]}]},\"doc\":\"Metadata specific to the browse result of the queried path\"},{\"name\":\"scrollId\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Scroll Identifier for subsequent requests, if not present then no further results to fetch\",\"default\":null},{\"name\":\"pageSize\",\"type\":\"int\",\"doc\":\"Size of each page in the result\"},{\"name\":\"numEntities\",\"type\":\"int\",\"doc\":\"The total number of entities directly under searched path\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of entities returned from the search results */ - @Deprecated public java.util.List entities; - /** Metadata specific to the browse result of the queried path */ - @Deprecated public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata metadata; - /** Scroll Identifier for subsequent requests, if not present then no further results to fetch */ - @Deprecated public java.lang.String scrollId; - /** Size of each page in the result */ - @Deprecated public int pageSize; - /** The total number of entities directly under searched path */ - @Deprecated public int numEntities; - - /** - * 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 ScrollResult() {} - - /** - * All-args constructor. - */ - public ScrollResult(java.util.List entities, com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata metadata, java.lang.String scrollId, java.lang.Integer pageSize, java.lang.Integer numEntities) { - this.entities = entities; - this.metadata = metadata; - this.scrollId = scrollId; - this.pageSize = pageSize; - this.numEntities = numEntities; - } - - 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 entities; - case 1: return metadata; - case 2: return scrollId; - case 3: return pageSize; - case 4: return numEntities; - 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: entities = (java.util.List)value$; break; - case 1: metadata = (com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata)value$; break; - case 2: scrollId = (java.lang.String)value$; break; - case 3: pageSize = (java.lang.Integer)value$; break; - case 4: numEntities = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entities' field. - * A list of entities returned from the search results */ - public java.util.List getEntities() { - return entities; - } - - /** - * Sets the value of the 'entities' field. - * A list of entities returned from the search results * @param value the value to set. - */ - public void setEntities(java.util.List value) { - this.entities = value; - } - - /** - * Gets the value of the 'metadata' field. - * Metadata specific to the browse result of the queried path */ - public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata getMetadata() { - return metadata; - } - - /** - * Sets the value of the 'metadata' field. - * Metadata specific to the browse result of the queried path * @param value the value to set. - */ - public void setMetadata(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata value) { - this.metadata = value; - } - - /** - * Gets the value of the 'scrollId' field. - * Scroll Identifier for subsequent requests, if not present then no further results to fetch */ - public java.lang.String getScrollId() { - return scrollId; - } - - /** - * Sets the value of the 'scrollId' field. - * Scroll Identifier for subsequent requests, if not present then no further results to fetch * @param value the value to set. - */ - public void setScrollId(java.lang.String value) { - this.scrollId = value; - } - - /** - * Gets the value of the 'pageSize' field. - * Size of each page in the result */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Sets the value of the 'pageSize' field. - * Size of each page in the result * @param value the value to set. - */ - public void setPageSize(java.lang.Integer value) { - this.pageSize = value; - } - - /** - * Gets the value of the 'numEntities' field. - * The total number of entities directly under searched path */ - public java.lang.Integer getNumEntities() { - return numEntities; - } - - /** - * Sets the value of the 'numEntities' field. - * The total number of entities directly under searched path * @param value the value to set. - */ - public void setNumEntities(java.lang.Integer value) { - this.numEntities = value; - } - - /** Creates a new ScrollResult RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder(); - } - - /** Creates a new ScrollResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder other) { - return new com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder(other); - } - - /** Creates a new ScrollResult RecordBuilder by copying an existing ScrollResult instance */ - public static com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.ScrollResult other) { - return new com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder(other); - } - - /** - * RecordBuilder for ScrollResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List entities; - private com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata metadata; - private java.lang.String scrollId; - private int pageSize; - private int numEntities; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.search.ScrollResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.metadata)) { - this.metadata = data().deepCopy(fields()[1].schema(), other.metadata); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.scrollId)) { - this.scrollId = data().deepCopy(fields()[2].schema(), other.scrollId); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.pageSize)) { - this.pageSize = data().deepCopy(fields()[3].schema(), other.pageSize); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[4].schema(), other.numEntities); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing ScrollResult instance */ - private Builder(com.linkedin.pegasus2avro.metadata.search.ScrollResult other) { - super(com.linkedin.pegasus2avro.metadata.search.ScrollResult.SCHEMA$); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.metadata)) { - this.metadata = data().deepCopy(fields()[1].schema(), other.metadata); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.scrollId)) { - this.scrollId = data().deepCopy(fields()[2].schema(), other.scrollId); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.pageSize)) { - this.pageSize = data().deepCopy(fields()[3].schema(), other.pageSize); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[4].schema(), other.numEntities); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'entities' field */ - public java.util.List getEntities() { - return entities; - } - - /** Sets the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder setEntities(java.util.List value) { - validate(fields()[0], value); - this.entities = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entities' field has been set */ - public boolean hasEntities() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder clearEntities() { - entities = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata getMetadata() { - return metadata; - } - - /** Sets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder setMetadata(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata value) { - validate(fields()[1], value); - this.metadata = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'metadata' field has been set */ - public boolean hasMetadata() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder clearMetadata() { - metadata = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'scrollId' field */ - public java.lang.String getScrollId() { - return scrollId; - } - - /** Sets the value of the 'scrollId' field */ - public com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder setScrollId(java.lang.String value) { - validate(fields()[2], value); - this.scrollId = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'scrollId' field has been set */ - public boolean hasScrollId() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'scrollId' field */ - public com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder clearScrollId() { - scrollId = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'pageSize' field */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** Sets the value of the 'pageSize' field */ - public com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder setPageSize(int value) { - validate(fields()[3], value); - this.pageSize = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'pageSize' field has been set */ - public boolean hasPageSize() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'pageSize' field */ - public com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder clearPageSize() { - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'numEntities' field */ - public java.lang.Integer getNumEntities() { - return numEntities; - } - - /** Sets the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder setNumEntities(int value) { - validate(fields()[4], value); - this.numEntities = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'numEntities' field has been set */ - public boolean hasNumEntities() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.metadata.search.ScrollResult.Builder clearNumEntities() { - fieldSetFlags()[4] = false; - return this; - } - - @Override - public ScrollResult build() { - try { - ScrollResult record = new ScrollResult(); - record.entities = fieldSetFlags()[0] ? this.entities : (java.util.List) defaultValue(fields()[0]); - record.metadata = fieldSetFlags()[1] ? this.metadata : (com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata) defaultValue(fields()[1]); - record.scrollId = fieldSetFlags()[2] ? this.scrollId : (java.lang.String) defaultValue(fields()[2]); - record.pageSize = fieldSetFlags()[3] ? this.pageSize : (java.lang.Integer) defaultValue(fields()[3]); - record.numEntities = fieldSetFlags()[4] ? this.numEntities : (java.lang.Integer) 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/metadata/search/SearchEntity.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/SearchEntity.java deleted file mode 100644 index dcf5903ab88b2..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/SearchEntity.java +++ /dev/null @@ -1,307 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.search; -@SuppressWarnings("all") -/** The model for each entity returned by the search query */ -@org.apache.avro.specific.AvroGenerated -public class SearchEntity 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\":\"SearchEntity\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.search\",\"doc\":\"The model for each entity returned by the search query\",\"fields\":[{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity being returned\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"matchedFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MatchedField\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field name\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field value\"}]}},\"doc\":\"Matched field name and values\",\"default\":[]},{\"name\":\"features\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"double\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"score\",\"type\":[\"null\",\"double\"],\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Urn of the entity being returned */ - @Deprecated public java.lang.String entity; - /** Matched field name and values */ - @Deprecated public java.util.List matchedFields; - @Deprecated public java.util.Map features; - @Deprecated public java.lang.Double score; - - /** - * 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 SearchEntity() {} - - /** - * All-args constructor. - */ - public SearchEntity(java.lang.String entity, java.util.List matchedFields, java.util.Map features, java.lang.Double score) { - this.entity = entity; - this.matchedFields = matchedFields; - this.features = features; - this.score = score; - } - - 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 entity; - case 1: return matchedFields; - case 2: return features; - case 3: return score; - 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: entity = (java.lang.String)value$; break; - case 1: matchedFields = (java.util.List)value$; break; - case 2: features = (java.util.Map)value$; break; - case 3: score = (java.lang.Double)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entity' field. - * Urn of the entity being returned */ - public java.lang.String getEntity() { - return entity; - } - - /** - * Sets the value of the 'entity' field. - * Urn of the entity being returned * @param value the value to set. - */ - public void setEntity(java.lang.String value) { - this.entity = value; - } - - /** - * Gets the value of the 'matchedFields' field. - * Matched field name and values */ - public java.util.List getMatchedFields() { - return matchedFields; - } - - /** - * Sets the value of the 'matchedFields' field. - * Matched field name and values * @param value the value to set. - */ - public void setMatchedFields(java.util.List value) { - this.matchedFields = value; - } - - /** - * Gets the value of the 'features' field. - */ - public java.util.Map getFeatures() { - return features; - } - - /** - * Sets the value of the 'features' field. - * @param value the value to set. - */ - public void setFeatures(java.util.Map value) { - this.features = value; - } - - /** - * Gets the value of the 'score' field. - */ - public java.lang.Double getScore() { - return score; - } - - /** - * Sets the value of the 'score' field. - * @param value the value to set. - */ - public void setScore(java.lang.Double value) { - this.score = value; - } - - /** Creates a new SearchEntity RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder(); - } - - /** Creates a new SearchEntity RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder other) { - return new com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder(other); - } - - /** Creates a new SearchEntity RecordBuilder by copying an existing SearchEntity instance */ - public static com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.SearchEntity other) { - return new com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder(other); - } - - /** - * RecordBuilder for SearchEntity instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String entity; - private java.util.List matchedFields; - private java.util.Map features; - private java.lang.Double score; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.search.SearchEntity.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entity)) { - this.entity = data().deepCopy(fields()[0].schema(), other.entity); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.matchedFields)) { - this.matchedFields = data().deepCopy(fields()[1].schema(), other.matchedFields); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.features)) { - this.features = data().deepCopy(fields()[2].schema(), other.features); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.score)) { - this.score = data().deepCopy(fields()[3].schema(), other.score); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing SearchEntity instance */ - private Builder(com.linkedin.pegasus2avro.metadata.search.SearchEntity other) { - super(com.linkedin.pegasus2avro.metadata.search.SearchEntity.SCHEMA$); - if (isValidValue(fields()[0], other.entity)) { - this.entity = data().deepCopy(fields()[0].schema(), other.entity); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.matchedFields)) { - this.matchedFields = data().deepCopy(fields()[1].schema(), other.matchedFields); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.features)) { - this.features = data().deepCopy(fields()[2].schema(), other.features); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.score)) { - this.score = data().deepCopy(fields()[3].schema(), other.score); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'entity' field */ - public java.lang.String getEntity() { - return entity; - } - - /** Sets the value of the 'entity' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder setEntity(java.lang.String value) { - validate(fields()[0], value); - this.entity = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entity' field has been set */ - public boolean hasEntity() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entity' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder clearEntity() { - entity = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'matchedFields' field */ - public java.util.List getMatchedFields() { - return matchedFields; - } - - /** Sets the value of the 'matchedFields' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder setMatchedFields(java.util.List value) { - validate(fields()[1], value); - this.matchedFields = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'matchedFields' field has been set */ - public boolean hasMatchedFields() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'matchedFields' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder clearMatchedFields() { - matchedFields = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'features' field */ - public java.util.Map getFeatures() { - return features; - } - - /** Sets the value of the 'features' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder setFeatures(java.util.Map value) { - validate(fields()[2], value); - this.features = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'features' field has been set */ - public boolean hasFeatures() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'features' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder clearFeatures() { - features = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'score' field */ - public java.lang.Double getScore() { - return score; - } - - /** Sets the value of the 'score' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder setScore(java.lang.Double value) { - validate(fields()[3], value); - this.score = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'score' field has been set */ - public boolean hasScore() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'score' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchEntity.Builder clearScore() { - score = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public SearchEntity build() { - try { - SearchEntity record = new SearchEntity(); - record.entity = fieldSetFlags()[0] ? this.entity : (java.lang.String) defaultValue(fields()[0]); - record.matchedFields = fieldSetFlags()[1] ? this.matchedFields : (java.util.List) defaultValue(fields()[1]); - record.features = fieldSetFlags()[2] ? this.features : (java.util.Map) defaultValue(fields()[2]); - record.score = fieldSetFlags()[3] ? this.score : (java.lang.Double) 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/metadata/search/SearchResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/SearchResult.java deleted file mode 100644 index 73d37c78c71fa..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/SearchResult.java +++ /dev/null @@ -1,361 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.search; -@SuppressWarnings("all") -/** The model for the result of a search query */ -@org.apache.avro.specific.AvroGenerated -public class SearchResult 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\":\"SearchResult\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.search\",\"doc\":\"The model for the result of a search query\",\"fields\":[{\"name\":\"entities\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SearchEntity\",\"doc\":\"The model for each entity returned by the search query\",\"fields\":[{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the entity being returned\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"matchedFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MatchedField\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field name\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Matched field value\"}]}},\"doc\":\"Matched field name and values\",\"default\":[]},{\"name\":\"features\",\"type\":[\"null\",{\"type\":\"map\",\"values\":\"double\",\"avro.java.string\":\"String\"}],\"default\":null},{\"name\":\"score\",\"type\":[\"null\",\"double\"],\"default\":null}]}},\"doc\":\"A list of entities returned from the search results\"},{\"name\":\"metadata\",\"type\":{\"type\":\"record\",\"name\":\"SearchResultMetadata\",\"doc\":\"The model for the search result\",\"fields\":[{\"name\":\"aggregations\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AggregationMetadata\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the aggregation, e.g, platform, origin\"},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Name of the filter to be displayed in the UI\",\"default\":null},{\"name\":\"aggregations\",\"type\":{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"},\"doc\":\"List of aggregations showing the number of documents falling into each bucket. e.g, for platform aggregation, the bucket can be hive, kafka, etc\"},{\"name\":\"filterValues\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FilterValue\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"entity\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"facetCount\",\"type\":\"long\"},{\"name\":\"filtered\",\"type\":[\"null\",\"boolean\"],\"default\":null}]}}}]}},\"doc\":\"A list of search result metadata such as aggregations\",\"default\":[]}]},\"doc\":\"Metadata specific to the browse result of the queried path\"},{\"name\":\"from\",\"type\":\"int\",\"doc\":\"Offset of the first entity in the result\"},{\"name\":\"pageSize\",\"type\":\"int\",\"doc\":\"Size of each page in the result\"},{\"name\":\"numEntities\",\"type\":\"int\",\"doc\":\"The total number of entities directly under searched path\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of entities returned from the search results */ - @Deprecated public java.util.List entities; - /** Metadata specific to the browse result of the queried path */ - @Deprecated public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata metadata; - /** Offset of the first entity in the result */ - @Deprecated public int from; - /** Size of each page in the result */ - @Deprecated public int pageSize; - /** The total number of entities directly under searched path */ - @Deprecated public int numEntities; - - /** - * 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 SearchResult() {} - - /** - * All-args constructor. - */ - public SearchResult(java.util.List entities, com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata metadata, java.lang.Integer from, java.lang.Integer pageSize, java.lang.Integer numEntities) { - this.entities = entities; - this.metadata = metadata; - this.from = from; - this.pageSize = pageSize; - this.numEntities = numEntities; - } - - 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 entities; - case 1: return metadata; - case 2: return from; - case 3: return pageSize; - case 4: return numEntities; - 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: entities = (java.util.List)value$; break; - case 1: metadata = (com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata)value$; break; - case 2: from = (java.lang.Integer)value$; break; - case 3: pageSize = (java.lang.Integer)value$; break; - case 4: numEntities = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entities' field. - * A list of entities returned from the search results */ - public java.util.List getEntities() { - return entities; - } - - /** - * Sets the value of the 'entities' field. - * A list of entities returned from the search results * @param value the value to set. - */ - public void setEntities(java.util.List value) { - this.entities = value; - } - - /** - * Gets the value of the 'metadata' field. - * Metadata specific to the browse result of the queried path */ - public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata getMetadata() { - return metadata; - } - - /** - * Sets the value of the 'metadata' field. - * Metadata specific to the browse result of the queried path * @param value the value to set. - */ - public void setMetadata(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata value) { - this.metadata = value; - } - - /** - * Gets the value of the 'from' field. - * Offset of the first entity in the result */ - public java.lang.Integer getFrom() { - return from; - } - - /** - * Sets the value of the 'from' field. - * Offset of the first entity in the result * @param value the value to set. - */ - public void setFrom(java.lang.Integer value) { - this.from = value; - } - - /** - * Gets the value of the 'pageSize' field. - * Size of each page in the result */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Sets the value of the 'pageSize' field. - * Size of each page in the result * @param value the value to set. - */ - public void setPageSize(java.lang.Integer value) { - this.pageSize = value; - } - - /** - * Gets the value of the 'numEntities' field. - * The total number of entities directly under searched path */ - public java.lang.Integer getNumEntities() { - return numEntities; - } - - /** - * Sets the value of the 'numEntities' field. - * The total number of entities directly under searched path * @param value the value to set. - */ - public void setNumEntities(java.lang.Integer value) { - this.numEntities = value; - } - - /** Creates a new SearchResult RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder(); - } - - /** Creates a new SearchResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder other) { - return new com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder(other); - } - - /** Creates a new SearchResult RecordBuilder by copying an existing SearchResult instance */ - public static com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.SearchResult other) { - return new com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder(other); - } - - /** - * RecordBuilder for SearchResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List entities; - private com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata metadata; - private int from; - private int pageSize; - private int numEntities; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.search.SearchResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.metadata)) { - this.metadata = data().deepCopy(fields()[1].schema(), other.metadata); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.from)) { - this.from = data().deepCopy(fields()[2].schema(), other.from); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.pageSize)) { - this.pageSize = data().deepCopy(fields()[3].schema(), other.pageSize); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[4].schema(), other.numEntities); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing SearchResult instance */ - private Builder(com.linkedin.pegasus2avro.metadata.search.SearchResult other) { - super(com.linkedin.pegasus2avro.metadata.search.SearchResult.SCHEMA$); - if (isValidValue(fields()[0], other.entities)) { - this.entities = data().deepCopy(fields()[0].schema(), other.entities); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.metadata)) { - this.metadata = data().deepCopy(fields()[1].schema(), other.metadata); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.from)) { - this.from = data().deepCopy(fields()[2].schema(), other.from); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.pageSize)) { - this.pageSize = data().deepCopy(fields()[3].schema(), other.pageSize); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.numEntities)) { - this.numEntities = data().deepCopy(fields()[4].schema(), other.numEntities); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'entities' field */ - public java.util.List getEntities() { - return entities; - } - - /** Sets the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder setEntities(java.util.List value) { - validate(fields()[0], value); - this.entities = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entities' field has been set */ - public boolean hasEntities() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entities' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder clearEntities() { - entities = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata getMetadata() { - return metadata; - } - - /** Sets the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder setMetadata(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata value) { - validate(fields()[1], value); - this.metadata = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'metadata' field has been set */ - public boolean hasMetadata() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'metadata' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder clearMetadata() { - metadata = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'from' field */ - public java.lang.Integer getFrom() { - return from; - } - - /** Sets the value of the 'from' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder setFrom(int value) { - validate(fields()[2], value); - this.from = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'from' field has been set */ - public boolean hasFrom() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'from' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder clearFrom() { - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'pageSize' field */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** Sets the value of the 'pageSize' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder setPageSize(int value) { - validate(fields()[3], value); - this.pageSize = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'pageSize' field has been set */ - public boolean hasPageSize() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'pageSize' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder clearPageSize() { - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'numEntities' field */ - public java.lang.Integer getNumEntities() { - return numEntities; - } - - /** Sets the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder setNumEntities(int value) { - validate(fields()[4], value); - this.numEntities = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'numEntities' field has been set */ - public boolean hasNumEntities() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'numEntities' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResult.Builder clearNumEntities() { - fieldSetFlags()[4] = false; - return this; - } - - @Override - public SearchResult build() { - try { - SearchResult record = new SearchResult(); - record.entities = fieldSetFlags()[0] ? this.entities : (java.util.List) defaultValue(fields()[0]); - record.metadata = fieldSetFlags()[1] ? this.metadata : (com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata) defaultValue(fields()[1]); - record.from = fieldSetFlags()[2] ? this.from : (java.lang.Integer) defaultValue(fields()[2]); - record.pageSize = fieldSetFlags()[3] ? this.pageSize : (java.lang.Integer) defaultValue(fields()[3]); - record.numEntities = fieldSetFlags()[4] ? this.numEntities : (java.lang.Integer) 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/metadata/search/SearchResultMetadata.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/SearchResultMetadata.java deleted file mode 100644 index 31104b5329796..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/search/SearchResultMetadata.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.search; -@SuppressWarnings("all") -/** The model for the search result */ -@org.apache.avro.specific.AvroGenerated -public class SearchResultMetadata 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\":\"SearchResultMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.search\",\"doc\":\"The model for the search result\",\"fields\":[{\"name\":\"aggregations\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AggregationMetadata\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the aggregation, e.g, platform, origin\"},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Name of the filter to be displayed in the UI\",\"default\":null},{\"name\":\"aggregations\",\"type\":{\"type\":\"map\",\"values\":\"long\",\"avro.java.string\":\"String\"},\"doc\":\"List of aggregations showing the number of documents falling into each bucket. e.g, for platform aggregation, the bucket can be hive, kafka, etc\"},{\"name\":\"filterValues\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FilterValue\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"entity\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"facetCount\",\"type\":\"long\"},{\"name\":\"filtered\",\"type\":[\"null\",\"boolean\"],\"default\":null}]}}}]}},\"doc\":\"A list of search result metadata such as aggregations\",\"default\":[]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of search result metadata such as aggregations */ - @Deprecated public java.util.List aggregations; - - /** - * 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 SearchResultMetadata() {} - - /** - * All-args constructor. - */ - public SearchResultMetadata(java.util.List aggregations) { - this.aggregations = aggregations; - } - - 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 aggregations; - 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: aggregations = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'aggregations' field. - * A list of search result metadata such as aggregations */ - public java.util.List getAggregations() { - return aggregations; - } - - /** - * Sets the value of the 'aggregations' field. - * A list of search result metadata such as aggregations * @param value the value to set. - */ - public void setAggregations(java.util.List value) { - this.aggregations = value; - } - - /** Creates a new SearchResultMetadata RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata.Builder(); - } - - /** Creates a new SearchResultMetadata RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata.Builder other) { - return new com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata.Builder(other); - } - - /** Creates a new SearchResultMetadata RecordBuilder by copying an existing SearchResultMetadata instance */ - public static com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata.Builder newBuilder(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata other) { - return new com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata.Builder(other); - } - - /** - * RecordBuilder for SearchResultMetadata instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List aggregations; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata.Builder other) { - super(other); - if (isValidValue(fields()[0], other.aggregations)) { - this.aggregations = data().deepCopy(fields()[0].schema(), other.aggregations); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing SearchResultMetadata instance */ - private Builder(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata other) { - super(com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata.SCHEMA$); - if (isValidValue(fields()[0], other.aggregations)) { - this.aggregations = data().deepCopy(fields()[0].schema(), other.aggregations); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'aggregations' field */ - public java.util.List getAggregations() { - return aggregations; - } - - /** Sets the value of the 'aggregations' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata.Builder setAggregations(java.util.List value) { - validate(fields()[0], value); - this.aggregations = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'aggregations' field has been set */ - public boolean hasAggregations() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'aggregations' field */ - public com.linkedin.pegasus2avro.metadata.search.SearchResultMetadata.Builder clearAggregations() { - aggregations = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public SearchResultMetadata build() { - try { - SearchResultMetadata record = new SearchResultMetadata(); - record.aggregations = fieldSetFlags()[0] ? this.aggregations : (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/metadata/snapshot/ChartSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/ChartSnapshot.java deleted file mode 100644 index 03756dfe726d8..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/ChartSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific Chart entity. */ -@org.apache.avro.specific.AvroGenerated -public class ChartSnapshot 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\":\"ChartSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Chart entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.ChartUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"ChartKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Chart\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"chartId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234'\"}],\"Aspect\":{\"name\":\"chartKey\"}},{\"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\"}},{\"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\"}},{\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the app","lied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the chart. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"chartKey\",\"name\":\"chart\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the chart. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 ChartSnapshot() {} - - /** - * All-args constructor. - */ - public ChartSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the chart. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the chart. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new ChartSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.Builder(); - } - - /** Creates a new ChartSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.Builder(other); - } - - /** Creates a new ChartSnapshot RecordBuilder by copying an existing ChartSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.Builder(other); - } - - /** - * RecordBuilder for ChartSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing ChartSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public ChartSnapshot build() { - try { - ChartSnapshot record = new ChartSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/CorpGroupSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/CorpGroupSnapshot.java deleted file mode 100644 index 4dfcec57e76a5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/CorpGroupSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific CorpGroup entity. */ -@org.apache.avro.specific.AvroGenerated -public class CorpGroupSnapshot 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\":\"CorpGroupSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific CorpGroup entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpGroupUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"CorpGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpGroup\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub.\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}}],\"Aspect\":{\"name\":\"corpGroupKey\"}},{\"type\":\"record\",\"name\":\"CorpGroupInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Information about a Corp Group ingested from a third party source\",\"fields\":[{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The name of the group.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email of this group\",\"default\":null},{\"name\":\"admins\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"owners of this group\\nDeprecated! Replaced by Ownership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"OwnedBy\"}},\"deprecated\":true},{\"name\":\"members\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of ldap urn in this group.\\nDeprecated! Replaced by GroupMembership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of groups in this group.\\nDeprecated! This field is unused.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A description of the group.\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack channel for the group\",\"default\":null},{\"name\":\"created\",\"type\":[\"null\",{\"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\":\"Created Audit stamp\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdTime\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpGroupUrn\"],\"name\":\"corpGroupInfo\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}}]},\"doc\":\"The list of metadata aspects associated with the LdapUser. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"corpGroupKey\",\"name\":\"corpGroup\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the LdapUser. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 CorpGroupSnapshot() {} - - /** - * All-args constructor. - */ - public CorpGroupSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the LdapUser. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the LdapUser. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new CorpGroupSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.Builder(); - } - - /** Creates a new CorpGroupSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.Builder(other); - } - - /** Creates a new CorpGroupSnapshot RecordBuilder by copying an existing CorpGroupSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.Builder(other); - } - - /** - * RecordBuilder for CorpGroupSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing CorpGroupSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public CorpGroupSnapshot build() { - try { - CorpGroupSnapshot record = new CorpGroupSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/CorpUserSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/CorpUserSnapshot.java deleted file mode 100644 index 1ee9777d17f84..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/CorpUserSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific CorpUser entity. */ -@org.apache.avro.specific.AvroGenerated -public class CorpUserSnapshot 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\":\"CorpUserSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific CorpUser entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpuserUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"CorpUserKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpUser\",\"fields\":[{\"name\":\"username\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the AD/LDAP user.\",\"Searchable\":{\"boostScore\":2.0,\"enableAutocomplete\":true,\"fieldName\":\"ldap\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"corpUserKey\"}},{\"type\":\"record\",\"name\":\"CorpUserInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information\",\"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\":\"active\",\"type\":\"boolean\",\"doc\":\"Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":2.0}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"displayName of this user , e.g. Hang Zhang(DataHQ)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email address of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"title of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"managerUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"direct manager of this user\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"corpuser\"],\"name\":\"ReportsTo\"},\"Searchable\":{\"fieldName\":\"managerLdap\",\"fieldType\":\"URN\",\"queryByDefault\":true},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpuserUrn\"}},{\"name\":\"departmentId\",\"type\":[\"null\",\"long\"],\"doc\":\"department id this user belong to\",\"default\":null},{\"name\":\"departmentName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"department name this user belong to\",\"default\":null},{\"name\":\"firstName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"first name of this user\",\"default\":null},{\"name\":\"lastName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"last name of this user\",\"default\":null},{\"name\":\"fullName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Common name of this user, format is firstName + lastName (split by a whitespace)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"countryCode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"two uppercase letters country code. e.g. US\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserEditableInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information that can be edited from UI\",\"fields\":[{\"name\":\"aboutMe\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"About me section of the user\",\"default\":null},{\"name\":\"teams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Teams that the user belongs to e.g. Metadata\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"skills\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Skills that the user possesses e.g. Machine Learning\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"pictureLink\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A URL which points to a picture which user wants to set as a profile photo\",\"default\":\"https://raw.githubusercontent.com/datahub-project/datahub/master/datahub-web-react/src/images/default_avatar.png\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native display name\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native Title, e.g. 'Software Engineer'\",\"default\":null},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack handle for the user\",\"default\":null},{\"name\":\"phone\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Phone number to contact the user\",\"default\":null},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Email address to contact the user\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserEditableInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserStatus\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"The status of the user, e.g. provisioned, active, suspended, etc.\",\"fields\":[{\"name\":\"status\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"lastModified\",\"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\":\"Audit stamp containing who last modified the status and when.\"}],\"Aspect\":{\"name\":\"corpUserStatus\"}},{\"type\":\"record\",\"name\":\"GroupMembership\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Carries information about the CorpGroups a user is in.\",\"fields\":[{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsMemberOfGroup\"}}}],\"Aspect\":{\"name\":\"groupMembership\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"","Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}}]},\"doc\":\"The list of metadata aspects associated with the CorpUser. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"corpUserKey\",\"name\":\"corpuser\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the CorpUser. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 CorpUserSnapshot() {} - - /** - * All-args constructor. - */ - public CorpUserSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the CorpUser. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the CorpUser. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new CorpUserSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.Builder(); - } - - /** Creates a new CorpUserSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.Builder(other); - } - - /** Creates a new CorpUserSnapshot RecordBuilder by copying an existing CorpUserSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.Builder(other); - } - - /** - * RecordBuilder for CorpUserSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing CorpUserSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public CorpUserSnapshot build() { - try { - CorpUserSnapshot record = new CorpUserSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/DashboardSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DashboardSnapshot.java deleted file mode 100644 index b83a6a125af99..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DashboardSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific Dashboard entity. */ -@org.apache.avro.specific.AvroGenerated -public class DashboardSnapshot 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\":\"DashboardSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Dashboard entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DashboardUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DashboardKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dashboard\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"dashboardId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234'\"}],\"Aspect\":{\"name\":\"dashboardKey\"}},{\"type\":\"record\",\"name\":\"DashboardInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"doc\":\"Information about a dashboard\",\"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 dashboard\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Detailed description about the dashboard\",\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"charts\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Charts in a dashboard\\nDeprecated! Use chartEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\"}},\"deprecated\":true},{\"name\":\"chartEdges\",\"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\":{\"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}]}}],\"doc\":\"Charts in a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"chartEdges/*/created/actor\",\"createdOn\":\"chartEdges/*/created/time\",\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\",\"properties\":\"chartEdges/*/properties\",\"updatedActor\":\"chartEdges/*/lastModified/actor\",\"updatedOn\":\"chartEdges/*/lastModified/time\"}}},{\"name\":\"datasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Datasets consumed by a dashboard\\nDeprecated! Use datasetEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"deprecated\":true},{\"name\":\"datasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Datasets consumed by a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"datasetEdges/*/created/actor\",\"createdOn\":\"datasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"datasetEdges/*/properties\",\"updatedActor\":\"datasetEdges/*/lastModified/actor\",\"updatedOn\":\"datasetEdges/*/lastModified/time\"}}},{\"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\":\"AuditStamp\",\"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 dashboard and when\"},{\"name\":\"dashboardUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"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 use","rs\",\"PUBLIC\":\"Publicly available access level\"}}],\"doc\":\"Access level for the dashboard\",\"default\":null,\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"KEYWORD\",\"filterNameOverride\":\"Access Level\"}},{\"name\":\"lastRefreshed\",\"type\":[\"null\",\"long\"],\"doc\":\"The time when this dashboard last refreshed\",\"default\":null}],\"Aspect\":{\"name\":\"dashboardInfo\"}},{\"type\":\"record\",\"name\":\"EditableDashboardProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 dashboard\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDashboardProperties\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"jav","a\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the dashboard. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dashboardKey\",\"name\":\"dashboard\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the dashboard. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 DashboardSnapshot() {} - - /** - * All-args constructor. - */ - public DashboardSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the dashboard. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the dashboard. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new DashboardSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.Builder(); - } - - /** Creates a new DashboardSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.Builder(other); - } - - /** Creates a new DashboardSnapshot RecordBuilder by copying an existing DashboardSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.Builder(other); - } - - /** - * RecordBuilder for DashboardSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DashboardSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DashboardSnapshot build() { - try { - DashboardSnapshot record = new DashboardSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/DataFlowSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DataFlowSnapshot.java deleted file mode 100644 index e426a21624c33..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DataFlowSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific DataFlow entity. */ -@org.apache.avro.specific.AvroGenerated -public class DataFlowSnapshot 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\":\"DataFlowSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific DataFlow entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataFlowUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataFlowKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Flow\",\"fields\":[{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Workflow manager like azkaban, airflow which orchestrates the flow\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"flowId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data flow\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"cluster\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Cluster where the flow is executed\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataFlowKey\"}},{\"type\":\"record\",\"name\":\"DataFlowInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing flow\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flow name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flow description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"project\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional project/namespace associated with the flow\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}},{\"name\":\"created\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event timestamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"name\":\"dataFlowInfo\"}},{\"type\":\"record\",\"name\":\"EditableDataFlowProperties\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"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 data flow\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDataFlowProperties\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Us","e TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the data flow. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataFlowKey\",\"name\":\"dataFlow\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the data flow. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 DataFlowSnapshot() {} - - /** - * All-args constructor. - */ - public DataFlowSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the data flow. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the data flow. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new DataFlowSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.Builder(); - } - - /** Creates a new DataFlowSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.Builder(other); - } - - /** Creates a new DataFlowSnapshot RecordBuilder by copying an existing DataFlowSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.Builder(other); - } - - /** - * RecordBuilder for DataFlowSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataFlowSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataFlowSnapshot build() { - try { - DataFlowSnapshot record = new DataFlowSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/DataHubPolicySnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DataHubPolicySnapshot.java deleted file mode 100644 index 0b571221f0fc2..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DataHubPolicySnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for DataHub Access Policy data. */ -@org.apache.avro.specific.AvroGenerated -public class DataHubPolicySnapshot 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\":\"DataHubPolicySnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for DataHub Access Policy data.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataHubPolicyKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Policy\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the DataHub access policy record. Generated on the server side at policy creation time.\"}],\"Aspect\":{\"name\":\"dataHubPolicyKey\"}},{\"type\":\"record\",\"name\":\"DataHubPolicyInfo\",\"namespace\":\"com.linkedin.pegasus2avro.policy\",\"doc\":\"Information about a DataHub (UI) access policy.\",\"fields\":[{\"name\":\"displayName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the Policy\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the Policy\",\"Searchable\":{\"fieldType\":\"TEXT\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of policy\"},{\"name\":\"state\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The state of policy, ACTIVE or INACTIVE\"},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DataHubResourceFilter\",\"doc\":\"Information used to filter DataHub resource.\",\"fields\":[{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The type of resource that the policy applies to. This will most often be a data asset entity name, for\\nexample 'dataset'. It is not strictly required because in the future we will want to support filtering a resource\\nby domain, as well.\",\"default\":null,\"deprecated\":true},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of resources to apply the policy to, e.g. asset urns\",\"default\":null,\"deprecated\":true},{\"name\":\"allResources\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be applied to all assets matching the filter.\",\"default\":false,\"deprecated\":true},{\"name\":\"filter\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"PolicyMatchFilter\",\"doc\":\"The filter for specifying the resource or actor to apply privileges to\",\"fields\":[{\"name\":\"criteria\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"PolicyMatchCriterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. Matches criterion if any one of the values matches condition (OR-relationship)\"},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"PolicyMatchCondition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"EQUALS\"],\"symbolDocs\":{\"EQUALS\":\"Whether the field matches the value\"}},\"doc\":\"The condition for the criterion\",\"default\":\"EQUALS\"}]}},\"doc\":\"A list of criteria to apply conjunctively (so all criteria must pass)\"}]}],\"doc\":\"Filter to apply privileges to\",\"default\":null}]}],\"doc\":\"The resource that the policy applies to. Not required for some 'Platform' privileges.\",\"default\":null},{\"name\":\"privileges\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"The privileges that the policy grants.\"},{\"name\":\"actors\",\"type\":{\"type\":\"record\",\"name\":\"DataHubActorFilter\",\"doc\":\"Information used to filter DataHub actors.\",\"fields\":[{\"name\":\"users\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of users to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of groups to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"resourceOwners\",\"type\":\"boolean\",\"doc\":\"Whether the filter should return true for owners of a particular resource.\\nOnly applies to policies of type 'Metadata', which have a resource associated with them.\",\"default\":false},{\"name\":\"allUsers\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all users.\",\"default\":false},{\"name\":\"allGroups\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all groups.\",\"default\":false},{\"name\":\"roles\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of roles to apply the policy to (disjunctive).\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataHubRole\"],\"name\":\"IsAssociatedWithRole\"}}}]},\"doc\":\"The actors that the policy applies to.\"},{\"name\":\"editable\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be editable via the UI\",\"default\":true},{\"name\":\"lastUpdatedTimestamp\",\"type\":[\"null\",\"long\"],\"doc\":\"Timestamp when the policy was last updated\",\"default\":null,\"Searchable\":{\"fieldType\":\"DATETIME\"}}],\"Aspect\":{\"name\":\"dataHubPolicyInfo\"}}]},\"doc\":\"The list of metadata aspects associated with the DataHub access policy.\"}],\"Entity\":{\"keyAspect\":\"dataHubPolicyKey\",\"name\":\"dataHubPolicy\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the DataHub access policy. */ - @Deprecated public java.util.List aspects; - - /** - * 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 DataHubPolicySnapshot() {} - - /** - * All-args constructor. - */ - public DataHubPolicySnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the DataHub access policy. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the DataHub access policy. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new DataHubPolicySnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.Builder(); - } - - /** Creates a new DataHubPolicySnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.Builder(other); - } - - /** Creates a new DataHubPolicySnapshot RecordBuilder by copying an existing DataHubPolicySnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.Builder(other); - } - - /** - * RecordBuilder for DataHubPolicySnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataHubPolicySnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataHubPolicySnapshot build() { - try { - DataHubPolicySnapshot record = new DataHubPolicySnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/DataHubRetentionSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DataHubRetentionSnapshot.java deleted file mode 100644 index 2a2abbbfb4738..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DataHubRetentionSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for DataHub Access Policy data. */ -@org.apache.avro.specific.AvroGenerated -public class DataHubRetentionSnapshot 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\":\"DataHubRetentionSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for DataHub Access Policy data.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataHubRetentionKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Retention\",\"fields\":[{\"name\":\"entityName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Entity name to apply retention to. * (or empty) for applying defaults.\"},{\"name\":\"aspectName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Aspect name to apply retention to. * (or empty) for applying defaults.\"}],\"Aspect\":{\"name\":\"dataHubRetentionKey\"}},{\"type\":\"record\",\"name\":\"DataHubRetentionConfig\",\"namespace\":\"com.linkedin.pegasus2avro.retention\",\"fields\":[{\"name\":\"retention\",\"type\":{\"type\":\"record\",\"name\":\"Retention\",\"doc\":\"Base class that encapsulates different retention policies.\\nOnly one of the fields should be set\",\"fields\":[{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionBasedRetention\",\"doc\":\"Keep max N latest records\",\"fields\":[{\"name\":\"maxVersions\",\"type\":\"int\"}]}],\"default\":null},{\"name\":\"time\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeBasedRetention\",\"doc\":\"Keep records that are less than X seconds old\",\"fields\":[{\"name\":\"maxAgeInSeconds\",\"type\":\"int\"}]}],\"default\":null}]}}],\"Aspect\":{\"name\":\"dataHubRetentionConfig\"}}]},\"doc\":\"The list of metadata aspects associated with the DataHub access policy.\"}],\"Entity\":{\"keyAspect\":\"dataHubRetentionKey\",\"name\":\"dataHubRetention\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the DataHub access policy. */ - @Deprecated public java.util.List aspects; - - /** - * 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 DataHubRetentionSnapshot() {} - - /** - * All-args constructor. - */ - public DataHubRetentionSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the DataHub access policy. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the DataHub access policy. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new DataHubRetentionSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.Builder(); - } - - /** Creates a new DataHubRetentionSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.Builder(other); - } - - /** Creates a new DataHubRetentionSnapshot RecordBuilder by copying an existing DataHubRetentionSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.Builder(other); - } - - /** - * RecordBuilder for DataHubRetentionSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataHubRetentionSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataHubRetentionSnapshot build() { - try { - DataHubRetentionSnapshot record = new DataHubRetentionSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/DataJobSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DataJobSnapshot.java deleted file mode 100644 index a664a95b571e8..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DataJobSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific DataJob entity. */ -@org.apache.avro.specific.AvroGenerated -public class DataJobSnapshot 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\":\"DataJobSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific DataJob entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataJobUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataJobKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Job\",\"fields\":[{\"name\":\"flow\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized data processing flow urn representing the flow for the job\",\"Relationship\":{\"entityTypes\":[\"dataFlow\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"dataFlow\",\"fieldType\":\"URN_PARTIAL\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"jobId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data job\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataJobKey\"}},{\"type\":\"record\",\"name\":\"DataJobInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing job\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Job name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Job description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"type\",\"type\":[{\"type\":\"enum\",\"name\":\"AzkabanJobType\",\"namespace\":\"com.linkedin.pegasus2avro.datajob.azkaban\",\"doc\":\"The various types of support azkaban jobs\",\"symbols\":[\"COMMAND\",\"HADOOP_JAVA\",\"HADOOP_SHELL\",\"HIVE\",\"PIG\",\"SQL\",\"GLUE\"],\"symbolDocs\":{\"COMMAND\":\"The command job type is one of the basic built-in types. It runs multiple UNIX commands using java processbuilder.\\nUpon execution, Azkaban spawns off a process to run the command.\",\"GLUE\":\"Glue type is for running AWS Glue job transforms.\",\"HADOOP_JAVA\":\"Runs a java program with ability to access Hadoop cluster.\\nhttps://azkaban.readthedocs.io/en/latest/jobTypes.html#java-job-type\",\"HADOOP_SHELL\":\"In large part, this is the same Command type. The difference is its ability to talk to a Hadoop cluster\\nsecurely, via Hadoop tokens.\",\"HIVE\":\"Hive type is for running Hive jobs.\",\"PIG\":\"Pig type is for running Pig jobs.\",\"SQL\":\"SQL is for running Presto, mysql queries etc\"}},{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Datajob type\\n*NOTE**: AzkabanJobType is deprecated. Please use strings instead.\"},{\"name\":\"flowUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataFlow urn that this job is part of\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataFlowUrn\"}},{\"name\":\"created\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event timestamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"JobStatus\",\"doc\":\"Job statuses\",\"symbols\":[\"STARTING\",\"IN_PROGRESS\",\"STOPPING\",\"STOPPED\",\"COMPLETED\",\"FAILED\",\"UNKNOWN\",\"SKIPPED\"],\"symbolDocs\":{\"COMPLETED\":\"Jobs with successful completion.\",\"FAILED\":\"Jobs that have failed.\",\"IN_PROGRESS\":\"Jobs currently running.\",\"SKIPPED\":\"Jobs that have been skipped.\",\"STARTING\":\"Jobs being initialized.\",\"STOPPED\":\"Jobs that have stopped.\",\"STOPPING\":\"Jobs being stopped.\",\"UNKNOWN\":\"Jobs with unknown status (either unmappable or unavailable)\"}}],\"doc\":\"Status of the job - Deprecated for Data Process Instance model.\",\"default\":null,\"deprecated\":\"Use Data Process Instance model, instead\"}],\"Aspect\":{\"name\":\"dataJobInfo\"}},{\"type\":\"record\",\"name\":\"DataJobInputOutput\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about the inputs and outputs of a Data processing job\",\"fields\":[{\"name\":\"inputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Input datasets consumed by the data job during processing\\nDeprecated! Use inputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"inputDatasetEdges\",\"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\":{\"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}]}}],\"doc\":\"Input datasets consumed by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatasetEdges/","*/created/actor\",\"createdOn\":\"inputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"inputDatasetEdges/*/properties\",\"updatedActor\":\"inputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"inputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Output datasets produced by the data job during processing\\nDeprecated! Use outputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"outputDatasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Output datasets produced by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"outputDatasetEdges/*/created/actor\",\"createdOn\":\"outputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\",\"properties\":\"outputDatasetEdges/*/properties\",\"updatedActor\":\"outputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"outputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"outputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}},{\"name\":\"inputDatajobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Input datajobs that this data job depends on\\nDeprecated! Use inputDatajobEdges instead.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\"}},\"deprecated\":true},{\"name\":\"inputDatajobEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Input datajobs that this data job depends on\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatajobEdges/*/created/actor\",\"createdOn\":\"inputDatajobEdges/*/created/time\",\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"inputDatajobEdges/*/properties\",\"updatedActor\":\"inputDatajobEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatajobEdges/*/lastModified/time\"}}},{\"name\":\"inputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the input datasets used by this job\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputFields\",\"queryByDefault\":false}}},{\"name\":\"outputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the output datasets this job writes to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputFields\",\"queryByDefault\":false}}},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FineGrainedLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"A fine-grained lineage from upstream fields/datasets to downstream field(s)\",\"fields\":[{\"name\":\"upstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageUpstreamType\",\"doc\":\"The type of upstream entity in a fine-grained lineage\",\"symbols\":[\"FIELD_SET\",\"DATASET\",\"NONE\"],\"symbolDocs\":{\"DATASET\":\" Indicates that this lineage is originating from upstream dataset(s)\",\"FIELD_SET\":\" Indicates that this lineage is originating from upstream field(s)\",\"NONE\":\" Indicates that there is no upstream lineage i.e. the downstream field is not a derived field\"}},\"doc\":\"The type of upstream entity\"},{\"name\":\"upstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Upstream entities in the lineage\",\"default\":null},{\"name\":\"downstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageDownstreamType\",\"doc\":\"The type of downstream field(s) in a fine-grained lineage\",\"symbols\":[\"FIELD\",\"FIELD_SET\"],\"symbolDocs\":{\"FIELD\":\" Indicates that the lineage is for a single, specific, downstream field\",\"FIELD_SET\":\" Indicates that the lineage is for a set of downstream fields\"}},\"doc\":\"The type of downstream field(s)\"},{\"name\":\"downstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Downstream fields in the lineage\",\"default\":null},{\"name\":\"transformOperation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The transform operation applied to the upstream entities to produce the downstream field(s)\",\"default\":null},{\"name\":\"confidenceScore\",\"type\":\"float\",\"doc\":\"The confidence in this lineage between 0 (low confidence) and 1 (high confidence)\",\"default\":1.0}]}}],\"doc\":\"Fine-grained column-level lineages\",\"default\":null}],\"Aspect\":{\"name\":\"dataJobInputOutput\"}},{\"type\":\"record\",\"name\":\"EditableDataJobProperties\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 data job \",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDataJobProperties\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDep","recated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the data job. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataJobKey\",\"name\":\"dataJob\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the data job. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 DataJobSnapshot() {} - - /** - * All-args constructor. - */ - public DataJobSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the data job. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the data job. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new DataJobSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.Builder(); - } - - /** Creates a new DataJobSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.Builder(other); - } - - /** Creates a new DataJobSnapshot RecordBuilder by copying an existing DataJobSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.Builder(other); - } - - /** - * RecordBuilder for DataJobSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataJobSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataJobSnapshot build() { - try { - DataJobSnapshot record = new DataJobSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/DataPlatformSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DataPlatformSnapshot.java deleted file mode 100644 index 3a97e1785a6a1..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DataPlatformSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific dataplatform entity. */ -@org.apache.avro.specific.AvroGenerated -public class DataPlatformSnapshot 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\":\"DataPlatformSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataplatform entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataPlatformKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Platform\",\"fields\":[{\"name\":\"platformName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform name i.e. hdfs, oracle, espresso\"}],\"Aspect\":{\"name\":\"dataPlatformKey\"}},{\"type\":\"record\",\"name\":\"DataPlatformInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dataplatform\",\"doc\":\"Information about a data platform\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the data platform\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":false,\"fieldType\":\"TEXT_PARTIAL\"},\"validate\":{\"strlen\":{\"max\":15}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The name that will be used for displaying a platform type.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"PlatformType\",\"doc\":\"Platform types available at LinkedIn\",\"symbols\":[\"FILE_SYSTEM\",\"KEY_VALUE_STORE\",\"MESSAGE_BROKER\",\"OBJECT_STORE\",\"OLAP_DATASTORE\",\"OTHERS\",\"QUERY_ENGINE\",\"RELATIONAL_DB\",\"SEARCH_ENGINE\"],\"symbolDocs\":{\"FILE_SYSTEM\":\"Value for a file system, e.g. hdfs\",\"KEY_VALUE_STORE\":\"Value for a key value store, e.g. espresso, voldemort\",\"MESSAGE_BROKER\":\"Value for a message broker, e.g. kafka\",\"OBJECT_STORE\":\"Value for an object store, e.g. ambry\",\"OLAP_DATASTORE\":\"Value for an OLAP datastore, e.g. pinot\",\"OTHERS\":\"Value for other platforms, e.g salesforce, dovetail\",\"QUERY_ENGINE\":\"Value for a query engine, e.g. presto\",\"RELATIONAL_DB\":\"Value for a relational database, e.g. oracle, mysql\",\"SEARCH_ENGINE\":\"Value for a search engine, e.g seas\"}},\"doc\":\"Platform type this data platform describes\"},{\"name\":\"datasetNameDelimiter\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The delimiter in the dataset names on the data platform, e.g. '/' for HDFS and '.' for Oracle\"},{\"name\":\"logoUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The URL for a logo associated with the platform\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}],\"Aspect\":{\"name\":\"dataPlatformInfo\"}}]},\"doc\":\"The list of metadata aspects associated with the data platform. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataPlatformKey\",\"name\":\"dataPlatform\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the data platform. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 DataPlatformSnapshot() {} - - /** - * All-args constructor. - */ - public DataPlatformSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the data platform. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the data platform. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new DataPlatformSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.Builder(); - } - - /** Creates a new DataPlatformSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.Builder(other); - } - - /** Creates a new DataPlatformSnapshot RecordBuilder by copying an existing DataPlatformSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.Builder(other); - } - - /** - * RecordBuilder for DataPlatformSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataPlatformSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataPlatformSnapshot build() { - try { - DataPlatformSnapshot record = new DataPlatformSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/DataProcessSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DataProcessSnapshot.java deleted file mode 100644 index 4f5ed9f75e7d6..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DataProcessSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific Data process entity. */ -@org.apache.avro.specific.AvroGenerated -public class DataProcessSnapshot 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\":\"DataProcessSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Data process entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataProcessUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataProcessKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Process\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Process name i.e. an ETL job name\",\"Searchable\":{\"boostScore\":4.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized Orchestrator where data process is defined.\\nTODO: Migrate towards something that can be validated like DataPlatform urn\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where dataset belongs to or where it was generated.\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"dataProcessKey\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"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 last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"DataProcessInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"doc\":\"The inputs and outputs of this data process\",\"fields\":[{\"name\":\"inputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"the inputs of the data process\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"the outputs of the data process\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}}],\"Aspect\":{\"name\":\"dataProcessInfo\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}}]},\"doc\":\"The list of metadata aspects associated with the data process. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],","\"Entity\":{\"keyAspect\":\"dataProcessKey\",\"name\":\"dataProcess\"},\"deprecated\":\"Use DataJob instead.\"}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the data process. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 DataProcessSnapshot() {} - - /** - * All-args constructor. - */ - public DataProcessSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the data process. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the data process. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new DataProcessSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.Builder(); - } - - /** Creates a new DataProcessSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.Builder(other); - } - - /** Creates a new DataProcessSnapshot RecordBuilder by copying an existing DataProcessSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.Builder(other); - } - - /** - * RecordBuilder for DataProcessSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataProcessSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataProcessSnapshot build() { - try { - DataProcessSnapshot record = new DataProcessSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/DatasetSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DatasetSnapshot.java deleted file mode 100644 index 7cec13f3e484c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/DatasetSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific dataset entity. */ -@org.apache.avro.specific.AvroGenerated -public class DatasetSnapshot 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\":\"DatasetSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataset entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DatasetKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dataset\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the dataset\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique guid for dataset\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where dataset belongs to or where it was generated.\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"datasetKey\"}},{\"type\":\"record\",\"name\":\"DatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Properties associated with a Dataset\",\"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\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the Dataset\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"qualifiedName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Fully-qualified name of the Dataset\",\"default\":null,\"Searchable\":{\"addToFilters\":false,\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"uri\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic).\",\"default\":null,\"deprecated\":\"Use ExternalReference.externalUrl field instead.\",\"java\":{\"class\":\"java.net.URI\"}},{\"name\":\"created\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event timestamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"[Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect.\\nThis is now deprecated.\",\"default\":[],\"deprecated\":\"Use GlobalTags aspect instead.\"}],\"Aspect\":{\"name\":\"datasetProperties\"}},{\"type\":\"record\",\"name\":\"EditableDatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"EditableDatasetProperties stores editable changes made to dataset 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\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDatasetProperties\"}},{\"type\":\"record\",\"name\":\"DatasetDeprecation\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Dataset deprecation status\\nDeprecated! This aspect is deprecated in favor of the more-general-purpose 'Deprecation' aspect.\",\"fields\":[{\"name\":\"deprecated\",\"type\":\"boolean\",\"doc\":\"Whether the dataset is deprecated by owner.\",\"Searchable\":{\"fiel","dType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"decommissionTime\",\"type\":[\"null\",\"long\"],\"doc\":\"The time user plan to decommission this dataset.\",\"default\":null},{\"name\":\"note\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Additional information about the dataset deprecation plan, such as the wiki, doc, RB.\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The corpuser URN which will be credited for modifying this deprecation content.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}],\"Aspect\":{\"name\":\"datasetDeprecation\"},\"Deprecated\":true},{\"type\":\"record\",\"name\":\"DatasetUpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Fine Grained upstream lineage for fields in a dataset\",\"fields\":[{\"name\":\"fieldMappings\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"DatasetFieldMapping\",\"doc\":\"Representation of mapping between fields in source dataset to the field in destination dataset\",\"fields\":[{\"name\":\"created\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\"},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"string\",\"avro.java.string\":\"String\"}]},\"doc\":\"Source fields from which the fine grained lineage is derived\"},{\"name\":\"destinationField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Destination field which is derived from source fields\",\"deprecated\":\"use SchemaFieldPath and represent as generic Urn instead\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetFieldUrn\"}}],\"deprecated\":\"use FineGrainedLineage instead\"}},\"doc\":\"Upstream to downstream field level lineage mappings\"}],\"Aspect\":{\"name\":\"datasetUpstreamLineage\"},\"deprecated\":\"use UpstreamLineage.fineGrainedLineages instead\"},{\"type\":\"record\",\"name\":\"UpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Upstream lineage of a dataset\",\"fields\":[{\"name\":\"upstreams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Upstream\",\"doc\":\"Upstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"auditStamp\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit stamp containing who reported the lineage and when.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Audit stamp containing who created the lineage and when.\",\"default\":null},{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The upstream dataset the lineage points to\",\"Relationship\":{\"createdActor\":\"upstreams/*/created/actor\",\"createdOn\":\"upstreams/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"upstreams/*/properties\",\"updatedActor\":\"upstreams/*/auditStamp/actor\",\"updatedOn\":\"upstreams/*/auditStamp/time\"},\"Searchable\":{\"fieldName\":\"upstreams\",\"fieldType\":\"URN\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}},\"doc\":\"The type of the lineage\"},{\"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\":\"List of upstream dataset lineage information\"},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FineGrainedLineage\",\"doc\":\"A fine-grained lineage from upstream fields/datasets to downstream field(s)\",\"fields\":[{\"name\":\"upstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageUpstreamType\",\"doc\":\"The type of upstream entity in a fine-grained lineage\",\"symbols\":[\"FIELD_SET\",\"DATASET\",\"NONE\"],\"symbolDocs\":{\"DATASET\":\" Indicates that this lineage is originating from upstream dataset(s)\",\"FIELD_SET\":\" Indicates that this lineage is originating from upstream field(s)\",\"NONE\":\" Indicates that there is no upstream lineage i.e. the downstream field is not a derived field\"}},\"doc\":\"The type of upstream entity\"},{\"name\":\"upstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Upstream entities in the lineage\",\"default\":null},{\"name\":\"downstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageDownstreamType\",\"doc\":\"The type of downstream field(s) in a fine-grained lineage\",\"symbols\":[\"FIELD\",\"FIELD_SET\"],\"symbolDocs\":{\"FIELD\":\" Indicates that the lineage is for a single, specific, downstream field\",\"FIELD_SET\":\" Indicates that the lineage is for a set of downstream fields\"}},\"doc\":\"The type of downstream field(s)\"},{\"name\":\"downstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Downstream fields in the lineage\",\"default\":null},{\"name\":\"transformOperation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The transform operation applied to the upstream entities to produce the downstream field(s)\",\"default\":null},{\"name\":\"confidenceScore\",\"type\":\"float\",\"doc\":\"The confidence in this lineage between 0 (low confidence) and 1 (high confidence)\",\"default\":1.0}]}}],\"doc\":\" List of fine-grained lineage information, including field-level lineage\",\"default\":null,\"Relationship\":{\"/*/upstreams/*\":{\"entityTypes\":[\"dataset\",\"schemaField\"],\"name\":\"DownstreamOf\"}}}],\"Aspect\":{\"name\":\"upstreamLineage\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",","\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"type\":\"record\",\"name\":\"SchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"SchemaMetadata to describe metadata related to store schema\",\"fields\":[{\"name\":\"schemaName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking\",\"validate\":{\"strlen\":{\"max\":500,\"min\":1}}},{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name})\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"version\",\"type\":\"long\",\"doc\":\"Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version.\"},{\"name\":\"created\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"dataset\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Dataset this schema metadata is associated with.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"cluster\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The cluster this schema metadata resides from\",\"default\":null},{\"name\":\"hash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"the SHA1 hash of the schema content\"},{\"name\":\"platformSchema\",\"type\":[{\"type\":\"record\",\"name\":\"EspressoSchema\",\"doc\":\"Schema text of an espresso table schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native espresso document schema.\"},{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The espresso table schema definition.\"}]},{\"type\":\"record\",\"name\":\"OracleDDL\",\"doc\":\"Schema holder for oracle data definition language that describes an oracle table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"MySqlDDL\",\"doc\":\"Schema holder for MySql data definition language that describes an MySql table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"PrestoDDL\",\"doc\":\"Schema holder for presto data definition language that describes a presto view.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL.\"}]},{\"type\":\"record\",\"name\":\"KafkaSchema\",\"doc\":\"Schema holder for kafka schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native kafka document schema. This is a human readable avro document schema.\"},{\"name\":\"keySchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The native kafka key schema as retrieved from Schema Registry\",\"default\":null}]},{\"type\":\"record\",\"name\":\"BinaryJsonSchema\",\"doc\":\"Schema text of binary JSON schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema text for binary JSON file format.\"}]},{\"type\":\"record\",\"name\":\"OrcSchema\",","\"doc\":\"Schema text of an ORC schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema for ORC file format.\"}]},{\"type\":\"record\",\"name\":\"Schemaless\",\"doc\":\"The dataset has no specific schema associated with it\",\"fields\":[]},{\"type\":\"record\",\"name\":\"KeyValueSchema\",\"doc\":\"Schema text of a key-value store schema.\",\"fields\":[{\"name\":\"keySchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the key in the key-value store.\"},{\"name\":\"valueSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the value in the key-value store.\"}]},{\"type\":\"record\",\"name\":\"OtherSchema\",\"doc\":\"Schema holder for undefined schema types.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform.\"}]}],\"doc\":\"The native schema in the dataset's platform.\"},{\"name\":\"fields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SchemaField\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flattened name of the field. Field is computed from jsonPath field.\",\"Searchable\":{\"fieldName\":\"fieldPaths\",\"fieldType\":\"TEXT\"}},{\"name\":\"jsonPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flattened name of a field in JSON Path notation.\",\"default\":null,\"Deprecated\":true},{\"name\":\"nullable\",\"type\":\"boolean\",\"doc\":\"Indicates if this field is optional or nullable\",\"default\":false},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"fieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"label\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Label of the field. Provides a more human-readable name for the field than field path. Some sources will\\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\\na field in a source, that is most likely a description.\",\"default\":null,\"Searchable\":{\"boostScore\":0.2,\"fieldName\":\"fieldLabels\",\"fieldType\":\"TEXT\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the creation of this schema field.\",\"default\":null},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the last modification of this schema field.\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"record\",\"name\":\"SchemaFieldDataType\",\"doc\":\"Schema field data types\",\"fields\":[{\"name\":\"type\",\"type\":[{\"type\":\"record\",\"name\":\"BooleanType\",\"doc\":\"Boolean field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"FixedType\",\"doc\":\"Fixed field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"StringType\",\"doc\":\"String field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"BytesType\",\"doc\":\"Bytes field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NumberType\",\"doc\":\"Number data type: long, integer, short, etc..\",\"fields\":[]},{\"type\":\"record\",\"name\":\"DateType\",\"doc\":\"Date field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"TimeType\",\"doc\":\"Time field type. This should also be used for datetimes.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"EnumType\",\"doc\":\"Enum field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NullType\",\"doc\":\"Null field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"MapType\",\"doc\":\"Map field type.\",\"fields\":[{\"name\":\"keyType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Key type in a map\",\"default\":null},{\"name\":\"valueType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of the value in a map\",\"default\":null}]},{\"type\":\"record\",\"name\":\"ArrayType\",\"doc\":\"Array field type.\",\"fields\":[{\"name\":\"nestedType\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types this array holds.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"UnionType\",\"doc\":\"Union field type.\",\"fields\":[{\"name\":\"nestedTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types in union type.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"RecordType\",\"doc\":\"Record field type.\",\"fields\":[]}],\"doc\":\"Data platform specific types\"}]},\"doc\":\"Platform independent field type of the field.\"},{\"name\":\"nativeDataType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native type of the field in the dataset's platform as declared by platform schema.\"},{\"name\":\"recursive\",\"type\":\"boolean\",\"doc\":\"There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.\",\"default\":false},{\"name\":\"globalTags\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}}],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"SchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"fieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}}],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"SchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"fieldGlossaryTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"isPartOfKey\",\"type\":\"boolean\",\"doc\":\"For schema fields that are part of complex keys, set this field to true\\nWe do this to easily distinguish between value and key fields\",\"default\":false},{\"name\":\"isPartitioningKey\",\"type\":[\"null\",\"boolean\"],\"doc\":\"For Datasets which are partitioned, this determines the partitioning key.\",\"default\":null},{\"name\":\"jsonProps\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"For schema fields that have other properties that are not modeled explicitly,\\nuse this field to serialize those properties into a JSON string\",\"default\":null}]}},\"doc\":\"Client provided a list of fields from docu","ment schema.\"},{\"name\":\"primaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath.\",\"default\":null},{\"name\":\"foreignKeysSpecs\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"ForeignKeySpec\",\"doc\":\"Description of a foreign key in a schema.\",\"fields\":[{\"name\":\"foreignKey\",\"type\":[{\"type\":\"record\",\"name\":\"DatasetFieldForeignKey\",\"doc\":\"For non-urn based foregin keys.\",\"fields\":[{\"name\":\"parentDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"dataset that stores the resource.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"currentFieldPaths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset.\"},{\"name\":\"parentField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"SchemaField@fieldPath that uniquely identify field in parent dataset that this field references.\"}]},{\"type\":\"record\",\"name\":\"UrnForeignKey\",\"doc\":\"If SchemaMetadata fields make any external references and references are of type com.linkedin.pegasus2avro.common.Urn or any children, this models can be used to mark it.\",\"fields\":[{\"name\":\"currentFieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Field in hosting(current) SchemaMetadata.\"}]}],\"doc\":\"Foreign key definition in metadata schema.\"}]},\"avro.java.string\":\"String\"}],\"doc\":\"Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref.\",\"default\":null,\"deprecated\":\"Use foreignKeys instead.\"},{\"name\":\"foreignKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ForeignKeyConstraint\",\"doc\":\"Description of a foreign key constraint in a schema.\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the constraint, likely provided from the source\"},{\"name\":\"foreignFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the foreign dataset\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"ForeignKeyTo\"}}},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the source dataset\"},{\"name\":\"foreignDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Reference to the foreign dataset for ease of lookup\",\"Relationship\":{\"entityTypes\":[\"dataset\"],\"name\":\"ForeignKeyToDataset\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}}],\"doc\":\"List of foreign key constraints for the schema\",\"default\":null}],\"Aspect\":{\"name\":\"schemaMetadata\"}},{\"type\":\"record\",\"name\":\"EditableSchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"EditableSchemaMetadata stores editable changes made to schema metadata. 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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"editableSchemaFieldInfo\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"EditableSchemaFieldInfo\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"FieldPath uniquely identifying the SchemaField this metadata is associated with\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"editedFieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"globalTags\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlobalTags\"],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"EditableSchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\"],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"EditableSchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldGlossaryTerms\",\"fieldType\":\"URN\"}}}]}},\"doc\":\"Client provided a list of fields from document schema.\"}],\"Aspect\":{\"name\":\"editableSchemaMetadata\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",{\"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\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"ViewProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Details about a View. \\ne.g. Gets activated when subTypes is view\",\"fields\":[{\"name\":\"materialized\",\"type\":\"boolean\",\"doc\":\"Whether the view is materialized\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"viewLogic\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The view logic\"},{\"name\":\"viewLanguage\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The view logic language / dialect\"}],\"Aspect\":{\"name\":\"viewProperties\"}}]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"datasetKey\",\"name\":\"dataset\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 DatasetSnapshot() {} - - /** - * All-args constructor. - */ - public DatasetSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new DatasetSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.Builder(); - } - - /** Creates a new DatasetSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.Builder(other); - } - - /** Creates a new DatasetSnapshot RecordBuilder by copying an existing DatasetSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.Builder(other); - } - - /** - * RecordBuilder for DatasetSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DatasetSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DatasetSnapshot build() { - try { - DatasetSnapshot record = new DatasetSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/GlossaryNodeSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/GlossaryNodeSnapshot.java deleted file mode 100644 index 236ad2de123e3..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/GlossaryNodeSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific GlossaryNode entity. */ -@org.apache.avro.specific.AvroGenerated -public class GlossaryNodeSnapshot 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\":\"GlossaryNodeSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific GlossaryNode entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"GlossaryNodeKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryNode\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeKey\"}},{\"type\":\"record\",\"name\":\"GlossaryNodeInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryNode\",\"fields\":[{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business node\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the node\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"displayName\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the GlossaryNode\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeInfo\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"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 last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}}]},\"doc\":\"The list of metadata aspects associated with the GlossaryNode. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"glossaryNodeKey\",\"name\":\"glossaryNode\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the GlossaryNode. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 GlossaryNodeSnapshot() {} - - /** - * All-args constructor. - */ - public GlossaryNodeSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the GlossaryNode. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the GlossaryNode. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new GlossaryNodeSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.Builder(); - } - - /** Creates a new GlossaryNodeSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.Builder(other); - } - - /** Creates a new GlossaryNodeSnapshot RecordBuilder by copying an existing GlossaryNodeSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.Builder(other); - } - - /** - * RecordBuilder for GlossaryNodeSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing GlossaryNodeSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public GlossaryNodeSnapshot build() { - try { - GlossaryNodeSnapshot record = new GlossaryNodeSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/GlossaryTermSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/GlossaryTermSnapshot.java deleted file mode 100644 index aac6869175a1f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/GlossaryTermSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific GlossaryTerm entity. */ -@org.apache.avro.specific.AvroGenerated -public class GlossaryTermSnapshot 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\":\"GlossaryTermSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific GlossaryTerm entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"GlossaryTermKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryTerm\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The term name, which serves as a unique id\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryTermKey\"}},{\"type\":\"record\",\"name\":\"GlossaryTermInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryTerm\",\"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\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the term\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the term\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business term.\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"termSource\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"External Reference to the business-term\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"rawSchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Schema definition of the glossary term\",\"default\":null,\"deprecated\":true}],\"Aspect\":{\"name\":\"glossaryTermInfo\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"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 last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldT","ype\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlossaryRelatedTerms\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Has A / Is A lineage information about a glossary Term reporting the lineage\",\"fields\":[{\"name\":\"isRelatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Is A with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"IsA\"}},\"Searchable\":{\"/*\":{\"boostScore\":2.0,\"fieldName\":\"isRelatedTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"hasRelatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Has A with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"HasA\"}},\"Searchable\":{\"/*\":{\"boostScore\":2.0,\"fieldName\":\"hasRelatedTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"values\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Has Value with glossary term.\\nThese are fixed value a term has. For example a ColorEnum where RED, GREEN and YELLOW are fixed values.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"HasValue\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"values\",\"fieldType\":\"URN\"}}},{\"name\":\"relatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship isRelatedTo with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"IsRelatedTo\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"relatedTerms\",\"fieldType\":\"URN\"}}}],\"Aspect\":{\"name\":\"glossaryRelatedTerms\"}}]},\"doc\":\"The list of metadata aspects associated with the GlossaryTerm. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"glossaryTermKey\",\"name\":\"glossaryTerm\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the GlossaryTerm. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 GlossaryTermSnapshot() {} - - /** - * All-args constructor. - */ - public GlossaryTermSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the GlossaryTerm. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the GlossaryTerm. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new GlossaryTermSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.Builder(); - } - - /** Creates a new GlossaryTermSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.Builder(other); - } - - /** Creates a new GlossaryTermSnapshot RecordBuilder by copying an existing GlossaryTermSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.Builder(other); - } - - /** - * RecordBuilder for GlossaryTermSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing GlossaryTermSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public GlossaryTermSnapshot build() { - try { - GlossaryTermSnapshot record = new GlossaryTermSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/MLFeatureSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/MLFeatureSnapshot.java deleted file mode 100644 index 07aaf26318bb6..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/MLFeatureSnapshot.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class MLFeatureSnapshot 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\":\"MLFeatureSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.MLFeatureUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLFeatureKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeature\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the feature\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeature\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeature\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"dataType\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"MLFeatureDataType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"MLFeature Data Type\",\"symbols\":[\"USELESS\",\"NOMINAL\",\"ORDINAL\",\"BINARY\",\"COUNT\",\"TIME\",\"INTERVAL\",\"IMAGE\",\"VIDEO\",\"AUDIO\",\"TEXT\",\"MAP\",\"SEQUENCE\",\"SET\",\"CONTINUOUS\",\"BYTE\",\"UNKNOWN\"],\"symbolDocs\":{\"AUDIO\":\"Audio Data\",\"BINARY\":\"Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc\",\"BYTE\":\"Bytes data are binary-encoded values that can represent complex objects.\",\"CONTINUOUS\":\"Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.\",\"COUNT\":\"Count data is discrete whole number data - no negative numbers here.\\nCount data often has many small values, such as zero and one.\",\"IMAGE\":\"Image Data\",\"INTERVAL\":\"Interval data has equal spaces between the numbers and does not represent a temporal pattern.\\nExamples include percentages, temperatures, and income.\",\"MAP\":\"Mapping Data Type ex: dict, map\",\"NOMINAL\":\"Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.\",\"ORDINAL\":\"Ordinal data are discrete integers that can be ranked or sorted.\\nFor example, the distance between first and second may not be the same as the distance between second and third.\",\"SEQUENCE\":\"Sequence Data Type ex: list, tuple, range\",\"SET\":\"Set Data Type ex: set, frozenset\",\"TEXT\":\"Text Data\",\"TIME\":\"Time data is a cyclical, repeating continuous form of data.\\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.\",\"UNKNOWN\":\"Unknown data are data that we don't know the type for.\",\"USELESS\":\"Useless data is unique, discrete data with no potential relationship with the outcome variable.\\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.\",\"VIDEO\":\"Video Data\"}}],\"doc\":\"Data Type of the MLFeature\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLFeature\",\"default\":null},{\"name\":\"sources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Source of the MLFeature\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlFeatureProperties\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"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 last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"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\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the MLFeature. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlFeatureKey\",\"name\":\"mlFeature\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the MLFeature. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 MLFeatureSnapshot() {} - - /** - * All-args constructor. - */ - public MLFeatureSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the MLFeature. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the MLFeature. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new MLFeatureSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.Builder(); - } - - /** Creates a new MLFeatureSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.Builder(other); - } - - /** Creates a new MLFeatureSnapshot RecordBuilder by copying an existing MLFeatureSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.Builder(other); - } - - /** - * RecordBuilder for MLFeatureSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing MLFeatureSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public MLFeatureSnapshot build() { - try { - MLFeatureSnapshot record = new MLFeatureSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/MLFeatureTableSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/MLFeatureTableSnapshot.java deleted file mode 100644 index bde99d23751ac..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/MLFeatureTableSnapshot.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class MLFeatureTableSnapshot 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\":\"MLFeatureTableSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLFeatureTableKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeatureTable\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the feature table\",\"Relationship\":{\"entityTypes\":[\"dataPlatform\"],\"name\":\"SourcePlatform\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature table\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureTableKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureTableProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeatureTable\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeatureTable\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features contained in the feature table\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"name\":\"Contains\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"features\",\"fieldType\":\"URN\"}}},{\"name\":\"mlPrimaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of primary keys in the feature table (if multiple, assumed to act as a composite key)\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlPrimaryKey\"],\"name\":\"KeyedBy\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"primaryKeys\",\"fieldType\":\"URN\"}}}],\"Aspect\":{\"name\":\"mlFeatureTableProperties\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"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 last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record con","sists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"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\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the MLFeatureTable. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlFeatureTableKey\",\"name\":\"mlFeatureTable\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the MLFeatureTable. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 MLFeatureTableSnapshot() {} - - /** - * All-args constructor. - */ - public MLFeatureTableSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the MLFeatureTable. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the MLFeatureTable. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new MLFeatureTableSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.Builder(); - } - - /** Creates a new MLFeatureTableSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.Builder(other); - } - - /** Creates a new MLFeatureTableSnapshot RecordBuilder by copying an existing MLFeatureTableSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.Builder(other); - } - - /** - * RecordBuilder for MLFeatureTableSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing MLFeatureTableSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public MLFeatureTableSnapshot build() { - try { - MLFeatureTableSnapshot record = new MLFeatureTableSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/MLModelDeploymentSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/MLModelDeploymentSnapshot.java deleted file mode 100644 index 025a8ad6dca2d..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/MLModelDeploymentSnapshot.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class MLModelDeploymentSnapshot 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\":\"MLModelDeploymentSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelDeploymentKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model deployment\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model Deployment\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModelDeployment\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where model Deployment belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelDeploymentKey\"}},{\"type\":\"record\",\"name\":\"MLModelDeploymentProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Deployment\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModelDeployment\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModelDeployment was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLModelDeployment\",\"default\":null},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"DeploymentStatus\",\"doc\":\"Model endpoint statuses\",\"symbols\":[\"OUT_OF_SERVICE\",\"CREATING\",\"UPDATING\",\"ROLLING_BACK\",\"IN_SERVICE\",\"DELETING\",\"FAILED\",\"UNKNOWN\"],\"symbolDocs\":{\"CREATING\":\"Deployments being created.\",\"DELETING\":\"Deployments being deleted.\",\"FAILED\":\"Deployments with an error state.\",\"IN_SERVICE\":\"Deployments that are active.\",\"OUT_OF_SERVICE\":\"Deployments out of service.\",\"ROLLING_BACK\":\"Deployments being reverted to a previous version.\",\"UNKNOWN\":\"Deployments with unknown/unmappable state.\",\"UPDATING\":\"Deployments being updated.\"}}],\"doc\":\"Status of the deployment\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelDeploymentProperties\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"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\",\"t","ype\":[\"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 last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the MLModelDeployment. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelDeploymentKey\",\"name\":\"mlModelDeployment\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the MLModelDeployment. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 MLModelDeploymentSnapshot() {} - - /** - * All-args constructor. - */ - public MLModelDeploymentSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the MLModelDeployment. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the MLModelDeployment. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new MLModelDeploymentSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.Builder(); - } - - /** Creates a new MLModelDeploymentSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.Builder(other); - } - - /** Creates a new MLModelDeploymentSnapshot RecordBuilder by copying an existing MLModelDeploymentSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.Builder(other); - } - - /** - * RecordBuilder for MLModelDeploymentSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing MLModelDeploymentSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public MLModelDeploymentSnapshot build() { - try { - MLModelDeploymentSnapshot record = new MLModelDeploymentSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/MLModelGroupSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/MLModelGroupSnapshot.java deleted file mode 100644 index f4199921f827b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/MLModelGroupSnapshot.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class MLModelGroupSnapshot 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\":\"MLModelGroupSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model group\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model group\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModelGroup\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where model group belongs to or where it was generated\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelGroupKey\"}},{\"type\":\"record\",\"name\":\"MLModelGroupProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Group\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModelGroup\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModelGroup was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLModelGroup\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelGroupProperties\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"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 last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"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\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the MLModelGroup. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelGroupKey\",\"name\":\"mlModelGroup\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the MLModelGroup. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 MLModelGroupSnapshot() {} - - /** - * All-args constructor. - */ - public MLModelGroupSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the MLModelGroup. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the MLModelGroup. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new MLModelGroupSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.Builder(); - } - - /** Creates a new MLModelGroupSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.Builder(other); - } - - /** Creates a new MLModelGroupSnapshot RecordBuilder by copying an existing MLModelGroupSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.Builder(other); - } - - /** - * RecordBuilder for MLModelGroupSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing MLModelGroupSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public MLModelGroupSnapshot build() { - try { - MLModelGroupSnapshot record = new MLModelGroupSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/MLModelSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/MLModelSnapshot.java deleted file mode 100644 index 7d1e2d3044ab9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/MLModelSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** MLModel Snapshot entity details. */ -@org.apache.avro.specific.AvroGenerated -public class MLModelSnapshot 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\":\"MLModelSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"MLModel Snapshot entity details.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.MLModelUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModel\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where model belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelKey\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"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 last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"MLModelProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a ML Model\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModel\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"date\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModel was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLModel\",\"default\":null},{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"hyperParameters\",\"type\":[\"null\",{\"type\":\"","map\",\"values\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"int\",\"float\",\"double\",\"boolean\"],\"avro.java.string\":\"String\"}],\"doc\":\"Hyper Parameters of the MLModel\\n\\nNOTE: these are deprecated in favor of hyperParams\",\"default\":null},{\"name\":\"hyperParams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLHyperParam\",\"doc\":\"Properties associated with an ML Hyper Param\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLHyperParam\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLHyperParam\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the MLHyperParam\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLHyperParam was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlHyperParam\"}}}],\"doc\":\"Hyperparameters of the MLModel\",\"default\":null},{\"name\":\"trainingMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLMetric\",\"doc\":\"Properties associated with an ML Metric\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the mlMetric\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the mlMetric\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the mlMetric\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the mlMetric was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlMetric\"}}}],\"doc\":\"Metrics of the MLModel used in training\",\"default\":null},{\"name\":\"onlineMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLMetric\"}],\"doc\":\"Metrics of the MLModel used in production\",\"default\":null},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features used for MLModel training\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"isLineage\":true,\"name\":\"Consumes\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Tags for the MLModel\",\"default\":[]},{\"name\":\"deployments\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Deployments for the MLModel\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelDeployment\"],\"name\":\"DeployedTo\"}}},{\"name\":\"trainingJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) used to train the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"TrainedBy\"}}},{\"name\":\"downstreamJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) that use the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"UsedBy\"}}},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups the model belongs to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelGroup\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"MemberOf\"}}}],\"Aspect\":{\"name\":\"mlModelProperties\"}},{\"type\":\"record\",\"name\":\"IntendedUse\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Intended Use for the ML Model\",\"fields\":[{\"name\":\"primaryUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Primary Use cases for the MLModel.\",\"default\":null},{\"name\":\"primaryUsers\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"enum\",\"name\":\"IntendedUserType\",\"symbols\":[\"ENTERPRISE\",\"HOBBY\",\"ENTERTAINMENT\"]}}],\"doc\":\"Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions?\",\"default\":null},{\"name\":\"outOfScopeUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to.\",\"default\":null}],\"Aspect\":{\"name\":\"intendedUse\"}},{\"type\":\"record\",\"name\":\"MLModelFactorPrompts\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Prompts which affect the performance of the MLModel\",\"fields\":[{\"name\":\"relevantFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLModelFactors\",\"doc\":\"Factors affecting the performance of the MLModel.\",\"fields\":[{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances.\\nFor human-centric machine learning MLModels, groups are people who share one or multiple characteristics.\",\"default\":null},{\"name\":\"instrumentation\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel.\\nFor example, a face detection model may perform differently depending on the camera's hardware and software,\\nincluding lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode.\",\"default\":null},{\"name\":\"environment\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A further factor affecting MLModel performance is the environment in which it is deployed.\",\"default\":null}]}}],\"doc\":\"What are foreseeable salient factors for which MLModel performance may vary, and how were these determined?\",\"default\":null},{\"name\":\"evaluationFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLModelFactors\"}],\"doc\":\"Which factors are being reported, and why were these chosen?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelFactorPrompts\"}},{\"type\":\"record\",\"name\":\"Metrics\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Metrics to be featured for the MLModel.\",\"fields\":[{\"name\":\"performanceMeasures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Measures of MLModel performance\",\"default\":null},{\"name\":\"decisionThreshold\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Decision Thresholds used (if any)?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelMetrics\"}},{\"type\":\"record\",\"name\":\"EvaluationData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"All referenced datasets would ideally point to any set of documents that provide visibility into the source and composition of the dataset.\",\"fields\":[{\"name\":\"evaluationData\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BaseData\",\"doc\":\"BaseData record\",\"fields\":[{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"What dataset were used in the MLModel?\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"motivation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Why was this dataset chosen?\",\"default\":null},{\"name\":\"preProcessing\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)?\",\"default\":null}]}},\"doc\":\"Details on the dataset(s) used for the quantitative analyses in the MLModel\"}],\"Aspect\":{\"name\":\"mlModelEvaluationData\"}},{\"type\":\"record\",\"name\":\"TrainingData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Ideally, the MLModel card would contain as much information about the training data as the evaluation data. However, there might be cases where it is not feasible to provide this level of detailed information about the training data. For example, the data may be proprietary, or require a non-disclosure agreement. In these cases, we advocate for basic details about the distributions over groups in the data, as well as any other details that could inform stakeholders ","on the kinds of biases the model may have encoded.\",\"fields\":[{\"name\":\"trainingData\",\"type\":{\"type\":\"array\",\"items\":\"BaseData\"},\"doc\":\"Details on the dataset(s) used for training the MLModel\"}],\"Aspect\":{\"name\":\"mlModelTrainingData\"}},{\"type\":\"record\",\"name\":\"QuantitativeAnalyses\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Quantitative analyses should be disaggregated, that is, broken down by the chosen factors. Quantitative analyses should provide the results of evaluating the MLModel according to the chosen metrics, providing confidence interval values when possible.\",\"fields\":[{\"name\":\"unitaryResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to each factor\",\"default\":null},{\"name\":\"intersectionalResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelQuantitativeAnalyses\"}},{\"type\":\"record\",\"name\":\"EthicalConsiderations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section is intended to demonstrate the ethical considerations that went into MLModel development, surfacing ethical challenges and solutions to stakeholders.\",\"fields\":[{\"name\":\"data\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Does the MLModel use any sensitive data (e.g., protected classes)?\",\"default\":null},{\"name\":\"humanLife\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\" Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way?\",\"default\":null},{\"name\":\"mitigations\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risk mitigation strategies were used during MLModel development?\",\"default\":null},{\"name\":\"risksAndHarms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown.\",\"default\":null},{\"name\":\"useCases\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelEthicalConsiderations\"}},{\"type\":\"record\",\"name\":\"CaveatsAndRecommendations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"caveats\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"CaveatDetails\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"needsFurtherTesting\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Did the results suggest any further testing?\",\"default\":null},{\"name\":\"caveatDescription\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Caveat Description\\nFor ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders.\",\"default\":null},{\"name\":\"groupsNotRepresented\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Relevant groups that were not represented in the evaluation dataset?\",\"default\":null}]}],\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset?\",\"default\":null},{\"name\":\"recommendations\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Recommendations on where this MLModel should be used.\",\"default\":null},{\"name\":\"idealDatasetCharacteristics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Ideal characteristics of an evaluation dataset for this MLModel\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelCaveatsAndRecommendations\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"type\":\"record\",\"name\":\"SourceCode\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Source Code\",\"fields\":[{\"name\":\"sourceCode\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SourceCodeUrl\",\"doc\":\"Source Code Url Entity\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"SourceCodeUrlType\",\"symbols\":[\"ML_MODEL_SOURCE_CODE\",\"TRAINING_PIPELINE_SOURCE_CODE\",\"EVALUATION_PIPELINE_SOURCE_CODE\"]},\"doc\":\"Source Code Url Types\"},{\"name\":\"sourceCodeUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source Code Url\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}]}},\"doc\":\"Source Code along with types\"}],\"Aspect\":{\"name\":\"sourceCode\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"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\"}},{\"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\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the MLModel. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelKey\",\"name\":\"mlModel\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the MLModel. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 MLModelSnapshot() {} - - /** - * All-args constructor. - */ - public MLModelSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the MLModel. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the MLModel. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new MLModelSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.Builder(); - } - - /** Creates a new MLModelSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.Builder(other); - } - - /** Creates a new MLModelSnapshot RecordBuilder by copying an existing MLModelSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.Builder(other); - } - - /** - * RecordBuilder for MLModelSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing MLModelSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public MLModelSnapshot build() { - try { - MLModelSnapshot record = new MLModelSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/MLPrimaryKeySnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/MLPrimaryKeySnapshot.java deleted file mode 100644 index 9bc4095806576..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/MLPrimaryKeySnapshot.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class MLPrimaryKeySnapshot 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\":\"MLPrimaryKeySnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLPrimaryKeyKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLPrimaryKey\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the primary key\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the primary key\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlPrimaryKeyKey\"}},{\"type\":\"record\",\"name\":\"MLPrimaryKeyProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLPrimaryKey\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLPrimaryKey\",\"default\":null},{\"name\":\"dataType\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"MLFeatureDataType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"MLFeature Data Type\",\"symbols\":[\"USELESS\",\"NOMINAL\",\"ORDINAL\",\"BINARY\",\"COUNT\",\"TIME\",\"INTERVAL\",\"IMAGE\",\"VIDEO\",\"AUDIO\",\"TEXT\",\"MAP\",\"SEQUENCE\",\"SET\",\"CONTINUOUS\",\"BYTE\",\"UNKNOWN\"],\"symbolDocs\":{\"AUDIO\":\"Audio Data\",\"BINARY\":\"Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc\",\"BYTE\":\"Bytes data are binary-encoded values that can represent complex objects.\",\"CONTINUOUS\":\"Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.\",\"COUNT\":\"Count data is discrete whole number data - no negative numbers here.\\nCount data often has many small values, such as zero and one.\",\"IMAGE\":\"Image Data\",\"INTERVAL\":\"Interval data has equal spaces between the numbers and does not represent a temporal pattern.\\nExamples include percentages, temperatures, and income.\",\"MAP\":\"Mapping Data Type ex: dict, map\",\"NOMINAL\":\"Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.\",\"ORDINAL\":\"Ordinal data are discrete integers that can be ranked or sorted.\\nFor example, the distance between first and second may not be the same as the distance between second and third.\",\"SEQUENCE\":\"Sequence Data Type ex: list, tuple, range\",\"SET\":\"Set Data Type ex: set, frozenset\",\"TEXT\":\"Text Data\",\"TIME\":\"Time data is a cyclical, repeating continuous form of data.\\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.\",\"UNKNOWN\":\"Unknown data are data that we don't know the type for.\",\"USELESS\":\"Useless data is unique, discrete data with no potential relationship with the outcome variable.\\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.\",\"VIDEO\":\"Video Data\"}}],\"doc\":\"Data Type of the MLPrimaryKey\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLPrimaryKey\",\"default\":null},{\"name\":\"sources\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Source of the MLPrimaryKey\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlPrimaryKeyProperties\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"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\":nu","ll,\"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 last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the MLPrimaryKey. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlPrimaryKeyKey\",\"name\":\"mlPrimaryKey\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the MLPrimaryKey. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 MLPrimaryKeySnapshot() {} - - /** - * All-args constructor. - */ - public MLPrimaryKeySnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the MLPrimaryKey. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the MLPrimaryKey. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new MLPrimaryKeySnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.Builder(); - } - - /** Creates a new MLPrimaryKeySnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.Builder(other); - } - - /** Creates a new MLPrimaryKeySnapshot RecordBuilder by copying an existing MLPrimaryKeySnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.Builder(other); - } - - /** - * RecordBuilder for MLPrimaryKeySnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing MLPrimaryKeySnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public MLPrimaryKeySnapshot build() { - try { - MLPrimaryKeySnapshot record = new MLPrimaryKeySnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/SchemaFieldSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/SchemaFieldSnapshot.java deleted file mode 100644 index 64182bdcad8c5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/SchemaFieldSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific schema field entity. */ -@org.apache.avro.specific.AvroGenerated -public class SchemaFieldSnapshot 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\":\"SchemaFieldSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific schema field entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"SchemaFieldKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a SchemaField\",\"fields\":[{\"name\":\"parent\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Parent associated with the schema field\",\"Searchable\":{\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"fieldPath identifying the schema field\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}}],\"Aspect\":{\"name\":\"schemaFieldKey\"}}]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"schemaFieldKey\",\"name\":\"schemaField\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 SchemaFieldSnapshot() {} - - /** - * All-args constructor. - */ - public SchemaFieldSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new SchemaFieldSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.Builder(); - } - - /** Creates a new SchemaFieldSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.Builder(other); - } - - /** Creates a new SchemaFieldSnapshot RecordBuilder by copying an existing SchemaFieldSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.Builder(other); - } - - /** - * RecordBuilder for SchemaFieldSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing SchemaFieldSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public SchemaFieldSnapshot build() { - try { - SchemaFieldSnapshot record = new SchemaFieldSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/metadata/snapshot/TagSnapshot.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/TagSnapshot.java deleted file mode 100644 index 852f4af67c151..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/metadata/snapshot/TagSnapshot.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.metadata.snapshot; -@SuppressWarnings("all") -/** A metadata snapshot for a specific dataset entity. */ -@org.apache.avro.specific.AvroGenerated -public class TagSnapshot 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\":\"TagSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataset entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"TagKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The tag name, which serves as a unique id\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"tagKey\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"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 last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"TagProperties\",\"namespace\":\"com.linkedin.pegasus2avro.tag\",\"doc\":\"Properties associated with a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the tag\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the tag\",\"default\":null,\"Searchable\":{}},{\"name\":\"colorHex\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The color associated with the Tag in Hex. For example #FFFFFF.\",\"default\":null}],\"Aspect\":{\"name\":\"tagProperties\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}}]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"tagKey\",\"name\":\"tag\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** URN for the entity the metadata snapshot is associated with. */ - @Deprecated public java.lang.String urn; - /** The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - @Deprecated public java.util.List aspects; - - /** - * 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 TagSnapshot() {} - - /** - * All-args constructor. - */ - public TagSnapshot(java.lang.String urn, java.util.List aspects) { - this.urn = urn; - this.aspects = aspects; - } - - 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 urn; - case 1: return aspects; - 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: urn = (java.lang.String)value$; break; - case 1: aspects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. */ - public java.lang.String getUrn() { - return urn; - } - - /** - * Sets the value of the 'urn' field. - * URN for the entity the metadata snapshot is associated with. * @param value the value to set. - */ - public void setUrn(java.lang.String value) { - this.urn = value; - } - - /** - * Gets the value of the 'aspects' field. - * The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects. */ - public java.util.List getAspects() { - return aspects; - } - - /** - * Sets the value of the 'aspects' field. - * The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects. * @param value the value to set. - */ - public void setAspects(java.util.List value) { - this.aspects = value; - } - - /** Creates a new TagSnapshot RecordBuilder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.Builder newBuilder() { - return new com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.Builder(); - } - - /** Creates a new TagSnapshot RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.Builder other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.Builder(other); - } - - /** Creates a new TagSnapshot RecordBuilder by copying an existing TagSnapshot instance */ - public static com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.Builder newBuilder(com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot other) { - return new com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.Builder(other); - } - - /** - * RecordBuilder for TagSnapshot instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String urn; - private java.util.List aspects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.Builder other) { - super(other); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing TagSnapshot instance */ - private Builder(com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot other) { - super(com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.SCHEMA$); - if (isValidValue(fields()[0], other.urn)) { - this.urn = data().deepCopy(fields()[0].schema(), other.urn); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aspects)) { - this.aspects = data().deepCopy(fields()[1].schema(), other.aspects); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'urn' field */ - public java.lang.String getUrn() { - return urn; - } - - /** Sets the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.Builder setUrn(java.lang.String value) { - validate(fields()[0], value); - this.urn = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'urn' field has been set */ - public boolean hasUrn() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'urn' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.Builder clearUrn() { - urn = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aspects' field */ - public java.util.List getAspects() { - return aspects; - } - - /** Sets the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.Builder setAspects(java.util.List value) { - validate(fields()[1], value); - this.aspects = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aspects' field has been set */ - public boolean hasAspects() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aspects' field */ - public com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot.Builder clearAspects() { - aspects = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public TagSnapshot build() { - try { - TagSnapshot record = new TagSnapshot(); - record.urn = fieldSetFlags()[0] ? this.urn : (java.lang.String) defaultValue(fields()[0]); - record.aspects = fieldSetFlags()[1] ? this.aspects : (java.util.List) 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/ml/metadata/BaseData.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/BaseData.java deleted file mode 100644 index c94d5a6e08bc7..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/BaseData.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** BaseData record */ -@org.apache.avro.specific.AvroGenerated -public class BaseData 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\":\"BaseData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"BaseData record\",\"fields\":[{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"What dataset were used in the MLModel?\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"motivation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Why was this dataset chosen?\",\"default\":null},{\"name\":\"preProcessing\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)?\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** What dataset were used in the MLModel? */ - @Deprecated public java.lang.String dataset; - /** Why was this dataset chosen? */ - @Deprecated public java.lang.String motivation; - /** How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)? */ - @Deprecated public java.util.List preProcessing; - - /** - * 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 BaseData() {} - - /** - * All-args constructor. - */ - public BaseData(java.lang.String dataset, java.lang.String motivation, java.util.List preProcessing) { - this.dataset = dataset; - this.motivation = motivation; - this.preProcessing = preProcessing; - } - - 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 motivation; - case 2: return preProcessing; - 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: motivation = (java.lang.String)value$; break; - case 2: preProcessing = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'dataset' field. - * What dataset were used in the MLModel? */ - public java.lang.String getDataset() { - return dataset; - } - - /** - * Sets the value of the 'dataset' field. - * What dataset were used in the MLModel? * @param value the value to set. - */ - public void setDataset(java.lang.String value) { - this.dataset = value; - } - - /** - * Gets the value of the 'motivation' field. - * Why was this dataset chosen? */ - public java.lang.String getMotivation() { - return motivation; - } - - /** - * Sets the value of the 'motivation' field. - * Why was this dataset chosen? * @param value the value to set. - */ - public void setMotivation(java.lang.String value) { - this.motivation = value; - } - - /** - * Gets the value of the 'preProcessing' field. - * How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)? */ - public java.util.List getPreProcessing() { - return preProcessing; - } - - /** - * Sets the value of the 'preProcessing' field. - * How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)? * @param value the value to set. - */ - public void setPreProcessing(java.util.List value) { - this.preProcessing = value; - } - - /** Creates a new BaseData RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.BaseData.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.BaseData.Builder(); - } - - /** Creates a new BaseData RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.BaseData.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.BaseData.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.BaseData.Builder(other); - } - - /** Creates a new BaseData RecordBuilder by copying an existing BaseData instance */ - public static com.linkedin.pegasus2avro.ml.metadata.BaseData.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.BaseData other) { - return new com.linkedin.pegasus2avro.ml.metadata.BaseData.Builder(other); - } - - /** - * RecordBuilder for BaseData instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String dataset; - private java.lang.String motivation; - private java.util.List preProcessing; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.BaseData.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.BaseData.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.motivation)) { - this.motivation = data().deepCopy(fields()[1].schema(), other.motivation); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.preProcessing)) { - this.preProcessing = data().deepCopy(fields()[2].schema(), other.preProcessing); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing BaseData instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.BaseData other) { - super(com.linkedin.pegasus2avro.ml.metadata.BaseData.SCHEMA$); - if (isValidValue(fields()[0], other.dataset)) { - this.dataset = data().deepCopy(fields()[0].schema(), other.dataset); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.motivation)) { - this.motivation = data().deepCopy(fields()[1].schema(), other.motivation); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.preProcessing)) { - this.preProcessing = data().deepCopy(fields()[2].schema(), other.preProcessing); - fieldSetFlags()[2] = 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.ml.metadata.BaseData.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.ml.metadata.BaseData.Builder clearDataset() { - dataset = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'motivation' field */ - public java.lang.String getMotivation() { - return motivation; - } - - /** Sets the value of the 'motivation' field */ - public com.linkedin.pegasus2avro.ml.metadata.BaseData.Builder setMotivation(java.lang.String value) { - validate(fields()[1], value); - this.motivation = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'motivation' field has been set */ - public boolean hasMotivation() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'motivation' field */ - public com.linkedin.pegasus2avro.ml.metadata.BaseData.Builder clearMotivation() { - motivation = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'preProcessing' field */ - public java.util.List getPreProcessing() { - return preProcessing; - } - - /** Sets the value of the 'preProcessing' field */ - public com.linkedin.pegasus2avro.ml.metadata.BaseData.Builder setPreProcessing(java.util.List value) { - validate(fields()[2], value); - this.preProcessing = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'preProcessing' field has been set */ - public boolean hasPreProcessing() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'preProcessing' field */ - public com.linkedin.pegasus2avro.ml.metadata.BaseData.Builder clearPreProcessing() { - preProcessing = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public BaseData build() { - try { - BaseData record = new BaseData(); - record.dataset = fieldSetFlags()[0] ? this.dataset : (java.lang.String) defaultValue(fields()[0]); - record.motivation = fieldSetFlags()[1] ? this.motivation : (java.lang.String) defaultValue(fields()[1]); - record.preProcessing = fieldSetFlags()[2] ? this.preProcessing : (java.util.List) 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/ml/metadata/CaveatDetails.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/CaveatDetails.java deleted file mode 100644 index 5181d9d32ec45..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/CaveatDetails.java +++ /dev/null @@ -1,257 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use? */ -@org.apache.avro.specific.AvroGenerated -public class CaveatDetails 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\":\"CaveatDetails\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"needsFurtherTesting\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Did the results suggest any further testing?\",\"default\":null},{\"name\":\"caveatDescription\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Caveat Description\\nFor ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders.\",\"default\":null},{\"name\":\"groupsNotRepresented\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Relevant groups that were not represented in the evaluation dataset?\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Did the results suggest any further testing? */ - @Deprecated public java.lang.Boolean needsFurtherTesting; - /** Caveat Description -For ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders. */ - @Deprecated public java.lang.String caveatDescription; - /** Relevant groups that were not represented in the evaluation dataset? */ - @Deprecated public java.util.List groupsNotRepresented; - - /** - * 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 CaveatDetails() {} - - /** - * All-args constructor. - */ - public CaveatDetails(java.lang.Boolean needsFurtherTesting, java.lang.String caveatDescription, java.util.List groupsNotRepresented) { - this.needsFurtherTesting = needsFurtherTesting; - this.caveatDescription = caveatDescription; - this.groupsNotRepresented = groupsNotRepresented; - } - - 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 needsFurtherTesting; - case 1: return caveatDescription; - case 2: return groupsNotRepresented; - 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: needsFurtherTesting = (java.lang.Boolean)value$; break; - case 1: caveatDescription = (java.lang.String)value$; break; - case 2: groupsNotRepresented = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'needsFurtherTesting' field. - * Did the results suggest any further testing? */ - public java.lang.Boolean getNeedsFurtherTesting() { - return needsFurtherTesting; - } - - /** - * Sets the value of the 'needsFurtherTesting' field. - * Did the results suggest any further testing? * @param value the value to set. - */ - public void setNeedsFurtherTesting(java.lang.Boolean value) { - this.needsFurtherTesting = value; - } - - /** - * Gets the value of the 'caveatDescription' field. - * Caveat Description -For ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders. */ - public java.lang.String getCaveatDescription() { - return caveatDescription; - } - - /** - * Sets the value of the 'caveatDescription' field. - * Caveat Description -For ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders. * @param value the value to set. - */ - public void setCaveatDescription(java.lang.String value) { - this.caveatDescription = value; - } - - /** - * Gets the value of the 'groupsNotRepresented' field. - * Relevant groups that were not represented in the evaluation dataset? */ - public java.util.List getGroupsNotRepresented() { - return groupsNotRepresented; - } - - /** - * Sets the value of the 'groupsNotRepresented' field. - * Relevant groups that were not represented in the evaluation dataset? * @param value the value to set. - */ - public void setGroupsNotRepresented(java.util.List value) { - this.groupsNotRepresented = value; - } - - /** Creates a new CaveatDetails RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder(); - } - - /** Creates a new CaveatDetails RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder(other); - } - - /** Creates a new CaveatDetails RecordBuilder by copying an existing CaveatDetails instance */ - public static com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.CaveatDetails other) { - return new com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder(other); - } - - /** - * RecordBuilder for CaveatDetails instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Boolean needsFurtherTesting; - private java.lang.String caveatDescription; - private java.util.List groupsNotRepresented; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder other) { - super(other); - if (isValidValue(fields()[0], other.needsFurtherTesting)) { - this.needsFurtherTesting = data().deepCopy(fields()[0].schema(), other.needsFurtherTesting); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.caveatDescription)) { - this.caveatDescription = data().deepCopy(fields()[1].schema(), other.caveatDescription); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.groupsNotRepresented)) { - this.groupsNotRepresented = data().deepCopy(fields()[2].schema(), other.groupsNotRepresented); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing CaveatDetails instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.CaveatDetails other) { - super(com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.SCHEMA$); - if (isValidValue(fields()[0], other.needsFurtherTesting)) { - this.needsFurtherTesting = data().deepCopy(fields()[0].schema(), other.needsFurtherTesting); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.caveatDescription)) { - this.caveatDescription = data().deepCopy(fields()[1].schema(), other.caveatDescription); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.groupsNotRepresented)) { - this.groupsNotRepresented = data().deepCopy(fields()[2].schema(), other.groupsNotRepresented); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'needsFurtherTesting' field */ - public java.lang.Boolean getNeedsFurtherTesting() { - return needsFurtherTesting; - } - - /** Sets the value of the 'needsFurtherTesting' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder setNeedsFurtherTesting(java.lang.Boolean value) { - validate(fields()[0], value); - this.needsFurtherTesting = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'needsFurtherTesting' field has been set */ - public boolean hasNeedsFurtherTesting() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'needsFurtherTesting' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder clearNeedsFurtherTesting() { - needsFurtherTesting = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'caveatDescription' field */ - public java.lang.String getCaveatDescription() { - return caveatDescription; - } - - /** Sets the value of the 'caveatDescription' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder setCaveatDescription(java.lang.String value) { - validate(fields()[1], value); - this.caveatDescription = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'caveatDescription' field has been set */ - public boolean hasCaveatDescription() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'caveatDescription' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder clearCaveatDescription() { - caveatDescription = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'groupsNotRepresented' field */ - public java.util.List getGroupsNotRepresented() { - return groupsNotRepresented; - } - - /** Sets the value of the 'groupsNotRepresented' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder setGroupsNotRepresented(java.util.List value) { - validate(fields()[2], value); - this.groupsNotRepresented = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'groupsNotRepresented' field has been set */ - public boolean hasGroupsNotRepresented() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'groupsNotRepresented' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatDetails.Builder clearGroupsNotRepresented() { - groupsNotRepresented = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public CaveatDetails build() { - try { - CaveatDetails record = new CaveatDetails(); - record.needsFurtherTesting = fieldSetFlags()[0] ? this.needsFurtherTesting : (java.lang.Boolean) defaultValue(fields()[0]); - record.caveatDescription = fieldSetFlags()[1] ? this.caveatDescription : (java.lang.String) defaultValue(fields()[1]); - record.groupsNotRepresented = fieldSetFlags()[2] ? this.groupsNotRepresented : (java.util.List) 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/ml/metadata/CaveatsAndRecommendations.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/CaveatsAndRecommendations.java deleted file mode 100644 index 37bb5ff8802d7..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/CaveatsAndRecommendations.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use? */ -@org.apache.avro.specific.AvroGenerated -public class CaveatsAndRecommendations 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\":\"CaveatsAndRecommendations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"caveats\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"CaveatDetails\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"needsFurtherTesting\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Did the results suggest any further testing?\",\"default\":null},{\"name\":\"caveatDescription\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Caveat Description\\nFor ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders.\",\"default\":null},{\"name\":\"groupsNotRepresented\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Relevant groups that were not represented in the evaluation dataset?\",\"default\":null}]}],\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset?\",\"default\":null},{\"name\":\"recommendations\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Recommendations on where this MLModel should be used.\",\"default\":null},{\"name\":\"idealDatasetCharacteristics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Ideal characteristics of an evaluation dataset for this MLModel\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelCaveatsAndRecommendations\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? */ - @Deprecated public com.linkedin.pegasus2avro.ml.metadata.CaveatDetails caveats; - /** Recommendations on where this MLModel should be used. */ - @Deprecated public java.lang.String recommendations; - /** Ideal characteristics of an evaluation dataset for this MLModel */ - @Deprecated public java.util.List idealDatasetCharacteristics; - - /** - * 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 CaveatsAndRecommendations() {} - - /** - * All-args constructor. - */ - public CaveatsAndRecommendations(com.linkedin.pegasus2avro.ml.metadata.CaveatDetails caveats, java.lang.String recommendations, java.util.List idealDatasetCharacteristics) { - this.caveats = caveats; - this.recommendations = recommendations; - this.idealDatasetCharacteristics = idealDatasetCharacteristics; - } - - 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 caveats; - case 1: return recommendations; - case 2: return idealDatasetCharacteristics; - 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: caveats = (com.linkedin.pegasus2avro.ml.metadata.CaveatDetails)value$; break; - case 1: recommendations = (java.lang.String)value$; break; - case 2: idealDatasetCharacteristics = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'caveats' field. - * This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatDetails getCaveats() { - return caveats; - } - - /** - * Sets the value of the 'caveats' field. - * This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? * @param value the value to set. - */ - public void setCaveats(com.linkedin.pegasus2avro.ml.metadata.CaveatDetails value) { - this.caveats = value; - } - - /** - * Gets the value of the 'recommendations' field. - * Recommendations on where this MLModel should be used. */ - public java.lang.String getRecommendations() { - return recommendations; - } - - /** - * Sets the value of the 'recommendations' field. - * Recommendations on where this MLModel should be used. * @param value the value to set. - */ - public void setRecommendations(java.lang.String value) { - this.recommendations = value; - } - - /** - * Gets the value of the 'idealDatasetCharacteristics' field. - * Ideal characteristics of an evaluation dataset for this MLModel */ - public java.util.List getIdealDatasetCharacteristics() { - return idealDatasetCharacteristics; - } - - /** - * Sets the value of the 'idealDatasetCharacteristics' field. - * Ideal characteristics of an evaluation dataset for this MLModel * @param value the value to set. - */ - public void setIdealDatasetCharacteristics(java.util.List value) { - this.idealDatasetCharacteristics = value; - } - - /** Creates a new CaveatsAndRecommendations RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder(); - } - - /** Creates a new CaveatsAndRecommendations RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder(other); - } - - /** Creates a new CaveatsAndRecommendations RecordBuilder by copying an existing CaveatsAndRecommendations instance */ - public static com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations other) { - return new com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder(other); - } - - /** - * RecordBuilder for CaveatsAndRecommendations instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.ml.metadata.CaveatDetails caveats; - private java.lang.String recommendations; - private java.util.List idealDatasetCharacteristics; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder other) { - super(other); - if (isValidValue(fields()[0], other.caveats)) { - this.caveats = data().deepCopy(fields()[0].schema(), other.caveats); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.recommendations)) { - this.recommendations = data().deepCopy(fields()[1].schema(), other.recommendations); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.idealDatasetCharacteristics)) { - this.idealDatasetCharacteristics = data().deepCopy(fields()[2].schema(), other.idealDatasetCharacteristics); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing CaveatsAndRecommendations instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations other) { - super(com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.SCHEMA$); - if (isValidValue(fields()[0], other.caveats)) { - this.caveats = data().deepCopy(fields()[0].schema(), other.caveats); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.recommendations)) { - this.recommendations = data().deepCopy(fields()[1].schema(), other.recommendations); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.idealDatasetCharacteristics)) { - this.idealDatasetCharacteristics = data().deepCopy(fields()[2].schema(), other.idealDatasetCharacteristics); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'caveats' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatDetails getCaveats() { - return caveats; - } - - /** Sets the value of the 'caveats' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder setCaveats(com.linkedin.pegasus2avro.ml.metadata.CaveatDetails value) { - validate(fields()[0], value); - this.caveats = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'caveats' field has been set */ - public boolean hasCaveats() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'caveats' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder clearCaveats() { - caveats = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'recommendations' field */ - public java.lang.String getRecommendations() { - return recommendations; - } - - /** Sets the value of the 'recommendations' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder setRecommendations(java.lang.String value) { - validate(fields()[1], value); - this.recommendations = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'recommendations' field has been set */ - public boolean hasRecommendations() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'recommendations' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder clearRecommendations() { - recommendations = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'idealDatasetCharacteristics' field */ - public java.util.List getIdealDatasetCharacteristics() { - return idealDatasetCharacteristics; - } - - /** Sets the value of the 'idealDatasetCharacteristics' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder setIdealDatasetCharacteristics(java.util.List value) { - validate(fields()[2], value); - this.idealDatasetCharacteristics = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'idealDatasetCharacteristics' field has been set */ - public boolean hasIdealDatasetCharacteristics() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'idealDatasetCharacteristics' field */ - public com.linkedin.pegasus2avro.ml.metadata.CaveatsAndRecommendations.Builder clearIdealDatasetCharacteristics() { - idealDatasetCharacteristics = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public CaveatsAndRecommendations build() { - try { - CaveatsAndRecommendations record = new CaveatsAndRecommendations(); - record.caveats = fieldSetFlags()[0] ? this.caveats : (com.linkedin.pegasus2avro.ml.metadata.CaveatDetails) defaultValue(fields()[0]); - record.recommendations = fieldSetFlags()[1] ? this.recommendations : (java.lang.String) defaultValue(fields()[1]); - record.idealDatasetCharacteristics = fieldSetFlags()[2] ? this.idealDatasetCharacteristics : (java.util.List) 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/ml/metadata/DeploymentStatus.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/DeploymentStatus.java deleted file mode 100644 index 13f585b781d82..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/DeploymentStatus.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Model endpoint statuses */ -@org.apache.avro.specific.AvroGenerated -public enum DeploymentStatus { - OUT_OF_SERVICE, CREATING, UPDATING, ROLLING_BACK, IN_SERVICE, DELETING, FAILED, UNKNOWN ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"DeploymentStatus\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Model endpoint statuses\",\"symbols\":[\"OUT_OF_SERVICE\",\"CREATING\",\"UPDATING\",\"ROLLING_BACK\",\"IN_SERVICE\",\"DELETING\",\"FAILED\",\"UNKNOWN\"],\"symbolDocs\":{\"CREATING\":\"Deployments being created.\",\"DELETING\":\"Deployments being deleted.\",\"FAILED\":\"Deployments with an error state.\",\"IN_SERVICE\":\"Deployments that are active.\",\"OUT_OF_SERVICE\":\"Deployments out of service.\",\"ROLLING_BACK\":\"Deployments being reverted to a previous version.\",\"UNKNOWN\":\"Deployments with unknown/unmappable state.\",\"UPDATING\":\"Deployments being updated.\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EditableMLFeatureProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EditableMLFeatureProperties.java deleted file mode 100644 index 923a9e2e30e94..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EditableMLFeatureProperties.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with a MLFeature editable from the UI */ -@org.apache.avro.specific.AvroGenerated -public class EditableMLFeatureProperties 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\":\"EditableMLFeatureProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeature editable from the UI\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeature\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableMlFeatureProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Documentation of the MLFeature */ - @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 EditableMLFeatureProperties() {} - - /** - * All-args constructor. - */ - public EditableMLFeatureProperties(java.lang.String description) { - 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 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: description = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'description' field. - * Documentation of the MLFeature */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the MLFeature * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** Creates a new EditableMLFeatureProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties.Builder(); - } - - /** Creates a new EditableMLFeatureProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties.Builder(other); - } - - /** Creates a new EditableMLFeatureProperties RecordBuilder by copying an existing EditableMLFeatureProperties instance */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties other) { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties.Builder(other); - } - - /** - * RecordBuilder for EditableMLFeatureProperties instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String description; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties.Builder other) { - super(other); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing EditableMLFeatureProperties instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties other) { - super(com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties.SCHEMA$); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - } - - /** 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.ml.metadata.EditableMLFeatureProperties.Builder setDescription(java.lang.String value) { - validate(fields()[0], value); - this.description = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public EditableMLFeatureProperties build() { - try { - EditableMLFeatureProperties record = new EditableMLFeatureProperties(); - record.description = fieldSetFlags()[0] ? this.description : (java.lang.String) 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/ml/metadata/EditableMLFeatureTableProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EditableMLFeatureTableProperties.java deleted file mode 100644 index b319af0ea3581..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EditableMLFeatureTableProperties.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with a MLFeatureTable editable from the ui */ -@org.apache.avro.specific.AvroGenerated -public class EditableMLFeatureTableProperties 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\":\"EditableMLFeatureTableProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeatureTable editable from the ui\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeatureTable\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableMlFeatureTableProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Documentation of the MLFeatureTable */ - @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 EditableMLFeatureTableProperties() {} - - /** - * All-args constructor. - */ - public EditableMLFeatureTableProperties(java.lang.String description) { - 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 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: description = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'description' field. - * Documentation of the MLFeatureTable */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the MLFeatureTable * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** Creates a new EditableMLFeatureTableProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties.Builder(); - } - - /** Creates a new EditableMLFeatureTableProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties.Builder(other); - } - - /** Creates a new EditableMLFeatureTableProperties RecordBuilder by copying an existing EditableMLFeatureTableProperties instance */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties other) { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties.Builder(other); - } - - /** - * RecordBuilder for EditableMLFeatureTableProperties instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String description; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties.Builder other) { - super(other); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing EditableMLFeatureTableProperties instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties other) { - super(com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties.SCHEMA$); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - } - - /** 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.ml.metadata.EditableMLFeatureTableProperties.Builder setDescription(java.lang.String value) { - validate(fields()[0], value); - this.description = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.EditableMLFeatureTableProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public EditableMLFeatureTableProperties build() { - try { - EditableMLFeatureTableProperties record = new EditableMLFeatureTableProperties(); - record.description = fieldSetFlags()[0] ? this.description : (java.lang.String) 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/ml/metadata/EditableMLModelGroupProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EditableMLModelGroupProperties.java deleted file mode 100644 index 5060cd28f3e18..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EditableMLModelGroupProperties.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with an ML Model Group editable from the UI */ -@org.apache.avro.specific.AvroGenerated -public class EditableMLModelGroupProperties 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\":\"EditableMLModelGroupProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Group editable from the UI\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the ml model group\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableMlModelGroupProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Documentation of the ml model group */ - @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 EditableMLModelGroupProperties() {} - - /** - * All-args constructor. - */ - public EditableMLModelGroupProperties(java.lang.String description) { - 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 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: description = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'description' field. - * Documentation of the ml model group */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the ml model group * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** Creates a new EditableMLModelGroupProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties.Builder(); - } - - /** Creates a new EditableMLModelGroupProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties.Builder(other); - } - - /** Creates a new EditableMLModelGroupProperties RecordBuilder by copying an existing EditableMLModelGroupProperties instance */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties other) { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties.Builder(other); - } - - /** - * RecordBuilder for EditableMLModelGroupProperties instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String description; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties.Builder other) { - super(other); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing EditableMLModelGroupProperties instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties other) { - super(com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties.SCHEMA$); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - } - - /** 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.ml.metadata.EditableMLModelGroupProperties.Builder setDescription(java.lang.String value) { - validate(fields()[0], value); - this.description = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.EditableMLModelGroupProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public EditableMLModelGroupProperties build() { - try { - EditableMLModelGroupProperties record = new EditableMLModelGroupProperties(); - record.description = fieldSetFlags()[0] ? this.description : (java.lang.String) 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/ml/metadata/EditableMLModelProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EditableMLModelProperties.java deleted file mode 100644 index 1066f0930cd34..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EditableMLModelProperties.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with a ML Model editable from the UI */ -@org.apache.avro.specific.AvroGenerated -public class EditableMLModelProperties 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\":\"EditableMLModelProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a ML Model editable from the UI\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the ml model\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableMlModelProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Documentation of the ml model */ - @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 EditableMLModelProperties() {} - - /** - * All-args constructor. - */ - public EditableMLModelProperties(java.lang.String description) { - 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 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: description = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'description' field. - * Documentation of the ml model */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the ml model * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** Creates a new EditableMLModelProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties.Builder(); - } - - /** Creates a new EditableMLModelProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties.Builder(other); - } - - /** Creates a new EditableMLModelProperties RecordBuilder by copying an existing EditableMLModelProperties instance */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties other) { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties.Builder(other); - } - - /** - * RecordBuilder for EditableMLModelProperties instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String description; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties.Builder other) { - super(other); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing EditableMLModelProperties instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties other) { - super(com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties.SCHEMA$); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - } - - /** 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.ml.metadata.EditableMLModelProperties.Builder setDescription(java.lang.String value) { - validate(fields()[0], value); - this.description = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.EditableMLModelProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public EditableMLModelProperties build() { - try { - EditableMLModelProperties record = new EditableMLModelProperties(); - record.description = fieldSetFlags()[0] ? this.description : (java.lang.String) 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/ml/metadata/EditableMLPrimaryKeyProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EditableMLPrimaryKeyProperties.java deleted file mode 100644 index 11d783bc28839..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EditableMLPrimaryKeyProperties.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with a MLPrimaryKey editable from the UI */ -@org.apache.avro.specific.AvroGenerated -public class EditableMLPrimaryKeyProperties 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\":\"EditableMLPrimaryKeyProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLPrimaryKey editable from the UI\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLPrimaryKey\",\"default\":null}],\"Aspect\":{\"name\":\"editableMlPrimaryKeyProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Documentation of the MLPrimaryKey */ - @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 EditableMLPrimaryKeyProperties() {} - - /** - * All-args constructor. - */ - public EditableMLPrimaryKeyProperties(java.lang.String description) { - 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 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: description = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'description' field. - * Documentation of the MLPrimaryKey */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the MLPrimaryKey * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** Creates a new EditableMLPrimaryKeyProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties.Builder(); - } - - /** Creates a new EditableMLPrimaryKeyProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties.Builder(other); - } - - /** Creates a new EditableMLPrimaryKeyProperties RecordBuilder by copying an existing EditableMLPrimaryKeyProperties instance */ - public static com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties other) { - return new com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties.Builder(other); - } - - /** - * RecordBuilder for EditableMLPrimaryKeyProperties instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String description; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties.Builder other) { - super(other); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing EditableMLPrimaryKeyProperties instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties other) { - super(com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties.SCHEMA$); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - } - - /** 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.ml.metadata.EditableMLPrimaryKeyProperties.Builder setDescription(java.lang.String value) { - validate(fields()[0], value); - this.description = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.EditableMLPrimaryKeyProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public EditableMLPrimaryKeyProperties build() { - try { - EditableMLPrimaryKeyProperties record = new EditableMLPrimaryKeyProperties(); - record.description = fieldSetFlags()[0] ? this.description : (java.lang.String) 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/ml/metadata/EthicalConsiderations.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EthicalConsiderations.java deleted file mode 100644 index 4dc039c4c12d4..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EthicalConsiderations.java +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** This section is intended to demonstrate the ethical considerations that went into MLModel development, surfacing ethical challenges and solutions to stakeholders. */ -@org.apache.avro.specific.AvroGenerated -public class EthicalConsiderations 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\":\"EthicalConsiderations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section is intended to demonstrate the ethical considerations that went into MLModel development, surfacing ethical challenges and solutions to stakeholders.\",\"fields\":[{\"name\":\"data\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Does the MLModel use any sensitive data (e.g., protected classes)?\",\"default\":null},{\"name\":\"humanLife\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\" Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way?\",\"default\":null},{\"name\":\"mitigations\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risk mitigation strategies were used during MLModel development?\",\"default\":null},{\"name\":\"risksAndHarms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown.\",\"default\":null},{\"name\":\"useCases\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelEthicalConsiderations\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Does the MLModel use any sensitive data (e.g., protected classes)? */ - @Deprecated public java.util.List data; - /** Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way? */ - @Deprecated public java.util.List humanLife; - /** What risk mitigation strategies were used during MLModel development? */ - @Deprecated public java.util.List mitigations; - /** What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown. */ - @Deprecated public java.util.List risksAndHarms; - /** Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section */ - @Deprecated public java.util.List useCases; - - /** - * 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 EthicalConsiderations() {} - - /** - * All-args constructor. - */ - public EthicalConsiderations(java.util.List data, java.util.List humanLife, java.util.List mitigations, java.util.List risksAndHarms, java.util.List useCases) { - this.data = data; - this.humanLife = humanLife; - this.mitigations = mitigations; - this.risksAndHarms = risksAndHarms; - this.useCases = useCases; - } - - 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 data; - case 1: return humanLife; - case 2: return mitigations; - case 3: return risksAndHarms; - case 4: return useCases; - 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: data = (java.util.List)value$; break; - case 1: humanLife = (java.util.List)value$; break; - case 2: mitigations = (java.util.List)value$; break; - case 3: risksAndHarms = (java.util.List)value$; break; - case 4: useCases = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'data' field. - * Does the MLModel use any sensitive data (e.g., protected classes)? */ - public java.util.List getData() { - return data; - } - - /** - * Sets the value of the 'data' field. - * Does the MLModel use any sensitive data (e.g., protected classes)? * @param value the value to set. - */ - public void setData(java.util.List value) { - this.data = value; - } - - /** - * Gets the value of the 'humanLife' field. - * Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way? */ - public java.util.List getHumanLife() { - return humanLife; - } - - /** - * Sets the value of the 'humanLife' field. - * Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way? * @param value the value to set. - */ - public void setHumanLife(java.util.List value) { - this.humanLife = value; - } - - /** - * Gets the value of the 'mitigations' field. - * What risk mitigation strategies were used during MLModel development? */ - public java.util.List getMitigations() { - return mitigations; - } - - /** - * Sets the value of the 'mitigations' field. - * What risk mitigation strategies were used during MLModel development? * @param value the value to set. - */ - public void setMitigations(java.util.List value) { - this.mitigations = value; - } - - /** - * Gets the value of the 'risksAndHarms' field. - * What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown. */ - public java.util.List getRisksAndHarms() { - return risksAndHarms; - } - - /** - * Sets the value of the 'risksAndHarms' field. - * What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown. * @param value the value to set. - */ - public void setRisksAndHarms(java.util.List value) { - this.risksAndHarms = value; - } - - /** - * Gets the value of the 'useCases' field. - * Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section */ - public java.util.List getUseCases() { - return useCases; - } - - /** - * Sets the value of the 'useCases' field. - * Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section * @param value the value to set. - */ - public void setUseCases(java.util.List value) { - this.useCases = value; - } - - /** Creates a new EthicalConsiderations RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder(); - } - - /** Creates a new EthicalConsiderations RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder(other); - } - - /** Creates a new EthicalConsiderations RecordBuilder by copying an existing EthicalConsiderations instance */ - public static com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations other) { - return new com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder(other); - } - - /** - * RecordBuilder for EthicalConsiderations instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List data; - private java.util.List humanLife; - private java.util.List mitigations; - private java.util.List risksAndHarms; - private java.util.List useCases; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder other) { - super(other); - if (isValidValue(fields()[0], other.data)) { - this.data = data().deepCopy(fields()[0].schema(), other.data); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.humanLife)) { - this.humanLife = data().deepCopy(fields()[1].schema(), other.humanLife); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.mitigations)) { - this.mitigations = data().deepCopy(fields()[2].schema(), other.mitigations); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.risksAndHarms)) { - this.risksAndHarms = data().deepCopy(fields()[3].schema(), other.risksAndHarms); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.useCases)) { - this.useCases = data().deepCopy(fields()[4].schema(), other.useCases); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing EthicalConsiderations instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations other) { - super(com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.SCHEMA$); - if (isValidValue(fields()[0], other.data)) { - this.data = data().deepCopy(fields()[0].schema(), other.data); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.humanLife)) { - this.humanLife = data().deepCopy(fields()[1].schema(), other.humanLife); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.mitigations)) { - this.mitigations = data().deepCopy(fields()[2].schema(), other.mitigations); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.risksAndHarms)) { - this.risksAndHarms = data().deepCopy(fields()[3].schema(), other.risksAndHarms); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.useCases)) { - this.useCases = data().deepCopy(fields()[4].schema(), other.useCases); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'data' field */ - public java.util.List getData() { - return data; - } - - /** Sets the value of the 'data' field */ - public com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder setData(java.util.List value) { - validate(fields()[0], value); - this.data = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'data' field has been set */ - public boolean hasData() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'data' field */ - public com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder clearData() { - data = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'humanLife' field */ - public java.util.List getHumanLife() { - return humanLife; - } - - /** Sets the value of the 'humanLife' field */ - public com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder setHumanLife(java.util.List value) { - validate(fields()[1], value); - this.humanLife = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'humanLife' field has been set */ - public boolean hasHumanLife() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'humanLife' field */ - public com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder clearHumanLife() { - humanLife = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'mitigations' field */ - public java.util.List getMitigations() { - return mitigations; - } - - /** Sets the value of the 'mitigations' field */ - public com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder setMitigations(java.util.List value) { - validate(fields()[2], value); - this.mitigations = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'mitigations' field has been set */ - public boolean hasMitigations() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'mitigations' field */ - public com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder clearMitigations() { - mitigations = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'risksAndHarms' field */ - public java.util.List getRisksAndHarms() { - return risksAndHarms; - } - - /** Sets the value of the 'risksAndHarms' field */ - public com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder setRisksAndHarms(java.util.List value) { - validate(fields()[3], value); - this.risksAndHarms = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'risksAndHarms' field has been set */ - public boolean hasRisksAndHarms() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'risksAndHarms' field */ - public com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder clearRisksAndHarms() { - risksAndHarms = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'useCases' field */ - public java.util.List getUseCases() { - return useCases; - } - - /** Sets the value of the 'useCases' field */ - public com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder setUseCases(java.util.List value) { - validate(fields()[4], value); - this.useCases = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'useCases' field has been set */ - public boolean hasUseCases() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'useCases' field */ - public com.linkedin.pegasus2avro.ml.metadata.EthicalConsiderations.Builder clearUseCases() { - useCases = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public EthicalConsiderations build() { - try { - EthicalConsiderations record = new EthicalConsiderations(); - record.data = fieldSetFlags()[0] ? this.data : (java.util.List) defaultValue(fields()[0]); - record.humanLife = fieldSetFlags()[1] ? this.humanLife : (java.util.List) defaultValue(fields()[1]); - record.mitigations = fieldSetFlags()[2] ? this.mitigations : (java.util.List) defaultValue(fields()[2]); - record.risksAndHarms = fieldSetFlags()[3] ? this.risksAndHarms : (java.util.List) defaultValue(fields()[3]); - record.useCases = fieldSetFlags()[4] ? this.useCases : (java.util.List) 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/ml/metadata/EvaluationData.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EvaluationData.java deleted file mode 100644 index 67a9b5a3ac649..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/EvaluationData.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** All referenced datasets would ideally point to any set of documents that provide visibility into the source and composition of the dataset. */ -@org.apache.avro.specific.AvroGenerated -public class EvaluationData 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\":\"EvaluationData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"All referenced datasets would ideally point to any set of documents that provide visibility into the source and composition of the dataset.\",\"fields\":[{\"name\":\"evaluationData\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BaseData\",\"doc\":\"BaseData record\",\"fields\":[{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"What dataset were used in the MLModel?\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"motivation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Why was this dataset chosen?\",\"default\":null},{\"name\":\"preProcessing\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)?\",\"default\":null}]}},\"doc\":\"Details on the dataset(s) used for the quantitative analyses in the MLModel\"}],\"Aspect\":{\"name\":\"mlModelEvaluationData\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Details on the dataset(s) used for the quantitative analyses in the MLModel */ - @Deprecated public java.util.List evaluationData; - - /** - * 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 EvaluationData() {} - - /** - * All-args constructor. - */ - public EvaluationData(java.util.List evaluationData) { - this.evaluationData = evaluationData; - } - - 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 evaluationData; - 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: evaluationData = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'evaluationData' field. - * Details on the dataset(s) used for the quantitative analyses in the MLModel */ - public java.util.List getEvaluationData() { - return evaluationData; - } - - /** - * Sets the value of the 'evaluationData' field. - * Details on the dataset(s) used for the quantitative analyses in the MLModel * @param value the value to set. - */ - public void setEvaluationData(java.util.List value) { - this.evaluationData = value; - } - - /** Creates a new EvaluationData RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.EvaluationData.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.EvaluationData.Builder(); - } - - /** Creates a new EvaluationData RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.EvaluationData.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EvaluationData.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.EvaluationData.Builder(other); - } - - /** Creates a new EvaluationData RecordBuilder by copying an existing EvaluationData instance */ - public static com.linkedin.pegasus2avro.ml.metadata.EvaluationData.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.EvaluationData other) { - return new com.linkedin.pegasus2avro.ml.metadata.EvaluationData.Builder(other); - } - - /** - * RecordBuilder for EvaluationData instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List evaluationData; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.EvaluationData.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EvaluationData.Builder other) { - super(other); - if (isValidValue(fields()[0], other.evaluationData)) { - this.evaluationData = data().deepCopy(fields()[0].schema(), other.evaluationData); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing EvaluationData instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.EvaluationData other) { - super(com.linkedin.pegasus2avro.ml.metadata.EvaluationData.SCHEMA$); - if (isValidValue(fields()[0], other.evaluationData)) { - this.evaluationData = data().deepCopy(fields()[0].schema(), other.evaluationData); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'evaluationData' field */ - public java.util.List getEvaluationData() { - return evaluationData; - } - - /** Sets the value of the 'evaluationData' field */ - public com.linkedin.pegasus2avro.ml.metadata.EvaluationData.Builder setEvaluationData(java.util.List value) { - validate(fields()[0], value); - this.evaluationData = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'evaluationData' field has been set */ - public boolean hasEvaluationData() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'evaluationData' field */ - public com.linkedin.pegasus2avro.ml.metadata.EvaluationData.Builder clearEvaluationData() { - evaluationData = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public EvaluationData build() { - try { - EvaluationData record = new EvaluationData(); - record.evaluationData = fieldSetFlags()[0] ? this.evaluationData : (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/ml/metadata/IntendedUse.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/IntendedUse.java deleted file mode 100644 index 7feb1dac25fcb..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/IntendedUse.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Intended Use for the ML Model */ -@org.apache.avro.specific.AvroGenerated -public class IntendedUse 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\":\"IntendedUse\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Intended Use for the ML Model\",\"fields\":[{\"name\":\"primaryUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Primary Use cases for the MLModel.\",\"default\":null},{\"name\":\"primaryUsers\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"enum\",\"name\":\"IntendedUserType\",\"symbols\":[\"ENTERPRISE\",\"HOBBY\",\"ENTERTAINMENT\"]}}],\"doc\":\"Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions?\",\"default\":null},{\"name\":\"outOfScopeUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to.\",\"default\":null}],\"Aspect\":{\"name\":\"intendedUse\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Primary Use cases for the MLModel. */ - @Deprecated public java.util.List primaryUses; - /** Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions? */ - @Deprecated public java.util.List primaryUsers; - /** Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to. */ - @Deprecated public java.util.List outOfScopeUses; - - /** - * 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 IntendedUse() {} - - /** - * All-args constructor. - */ - public IntendedUse(java.util.List primaryUses, java.util.List primaryUsers, java.util.List outOfScopeUses) { - this.primaryUses = primaryUses; - this.primaryUsers = primaryUsers; - this.outOfScopeUses = outOfScopeUses; - } - - 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 primaryUses; - case 1: return primaryUsers; - case 2: return outOfScopeUses; - 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: primaryUses = (java.util.List)value$; break; - case 1: primaryUsers = (java.util.List)value$; break; - case 2: outOfScopeUses = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'primaryUses' field. - * Primary Use cases for the MLModel. */ - public java.util.List getPrimaryUses() { - return primaryUses; - } - - /** - * Sets the value of the 'primaryUses' field. - * Primary Use cases for the MLModel. * @param value the value to set. - */ - public void setPrimaryUses(java.util.List value) { - this.primaryUses = value; - } - - /** - * Gets the value of the 'primaryUsers' field. - * Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions? */ - public java.util.List getPrimaryUsers() { - return primaryUsers; - } - - /** - * Sets the value of the 'primaryUsers' field. - * Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions? * @param value the value to set. - */ - public void setPrimaryUsers(java.util.List value) { - this.primaryUsers = value; - } - - /** - * Gets the value of the 'outOfScopeUses' field. - * Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to. */ - public java.util.List getOutOfScopeUses() { - return outOfScopeUses; - } - - /** - * Sets the value of the 'outOfScopeUses' field. - * Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to. * @param value the value to set. - */ - public void setOutOfScopeUses(java.util.List value) { - this.outOfScopeUses = value; - } - - /** Creates a new IntendedUse RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder(); - } - - /** Creates a new IntendedUse RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder(other); - } - - /** Creates a new IntendedUse RecordBuilder by copying an existing IntendedUse instance */ - public static com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.IntendedUse other) { - return new com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder(other); - } - - /** - * RecordBuilder for IntendedUse instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List primaryUses; - private java.util.List primaryUsers; - private java.util.List outOfScopeUses; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.IntendedUse.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder other) { - super(other); - if (isValidValue(fields()[0], other.primaryUses)) { - this.primaryUses = data().deepCopy(fields()[0].schema(), other.primaryUses); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.primaryUsers)) { - this.primaryUsers = data().deepCopy(fields()[1].schema(), other.primaryUsers); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.outOfScopeUses)) { - this.outOfScopeUses = data().deepCopy(fields()[2].schema(), other.outOfScopeUses); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing IntendedUse instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.IntendedUse other) { - super(com.linkedin.pegasus2avro.ml.metadata.IntendedUse.SCHEMA$); - if (isValidValue(fields()[0], other.primaryUses)) { - this.primaryUses = data().deepCopy(fields()[0].schema(), other.primaryUses); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.primaryUsers)) { - this.primaryUsers = data().deepCopy(fields()[1].schema(), other.primaryUsers); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.outOfScopeUses)) { - this.outOfScopeUses = data().deepCopy(fields()[2].schema(), other.outOfScopeUses); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'primaryUses' field */ - public java.util.List getPrimaryUses() { - return primaryUses; - } - - /** Sets the value of the 'primaryUses' field */ - public com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder setPrimaryUses(java.util.List value) { - validate(fields()[0], value); - this.primaryUses = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'primaryUses' field has been set */ - public boolean hasPrimaryUses() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'primaryUses' field */ - public com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder clearPrimaryUses() { - primaryUses = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'primaryUsers' field */ - public java.util.List getPrimaryUsers() { - return primaryUsers; - } - - /** Sets the value of the 'primaryUsers' field */ - public com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder setPrimaryUsers(java.util.List value) { - validate(fields()[1], value); - this.primaryUsers = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'primaryUsers' field has been set */ - public boolean hasPrimaryUsers() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'primaryUsers' field */ - public com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder clearPrimaryUsers() { - primaryUsers = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'outOfScopeUses' field */ - public java.util.List getOutOfScopeUses() { - return outOfScopeUses; - } - - /** Sets the value of the 'outOfScopeUses' field */ - public com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder setOutOfScopeUses(java.util.List value) { - validate(fields()[2], value); - this.outOfScopeUses = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'outOfScopeUses' field has been set */ - public boolean hasOutOfScopeUses() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'outOfScopeUses' field */ - public com.linkedin.pegasus2avro.ml.metadata.IntendedUse.Builder clearOutOfScopeUses() { - outOfScopeUses = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public IntendedUse build() { - try { - IntendedUse record = new IntendedUse(); - record.primaryUses = fieldSetFlags()[0] ? this.primaryUses : (java.util.List) defaultValue(fields()[0]); - record.primaryUsers = fieldSetFlags()[1] ? this.primaryUsers : (java.util.List) defaultValue(fields()[1]); - record.outOfScopeUses = fieldSetFlags()[2] ? this.outOfScopeUses : (java.util.List) 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/ml/metadata/IntendedUserType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/IntendedUserType.java deleted file mode 100644 index 888a9b71504d9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/IntendedUserType.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum IntendedUserType { - ENTERPRISE, HOBBY, ENTERTAINMENT ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"IntendedUserType\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"symbols\":[\"ENTERPRISE\",\"HOBBY\",\"ENTERTAINMENT\"]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLFeatureProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLFeatureProperties.java deleted file mode 100644 index cdab7fa6f909b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLFeatureProperties.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with a MLFeature */ -@org.apache.avro.specific.AvroGenerated -public class MLFeatureProperties 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\":\"MLFeatureProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeature\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeature\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"dataType\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"MLFeatureDataType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"MLFeature Data Type\",\"symbols\":[\"USELESS\",\"NOMINAL\",\"ORDINAL\",\"BINARY\",\"COUNT\",\"TIME\",\"INTERVAL\",\"IMAGE\",\"VIDEO\",\"AUDIO\",\"TEXT\",\"MAP\",\"SEQUENCE\",\"SET\",\"CONTINUOUS\",\"BYTE\",\"UNKNOWN\"],\"symbolDocs\":{\"AUDIO\":\"Audio Data\",\"BINARY\":\"Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc\",\"BYTE\":\"Bytes data are binary-encoded values that can represent complex objects.\",\"CONTINUOUS\":\"Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.\",\"COUNT\":\"Count data is discrete whole number data - no negative numbers here.\\nCount data often has many small values, such as zero and one.\",\"IMAGE\":\"Image Data\",\"INTERVAL\":\"Interval data has equal spaces between the numbers and does not represent a temporal pattern.\\nExamples include percentages, temperatures, and income.\",\"MAP\":\"Mapping Data Type ex: dict, map\",\"NOMINAL\":\"Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.\",\"ORDINAL\":\"Ordinal data are discrete integers that can be ranked or sorted.\\nFor example, the distance between first and second may not be the same as the distance between second and third.\",\"SEQUENCE\":\"Sequence Data Type ex: list, tuple, range\",\"SET\":\"Set Data Type ex: set, frozenset\",\"TEXT\":\"Text Data\",\"TIME\":\"Time data is a cyclical, repeating continuous form of data.\\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.\",\"UNKNOWN\":\"Unknown data are data that we don't know the type for.\",\"USELESS\":\"Useless data is unique, discrete data with no potential relationship with the outcome variable.\\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.\",\"VIDEO\":\"Video Data\"}}],\"doc\":\"Data Type of the MLFeature\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLFeature\",\"default\":null},{\"name\":\"sources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Source of the MLFeature\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlFeatureProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Documentation of the MLFeature */ - @Deprecated public java.lang.String description; - /** Data Type of the MLFeature */ - @Deprecated public com.linkedin.pegasus2avro.common.MLFeatureDataType dataType; - /** Version of the MLFeature */ - @Deprecated public com.linkedin.pegasus2avro.common.VersionTag version; - /** Source of the MLFeature */ - @Deprecated public java.util.List sources; - - /** - * 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 MLFeatureProperties() {} - - /** - * All-args constructor. - */ - public MLFeatureProperties(java.lang.String description, com.linkedin.pegasus2avro.common.MLFeatureDataType dataType, com.linkedin.pegasus2avro.common.VersionTag version, java.util.List sources) { - this.description = description; - this.dataType = dataType; - this.version = version; - this.sources = sources; - } - - 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 description; - case 1: return dataType; - case 2: return version; - case 3: return sources; - 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: description = (java.lang.String)value$; break; - case 1: dataType = (com.linkedin.pegasus2avro.common.MLFeatureDataType)value$; break; - case 2: version = (com.linkedin.pegasus2avro.common.VersionTag)value$; break; - case 3: sources = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'description' field. - * Documentation of the MLFeature */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the MLFeature * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'dataType' field. - * Data Type of the MLFeature */ - public com.linkedin.pegasus2avro.common.MLFeatureDataType getDataType() { - return dataType; - } - - /** - * Sets the value of the 'dataType' field. - * Data Type of the MLFeature * @param value the value to set. - */ - public void setDataType(com.linkedin.pegasus2avro.common.MLFeatureDataType value) { - this.dataType = value; - } - - /** - * Gets the value of the 'version' field. - * Version of the MLFeature */ - public com.linkedin.pegasus2avro.common.VersionTag getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * Version of the MLFeature * @param value the value to set. - */ - public void setVersion(com.linkedin.pegasus2avro.common.VersionTag value) { - this.version = value; - } - - /** - * Gets the value of the 'sources' field. - * Source of the MLFeature */ - public java.util.List getSources() { - return sources; - } - - /** - * Sets the value of the 'sources' field. - * Source of the MLFeature * @param value the value to set. - */ - public void setSources(java.util.List value) { - this.sources = value; - } - - /** Creates a new MLFeatureProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder(); - } - - /** Creates a new MLFeatureProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder(other); - } - - /** Creates a new MLFeatureProperties RecordBuilder by copying an existing MLFeatureProperties instance */ - public static com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder(other); - } - - /** - * RecordBuilder for MLFeatureProperties instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String description; - private com.linkedin.pegasus2avro.common.MLFeatureDataType dataType; - private com.linkedin.pegasus2avro.common.VersionTag version; - private java.util.List sources; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder other) { - super(other); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.dataType)) { - this.dataType = data().deepCopy(fields()[1].schema(), other.dataType); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.version)) { - this.version = data().deepCopy(fields()[2].schema(), other.version); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.sources)) { - this.sources = data().deepCopy(fields()[3].schema(), other.sources); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing MLFeatureProperties instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties other) { - super(com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.SCHEMA$); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.dataType)) { - this.dataType = data().deepCopy(fields()[1].schema(), other.dataType); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.version)) { - this.version = data().deepCopy(fields()[2].schema(), other.version); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.sources)) { - this.sources = data().deepCopy(fields()[3].schema(), other.sources); - fieldSetFlags()[3] = true; - } - } - - /** 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.ml.metadata.MLFeatureProperties.Builder setDescription(java.lang.String value) { - validate(fields()[0], value); - this.description = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'dataType' field */ - public com.linkedin.pegasus2avro.common.MLFeatureDataType getDataType() { - return dataType; - } - - /** Sets the value of the 'dataType' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder setDataType(com.linkedin.pegasus2avro.common.MLFeatureDataType value) { - validate(fields()[1], value); - this.dataType = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'dataType' field has been set */ - public boolean hasDataType() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'dataType' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder clearDataType() { - dataType = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public com.linkedin.pegasus2avro.common.VersionTag getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder setVersion(com.linkedin.pegasus2avro.common.VersionTag value) { - validate(fields()[2], value); - this.version = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder clearVersion() { - version = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'sources' field */ - public java.util.List getSources() { - return sources; - } - - /** Sets the value of the 'sources' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder setSources(java.util.List value) { - validate(fields()[3], value); - this.sources = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'sources' field has been set */ - public boolean hasSources() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'sources' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLFeatureProperties.Builder clearSources() { - sources = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public MLFeatureProperties build() { - try { - MLFeatureProperties record = new MLFeatureProperties(); - record.description = fieldSetFlags()[0] ? this.description : (java.lang.String) defaultValue(fields()[0]); - record.dataType = fieldSetFlags()[1] ? this.dataType : (com.linkedin.pegasus2avro.common.MLFeatureDataType) defaultValue(fields()[1]); - record.version = fieldSetFlags()[2] ? this.version : (com.linkedin.pegasus2avro.common.VersionTag) defaultValue(fields()[2]); - record.sources = fieldSetFlags()[3] ? this.sources : (java.util.List) 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/ml/metadata/MLFeatureTableProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLFeatureTableProperties.java deleted file mode 100644 index 7170ea810a95f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLFeatureTableProperties.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with a MLFeatureTable */ -@org.apache.avro.specific.AvroGenerated -public class MLFeatureTableProperties 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\":\"MLFeatureTableProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeatureTable\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeatureTable\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features contained in the feature table\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"name\":\"Contains\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"features\",\"fieldType\":\"URN\"}}},{\"name\":\"mlPrimaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of primary keys in the feature table (if multiple, assumed to act as a composite key)\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlPrimaryKey\"],\"name\":\"KeyedBy\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"primaryKeys\",\"fieldType\":\"URN\"}}}],\"Aspect\":{\"name\":\"mlFeatureTableProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Custom property bag. */ - @Deprecated public java.util.Map customProperties; - /** Documentation of the MLFeatureTable */ - @Deprecated public java.lang.String description; - /** List of features contained in the feature table */ - @Deprecated public java.util.List mlFeatures; - /** List of primary keys in the feature table (if multiple, assumed to act as a composite key) */ - @Deprecated public java.util.List mlPrimaryKeys; - - /** - * 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 MLFeatureTableProperties() {} - - /** - * All-args constructor. - */ - public MLFeatureTableProperties(java.util.Map customProperties, java.lang.String description, java.util.List mlFeatures, java.util.List mlPrimaryKeys) { - this.customProperties = customProperties; - this.description = description; - this.mlFeatures = mlFeatures; - this.mlPrimaryKeys = mlPrimaryKeys; - } - - 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 description; - case 2: return mlFeatures; - case 3: return mlPrimaryKeys; - 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: description = (java.lang.String)value$; break; - case 2: mlFeatures = (java.util.List)value$; break; - case 3: mlPrimaryKeys = (java.util.List)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 'description' field. - * Documentation of the MLFeatureTable */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the MLFeatureTable * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'mlFeatures' field. - * List of features contained in the feature table */ - public java.util.List getMlFeatures() { - return mlFeatures; - } - - /** - * Sets the value of the 'mlFeatures' field. - * List of features contained in the feature table * @param value the value to set. - */ - public void setMlFeatures(java.util.List value) { - this.mlFeatures = value; - } - - /** - * Gets the value of the 'mlPrimaryKeys' field. - * List of primary keys in the feature table (if multiple, assumed to act as a composite key) */ - public java.util.List getMlPrimaryKeys() { - return mlPrimaryKeys; - } - - /** - * Sets the value of the 'mlPrimaryKeys' field. - * List of primary keys in the feature table (if multiple, assumed to act as a composite key) * @param value the value to set. - */ - public void setMlPrimaryKeys(java.util.List value) { - this.mlPrimaryKeys = value; - } - - /** Creates a new MLFeatureTableProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.Builder(); - } - - /** Creates a new MLFeatureTableProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.Builder(other); - } - - /** Creates a new MLFeatureTableProperties RecordBuilder by copying an existing MLFeatureTableProperties instance */ - public static com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.Builder(other); - } - - /** - * RecordBuilder for MLFeatureTableProperties 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 description; - private java.util.List mlFeatures; - private java.util.List mlPrimaryKeys; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.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.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.mlFeatures)) { - this.mlFeatures = data().deepCopy(fields()[2].schema(), other.mlFeatures); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.mlPrimaryKeys)) { - this.mlPrimaryKeys = data().deepCopy(fields()[3].schema(), other.mlPrimaryKeys); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing MLFeatureTableProperties instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties other) { - super(com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.SCHEMA$); - if (isValidValue(fields()[0], other.customProperties)) { - this.customProperties = data().deepCopy(fields()[0].schema(), other.customProperties); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.mlFeatures)) { - this.mlFeatures = data().deepCopy(fields()[2].schema(), other.mlFeatures); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.mlPrimaryKeys)) { - this.mlPrimaryKeys = data().deepCopy(fields()[3].schema(), other.mlPrimaryKeys); - 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.ml.metadata.MLFeatureTableProperties.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.ml.metadata.MLFeatureTableProperties.Builder clearCustomProperties() { - customProperties = null; - fieldSetFlags()[0] = 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.ml.metadata.MLFeatureTableProperties.Builder setDescription(java.lang.String value) { - validate(fields()[1], value); - this.description = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'mlFeatures' field */ - public java.util.List getMlFeatures() { - return mlFeatures; - } - - /** Sets the value of the 'mlFeatures' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.Builder setMlFeatures(java.util.List value) { - validate(fields()[2], value); - this.mlFeatures = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'mlFeatures' field has been set */ - public boolean hasMlFeatures() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'mlFeatures' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.Builder clearMlFeatures() { - mlFeatures = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'mlPrimaryKeys' field */ - public java.util.List getMlPrimaryKeys() { - return mlPrimaryKeys; - } - - /** Sets the value of the 'mlPrimaryKeys' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.Builder setMlPrimaryKeys(java.util.List value) { - validate(fields()[3], value); - this.mlPrimaryKeys = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'mlPrimaryKeys' field has been set */ - public boolean hasMlPrimaryKeys() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'mlPrimaryKeys' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLFeatureTableProperties.Builder clearMlPrimaryKeys() { - mlPrimaryKeys = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public MLFeatureTableProperties build() { - try { - MLFeatureTableProperties record = new MLFeatureTableProperties(); - record.customProperties = fieldSetFlags()[0] ? this.customProperties : (java.util.Map) defaultValue(fields()[0]); - record.description = fieldSetFlags()[1] ? this.description : (java.lang.String) defaultValue(fields()[1]); - record.mlFeatures = fieldSetFlags()[2] ? this.mlFeatures : (java.util.List) defaultValue(fields()[2]); - record.mlPrimaryKeys = fieldSetFlags()[3] ? this.mlPrimaryKeys : (java.util.List) 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/ml/metadata/MLHyperParam.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLHyperParam.java deleted file mode 100644 index 68c13497f23fd..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLHyperParam.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with an ML Hyper Param */ -@org.apache.avro.specific.AvroGenerated -public class MLHyperParam 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\":\"MLHyperParam\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Hyper Param\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLHyperParam\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLHyperParam\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the MLHyperParam\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLHyperParam was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlHyperParam\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Name of the MLHyperParam */ - @Deprecated public java.lang.String name; - /** Documentation of the MLHyperParam */ - @Deprecated public java.lang.String description; - /** The value of the MLHyperParam */ - @Deprecated public java.lang.String value; - /** Date when the MLHyperParam was developed */ - @Deprecated public java.lang.Long createdAt; - - /** - * 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 MLHyperParam() {} - - /** - * All-args constructor. - */ - public MLHyperParam(java.lang.String name, java.lang.String description, java.lang.String value, java.lang.Long createdAt) { - this.name = name; - this.description = description; - this.value = value; - this.createdAt = createdAt; - } - - 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 description; - case 2: return value; - case 3: return createdAt; - 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: description = (java.lang.String)value$; break; - case 2: value = (java.lang.String)value$; break; - case 3: createdAt = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Name of the MLHyperParam */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the MLHyperParam * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'description' field. - * Documentation of the MLHyperParam */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the MLHyperParam * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'value' field. - * The value of the MLHyperParam */ - public java.lang.String getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * The value of the MLHyperParam * @param value the value to set. - */ - public void setValue(java.lang.String value) { - this.value = value; - } - - /** - * Gets the value of the 'createdAt' field. - * Date when the MLHyperParam was developed */ - public java.lang.Long getCreatedAt() { - return createdAt; - } - - /** - * Sets the value of the 'createdAt' field. - * Date when the MLHyperParam was developed * @param value the value to set. - */ - public void setCreatedAt(java.lang.Long value) { - this.createdAt = value; - } - - /** Creates a new MLHyperParam RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLHyperParam.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.MLHyperParam.Builder(); - } - - /** Creates a new MLHyperParam RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLHyperParam.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLHyperParam.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLHyperParam.Builder(other); - } - - /** Creates a new MLHyperParam RecordBuilder by copying an existing MLHyperParam instance */ - public static com.linkedin.pegasus2avro.ml.metadata.MLHyperParam.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLHyperParam other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLHyperParam.Builder(other); - } - - /** - * RecordBuilder for MLHyperParam 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 description; - private java.lang.String value; - private java.lang.Long createdAt; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.MLHyperParam.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLHyperParam.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.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.value)) { - this.value = data().deepCopy(fields()[2].schema(), other.value); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.createdAt)) { - this.createdAt = data().deepCopy(fields()[3].schema(), other.createdAt); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing MLHyperParam instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLHyperParam other) { - super(com.linkedin.pegasus2avro.ml.metadata.MLHyperParam.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.value)) { - this.value = data().deepCopy(fields()[2].schema(), other.value); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.createdAt)) { - this.createdAt = data().deepCopy(fields()[3].schema(), other.createdAt); - fieldSetFlags()[3] = 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.ml.metadata.MLHyperParam.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.ml.metadata.MLHyperParam.Builder clearName() { - name = null; - fieldSetFlags()[0] = 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.ml.metadata.MLHyperParam.Builder setDescription(java.lang.String value) { - validate(fields()[1], value); - this.description = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLHyperParam.Builder clearDescription() { - description = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.ml.metadata.MLHyperParam.Builder setValue(java.lang.String value) { - validate(fields()[2], value); - this.value = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'value' field has been set */ - public boolean hasValue() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'value' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLHyperParam.Builder clearValue() { - value = 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.ml.metadata.MLHyperParam.Builder setCreatedAt(java.lang.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.ml.metadata.MLHyperParam.Builder clearCreatedAt() { - createdAt = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public MLHyperParam build() { - try { - MLHyperParam record = new MLHyperParam(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.description = fieldSetFlags()[1] ? this.description : (java.lang.String) defaultValue(fields()[1]); - record.value = fieldSetFlags()[2] ? this.value : (java.lang.String) defaultValue(fields()[2]); - record.createdAt = fieldSetFlags()[3] ? this.createdAt : (java.lang.Long) 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/ml/metadata/MLMetric.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLMetric.java deleted file mode 100644 index cdc51fe960b72..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLMetric.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with an ML Metric */ -@org.apache.avro.specific.AvroGenerated -public class MLMetric 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\":\"MLMetric\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Metric\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the mlMetric\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the mlMetric\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the mlMetric\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the mlMetric was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlMetric\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Name of the mlMetric */ - @Deprecated public java.lang.String name; - /** Documentation of the mlMetric */ - @Deprecated public java.lang.String description; - /** The value of the mlMetric */ - @Deprecated public java.lang.String value; - /** Date when the mlMetric was developed */ - @Deprecated public java.lang.Long createdAt; - - /** - * 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 MLMetric() {} - - /** - * All-args constructor. - */ - public MLMetric(java.lang.String name, java.lang.String description, java.lang.String value, java.lang.Long createdAt) { - this.name = name; - this.description = description; - this.value = value; - this.createdAt = createdAt; - } - - 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 description; - case 2: return value; - case 3: return createdAt; - 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: description = (java.lang.String)value$; break; - case 2: value = (java.lang.String)value$; break; - case 3: createdAt = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Name of the mlMetric */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the mlMetric * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'description' field. - * Documentation of the mlMetric */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the mlMetric * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'value' field. - * The value of the mlMetric */ - public java.lang.String getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * The value of the mlMetric * @param value the value to set. - */ - public void setValue(java.lang.String value) { - this.value = value; - } - - /** - * Gets the value of the 'createdAt' field. - * Date when the mlMetric was developed */ - public java.lang.Long getCreatedAt() { - return createdAt; - } - - /** - * Sets the value of the 'createdAt' field. - * Date when the mlMetric was developed * @param value the value to set. - */ - public void setCreatedAt(java.lang.Long value) { - this.createdAt = value; - } - - /** Creates a new MLMetric RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLMetric.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.MLMetric.Builder(); - } - - /** Creates a new MLMetric RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLMetric.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLMetric.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLMetric.Builder(other); - } - - /** Creates a new MLMetric RecordBuilder by copying an existing MLMetric instance */ - public static com.linkedin.pegasus2avro.ml.metadata.MLMetric.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLMetric other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLMetric.Builder(other); - } - - /** - * RecordBuilder for MLMetric 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 description; - private java.lang.String value; - private java.lang.Long createdAt; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.MLMetric.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLMetric.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.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.value)) { - this.value = data().deepCopy(fields()[2].schema(), other.value); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.createdAt)) { - this.createdAt = data().deepCopy(fields()[3].schema(), other.createdAt); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing MLMetric instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLMetric other) { - super(com.linkedin.pegasus2avro.ml.metadata.MLMetric.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.value)) { - this.value = data().deepCopy(fields()[2].schema(), other.value); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.createdAt)) { - this.createdAt = data().deepCopy(fields()[3].schema(), other.createdAt); - fieldSetFlags()[3] = 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.ml.metadata.MLMetric.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.ml.metadata.MLMetric.Builder clearName() { - name = null; - fieldSetFlags()[0] = 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.ml.metadata.MLMetric.Builder setDescription(java.lang.String value) { - validate(fields()[1], value); - this.description = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLMetric.Builder clearDescription() { - description = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.ml.metadata.MLMetric.Builder setValue(java.lang.String value) { - validate(fields()[2], value); - this.value = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'value' field has been set */ - public boolean hasValue() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'value' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLMetric.Builder clearValue() { - value = 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.ml.metadata.MLMetric.Builder setCreatedAt(java.lang.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.ml.metadata.MLMetric.Builder clearCreatedAt() { - createdAt = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public MLMetric build() { - try { - MLMetric record = new MLMetric(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.description = fieldSetFlags()[1] ? this.description : (java.lang.String) defaultValue(fields()[1]); - record.value = fieldSetFlags()[2] ? this.value : (java.lang.String) defaultValue(fields()[2]); - record.createdAt = fieldSetFlags()[3] ? this.createdAt : (java.lang.Long) 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/ml/metadata/MLModelDeploymentProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLModelDeploymentProperties.java deleted file mode 100644 index bb8c4f517b0c6..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLModelDeploymentProperties.java +++ /dev/null @@ -1,419 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with an ML Model Deployment */ -@org.apache.avro.specific.AvroGenerated -public class MLModelDeploymentProperties 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\":\"MLModelDeploymentProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Deployment\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModelDeployment\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModelDeployment was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLModelDeployment\",\"default\":null},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"DeploymentStatus\",\"doc\":\"Model endpoint statuses\",\"symbols\":[\"OUT_OF_SERVICE\",\"CREATING\",\"UPDATING\",\"ROLLING_BACK\",\"IN_SERVICE\",\"DELETING\",\"FAILED\",\"UNKNOWN\"],\"symbolDocs\":{\"CREATING\":\"Deployments being created.\",\"DELETING\":\"Deployments being deleted.\",\"FAILED\":\"Deployments with an error state.\",\"IN_SERVICE\":\"Deployments that are active.\",\"OUT_OF_SERVICE\":\"Deployments out of service.\",\"ROLLING_BACK\":\"Deployments being reverted to a previous version.\",\"UNKNOWN\":\"Deployments with unknown/unmappable state.\",\"UPDATING\":\"Deployments being updated.\"}}],\"doc\":\"Status of the deployment\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelDeploymentProperties\"}}"); - 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; - /** Documentation of the MLModelDeployment */ - @Deprecated public java.lang.String description; - /** Date when the MLModelDeployment was developed */ - @Deprecated public java.lang.Long createdAt; - /** Version of the MLModelDeployment */ - @Deprecated public com.linkedin.pegasus2avro.common.VersionTag version; - /** Status of the deployment */ - @Deprecated public com.linkedin.pegasus2avro.ml.metadata.DeploymentStatus status; - - /** - * 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 MLModelDeploymentProperties() {} - - /** - * All-args constructor. - */ - public MLModelDeploymentProperties(java.util.Map customProperties, java.lang.String externalUrl, java.lang.String description, java.lang.Long createdAt, com.linkedin.pegasus2avro.common.VersionTag version, com.linkedin.pegasus2avro.ml.metadata.DeploymentStatus status) { - this.customProperties = customProperties; - this.externalUrl = externalUrl; - this.description = description; - this.createdAt = createdAt; - this.version = version; - this.status = status; - } - - 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 description; - case 3: return createdAt; - case 4: return version; - case 5: return status; - 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: description = (java.lang.String)value$; break; - case 3: createdAt = (java.lang.Long)value$; break; - case 4: version = (com.linkedin.pegasus2avro.common.VersionTag)value$; break; - case 5: status = (com.linkedin.pegasus2avro.ml.metadata.DeploymentStatus)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 'description' field. - * Documentation of the MLModelDeployment */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the MLModelDeployment * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'createdAt' field. - * Date when the MLModelDeployment was developed */ - public java.lang.Long getCreatedAt() { - return createdAt; - } - - /** - * Sets the value of the 'createdAt' field. - * Date when the MLModelDeployment was developed * @param value the value to set. - */ - public void setCreatedAt(java.lang.Long value) { - this.createdAt = value; - } - - /** - * Gets the value of the 'version' field. - * Version of the MLModelDeployment */ - public com.linkedin.pegasus2avro.common.VersionTag getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * Version of the MLModelDeployment * @param value the value to set. - */ - public void setVersion(com.linkedin.pegasus2avro.common.VersionTag value) { - this.version = value; - } - - /** - * Gets the value of the 'status' field. - * Status of the deployment */ - public com.linkedin.pegasus2avro.ml.metadata.DeploymentStatus getStatus() { - return status; - } - - /** - * Sets the value of the 'status' field. - * Status of the deployment * @param value the value to set. - */ - public void setStatus(com.linkedin.pegasus2avro.ml.metadata.DeploymentStatus value) { - this.status = value; - } - - /** Creates a new MLModelDeploymentProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.Builder(); - } - - /** Creates a new MLModelDeploymentProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.Builder(other); - } - - /** Creates a new MLModelDeploymentProperties RecordBuilder by copying an existing MLModelDeploymentProperties instance */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.Builder(other); - } - - /** - * RecordBuilder for MLModelDeploymentProperties 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 description; - private java.lang.Long createdAt; - private com.linkedin.pegasus2avro.common.VersionTag version; - private com.linkedin.pegasus2avro.ml.metadata.DeploymentStatus status; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.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.description)) { - this.description = data().deepCopy(fields()[2].schema(), other.description); - 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.version)) { - this.version = data().deepCopy(fields()[4].schema(), other.version); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.status)) { - this.status = data().deepCopy(fields()[5].schema(), other.status); - fieldSetFlags()[5] = true; - } - } - - /** Creates a Builder by copying an existing MLModelDeploymentProperties instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties other) { - super(com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.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.description)) { - this.description = data().deepCopy(fields()[2].schema(), other.description); - 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.version)) { - this.version = data().deepCopy(fields()[4].schema(), other.version); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.status)) { - this.status = data().deepCopy(fields()[5].schema(), other.status); - fieldSetFlags()[5] = 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.ml.metadata.MLModelDeploymentProperties.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.ml.metadata.MLModelDeploymentProperties.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.ml.metadata.MLModelDeploymentProperties.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.ml.metadata.MLModelDeploymentProperties.Builder clearExternalUrl() { - externalUrl = null; - fieldSetFlags()[1] = 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.ml.metadata.MLModelDeploymentProperties.Builder setDescription(java.lang.String value) { - validate(fields()[2], value); - this.description = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.Builder clearDescription() { - description = 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.ml.metadata.MLModelDeploymentProperties.Builder setCreatedAt(java.lang.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.ml.metadata.MLModelDeploymentProperties.Builder clearCreatedAt() { - createdAt = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public com.linkedin.pegasus2avro.common.VersionTag getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.Builder setVersion(com.linkedin.pegasus2avro.common.VersionTag value) { - validate(fields()[4], value); - this.version = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.Builder clearVersion() { - version = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'status' field */ - public com.linkedin.pegasus2avro.ml.metadata.DeploymentStatus getStatus() { - return status; - } - - /** Sets the value of the 'status' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.Builder setStatus(com.linkedin.pegasus2avro.ml.metadata.DeploymentStatus value) { - validate(fields()[5], value); - this.status = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'status' field has been set */ - public boolean hasStatus() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'status' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelDeploymentProperties.Builder clearStatus() { - status = null; - fieldSetFlags()[5] = false; - return this; - } - - @Override - public MLModelDeploymentProperties build() { - try { - MLModelDeploymentProperties record = new MLModelDeploymentProperties(); - 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.description = fieldSetFlags()[2] ? this.description : (java.lang.String) defaultValue(fields()[2]); - record.createdAt = fieldSetFlags()[3] ? this.createdAt : (java.lang.Long) defaultValue(fields()[3]); - record.version = fieldSetFlags()[4] ? this.version : (com.linkedin.pegasus2avro.common.VersionTag) defaultValue(fields()[4]); - record.status = fieldSetFlags()[5] ? this.status : (com.linkedin.pegasus2avro.ml.metadata.DeploymentStatus) 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/ml/metadata/MLModelFactorPrompts.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLModelFactorPrompts.java deleted file mode 100644 index 3f0886bd5f509..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLModelFactorPrompts.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Prompts which affect the performance of the MLModel */ -@org.apache.avro.specific.AvroGenerated -public class MLModelFactorPrompts 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\":\"MLModelFactorPrompts\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Prompts which affect the performance of the MLModel\",\"fields\":[{\"name\":\"relevantFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLModelFactors\",\"doc\":\"Factors affecting the performance of the MLModel.\",\"fields\":[{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances.\\nFor human-centric machine learning MLModels, groups are people who share one or multiple characteristics.\",\"default\":null},{\"name\":\"instrumentation\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel.\\nFor example, a face detection model may perform differently depending on the camera's hardware and software,\\nincluding lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode.\",\"default\":null},{\"name\":\"environment\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A further factor affecting MLModel performance is the environment in which it is deployed.\",\"default\":null}]}}],\"doc\":\"What are foreseeable salient factors for which MLModel performance may vary, and how were these determined?\",\"default\":null},{\"name\":\"evaluationFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLModelFactors\"}],\"doc\":\"Which factors are being reported, and why were these chosen?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelFactorPrompts\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** What are foreseeable salient factors for which MLModel performance may vary, and how were these determined? */ - @Deprecated public java.util.List relevantFactors; - /** Which factors are being reported, and why were these chosen? */ - @Deprecated public java.util.List evaluationFactors; - - /** - * 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 MLModelFactorPrompts() {} - - /** - * All-args constructor. - */ - public MLModelFactorPrompts(java.util.List relevantFactors, java.util.List evaluationFactors) { - this.relevantFactors = relevantFactors; - this.evaluationFactors = evaluationFactors; - } - - 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 relevantFactors; - case 1: return evaluationFactors; - 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: relevantFactors = (java.util.List)value$; break; - case 1: evaluationFactors = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'relevantFactors' field. - * What are foreseeable salient factors for which MLModel performance may vary, and how were these determined? */ - public java.util.List getRelevantFactors() { - return relevantFactors; - } - - /** - * Sets the value of the 'relevantFactors' field. - * What are foreseeable salient factors for which MLModel performance may vary, and how were these determined? * @param value the value to set. - */ - public void setRelevantFactors(java.util.List value) { - this.relevantFactors = value; - } - - /** - * Gets the value of the 'evaluationFactors' field. - * Which factors are being reported, and why were these chosen? */ - public java.util.List getEvaluationFactors() { - return evaluationFactors; - } - - /** - * Sets the value of the 'evaluationFactors' field. - * Which factors are being reported, and why were these chosen? * @param value the value to set. - */ - public void setEvaluationFactors(java.util.List value) { - this.evaluationFactors = value; - } - - /** Creates a new MLModelFactorPrompts RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.Builder(); - } - - /** Creates a new MLModelFactorPrompts RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.Builder(other); - } - - /** Creates a new MLModelFactorPrompts RecordBuilder by copying an existing MLModelFactorPrompts instance */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.Builder(other); - } - - /** - * RecordBuilder for MLModelFactorPrompts instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List relevantFactors; - private java.util.List evaluationFactors; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.Builder other) { - super(other); - if (isValidValue(fields()[0], other.relevantFactors)) { - this.relevantFactors = data().deepCopy(fields()[0].schema(), other.relevantFactors); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.evaluationFactors)) { - this.evaluationFactors = data().deepCopy(fields()[1].schema(), other.evaluationFactors); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing MLModelFactorPrompts instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts other) { - super(com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.SCHEMA$); - if (isValidValue(fields()[0], other.relevantFactors)) { - this.relevantFactors = data().deepCopy(fields()[0].schema(), other.relevantFactors); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.evaluationFactors)) { - this.evaluationFactors = data().deepCopy(fields()[1].schema(), other.evaluationFactors); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'relevantFactors' field */ - public java.util.List getRelevantFactors() { - return relevantFactors; - } - - /** Sets the value of the 'relevantFactors' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.Builder setRelevantFactors(java.util.List value) { - validate(fields()[0], value); - this.relevantFactors = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'relevantFactors' field has been set */ - public boolean hasRelevantFactors() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'relevantFactors' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.Builder clearRelevantFactors() { - relevantFactors = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'evaluationFactors' field */ - public java.util.List getEvaluationFactors() { - return evaluationFactors; - } - - /** Sets the value of the 'evaluationFactors' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.Builder setEvaluationFactors(java.util.List value) { - validate(fields()[1], value); - this.evaluationFactors = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'evaluationFactors' field has been set */ - public boolean hasEvaluationFactors() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'evaluationFactors' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelFactorPrompts.Builder clearEvaluationFactors() { - evaluationFactors = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public MLModelFactorPrompts build() { - try { - MLModelFactorPrompts record = new MLModelFactorPrompts(); - record.relevantFactors = fieldSetFlags()[0] ? this.relevantFactors : (java.util.List) defaultValue(fields()[0]); - record.evaluationFactors = fieldSetFlags()[1] ? this.evaluationFactors : (java.util.List) 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/ml/metadata/MLModelFactors.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLModelFactors.java deleted file mode 100644 index 8e9c81636520b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLModelFactors.java +++ /dev/null @@ -1,263 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Factors affecting the performance of the MLModel. */ -@org.apache.avro.specific.AvroGenerated -public class MLModelFactors 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\":\"MLModelFactors\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Factors affecting the performance of the MLModel.\",\"fields\":[{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances.\\nFor human-centric machine learning MLModels, groups are people who share one or multiple characteristics.\",\"default\":null},{\"name\":\"instrumentation\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel.\\nFor example, a face detection model may perform differently depending on the camera's hardware and software,\\nincluding lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode.\",\"default\":null},{\"name\":\"environment\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A further factor affecting MLModel performance is the environment in which it is deployed.\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances. -For human-centric machine learning MLModels, groups are people who share one or multiple characteristics. */ - @Deprecated public java.util.List groups; - /** The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel. -For example, a face detection model may perform differently depending on the camera's hardware and software, -including lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode. */ - @Deprecated public java.util.List instrumentation; - /** A further factor affecting MLModel performance is the environment in which it is deployed. */ - @Deprecated public java.util.List environment; - - /** - * 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 MLModelFactors() {} - - /** - * All-args constructor. - */ - public MLModelFactors(java.util.List groups, java.util.List instrumentation, java.util.List environment) { - this.groups = groups; - this.instrumentation = instrumentation; - this.environment = environment; - } - - 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 groups; - case 1: return instrumentation; - case 2: return environment; - 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: groups = (java.util.List)value$; break; - case 1: instrumentation = (java.util.List)value$; break; - case 2: environment = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'groups' field. - * Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances. -For human-centric machine learning MLModels, groups are people who share one or multiple characteristics. */ - public java.util.List getGroups() { - return groups; - } - - /** - * Sets the value of the 'groups' field. - * Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances. -For human-centric machine learning MLModels, groups are people who share one or multiple characteristics. * @param value the value to set. - */ - public void setGroups(java.util.List value) { - this.groups = value; - } - - /** - * Gets the value of the 'instrumentation' field. - * The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel. -For example, a face detection model may perform differently depending on the camera's hardware and software, -including lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode. */ - public java.util.List getInstrumentation() { - return instrumentation; - } - - /** - * Sets the value of the 'instrumentation' field. - * The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel. -For example, a face detection model may perform differently depending on the camera's hardware and software, -including lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode. * @param value the value to set. - */ - public void setInstrumentation(java.util.List value) { - this.instrumentation = value; - } - - /** - * Gets the value of the 'environment' field. - * A further factor affecting MLModel performance is the environment in which it is deployed. */ - public java.util.List getEnvironment() { - return environment; - } - - /** - * Sets the value of the 'environment' field. - * A further factor affecting MLModel performance is the environment in which it is deployed. * @param value the value to set. - */ - public void setEnvironment(java.util.List value) { - this.environment = value; - } - - /** Creates a new MLModelFactors RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder(); - } - - /** Creates a new MLModelFactors RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder(other); - } - - /** Creates a new MLModelFactors RecordBuilder by copying an existing MLModelFactors instance */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLModelFactors other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder(other); - } - - /** - * RecordBuilder for MLModelFactors instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List groups; - private java.util.List instrumentation; - private java.util.List environment; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder other) { - super(other); - if (isValidValue(fields()[0], other.groups)) { - this.groups = data().deepCopy(fields()[0].schema(), other.groups); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.instrumentation)) { - this.instrumentation = data().deepCopy(fields()[1].schema(), other.instrumentation); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.environment)) { - this.environment = data().deepCopy(fields()[2].schema(), other.environment); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing MLModelFactors instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLModelFactors other) { - super(com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.SCHEMA$); - if (isValidValue(fields()[0], other.groups)) { - this.groups = data().deepCopy(fields()[0].schema(), other.groups); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.instrumentation)) { - this.instrumentation = data().deepCopy(fields()[1].schema(), other.instrumentation); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.environment)) { - this.environment = data().deepCopy(fields()[2].schema(), other.environment); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'groups' field */ - public java.util.List getGroups() { - return groups; - } - - /** Sets the value of the 'groups' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder setGroups(java.util.List value) { - validate(fields()[0], value); - this.groups = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'groups' field has been set */ - public boolean hasGroups() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'groups' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder clearGroups() { - groups = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'instrumentation' field */ - public java.util.List getInstrumentation() { - return instrumentation; - } - - /** Sets the value of the 'instrumentation' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder setInstrumentation(java.util.List value) { - validate(fields()[1], value); - this.instrumentation = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'instrumentation' field has been set */ - public boolean hasInstrumentation() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'instrumentation' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder clearInstrumentation() { - instrumentation = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'environment' field */ - public java.util.List getEnvironment() { - return environment; - } - - /** Sets the value of the 'environment' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder setEnvironment(java.util.List value) { - validate(fields()[2], value); - this.environment = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'environment' field has been set */ - public boolean hasEnvironment() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'environment' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelFactors.Builder clearEnvironment() { - environment = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public MLModelFactors build() { - try { - MLModelFactors record = new MLModelFactors(); - record.groups = fieldSetFlags()[0] ? this.groups : (java.util.List) defaultValue(fields()[0]); - record.instrumentation = fieldSetFlags()[1] ? this.instrumentation : (java.util.List) defaultValue(fields()[1]); - record.environment = fieldSetFlags()[2] ? this.environment : (java.util.List) 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/ml/metadata/MLModelGroupProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLModelGroupProperties.java deleted file mode 100644 index 3c78b10c968be..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLModelGroupProperties.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with an ML Model Group */ -@org.apache.avro.specific.AvroGenerated -public class MLModelGroupProperties 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\":\"MLModelGroupProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Group\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModelGroup\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModelGroup was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLModelGroup\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelGroupProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Custom property bag. */ - @Deprecated public java.util.Map customProperties; - /** Documentation of the MLModelGroup */ - @Deprecated public java.lang.String description; - /** Date when the MLModelGroup was developed */ - @Deprecated public java.lang.Long createdAt; - /** Version of the MLModelGroup */ - @Deprecated public com.linkedin.pegasus2avro.common.VersionTag version; - - /** - * 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 MLModelGroupProperties() {} - - /** - * All-args constructor. - */ - public MLModelGroupProperties(java.util.Map customProperties, java.lang.String description, java.lang.Long createdAt, com.linkedin.pegasus2avro.common.VersionTag version) { - this.customProperties = customProperties; - this.description = description; - this.createdAt = createdAt; - this.version = version; - } - - 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 description; - case 2: return createdAt; - case 3: return version; - 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: description = (java.lang.String)value$; break; - case 2: createdAt = (java.lang.Long)value$; break; - case 3: version = (com.linkedin.pegasus2avro.common.VersionTag)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 'description' field. - * Documentation of the MLModelGroup */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the MLModelGroup * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'createdAt' field. - * Date when the MLModelGroup was developed */ - public java.lang.Long getCreatedAt() { - return createdAt; - } - - /** - * Sets the value of the 'createdAt' field. - * Date when the MLModelGroup was developed * @param value the value to set. - */ - public void setCreatedAt(java.lang.Long value) { - this.createdAt = value; - } - - /** - * Gets the value of the 'version' field. - * Version of the MLModelGroup */ - public com.linkedin.pegasus2avro.common.VersionTag getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * Version of the MLModelGroup * @param value the value to set. - */ - public void setVersion(com.linkedin.pegasus2avro.common.VersionTag value) { - this.version = value; - } - - /** Creates a new MLModelGroupProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.Builder(); - } - - /** Creates a new MLModelGroupProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.Builder(other); - } - - /** Creates a new MLModelGroupProperties RecordBuilder by copying an existing MLModelGroupProperties instance */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.Builder(other); - } - - /** - * RecordBuilder for MLModelGroupProperties 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 description; - private java.lang.Long createdAt; - private com.linkedin.pegasus2avro.common.VersionTag version; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.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.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.createdAt)) { - this.createdAt = data().deepCopy(fields()[2].schema(), other.createdAt); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.version)) { - this.version = data().deepCopy(fields()[3].schema(), other.version); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing MLModelGroupProperties instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties other) { - super(com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.SCHEMA$); - if (isValidValue(fields()[0], other.customProperties)) { - this.customProperties = data().deepCopy(fields()[0].schema(), other.customProperties); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.createdAt)) { - this.createdAt = data().deepCopy(fields()[2].schema(), other.createdAt); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.version)) { - this.version = data().deepCopy(fields()[3].schema(), other.version); - 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.ml.metadata.MLModelGroupProperties.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.ml.metadata.MLModelGroupProperties.Builder clearCustomProperties() { - customProperties = null; - fieldSetFlags()[0] = 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.ml.metadata.MLModelGroupProperties.Builder setDescription(java.lang.String value) { - validate(fields()[1], value); - this.description = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[1] = 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.ml.metadata.MLModelGroupProperties.Builder setCreatedAt(java.lang.Long value) { - validate(fields()[2], value); - this.createdAt = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'createdAt' field has been set */ - public boolean hasCreatedAt() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'createdAt' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.Builder clearCreatedAt() { - createdAt = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public com.linkedin.pegasus2avro.common.VersionTag getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.Builder setVersion(com.linkedin.pegasus2avro.common.VersionTag value) { - validate(fields()[3], value); - this.version = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelGroupProperties.Builder clearVersion() { - version = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public MLModelGroupProperties build() { - try { - MLModelGroupProperties record = new MLModelGroupProperties(); - record.customProperties = fieldSetFlags()[0] ? this.customProperties : (java.util.Map) defaultValue(fields()[0]); - record.description = fieldSetFlags()[1] ? this.description : (java.lang.String) defaultValue(fields()[1]); - record.createdAt = fieldSetFlags()[2] ? this.createdAt : (java.lang.Long) defaultValue(fields()[2]); - record.version = fieldSetFlags()[3] ? this.version : (com.linkedin.pegasus2avro.common.VersionTag) 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/ml/metadata/MLModelProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLModelProperties.java deleted file mode 100644 index 760bca16dcbea..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLModelProperties.java +++ /dev/null @@ -1,975 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with a ML Model */ -@org.apache.avro.specific.AvroGenerated -public class MLModelProperties 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\":\"MLModelProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a ML Model\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModel\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"date\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModel was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLModel\",\"default\":null},{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"hyperParameters\",\"type\":[\"null\",{\"type\":\"map\",\"values\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"int\",\"float\",\"double\",\"boolean\"],\"avro.java.string\":\"String\"}],\"doc\":\"Hyper Parameters of the MLModel\\n\\nNOTE: these are deprecated in favor of hyperParams\",\"default\":null},{\"name\":\"hyperParams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLHyperParam\",\"doc\":\"Properties associated with an ML Hyper Param\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLHyperParam\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLHyperParam\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the MLHyperParam\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLHyperParam was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlHyperParam\"}}}],\"doc\":\"Hyperparameters of the MLModel\",\"default\":null},{\"name\":\"trainingMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLMetric\",\"doc\":\"Properties associated with an ML Metric\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the mlMetric\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the mlMetric\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the mlMetric\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the mlMetric was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlMetric\"}}}],\"doc\":\"Metrics of the MLModel used in training\",\"default\":null},{\"name\":\"onlineMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLMetric\"}],\"doc\":\"Metrics of the MLModel used in production\",\"default\":null},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features used for MLModel training\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"isLineage\":true,\"name\":\"Consumes\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Tags for the MLModel\",\"default\":[]},{\"name\":\"deployments\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Deployments for the MLModel\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelDeployment\"],\"name\":\"DeployedTo\"}}},{\"name\":\"trainingJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) used to train the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"TrainedBy\"}}},{\"name\":\"downstreamJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) that use the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"UsedBy\"}}},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups the model belongs to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelGroup\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"MemberOf\"}}}],\"Aspect\":{\"name\":\"mlModelProperties\"}}"); - 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; - /** Documentation of the MLModel */ - @Deprecated public java.lang.String description; - /** Date when the MLModel was developed */ - @Deprecated public java.lang.Long date; - /** Version of the MLModel */ - @Deprecated public com.linkedin.pegasus2avro.common.VersionTag version; - /** Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc */ - @Deprecated public java.lang.String type; - /** Hyper Parameters of the MLModel - -NOTE: these are deprecated in favor of hyperParams */ - @Deprecated public java.util.Map hyperParameters; - /** Hyperparameters of the MLModel */ - @Deprecated public java.util.List hyperParams; - /** Metrics of the MLModel used in training */ - @Deprecated public java.util.List trainingMetrics; - /** Metrics of the MLModel used in production */ - @Deprecated public java.util.List onlineMetrics; - /** List of features used for MLModel training */ - @Deprecated public java.util.List mlFeatures; - /** Tags for the MLModel */ - @Deprecated public java.util.List tags; - /** Deployments for the MLModel */ - @Deprecated public java.util.List deployments; - /** List of jobs (if any) used to train the model */ - @Deprecated public java.util.List trainingJobs; - /** List of jobs (if any) that use the model */ - @Deprecated public java.util.List downstreamJobs; - /** Groups the model belongs to */ - @Deprecated public java.util.List groups; - - /** - * 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 MLModelProperties() {} - - /** - * All-args constructor. - */ - public MLModelProperties(java.util.Map customProperties, java.lang.String externalUrl, java.lang.String description, java.lang.Long date, com.linkedin.pegasus2avro.common.VersionTag version, java.lang.String type, java.util.Map hyperParameters, java.util.List hyperParams, java.util.List trainingMetrics, java.util.List onlineMetrics, java.util.List mlFeatures, java.util.List tags, java.util.List deployments, java.util.List trainingJobs, java.util.List downstreamJobs, java.util.List groups) { - this.customProperties = customProperties; - this.externalUrl = externalUrl; - this.description = description; - this.date = date; - this.version = version; - this.type = type; - this.hyperParameters = hyperParameters; - this.hyperParams = hyperParams; - this.trainingMetrics = trainingMetrics; - this.onlineMetrics = onlineMetrics; - this.mlFeatures = mlFeatures; - this.tags = tags; - this.deployments = deployments; - this.trainingJobs = trainingJobs; - this.downstreamJobs = downstreamJobs; - this.groups = groups; - } - - 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 description; - case 3: return date; - case 4: return version; - case 5: return type; - case 6: return hyperParameters; - case 7: return hyperParams; - case 8: return trainingMetrics; - case 9: return onlineMetrics; - case 10: return mlFeatures; - case 11: return tags; - case 12: return deployments; - case 13: return trainingJobs; - case 14: return downstreamJobs; - case 15: return groups; - 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: description = (java.lang.String)value$; break; - case 3: date = (java.lang.Long)value$; break; - case 4: version = (com.linkedin.pegasus2avro.common.VersionTag)value$; break; - case 5: type = (java.lang.String)value$; break; - case 6: hyperParameters = (java.util.Map)value$; break; - case 7: hyperParams = (java.util.List)value$; break; - case 8: trainingMetrics = (java.util.List)value$; break; - case 9: onlineMetrics = (java.util.List)value$; break; - case 10: mlFeatures = (java.util.List)value$; break; - case 11: tags = (java.util.List)value$; break; - case 12: deployments = (java.util.List)value$; break; - case 13: trainingJobs = (java.util.List)value$; break; - case 14: downstreamJobs = (java.util.List)value$; break; - case 15: groups = (java.util.List)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 'description' field. - * Documentation of the MLModel */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the MLModel * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'date' field. - * Date when the MLModel was developed */ - public java.lang.Long getDate() { - return date; - } - - /** - * Sets the value of the 'date' field. - * Date when the MLModel was developed * @param value the value to set. - */ - public void setDate(java.lang.Long value) { - this.date = value; - } - - /** - * Gets the value of the 'version' field. - * Version of the MLModel */ - public com.linkedin.pegasus2avro.common.VersionTag getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * Version of the MLModel * @param value the value to set. - */ - public void setVersion(com.linkedin.pegasus2avro.common.VersionTag value) { - this.version = value; - } - - /** - * Gets the value of the 'type' field. - * Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc */ - public java.lang.String getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc * @param value the value to set. - */ - public void setType(java.lang.String value) { - this.type = value; - } - - /** - * Gets the value of the 'hyperParameters' field. - * Hyper Parameters of the MLModel - -NOTE: these are deprecated in favor of hyperParams */ - public java.util.Map getHyperParameters() { - return hyperParameters; - } - - /** - * Sets the value of the 'hyperParameters' field. - * Hyper Parameters of the MLModel - -NOTE: these are deprecated in favor of hyperParams * @param value the value to set. - */ - public void setHyperParameters(java.util.Map value) { - this.hyperParameters = value; - } - - /** - * Gets the value of the 'hyperParams' field. - * Hyperparameters of the MLModel */ - public java.util.List getHyperParams() { - return hyperParams; - } - - /** - * Sets the value of the 'hyperParams' field. - * Hyperparameters of the MLModel * @param value the value to set. - */ - public void setHyperParams(java.util.List value) { - this.hyperParams = value; - } - - /** - * Gets the value of the 'trainingMetrics' field. - * Metrics of the MLModel used in training */ - public java.util.List getTrainingMetrics() { - return trainingMetrics; - } - - /** - * Sets the value of the 'trainingMetrics' field. - * Metrics of the MLModel used in training * @param value the value to set. - */ - public void setTrainingMetrics(java.util.List value) { - this.trainingMetrics = value; - } - - /** - * Gets the value of the 'onlineMetrics' field. - * Metrics of the MLModel used in production */ - public java.util.List getOnlineMetrics() { - return onlineMetrics; - } - - /** - * Sets the value of the 'onlineMetrics' field. - * Metrics of the MLModel used in production * @param value the value to set. - */ - public void setOnlineMetrics(java.util.List value) { - this.onlineMetrics = value; - } - - /** - * Gets the value of the 'mlFeatures' field. - * List of features used for MLModel training */ - public java.util.List getMlFeatures() { - return mlFeatures; - } - - /** - * Sets the value of the 'mlFeatures' field. - * List of features used for MLModel training * @param value the value to set. - */ - public void setMlFeatures(java.util.List value) { - this.mlFeatures = value; - } - - /** - * Gets the value of the 'tags' field. - * Tags for the MLModel */ - public java.util.List getTags() { - return tags; - } - - /** - * Sets the value of the 'tags' field. - * Tags for the MLModel * @param value the value to set. - */ - public void setTags(java.util.List value) { - this.tags = value; - } - - /** - * Gets the value of the 'deployments' field. - * Deployments for the MLModel */ - public java.util.List getDeployments() { - return deployments; - } - - /** - * Sets the value of the 'deployments' field. - * Deployments for the MLModel * @param value the value to set. - */ - public void setDeployments(java.util.List value) { - this.deployments = value; - } - - /** - * Gets the value of the 'trainingJobs' field. - * List of jobs (if any) used to train the model */ - public java.util.List getTrainingJobs() { - return trainingJobs; - } - - /** - * Sets the value of the 'trainingJobs' field. - * List of jobs (if any) used to train the model * @param value the value to set. - */ - public void setTrainingJobs(java.util.List value) { - this.trainingJobs = value; - } - - /** - * Gets the value of the 'downstreamJobs' field. - * List of jobs (if any) that use the model */ - public java.util.List getDownstreamJobs() { - return downstreamJobs; - } - - /** - * Sets the value of the 'downstreamJobs' field. - * List of jobs (if any) that use the model * @param value the value to set. - */ - public void setDownstreamJobs(java.util.List value) { - this.downstreamJobs = value; - } - - /** - * Gets the value of the 'groups' field. - * Groups the model belongs to */ - public java.util.List getGroups() { - return groups; - } - - /** - * Sets the value of the 'groups' field. - * Groups the model belongs to * @param value the value to set. - */ - public void setGroups(java.util.List value) { - this.groups = value; - } - - /** Creates a new MLModelProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder(); - } - - /** Creates a new MLModelProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder(other); - } - - /** Creates a new MLModelProperties RecordBuilder by copying an existing MLModelProperties instance */ - public static com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLModelProperties other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder(other); - } - - /** - * RecordBuilder for MLModelProperties 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 description; - private java.lang.Long date; - private com.linkedin.pegasus2avro.common.VersionTag version; - private java.lang.String type; - private java.util.Map hyperParameters; - private java.util.List hyperParams; - private java.util.List trainingMetrics; - private java.util.List onlineMetrics; - private java.util.List mlFeatures; - private java.util.List tags; - private java.util.List deployments; - private java.util.List trainingJobs; - private java.util.List downstreamJobs; - private java.util.List groups; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.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.description)) { - this.description = data().deepCopy(fields()[2].schema(), other.description); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.date)) { - this.date = data().deepCopy(fields()[3].schema(), other.date); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.version)) { - this.version = data().deepCopy(fields()[4].schema(), other.version); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.type)) { - this.type = data().deepCopy(fields()[5].schema(), other.type); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.hyperParameters)) { - this.hyperParameters = data().deepCopy(fields()[6].schema(), other.hyperParameters); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.hyperParams)) { - this.hyperParams = data().deepCopy(fields()[7].schema(), other.hyperParams); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.trainingMetrics)) { - this.trainingMetrics = data().deepCopy(fields()[8].schema(), other.trainingMetrics); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.onlineMetrics)) { - this.onlineMetrics = data().deepCopy(fields()[9].schema(), other.onlineMetrics); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.mlFeatures)) { - this.mlFeatures = data().deepCopy(fields()[10].schema(), other.mlFeatures); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.tags)) { - this.tags = data().deepCopy(fields()[11].schema(), other.tags); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.deployments)) { - this.deployments = data().deepCopy(fields()[12].schema(), other.deployments); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.trainingJobs)) { - this.trainingJobs = data().deepCopy(fields()[13].schema(), other.trainingJobs); - fieldSetFlags()[13] = true; - } - if (isValidValue(fields()[14], other.downstreamJobs)) { - this.downstreamJobs = data().deepCopy(fields()[14].schema(), other.downstreamJobs); - fieldSetFlags()[14] = true; - } - if (isValidValue(fields()[15], other.groups)) { - this.groups = data().deepCopy(fields()[15].schema(), other.groups); - fieldSetFlags()[15] = true; - } - } - - /** Creates a Builder by copying an existing MLModelProperties instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLModelProperties other) { - super(com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.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.description)) { - this.description = data().deepCopy(fields()[2].schema(), other.description); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.date)) { - this.date = data().deepCopy(fields()[3].schema(), other.date); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.version)) { - this.version = data().deepCopy(fields()[4].schema(), other.version); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.type)) { - this.type = data().deepCopy(fields()[5].schema(), other.type); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.hyperParameters)) { - this.hyperParameters = data().deepCopy(fields()[6].schema(), other.hyperParameters); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.hyperParams)) { - this.hyperParams = data().deepCopy(fields()[7].schema(), other.hyperParams); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.trainingMetrics)) { - this.trainingMetrics = data().deepCopy(fields()[8].schema(), other.trainingMetrics); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.onlineMetrics)) { - this.onlineMetrics = data().deepCopy(fields()[9].schema(), other.onlineMetrics); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.mlFeatures)) { - this.mlFeatures = data().deepCopy(fields()[10].schema(), other.mlFeatures); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.tags)) { - this.tags = data().deepCopy(fields()[11].schema(), other.tags); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.deployments)) { - this.deployments = data().deepCopy(fields()[12].schema(), other.deployments); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.trainingJobs)) { - this.trainingJobs = data().deepCopy(fields()[13].schema(), other.trainingJobs); - fieldSetFlags()[13] = true; - } - if (isValidValue(fields()[14], other.downstreamJobs)) { - this.downstreamJobs = data().deepCopy(fields()[14].schema(), other.downstreamJobs); - fieldSetFlags()[14] = true; - } - if (isValidValue(fields()[15], other.groups)) { - this.groups = data().deepCopy(fields()[15].schema(), other.groups); - fieldSetFlags()[15] = 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.ml.metadata.MLModelProperties.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.ml.metadata.MLModelProperties.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.ml.metadata.MLModelProperties.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.ml.metadata.MLModelProperties.Builder clearExternalUrl() { - externalUrl = null; - fieldSetFlags()[1] = 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.ml.metadata.MLModelProperties.Builder setDescription(java.lang.String value) { - validate(fields()[2], value); - this.description = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'date' field */ - public java.lang.Long getDate() { - return date; - } - - /** Sets the value of the 'date' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setDate(java.lang.Long value) { - validate(fields()[3], value); - this.date = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'date' field has been set */ - public boolean hasDate() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'date' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearDate() { - date = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public com.linkedin.pegasus2avro.common.VersionTag getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setVersion(com.linkedin.pegasus2avro.common.VersionTag value) { - validate(fields()[4], value); - this.version = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearVersion() { - version = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public java.lang.String getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setType(java.lang.String value) { - validate(fields()[5], value); - this.type = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'type' field has been set */ - public boolean hasType() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'type' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearType() { - type = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'hyperParameters' field */ - public java.util.Map getHyperParameters() { - return hyperParameters; - } - - /** Sets the value of the 'hyperParameters' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setHyperParameters(java.util.Map value) { - validate(fields()[6], value); - this.hyperParameters = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'hyperParameters' field has been set */ - public boolean hasHyperParameters() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'hyperParameters' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearHyperParameters() { - hyperParameters = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'hyperParams' field */ - public java.util.List getHyperParams() { - return hyperParams; - } - - /** Sets the value of the 'hyperParams' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setHyperParams(java.util.List value) { - validate(fields()[7], value); - this.hyperParams = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'hyperParams' field has been set */ - public boolean hasHyperParams() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'hyperParams' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearHyperParams() { - hyperParams = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'trainingMetrics' field */ - public java.util.List getTrainingMetrics() { - return trainingMetrics; - } - - /** Sets the value of the 'trainingMetrics' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setTrainingMetrics(java.util.List value) { - validate(fields()[8], value); - this.trainingMetrics = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'trainingMetrics' field has been set */ - public boolean hasTrainingMetrics() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'trainingMetrics' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearTrainingMetrics() { - trainingMetrics = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'onlineMetrics' field */ - public java.util.List getOnlineMetrics() { - return onlineMetrics; - } - - /** Sets the value of the 'onlineMetrics' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setOnlineMetrics(java.util.List value) { - validate(fields()[9], value); - this.onlineMetrics = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'onlineMetrics' field has been set */ - public boolean hasOnlineMetrics() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'onlineMetrics' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearOnlineMetrics() { - onlineMetrics = null; - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'mlFeatures' field */ - public java.util.List getMlFeatures() { - return mlFeatures; - } - - /** Sets the value of the 'mlFeatures' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setMlFeatures(java.util.List value) { - validate(fields()[10], value); - this.mlFeatures = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'mlFeatures' field has been set */ - public boolean hasMlFeatures() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'mlFeatures' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearMlFeatures() { - mlFeatures = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'tags' field */ - public java.util.List getTags() { - return tags; - } - - /** Sets the value of the 'tags' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setTags(java.util.List value) { - validate(fields()[11], value); - this.tags = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'tags' field has been set */ - public boolean hasTags() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'tags' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearTags() { - tags = null; - fieldSetFlags()[11] = false; - return this; - } - - /** Gets the value of the 'deployments' field */ - public java.util.List getDeployments() { - return deployments; - } - - /** Sets the value of the 'deployments' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setDeployments(java.util.List value) { - validate(fields()[12], value); - this.deployments = value; - fieldSetFlags()[12] = true; - return this; - } - - /** Checks whether the 'deployments' field has been set */ - public boolean hasDeployments() { - return fieldSetFlags()[12]; - } - - /** Clears the value of the 'deployments' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearDeployments() { - deployments = null; - fieldSetFlags()[12] = false; - return this; - } - - /** Gets the value of the 'trainingJobs' field */ - public java.util.List getTrainingJobs() { - return trainingJobs; - } - - /** Sets the value of the 'trainingJobs' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setTrainingJobs(java.util.List value) { - validate(fields()[13], value); - this.trainingJobs = value; - fieldSetFlags()[13] = true; - return this; - } - - /** Checks whether the 'trainingJobs' field has been set */ - public boolean hasTrainingJobs() { - return fieldSetFlags()[13]; - } - - /** Clears the value of the 'trainingJobs' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearTrainingJobs() { - trainingJobs = null; - fieldSetFlags()[13] = false; - return this; - } - - /** Gets the value of the 'downstreamJobs' field */ - public java.util.List getDownstreamJobs() { - return downstreamJobs; - } - - /** Sets the value of the 'downstreamJobs' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setDownstreamJobs(java.util.List value) { - validate(fields()[14], value); - this.downstreamJobs = value; - fieldSetFlags()[14] = true; - return this; - } - - /** Checks whether the 'downstreamJobs' field has been set */ - public boolean hasDownstreamJobs() { - return fieldSetFlags()[14]; - } - - /** Clears the value of the 'downstreamJobs' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearDownstreamJobs() { - downstreamJobs = null; - fieldSetFlags()[14] = false; - return this; - } - - /** Gets the value of the 'groups' field */ - public java.util.List getGroups() { - return groups; - } - - /** Sets the value of the 'groups' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder setGroups(java.util.List value) { - validate(fields()[15], value); - this.groups = value; - fieldSetFlags()[15] = true; - return this; - } - - /** Checks whether the 'groups' field has been set */ - public boolean hasGroups() { - return fieldSetFlags()[15]; - } - - /** Clears the value of the 'groups' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLModelProperties.Builder clearGroups() { - groups = null; - fieldSetFlags()[15] = false; - return this; - } - - @Override - public MLModelProperties build() { - try { - MLModelProperties record = new MLModelProperties(); - 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.description = fieldSetFlags()[2] ? this.description : (java.lang.String) defaultValue(fields()[2]); - record.date = fieldSetFlags()[3] ? this.date : (java.lang.Long) defaultValue(fields()[3]); - record.version = fieldSetFlags()[4] ? this.version : (com.linkedin.pegasus2avro.common.VersionTag) defaultValue(fields()[4]); - record.type = fieldSetFlags()[5] ? this.type : (java.lang.String) defaultValue(fields()[5]); - record.hyperParameters = fieldSetFlags()[6] ? this.hyperParameters : (java.util.Map) defaultValue(fields()[6]); - record.hyperParams = fieldSetFlags()[7] ? this.hyperParams : (java.util.List) defaultValue(fields()[7]); - record.trainingMetrics = fieldSetFlags()[8] ? this.trainingMetrics : (java.util.List) defaultValue(fields()[8]); - record.onlineMetrics = fieldSetFlags()[9] ? this.onlineMetrics : (java.util.List) defaultValue(fields()[9]); - record.mlFeatures = fieldSetFlags()[10] ? this.mlFeatures : (java.util.List) defaultValue(fields()[10]); - record.tags = fieldSetFlags()[11] ? this.tags : (java.util.List) defaultValue(fields()[11]); - record.deployments = fieldSetFlags()[12] ? this.deployments : (java.util.List) defaultValue(fields()[12]); - record.trainingJobs = fieldSetFlags()[13] ? this.trainingJobs : (java.util.List) defaultValue(fields()[13]); - record.downstreamJobs = fieldSetFlags()[14] ? this.downstreamJobs : (java.util.List) defaultValue(fields()[14]); - record.groups = fieldSetFlags()[15] ? this.groups : (java.util.List) defaultValue(fields()[15]); - 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/ml/metadata/MLPrimaryKeyProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLPrimaryKeyProperties.java deleted file mode 100644 index cc0aad8866dc7..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/MLPrimaryKeyProperties.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Properties associated with a MLPrimaryKey */ -@org.apache.avro.specific.AvroGenerated -public class MLPrimaryKeyProperties 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\":\"MLPrimaryKeyProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLPrimaryKey\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLPrimaryKey\",\"default\":null},{\"name\":\"dataType\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"MLFeatureDataType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"MLFeature Data Type\",\"symbols\":[\"USELESS\",\"NOMINAL\",\"ORDINAL\",\"BINARY\",\"COUNT\",\"TIME\",\"INTERVAL\",\"IMAGE\",\"VIDEO\",\"AUDIO\",\"TEXT\",\"MAP\",\"SEQUENCE\",\"SET\",\"CONTINUOUS\",\"BYTE\",\"UNKNOWN\"],\"symbolDocs\":{\"AUDIO\":\"Audio Data\",\"BINARY\":\"Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc\",\"BYTE\":\"Bytes data are binary-encoded values that can represent complex objects.\",\"CONTINUOUS\":\"Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.\",\"COUNT\":\"Count data is discrete whole number data - no negative numbers here.\\nCount data often has many small values, such as zero and one.\",\"IMAGE\":\"Image Data\",\"INTERVAL\":\"Interval data has equal spaces between the numbers and does not represent a temporal pattern.\\nExamples include percentages, temperatures, and income.\",\"MAP\":\"Mapping Data Type ex: dict, map\",\"NOMINAL\":\"Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.\",\"ORDINAL\":\"Ordinal data are discrete integers that can be ranked or sorted.\\nFor example, the distance between first and second may not be the same as the distance between second and third.\",\"SEQUENCE\":\"Sequence Data Type ex: list, tuple, range\",\"SET\":\"Set Data Type ex: set, frozenset\",\"TEXT\":\"Text Data\",\"TIME\":\"Time data is a cyclical, repeating continuous form of data.\\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.\",\"UNKNOWN\":\"Unknown data are data that we don't know the type for.\",\"USELESS\":\"Useless data is unique, discrete data with no potential relationship with the outcome variable.\\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.\",\"VIDEO\":\"Video Data\"}}],\"doc\":\"Data Type of the MLPrimaryKey\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLPrimaryKey\",\"default\":null},{\"name\":\"sources\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Source of the MLPrimaryKey\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlPrimaryKeyProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Documentation of the MLPrimaryKey */ - @Deprecated public java.lang.String description; - /** Data Type of the MLPrimaryKey */ - @Deprecated public com.linkedin.pegasus2avro.common.MLFeatureDataType dataType; - /** Version of the MLPrimaryKey */ - @Deprecated public com.linkedin.pegasus2avro.common.VersionTag version; - /** Source of the MLPrimaryKey */ - @Deprecated public java.util.List sources; - - /** - * 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 MLPrimaryKeyProperties() {} - - /** - * All-args constructor. - */ - public MLPrimaryKeyProperties(java.lang.String description, com.linkedin.pegasus2avro.common.MLFeatureDataType dataType, com.linkedin.pegasus2avro.common.VersionTag version, java.util.List sources) { - this.description = description; - this.dataType = dataType; - this.version = version; - this.sources = sources; - } - - 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 description; - case 1: return dataType; - case 2: return version; - case 3: return sources; - 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: description = (java.lang.String)value$; break; - case 1: dataType = (com.linkedin.pegasus2avro.common.MLFeatureDataType)value$; break; - case 2: version = (com.linkedin.pegasus2avro.common.VersionTag)value$; break; - case 3: sources = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'description' field. - * Documentation of the MLPrimaryKey */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the MLPrimaryKey * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'dataType' field. - * Data Type of the MLPrimaryKey */ - public com.linkedin.pegasus2avro.common.MLFeatureDataType getDataType() { - return dataType; - } - - /** - * Sets the value of the 'dataType' field. - * Data Type of the MLPrimaryKey * @param value the value to set. - */ - public void setDataType(com.linkedin.pegasus2avro.common.MLFeatureDataType value) { - this.dataType = value; - } - - /** - * Gets the value of the 'version' field. - * Version of the MLPrimaryKey */ - public com.linkedin.pegasus2avro.common.VersionTag getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * Version of the MLPrimaryKey * @param value the value to set. - */ - public void setVersion(com.linkedin.pegasus2avro.common.VersionTag value) { - this.version = value; - } - - /** - * Gets the value of the 'sources' field. - * Source of the MLPrimaryKey */ - public java.util.List getSources() { - return sources; - } - - /** - * Sets the value of the 'sources' field. - * Source of the MLPrimaryKey * @param value the value to set. - */ - public void setSources(java.util.List value) { - this.sources = value; - } - - /** Creates a new MLPrimaryKeyProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder(); - } - - /** Creates a new MLPrimaryKeyProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder(other); - } - - /** Creates a new MLPrimaryKeyProperties RecordBuilder by copying an existing MLPrimaryKeyProperties instance */ - public static com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties other) { - return new com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder(other); - } - - /** - * RecordBuilder for MLPrimaryKeyProperties instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String description; - private com.linkedin.pegasus2avro.common.MLFeatureDataType dataType; - private com.linkedin.pegasus2avro.common.VersionTag version; - private java.util.List sources; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder other) { - super(other); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.dataType)) { - this.dataType = data().deepCopy(fields()[1].schema(), other.dataType); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.version)) { - this.version = data().deepCopy(fields()[2].schema(), other.version); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.sources)) { - this.sources = data().deepCopy(fields()[3].schema(), other.sources); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing MLPrimaryKeyProperties instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties other) { - super(com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.SCHEMA$); - if (isValidValue(fields()[0], other.description)) { - this.description = data().deepCopy(fields()[0].schema(), other.description); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.dataType)) { - this.dataType = data().deepCopy(fields()[1].schema(), other.dataType); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.version)) { - this.version = data().deepCopy(fields()[2].schema(), other.version); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.sources)) { - this.sources = data().deepCopy(fields()[3].schema(), other.sources); - fieldSetFlags()[3] = true; - } - } - - /** 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.ml.metadata.MLPrimaryKeyProperties.Builder setDescription(java.lang.String value) { - validate(fields()[0], value); - this.description = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'dataType' field */ - public com.linkedin.pegasus2avro.common.MLFeatureDataType getDataType() { - return dataType; - } - - /** Sets the value of the 'dataType' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder setDataType(com.linkedin.pegasus2avro.common.MLFeatureDataType value) { - validate(fields()[1], value); - this.dataType = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'dataType' field has been set */ - public boolean hasDataType() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'dataType' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder clearDataType() { - dataType = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public com.linkedin.pegasus2avro.common.VersionTag getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder setVersion(com.linkedin.pegasus2avro.common.VersionTag value) { - validate(fields()[2], value); - this.version = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder clearVersion() { - version = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'sources' field */ - public java.util.List getSources() { - return sources; - } - - /** Sets the value of the 'sources' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder setSources(java.util.List value) { - validate(fields()[3], value); - this.sources = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'sources' field has been set */ - public boolean hasSources() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'sources' field */ - public com.linkedin.pegasus2avro.ml.metadata.MLPrimaryKeyProperties.Builder clearSources() { - sources = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public MLPrimaryKeyProperties build() { - try { - MLPrimaryKeyProperties record = new MLPrimaryKeyProperties(); - record.description = fieldSetFlags()[0] ? this.description : (java.lang.String) defaultValue(fields()[0]); - record.dataType = fieldSetFlags()[1] ? this.dataType : (com.linkedin.pegasus2avro.common.MLFeatureDataType) defaultValue(fields()[1]); - record.version = fieldSetFlags()[2] ? this.version : (com.linkedin.pegasus2avro.common.VersionTag) defaultValue(fields()[2]); - record.sources = fieldSetFlags()[3] ? this.sources : (java.util.List) 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/ml/metadata/Metrics.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/Metrics.java deleted file mode 100644 index 22a78911def51..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/Metrics.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Metrics to be featured for the MLModel. */ -@org.apache.avro.specific.AvroGenerated -public class Metrics 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\":\"Metrics\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Metrics to be featured for the MLModel.\",\"fields\":[{\"name\":\"performanceMeasures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Measures of MLModel performance\",\"default\":null},{\"name\":\"decisionThreshold\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Decision Thresholds used (if any)?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelMetrics\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Measures of MLModel performance */ - @Deprecated public java.util.List performanceMeasures; - /** Decision Thresholds used (if any)? */ - @Deprecated public java.util.List decisionThreshold; - - /** - * 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 Metrics() {} - - /** - * All-args constructor. - */ - public Metrics(java.util.List performanceMeasures, java.util.List decisionThreshold) { - this.performanceMeasures = performanceMeasures; - this.decisionThreshold = decisionThreshold; - } - - 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 performanceMeasures; - case 1: return decisionThreshold; - 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: performanceMeasures = (java.util.List)value$; break; - case 1: decisionThreshold = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'performanceMeasures' field. - * Measures of MLModel performance */ - public java.util.List getPerformanceMeasures() { - return performanceMeasures; - } - - /** - * Sets the value of the 'performanceMeasures' field. - * Measures of MLModel performance * @param value the value to set. - */ - public void setPerformanceMeasures(java.util.List value) { - this.performanceMeasures = value; - } - - /** - * Gets the value of the 'decisionThreshold' field. - * Decision Thresholds used (if any)? */ - public java.util.List getDecisionThreshold() { - return decisionThreshold; - } - - /** - * Sets the value of the 'decisionThreshold' field. - * Decision Thresholds used (if any)? * @param value the value to set. - */ - public void setDecisionThreshold(java.util.List value) { - this.decisionThreshold = value; - } - - /** Creates a new Metrics RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.Metrics.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.Metrics.Builder(); - } - - /** Creates a new Metrics RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.Metrics.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.Metrics.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.Metrics.Builder(other); - } - - /** Creates a new Metrics RecordBuilder by copying an existing Metrics instance */ - public static com.linkedin.pegasus2avro.ml.metadata.Metrics.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.Metrics other) { - return new com.linkedin.pegasus2avro.ml.metadata.Metrics.Builder(other); - } - - /** - * RecordBuilder for Metrics instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List performanceMeasures; - private java.util.List decisionThreshold; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.Metrics.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.Metrics.Builder other) { - super(other); - if (isValidValue(fields()[0], other.performanceMeasures)) { - this.performanceMeasures = data().deepCopy(fields()[0].schema(), other.performanceMeasures); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.decisionThreshold)) { - this.decisionThreshold = data().deepCopy(fields()[1].schema(), other.decisionThreshold); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing Metrics instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.Metrics other) { - super(com.linkedin.pegasus2avro.ml.metadata.Metrics.SCHEMA$); - if (isValidValue(fields()[0], other.performanceMeasures)) { - this.performanceMeasures = data().deepCopy(fields()[0].schema(), other.performanceMeasures); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.decisionThreshold)) { - this.decisionThreshold = data().deepCopy(fields()[1].schema(), other.decisionThreshold); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'performanceMeasures' field */ - public java.util.List getPerformanceMeasures() { - return performanceMeasures; - } - - /** Sets the value of the 'performanceMeasures' field */ - public com.linkedin.pegasus2avro.ml.metadata.Metrics.Builder setPerformanceMeasures(java.util.List value) { - validate(fields()[0], value); - this.performanceMeasures = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'performanceMeasures' field has been set */ - public boolean hasPerformanceMeasures() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'performanceMeasures' field */ - public com.linkedin.pegasus2avro.ml.metadata.Metrics.Builder clearPerformanceMeasures() { - performanceMeasures = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'decisionThreshold' field */ - public java.util.List getDecisionThreshold() { - return decisionThreshold; - } - - /** Sets the value of the 'decisionThreshold' field */ - public com.linkedin.pegasus2avro.ml.metadata.Metrics.Builder setDecisionThreshold(java.util.List value) { - validate(fields()[1], value); - this.decisionThreshold = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'decisionThreshold' field has been set */ - public boolean hasDecisionThreshold() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'decisionThreshold' field */ - public com.linkedin.pegasus2avro.ml.metadata.Metrics.Builder clearDecisionThreshold() { - decisionThreshold = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public Metrics build() { - try { - Metrics record = new Metrics(); - record.performanceMeasures = fieldSetFlags()[0] ? this.performanceMeasures : (java.util.List) defaultValue(fields()[0]); - record.decisionThreshold = fieldSetFlags()[1] ? this.decisionThreshold : (java.util.List) 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/ml/metadata/QuantitativeAnalyses.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/QuantitativeAnalyses.java deleted file mode 100644 index 53b418053b87b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/QuantitativeAnalyses.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Quantitative analyses should be disaggregated, that is, broken down by the chosen factors. Quantitative analyses should provide the results of evaluating the MLModel according to the chosen metrics, providing confidence interval values when possible. */ -@org.apache.avro.specific.AvroGenerated -public class QuantitativeAnalyses 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\":\"QuantitativeAnalyses\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Quantitative analyses should be disaggregated, that is, broken down by the chosen factors. Quantitative analyses should provide the results of evaluating the MLModel according to the chosen metrics, providing confidence interval values when possible.\",\"fields\":[{\"name\":\"unitaryResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to each factor\",\"default\":null},{\"name\":\"intersectionalResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelQuantitativeAnalyses\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Link to a dashboard with results showing how the MLModel performed with respect to each factor */ - @Deprecated public java.lang.String unitaryResults; - /** Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors? */ - @Deprecated public java.lang.String intersectionalResults; - - /** - * 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 QuantitativeAnalyses() {} - - /** - * All-args constructor. - */ - public QuantitativeAnalyses(java.lang.String unitaryResults, java.lang.String intersectionalResults) { - this.unitaryResults = unitaryResults; - this.intersectionalResults = intersectionalResults; - } - - 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 unitaryResults; - case 1: return intersectionalResults; - 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: unitaryResults = (java.lang.String)value$; break; - case 1: intersectionalResults = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'unitaryResults' field. - * Link to a dashboard with results showing how the MLModel performed with respect to each factor */ - public java.lang.String getUnitaryResults() { - return unitaryResults; - } - - /** - * Sets the value of the 'unitaryResults' field. - * Link to a dashboard with results showing how the MLModel performed with respect to each factor * @param value the value to set. - */ - public void setUnitaryResults(java.lang.String value) { - this.unitaryResults = value; - } - - /** - * Gets the value of the 'intersectionalResults' field. - * Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors? */ - public java.lang.String getIntersectionalResults() { - return intersectionalResults; - } - - /** - * Sets the value of the 'intersectionalResults' field. - * Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors? * @param value the value to set. - */ - public void setIntersectionalResults(java.lang.String value) { - this.intersectionalResults = value; - } - - /** Creates a new QuantitativeAnalyses RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.Builder(); - } - - /** Creates a new QuantitativeAnalyses RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.Builder(other); - } - - /** Creates a new QuantitativeAnalyses RecordBuilder by copying an existing QuantitativeAnalyses instance */ - public static com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses other) { - return new com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.Builder(other); - } - - /** - * RecordBuilder for QuantitativeAnalyses instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String unitaryResults; - private java.lang.String intersectionalResults; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.Builder other) { - super(other); - if (isValidValue(fields()[0], other.unitaryResults)) { - this.unitaryResults = data().deepCopy(fields()[0].schema(), other.unitaryResults); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.intersectionalResults)) { - this.intersectionalResults = data().deepCopy(fields()[1].schema(), other.intersectionalResults); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing QuantitativeAnalyses instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses other) { - super(com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.SCHEMA$); - if (isValidValue(fields()[0], other.unitaryResults)) { - this.unitaryResults = data().deepCopy(fields()[0].schema(), other.unitaryResults); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.intersectionalResults)) { - this.intersectionalResults = data().deepCopy(fields()[1].schema(), other.intersectionalResults); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'unitaryResults' field */ - public java.lang.String getUnitaryResults() { - return unitaryResults; - } - - /** Sets the value of the 'unitaryResults' field */ - public com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.Builder setUnitaryResults(java.lang.String value) { - validate(fields()[0], value); - this.unitaryResults = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'unitaryResults' field has been set */ - public boolean hasUnitaryResults() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'unitaryResults' field */ - public com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.Builder clearUnitaryResults() { - unitaryResults = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'intersectionalResults' field */ - public java.lang.String getIntersectionalResults() { - return intersectionalResults; - } - - /** Sets the value of the 'intersectionalResults' field */ - public com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.Builder setIntersectionalResults(java.lang.String value) { - validate(fields()[1], value); - this.intersectionalResults = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'intersectionalResults' field has been set */ - public boolean hasIntersectionalResults() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'intersectionalResults' field */ - public com.linkedin.pegasus2avro.ml.metadata.QuantitativeAnalyses.Builder clearIntersectionalResults() { - intersectionalResults = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public QuantitativeAnalyses build() { - try { - QuantitativeAnalyses record = new QuantitativeAnalyses(); - record.unitaryResults = fieldSetFlags()[0] ? this.unitaryResults : (java.lang.String) defaultValue(fields()[0]); - record.intersectionalResults = fieldSetFlags()[1] ? this.intersectionalResults : (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/ml/metadata/SourceCode.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/SourceCode.java deleted file mode 100644 index a410e6fad7f7b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/SourceCode.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Source Code */ -@org.apache.avro.specific.AvroGenerated -public class SourceCode 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\":\"SourceCode\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Source Code\",\"fields\":[{\"name\":\"sourceCode\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SourceCodeUrl\",\"doc\":\"Source Code Url Entity\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"SourceCodeUrlType\",\"symbols\":[\"ML_MODEL_SOURCE_CODE\",\"TRAINING_PIPELINE_SOURCE_CODE\",\"EVALUATION_PIPELINE_SOURCE_CODE\"]},\"doc\":\"Source Code Url Types\"},{\"name\":\"sourceCodeUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source Code Url\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}]}},\"doc\":\"Source Code along with types\"}],\"Aspect\":{\"name\":\"sourceCode\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Source Code along with types */ - @Deprecated public java.util.List sourceCode; - - /** - * 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 SourceCode() {} - - /** - * All-args constructor. - */ - public SourceCode(java.util.List sourceCode) { - this.sourceCode = sourceCode; - } - - 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 sourceCode; - 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: sourceCode = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'sourceCode' field. - * Source Code along with types */ - public java.util.List getSourceCode() { - return sourceCode; - } - - /** - * Sets the value of the 'sourceCode' field. - * Source Code along with types * @param value the value to set. - */ - public void setSourceCode(java.util.List value) { - this.sourceCode = value; - } - - /** Creates a new SourceCode RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.SourceCode.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.SourceCode.Builder(); - } - - /** Creates a new SourceCode RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.SourceCode.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.SourceCode.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.SourceCode.Builder(other); - } - - /** Creates a new SourceCode RecordBuilder by copying an existing SourceCode instance */ - public static com.linkedin.pegasus2avro.ml.metadata.SourceCode.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.SourceCode other) { - return new com.linkedin.pegasus2avro.ml.metadata.SourceCode.Builder(other); - } - - /** - * RecordBuilder for SourceCode instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List sourceCode; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.SourceCode.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.SourceCode.Builder other) { - super(other); - if (isValidValue(fields()[0], other.sourceCode)) { - this.sourceCode = data().deepCopy(fields()[0].schema(), other.sourceCode); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing SourceCode instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.SourceCode other) { - super(com.linkedin.pegasus2avro.ml.metadata.SourceCode.SCHEMA$); - if (isValidValue(fields()[0], other.sourceCode)) { - this.sourceCode = data().deepCopy(fields()[0].schema(), other.sourceCode); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'sourceCode' field */ - public java.util.List getSourceCode() { - return sourceCode; - } - - /** Sets the value of the 'sourceCode' field */ - public com.linkedin.pegasus2avro.ml.metadata.SourceCode.Builder setSourceCode(java.util.List value) { - validate(fields()[0], value); - this.sourceCode = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'sourceCode' field has been set */ - public boolean hasSourceCode() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'sourceCode' field */ - public com.linkedin.pegasus2avro.ml.metadata.SourceCode.Builder clearSourceCode() { - sourceCode = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public SourceCode build() { - try { - SourceCode record = new SourceCode(); - record.sourceCode = fieldSetFlags()[0] ? this.sourceCode : (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/ml/metadata/SourceCodeUrl.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/SourceCodeUrl.java deleted file mode 100644 index 8d1c2562cc4cf..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/SourceCodeUrl.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Source Code Url Entity */ -@org.apache.avro.specific.AvroGenerated -public class SourceCodeUrl 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\":\"SourceCodeUrl\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Source Code Url Entity\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"SourceCodeUrlType\",\"symbols\":[\"ML_MODEL_SOURCE_CODE\",\"TRAINING_PIPELINE_SOURCE_CODE\",\"EVALUATION_PIPELINE_SOURCE_CODE\"]},\"doc\":\"Source Code Url Types\"},{\"name\":\"sourceCodeUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source Code Url\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Source Code Url Types */ - @Deprecated public com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrlType type; - /** Source Code Url */ - @Deprecated public java.lang.String sourceCodeUrl; - - /** - * 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 SourceCodeUrl() {} - - /** - * All-args constructor. - */ - public SourceCodeUrl(com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrlType type, java.lang.String sourceCodeUrl) { - this.type = type; - this.sourceCodeUrl = sourceCodeUrl; - } - - 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 sourceCodeUrl; - 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.ml.metadata.SourceCodeUrlType)value$; break; - case 1: sourceCodeUrl = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * Source Code Url Types */ - public com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrlType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Source Code Url Types * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrlType value) { - this.type = value; - } - - /** - * Gets the value of the 'sourceCodeUrl' field. - * Source Code Url */ - public java.lang.String getSourceCodeUrl() { - return sourceCodeUrl; - } - - /** - * Sets the value of the 'sourceCodeUrl' field. - * Source Code Url * @param value the value to set. - */ - public void setSourceCodeUrl(java.lang.String value) { - this.sourceCodeUrl = value; - } - - /** Creates a new SourceCodeUrl RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.Builder(); - } - - /** Creates a new SourceCodeUrl RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.Builder(other); - } - - /** Creates a new SourceCodeUrl RecordBuilder by copying an existing SourceCodeUrl instance */ - public static com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl other) { - return new com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.Builder(other); - } - - /** - * RecordBuilder for SourceCodeUrl instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrlType type; - private java.lang.String sourceCodeUrl; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.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.sourceCodeUrl)) { - this.sourceCodeUrl = data().deepCopy(fields()[1].schema(), other.sourceCodeUrl); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing SourceCodeUrl instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl other) { - super(com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.sourceCodeUrl)) { - this.sourceCodeUrl = data().deepCopy(fields()[1].schema(), other.sourceCodeUrl); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrlType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.Builder setType(com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrlType 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.ml.metadata.SourceCodeUrl.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'sourceCodeUrl' field */ - public java.lang.String getSourceCodeUrl() { - return sourceCodeUrl; - } - - /** Sets the value of the 'sourceCodeUrl' field */ - public com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.Builder setSourceCodeUrl(java.lang.String value) { - validate(fields()[1], value); - this.sourceCodeUrl = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'sourceCodeUrl' field has been set */ - public boolean hasSourceCodeUrl() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'sourceCodeUrl' field */ - public com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrl.Builder clearSourceCodeUrl() { - sourceCodeUrl = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public SourceCodeUrl build() { - try { - SourceCodeUrl record = new SourceCodeUrl(); - record.type = fieldSetFlags()[0] ? this.type : (com.linkedin.pegasus2avro.ml.metadata.SourceCodeUrlType) defaultValue(fields()[0]); - record.sourceCodeUrl = fieldSetFlags()[1] ? this.sourceCodeUrl : (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/ml/metadata/SourceCodeUrlType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/SourceCodeUrlType.java deleted file mode 100644 index e490775578679..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/SourceCodeUrlType.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum SourceCodeUrlType { - ML_MODEL_SOURCE_CODE, TRAINING_PIPELINE_SOURCE_CODE, EVALUATION_PIPELINE_SOURCE_CODE ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"SourceCodeUrlType\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"symbols\":[\"ML_MODEL_SOURCE_CODE\",\"TRAINING_PIPELINE_SOURCE_CODE\",\"EVALUATION_PIPELINE_SOURCE_CODE\"]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/TrainingData.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/TrainingData.java deleted file mode 100644 index 654b007b03680..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/ml/metadata/TrainingData.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.ml.metadata; -@SuppressWarnings("all") -/** Ideally, the MLModel card would contain as much information about the training data as the evaluation data. However, there might be cases where it is not feasible to provide this level of detailed information about the training data. For example, the data may be proprietary, or require a non-disclosure agreement. In these cases, we advocate for basic details about the distributions over groups in the data, as well as any other details that could inform stakeholders on the kinds of biases the model may have encoded. */ -@org.apache.avro.specific.AvroGenerated -public class TrainingData 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\":\"TrainingData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Ideally, the MLModel card would contain as much information about the training data as the evaluation data. However, there might be cases where it is not feasible to provide this level of detailed information about the training data. For example, the data may be proprietary, or require a non-disclosure agreement. In these cases, we advocate for basic details about the distributions over groups in the data, as well as any other details that could inform stakeholders on the kinds of biases the model may have encoded.\",\"fields\":[{\"name\":\"trainingData\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BaseData\",\"doc\":\"BaseData record\",\"fields\":[{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"What dataset were used in the MLModel?\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"motivation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Why was this dataset chosen?\",\"default\":null},{\"name\":\"preProcessing\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)?\",\"default\":null}]}},\"doc\":\"Details on the dataset(s) used for training the MLModel\"}],\"Aspect\":{\"name\":\"mlModelTrainingData\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Details on the dataset(s) used for training the MLModel */ - @Deprecated public java.util.List trainingData; - - /** - * 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 TrainingData() {} - - /** - * All-args constructor. - */ - public TrainingData(java.util.List trainingData) { - this.trainingData = trainingData; - } - - 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 trainingData; - 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: trainingData = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'trainingData' field. - * Details on the dataset(s) used for training the MLModel */ - public java.util.List getTrainingData() { - return trainingData; - } - - /** - * Sets the value of the 'trainingData' field. - * Details on the dataset(s) used for training the MLModel * @param value the value to set. - */ - public void setTrainingData(java.util.List value) { - this.trainingData = value; - } - - /** Creates a new TrainingData RecordBuilder */ - public static com.linkedin.pegasus2avro.ml.metadata.TrainingData.Builder newBuilder() { - return new com.linkedin.pegasus2avro.ml.metadata.TrainingData.Builder(); - } - - /** Creates a new TrainingData RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.ml.metadata.TrainingData.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.TrainingData.Builder other) { - return new com.linkedin.pegasus2avro.ml.metadata.TrainingData.Builder(other); - } - - /** Creates a new TrainingData RecordBuilder by copying an existing TrainingData instance */ - public static com.linkedin.pegasus2avro.ml.metadata.TrainingData.Builder newBuilder(com.linkedin.pegasus2avro.ml.metadata.TrainingData other) { - return new com.linkedin.pegasus2avro.ml.metadata.TrainingData.Builder(other); - } - - /** - * RecordBuilder for TrainingData instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List trainingData; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.ml.metadata.TrainingData.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.TrainingData.Builder other) { - super(other); - if (isValidValue(fields()[0], other.trainingData)) { - this.trainingData = data().deepCopy(fields()[0].schema(), other.trainingData); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing TrainingData instance */ - private Builder(com.linkedin.pegasus2avro.ml.metadata.TrainingData other) { - super(com.linkedin.pegasus2avro.ml.metadata.TrainingData.SCHEMA$); - if (isValidValue(fields()[0], other.trainingData)) { - this.trainingData = data().deepCopy(fields()[0].schema(), other.trainingData); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'trainingData' field */ - public java.util.List getTrainingData() { - return trainingData; - } - - /** Sets the value of the 'trainingData' field */ - public com.linkedin.pegasus2avro.ml.metadata.TrainingData.Builder setTrainingData(java.util.List value) { - validate(fields()[0], value); - this.trainingData = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'trainingData' field has been set */ - public boolean hasTrainingData() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'trainingData' field */ - public com.linkedin.pegasus2avro.ml.metadata.TrainingData.Builder clearTrainingData() { - trainingData = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public TrainingData build() { - try { - TrainingData record = new TrainingData(); - record.trainingData = fieldSetFlags()[0] ? this.trainingData : (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/mxe/DataHubUpgradeHistoryEvent.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/DataHubUpgradeHistoryEvent.java deleted file mode 100644 index 7380083da50b5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/DataHubUpgradeHistoryEvent.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -/** Kafka event for recording a historical version upgrade. Used for backwards incompatible changes to infrastructure that requires infrastructure level blocking changes. */ -@org.apache.avro.specific.AvroGenerated -public class DataHubUpgradeHistoryEvent 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\":\"DataHubUpgradeHistoryEvent\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Kafka event for recording a historical version upgrade. Used for backwards incompatible changes to infrastructure that requires infrastructure level blocking changes.\",\"fields\":[{\"name\":\"version\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Version of the upgrade\"},{\"name\":\"systemMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SystemMetadata\",\"doc\":\"Metadata associated with each metadata change that is processed by the system\",\"fields\":[{\"name\":\"lastObserved\",\"type\":[\"long\",\"null\"],\"doc\":\"The timestamp the metadata was observed at\",\"default\":0},{\"name\":\"runId\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"],\"doc\":\"The run id that produced the metadata. Populated in case of batch-ingestion.\",\"default\":\"no-run-id-provided\"},{\"name\":\"registryName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry name that was used to process this event\",\"default\":null},{\"name\":\"registryVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry version that was used to process this event\",\"default\":null},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Additional properties\",\"default\":null}]}],\"doc\":\"A string->string map of custom properties that one might want to attach to an event\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Version of the upgrade */ - @Deprecated public java.lang.String version; - /** A string->string map of custom properties that one might want to attach to an event */ - @Deprecated public com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata; - - /** - * 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 DataHubUpgradeHistoryEvent() {} - - /** - * All-args constructor. - */ - public DataHubUpgradeHistoryEvent(java.lang.String version, com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata) { - this.version = version; - this.systemMetadata = systemMetadata; - } - - 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 version; - case 1: return systemMetadata; - 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: version = (java.lang.String)value$; break; - case 1: systemMetadata = (com.linkedin.pegasus2avro.mxe.SystemMetadata)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'version' field. - * Version of the upgrade */ - public java.lang.String getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * Version of the upgrade * @param value the value to set. - */ - public void setVersion(java.lang.String value) { - this.version = value; - } - - /** - * Gets the value of the 'systemMetadata' field. - * A string->string map of custom properties that one might want to attach to an event */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getSystemMetadata() { - return systemMetadata; - } - - /** - * Sets the value of the 'systemMetadata' field. - * A string->string map of custom properties that one might want to attach to an event * @param value the value to set. - */ - public void setSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - this.systemMetadata = value; - } - - /** Creates a new DataHubUpgradeHistoryEvent RecordBuilder */ - public static com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.Builder newBuilder() { - return new com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.Builder(); - } - - /** Creates a new DataHubUpgradeHistoryEvent RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.Builder newBuilder(com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.Builder other) { - return new com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.Builder(other); - } - - /** Creates a new DataHubUpgradeHistoryEvent RecordBuilder by copying an existing DataHubUpgradeHistoryEvent instance */ - public static com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.Builder newBuilder(com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent other) { - return new com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.Builder(other); - } - - /** - * RecordBuilder for DataHubUpgradeHistoryEvent instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String version; - private com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.Builder other) { - super(other); - if (isValidValue(fields()[0], other.version)) { - this.version = data().deepCopy(fields()[0].schema(), other.version); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.systemMetadata)) { - this.systemMetadata = data().deepCopy(fields()[1].schema(), other.systemMetadata); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataHubUpgradeHistoryEvent instance */ - private Builder(com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent other) { - super(com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.SCHEMA$); - if (isValidValue(fields()[0], other.version)) { - this.version = data().deepCopy(fields()[0].schema(), other.version); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.systemMetadata)) { - this.systemMetadata = data().deepCopy(fields()[1].schema(), other.systemMetadata); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'version' field */ - public java.lang.String getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.Builder setVersion(java.lang.String value) { - validate(fields()[0], value); - this.version = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.Builder clearVersion() { - version = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getSystemMetadata() { - return systemMetadata; - } - - /** Sets the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.Builder setSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - validate(fields()[1], value); - this.systemMetadata = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'systemMetadata' field has been set */ - public boolean hasSystemMetadata() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.DataHubUpgradeHistoryEvent.Builder clearSystemMetadata() { - systemMetadata = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataHubUpgradeHistoryEvent build() { - try { - DataHubUpgradeHistoryEvent record = new DataHubUpgradeHistoryEvent(); - record.version = fieldSetFlags()[0] ? this.version : (java.lang.String) defaultValue(fields()[0]); - record.systemMetadata = fieldSetFlags()[1] ? this.systemMetadata : (com.linkedin.pegasus2avro.mxe.SystemMetadata) 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/mxe/FailedMetadataChangeEvent.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/FailedMetadataChangeEvent.java deleted file mode 100644 index 1664359087f32..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/FailedMetadataChangeEvent.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -/** Kafka event for capturing a failure to process a specific MetadataChangeEvent. */ -@org.apache.avro.specific.AvroGenerated -public class FailedMetadataChangeEvent 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\":\"FailedMetadataChangeEvent\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Kafka event for capturing a failure to process a specific MetadataChangeEvent.\",\"fields\":[{\"name\":\"auditHeader\",\"type\":[\"null\",{\"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\"}]}],\"doc\":\"Kafka audit header. See go/kafkaauditheader for more info.\",\"default\":null},{\"name\":\"metadataChangeEvent\",\"type\":{\"type\":\"record\",\"name\":\"MetadataChangeEvent\",\"doc\":\"Kafka event for proposing a metadata change for an entity. A corresponding MetadataAuditEvent is emitted when the change is accepted and committed, otherwise a FailedMetadataChangeEvent will be emitted instead.\",\"fields\":[{\"name\":\"auditHeader\",\"type\":[\"null\",\"com.linkedin.events.KafkaAuditHeader\"],\"doc\":\"Kafka audit header. See go/kafkaauditheader for more info.\",\"default\":null},{\"name\":\"proposedSnapshot\",\"type\":[{\"type\":\"record\",\"name\":\"ChartSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Chart entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.ChartUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"ChartKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Chart\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"chartId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234'\"}],\"Aspect\":{\"name\":\"chartKey\"}},{\"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\"}],\"d","oc\":\"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\"}},{\"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\"}},{\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided ","by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the chart. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"chartKey\",\"name\":\"chart\"}},{\"type\":\"record\",\"name\":\"CorpGroupSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific CorpGroup entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpGroupUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"CorpGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpGroup\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub.\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}}],\"Aspect\":{\"name\":\"corpGroupKey\"}},{\"type\":\"record\",\"name\":\"CorpGroupInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Information about a Corp Group ingested from a third party source\",\"fields\":[{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The name of the group.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email of this group\",\"default\":null},{\"name\":\"admins\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"owners of this group\\nDeprecated! Replaced by Ownership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"OwnedBy\"}},\"deprecated\":true},{\"name\":\"members\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of ldap urn in this group.\\nDeprecated! Replaced by GroupMembership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of groups in this group.\\nDeprecated! This field is unused.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},","{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A description of the group.\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack channel for the group\",\"default\":null},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Created Audit stamp\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdTime\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpGroupUrn\"],\"name\":\"corpGroupInfo\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the LdapUser. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"corpGroupKey\",\"name\":\"corpGroup\"}},{\"type\":\"record\",\"name\":\"CorpUserSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific CorpUser entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpuserUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"CorpUserKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpUser\",\"fields\":[{\"name\":\"username\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the AD/LDAP user.\",\"Searchable\":{\"boostScore\":2.0,\"enableAutocomplete\":true,\"fieldName\":\"ldap\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"corpUserKey\"}},{\"type\":\"record\",\"name\":\"CorpUserInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information\",\"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\":\"active\",\"type\":\"boolean\",\"doc\":\"Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":2.0}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"displayName of this user , e.g. Hang Zhang(DataHQ)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email address of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"title of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"managerUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"direct manager of this user\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"corpuser\"],\"name\":\"ReportsTo\"},\"Searchable\":{\"fieldName\":\"managerLdap\",\"fieldType\":\"URN\",\"queryByDefault\":true},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpuserUrn\"}},{\"name\":\"departmentId\",\"type\":[\"null\",\"long\"],\"doc\":\"department id this user belong to\",\"default\":null},{\"name\":\"departmentName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"department name this user belong to\",\"default\":null},{\"name\":\"firstName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"first name of this user\",\"default\":null},{\"name\":\"lastName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"last name of this user\",\"default\":null},{\"name\":\"fullName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Common name of this user, format is firstName + lastName (split by a whitespace)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"countryCode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"two uppercase letters country code. e.g. US\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserEditableInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information that can be edited from UI\",\"fields\":[{\"name\":\"aboutMe\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"About me section of the user\",\"default\":null},{\"name\":\"teams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Teams that the user belongs to e.g. Metadata\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"skills\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Skills that the user possesses e.g. Machine Learning\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"pictureLink\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A URL which points to a picture which user wants to set as a profile photo\",\"default\":\"https://raw.githubusercontent.com/datahub-project/datahub/master/datahub-web-react/src/images/default_avatar.png\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native display name\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native Title, e.g. 'Software Engineer'\",\"default\":null},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack handle for the user\",\"default\":null},{\"name\":\"phone\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Phone number to contact the user\",\"default\":null},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Email address to contact the user\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserEditableInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserStatus\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"The status of the user, e.g. provisioned, active, suspended, etc.\",\"fields\":[{\"name\":\"status\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit stamp containing who last modified the status and when.\"}],\"Aspect\":{\"name\":\"corpUserStatus\"}},{\"type\":\"record\",\"name\":\"GroupMembership\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Carries information about the CorpGroups a user is in.\",\"fields\":[{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsMemberOfGroup\"}}}],\"Aspect\":{\"name\":\"groupMembership\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the CorpUser. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"corpUserKey\",\"name\":\"corpuser\"}},{\"type\":\"record\",\"name\":\"DashboardSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Dashboard entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DashboardUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DashboardKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dashboard\",\"fields\":[{\"name\":\"dashboardTool\",\"type\"",":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"dashboardId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234'\"}],\"Aspect\":{\"name\":\"dashboardKey\"}},{\"type\":\"record\",\"name\":\"DashboardInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"doc\":\"Information about a dashboard\",\"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 dashboard\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Detailed description about the dashboard\",\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"charts\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Charts in a dashboard\\nDeprecated! Use chartEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\"}},\"deprecated\":true},{\"name\":\"chartEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Charts in a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"chartEdges/*/created/actor\",\"createdOn\":\"chartEdges/*/created/time\",\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\",\"properties\":\"chartEdges/*/properties\",\"updatedActor\":\"chartEdges/*/lastModified/actor\",\"updatedOn\":\"chartEdges/*/lastModified/time\"}}},{\"name\":\"datasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Datasets consumed by a dashboard\\nDeprecated! Use datasetEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"deprecated\":true},{\"name\":\"datasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Datasets consumed by a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"datasetEdges/*/created/actor\",\"createdOn\":\"datasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"datasetEdges/*/properties\",\"updatedActor\":\"datasetEdges/*/lastModified/actor\",\"updatedOn\":\"datasetEdges/*/lastModified/time\"}}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.ChangeAuditStamps\",\"doc\":\"Captures information about who created/last modified/deleted this dashboard and when\"},{\"name\":\"dashboardUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"access\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AccessLevel\"],\"doc\":\"Access level for the dashboard\",\"default\":null,\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"KEYWORD\",\"filterNameOverride\":\"Access Level\"}},{\"name\":\"lastRefreshed\",\"type\":[\"null\",\"long\"],\"doc\":\"The time when this dashboard last refreshed\",\"default\":null}],\"Aspect\":{\"name\":\"dashboardInfo\"}},{\"type\":\"record\",\"name\":\"EditableDashboardProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 dashboard\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDashboardProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the dashboard. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dashboardKey\",\"name\":\"dashboard\"}},{\"type\":\"record\",\"name\":\"DataFlowSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific DataFlow entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataFlowUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataFlowKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Flow\",\"fields\":[{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Workflow manager like azkaban, airflow which orchestrates the flow\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"flowId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data flow\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"cluster\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Cluster where the flow is executed\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataFlowKey\"}},{\"type\":\"record\",\"name\":\"DataFlowInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing flow\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flow name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.str","ing\":\"String\"}],\"doc\":\"Flow description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"project\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional project/namespace associated with the flow\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}},{\"name\":\"created\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event timestamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"name\":\"dataFlowInfo\"}},{\"type\":\"record\",\"name\":\"EditableDataFlowProperties\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 data flow\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDataFlowProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the data flow. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataFlowKey\",\"name\":\"dataFlow\"}},{\"type\":\"record\",\"name\":\"DataJobSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific DataJob entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataJobUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataJobKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Job\",\"fields\":[{\"name\":\"flow\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized data processing flow urn representing the flow for the job\",\"Relationship\":{\"entityTypes\":[\"dataFlow\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"dataFlow\",\"fieldType\":\"URN_PARTIAL\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"jobId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data job\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataJobKey\"}},{\"type\":\"record\",\"name\":\"DataJobInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing job\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Job name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Job description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"type\",\"type\":[{\"type\":\"enum\",\"name\":\"AzkabanJobType\",\"namespace\":\"com.linkedin.pegasus2avro.datajob.azkaban\",\"doc\":\"The various types of support azkaban jobs\",\"symbols\":[\"COMMAND\",\"HADOOP_JAVA\",\"HADOOP_SHELL\",\"HIVE\",\"PIG\",\"SQL\",\"GLUE\"],\"symbolDocs\":{\"COMMAND\":\"The command job type is one of the basic built-in types. It runs multiple UNIX commands using java processbuilder.\\nUpon execution, Azkaban spawns off a process to run the command.\",\"GLUE\":\"Glue type is for running AWS Glue job transforms.\",\"HADOOP_JAVA\":\"Runs a java program with ability to access Hadoop cluster.\\nhttps://azkaban.readthedocs.io/en/latest/jobTypes.html#java-job-type\",\"HADOOP_SHELL\":\"In large part, this is the same Command type. The difference is its ability to talk to a Hadoop cluster\\nsecurely, via Hadoop tokens.\",\"HIVE\":\"Hive type is for running Hive jobs.\",\"PIG\":\"Pig type is for running Pig jobs.\",\"SQL\":\"SQL is for running Presto, mysql queries etc\"}},{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Datajob type\\n*NOTE**: AzkabanJobType is deprecated. Please use strings instead.\"},{\"name\":\"flowUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataFlow urn that this job is part of\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataFlowUrn\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"JobStatus\",\"doc\":\"Job statuses\",\"symbols\":[\"STARTING\",\"IN_PROGRESS\",\"STOPPING\",\"STOPPED\",\"COMPLETED\",\"FAILED\",\"UNKNOWN\",\"SKIPPED\"],\"symbolDocs\":{\"COMPLETED\":\"Jobs with successful completion.\",\"FAILED\":\"Jobs that have failed.\",\"IN_PROGRESS\":\"Jobs currently running.\",\"SKIPPED\":\"Jobs that have been skipped.\",\"STARTING\":\"Jobs being initialized.\",\"STOPPED\":\"Jobs that have stopped.\",\"STOPPING\":\"Jobs being stopped.\",\"UNKNOWN\":\"Jobs with unknown status (either unmappable or unavailable)\"}}],\"doc\":\"Status of the job - Deprecated for Data Process Instance model.\",\"default\":null,\"deprecated\":\"Use Data Process Instance model, instead\"}],\"Aspect\":{\"name\":\"data","JobInfo\"}},{\"type\":\"record\",\"name\":\"DataJobInputOutput\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about the inputs and outputs of a Data processing job\",\"fields\":[{\"name\":\"inputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Input datasets consumed by the data job during processing\\nDeprecated! Use inputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"inputDatasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Input datasets consumed by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatasetEdges/*/created/actor\",\"createdOn\":\"inputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"inputDatasetEdges/*/properties\",\"updatedActor\":\"inputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"inputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Output datasets produced by the data job during processing\\nDeprecated! Use outputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"outputDatasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Output datasets produced by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"outputDatasetEdges/*/created/actor\",\"createdOn\":\"outputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\",\"properties\":\"outputDatasetEdges/*/properties\",\"updatedActor\":\"outputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"outputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"outputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}},{\"name\":\"inputDatajobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Input datajobs that this data job depends on\\nDeprecated! Use inputDatajobEdges instead.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\"}},\"deprecated\":true},{\"name\":\"inputDatajobEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Input datajobs that this data job depends on\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatajobEdges/*/created/actor\",\"createdOn\":\"inputDatajobEdges/*/created/time\",\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"inputDatajobEdges/*/properties\",\"updatedActor\":\"inputDatajobEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatajobEdges/*/lastModified/time\"}}},{\"name\":\"inputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the input datasets used by this job\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputFields\",\"queryByDefault\":false}}},{\"name\":\"outputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the output datasets this job writes to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputFields\",\"queryByDefault\":false}}},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FineGrainedLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"A fine-grained lineage from upstream fields/datasets to downstream field(s)\",\"fields\":[{\"name\":\"upstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageUpstreamType\",\"doc\":\"The type of upstream entity in a fine-grained lineage\",\"symbols\":[\"FIELD_SET\",\"DATASET\",\"NONE\"],\"symbolDocs\":{\"DATASET\":\" Indicates that this lineage is originating from upstream dataset(s)\",\"FIELD_SET\":\" Indicates that this lineage is originating from upstream field(s)\",\"NONE\":\" Indicates that there is no upstream lineage i.e. the downstream field is not a derived field\"}},\"doc\":\"The type of upstream entity\"},{\"name\":\"upstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Upstream entities in the lineage\",\"default\":null},{\"name\":\"downstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageDownstreamType\",\"doc\":\"The type of downstream field(s) in a fine-grained lineage\",\"symbols\":[\"FIELD\",\"FIELD_SET\"],\"symbolDocs\":{\"FIELD\":\" Indicates that the lineage is for a single, specific, downstream field\",\"FIELD_SET\":\" Indicates that the lineage is for a set of downstream fields\"}},\"doc\":\"The type of downstream field(s)\"},{\"name\":\"downstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Downstream fields in the lineage\",\"default\":null},{\"name\":\"transformOperation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The transform operation applied to the upstream entities to produce the downstream field(s)\",\"default\":null},{\"name\":\"confidenceScore\",\"type\":\"float\",\"doc\":\"The confidence in this lineage between 0 (low confidence) and 1 (high confidence)\",\"default\":1.0}]}}],\"doc\":\"Fine-grained column-level lineages\",\"default\":null}],\"Aspect\":{\"name\":\"dataJobInputOutput\"}},{\"type\":\"record\",\"name\":\"EditableDataJobProperties\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 data job \",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDataJobProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the data job. Depending on the use case, this ","can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataJobKey\",\"name\":\"dataJob\"}},{\"type\":\"record\",\"name\":\"DatasetSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataset entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DatasetKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dataset\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the dataset\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique guid for dataset\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where dataset belongs to or where it was generated.\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"datasetKey\"}},{\"type\":\"record\",\"name\":\"DatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Properties associated with a Dataset\",\"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\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the Dataset\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"qualifiedName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Fully-qualified name of the Dataset\",\"default\":null,\"Searchable\":{\"addToFilters\":false,\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"uri\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic).\",\"default\":null,\"deprecated\":\"Use ExternalReference.externalUrl field instead.\",\"java\":{\"class\":\"java.net.URI\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"[Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect.\\nThis is now deprecated.\",\"default\":[],\"deprecated\":\"Use GlobalTags aspect instead.\"}],\"Aspect\":{\"name\":\"datasetProperties\"}},{\"type\":\"record\",\"name\":\"EditableDatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"EditableDatasetProperties stores editable changes made to dataset 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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDatasetProperties\"}},{\"type\":\"record\",\"name\":\"DatasetDeprecation\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Dataset deprecation status\\nDeprecated! This aspect is deprecated in favor of the more-general-purpose 'Deprecation' aspect.\",\"fields\":[{\"name\":\"deprecated\",\"type\":\"boolean\",\"doc\":\"Whether the dataset is deprecated by owner.\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"decommissionTime\",\"type\":[\"null\",\"long\"],\"doc\":\"The time user plan to decommission this dataset.\",\"default\":null},{\"name\":\"note\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Additional information about the dataset deprecation plan, such as the wiki, doc, RB.\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The corpuser URN which will be credited for modifying this deprecation content.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}],\"Aspect\":{\"name\":\"datasetDeprecation\"},\"Deprecated\":true},{\"type\":\"record\",\"name\":\"DatasetUpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Fine Grained upstream lineage for fields in a dataset\",\"fields\":[{\"name\":\"fieldMappings\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"DatasetFieldMapping\",\"doc\":\"Representation of mapping between fields in source dataset to the field in destination dataset\",\"fields\":[{\"name\":\"created\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 transforma","tion 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\"},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"string\",\"avro.java.string\":\"String\"}]},\"doc\":\"Source fields from which the fine grained lineage is derived\"},{\"name\":\"destinationField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Destination field which is derived from source fields\",\"deprecated\":\"use SchemaFieldPath and represent as generic Urn instead\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetFieldUrn\"}}],\"deprecated\":\"use FineGrainedLineage instead\"}},\"doc\":\"Upstream to downstream field level lineage mappings\"}],\"Aspect\":{\"name\":\"datasetUpstreamLineage\"},\"deprecated\":\"use UpstreamLineage.fineGrainedLineages instead\"},{\"type\":\"record\",\"name\":\"UpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Upstream lineage of a dataset\",\"fields\":[{\"name\":\"upstreams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Upstream\",\"doc\":\"Upstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"auditStamp\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit stamp containing who reported the lineage and when.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Audit stamp containing who created the lineage and when.\",\"default\":null},{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The upstream dataset the lineage points to\",\"Relationship\":{\"createdActor\":\"upstreams/*/created/actor\",\"createdOn\":\"upstreams/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"upstreams/*/properties\",\"updatedActor\":\"upstreams/*/auditStamp/actor\",\"updatedOn\":\"upstreams/*/auditStamp/time\"},\"Searchable\":{\"fieldName\":\"upstreams\",\"fieldType\":\"URN\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}},\"doc\":\"The type of the lineage\"},{\"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\":\"List of upstream dataset lineage information\"},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"FineGrainedLineage\"}],\"doc\":\" List of fine-grained lineage information, including field-level lineage\",\"default\":null,\"Relationship\":{\"/*/upstreams/*\":{\"entityTypes\":[\"dataset\",\"schemaField\"],\"name\":\"DownstreamOf\"}}}],\"Aspect\":{\"name\":\"upstreamLineage\"}},\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",{\"type\":\"record\",\"name\":\"SchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"SchemaMetadata to describe metadata related to store schema\",\"fields\":[{\"name\":\"schemaName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking\",\"validate\":{\"strlen\":{\"max\":500,\"min\":1}}},{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name})\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"version\",\"type\":\"long\",\"doc\":\"Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version.\"},{\"name\":\"created\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"dataset\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Dataset this schema metadata is associated with.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"cluster\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The cluster this schema metadata resides from\",\"default\":null},{\"name\":\"hash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"the SHA1 hash of the schema content\"},{\"name\":\"platformSchema\",\"type\":[{\"type\":\"record\",\"name\":\"EspressoSchema\",\"doc\":\"Schema text of an espresso table schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native espresso document schema.\"},{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The espresso table schema definition.\"}]},{\"type\":\"record\",\"name\":\"OracleDDL\",\"doc\":\"Schema holder for oracle data definition language that describes an oracle table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"MySqlDDL\",\"doc\":\"Schema holder for MySql data definition language that describes an MySql table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"PrestoDDL\",\"doc\":\"Schema holder for presto data definition language that describes a presto view.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL.\"}]},{\"type\":\"record\",\"name\":\"KafkaSchema\",\"doc\":\"Schema holder for kafka schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native kafka document schema. This is a human readable avro document schema.\"},{\"name\":\"keySchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The native kafka key schema as retrieved from Schema Registry\",\"default\":null}]},{\"type\":\"record\",\"name\":\"BinaryJsonSchema\",\"doc\":\"Schema text of binary JSON schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema text for binary JSON file format.\"}]},{\"type\":\"record\",\"name\":\"OrcSchema\",\"doc\":\"Schema text of an ORC schema.\",\"fields\":[{","\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema for ORC file format.\"}]},{\"type\":\"record\",\"name\":\"Schemaless\",\"doc\":\"The dataset has no specific schema associated with it\",\"fields\":[]},{\"type\":\"record\",\"name\":\"KeyValueSchema\",\"doc\":\"Schema text of a key-value store schema.\",\"fields\":[{\"name\":\"keySchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the key in the key-value store.\"},{\"name\":\"valueSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the value in the key-value store.\"}]},{\"type\":\"record\",\"name\":\"OtherSchema\",\"doc\":\"Schema holder for undefined schema types.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform.\"}]}],\"doc\":\"The native schema in the dataset's platform.\"},{\"name\":\"fields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SchemaField\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flattened name of the field. Field is computed from jsonPath field.\",\"Searchable\":{\"fieldName\":\"fieldPaths\",\"fieldType\":\"TEXT\"}},{\"name\":\"jsonPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flattened name of a field in JSON Path notation.\",\"default\":null,\"Deprecated\":true},{\"name\":\"nullable\",\"type\":\"boolean\",\"doc\":\"Indicates if this field is optional or nullable\",\"default\":false},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"fieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"label\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Label of the field. Provides a more human-readable name for the field than field path. Some sources will\\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\\na field in a source, that is most likely a description.\",\"default\":null,\"Searchable\":{\"boostScore\":0.2,\"fieldName\":\"fieldLabels\",\"fieldType\":\"TEXT\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the creation of this schema field.\",\"default\":null},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the last modification of this schema field.\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"record\",\"name\":\"SchemaFieldDataType\",\"doc\":\"Schema field data types\",\"fields\":[{\"name\":\"type\",\"type\":[{\"type\":\"record\",\"name\":\"BooleanType\",\"doc\":\"Boolean field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"FixedType\",\"doc\":\"Fixed field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"StringType\",\"doc\":\"String field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"BytesType\",\"doc\":\"Bytes field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NumberType\",\"doc\":\"Number data type: long, integer, short, etc..\",\"fields\":[]},{\"type\":\"record\",\"name\":\"DateType\",\"doc\":\"Date field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"TimeType\",\"doc\":\"Time field type. This should also be used for datetimes.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"EnumType\",\"doc\":\"Enum field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NullType\",\"doc\":\"Null field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"MapType\",\"doc\":\"Map field type.\",\"fields\":[{\"name\":\"keyType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Key type in a map\",\"default\":null},{\"name\":\"valueType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of the value in a map\",\"default\":null}]},{\"type\":\"record\",\"name\":\"ArrayType\",\"doc\":\"Array field type.\",\"fields\":[{\"name\":\"nestedType\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types this array holds.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"UnionType\",\"doc\":\"Union field type.\",\"fields\":[{\"name\":\"nestedTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types in union type.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"RecordType\",\"doc\":\"Record field type.\",\"fields\":[]}],\"doc\":\"Data platform specific types\"}]},\"doc\":\"Platform independent field type of the field.\"},{\"name\":\"nativeDataType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native type of the field in the dataset's platform as declared by platform schema.\"},{\"name\":\"recursive\",\"type\":\"boolean\",\"doc\":\"There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.\",\"default\":false},{\"name\":\"globalTags\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlobalTags\"],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"SchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"fieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\"],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"SchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"fieldGlossaryTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"isPartOfKey\",\"type\":\"boolean\",\"doc\":\"For schema fields that are part of complex keys, set this field to true\\nWe do this to easily distinguish between value and key fields\",\"default\":false},{\"name\":\"isPartitioningKey\",\"type\":[\"null\",\"boolean\"],\"doc\":\"For Datasets which are partitioned, this determines the partitioning key.\",\"default\":null},{\"name\":\"jsonProps\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"For schema fields that have other properties that are not modeled explicitly,\\nuse this field to serialize those properties into a JSON string\",\"default\":null}]}},\"doc\":\"Client provided a list of fields from document schema.\"},{\"name\":\"primaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath.\",\"default\":null},{\"name\":\"foreignKeysSpecs\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"ForeignKeySpec\",\"doc\":\"Description of a foreign key in a schema.\",\"fields\":[{\"name\":\"foreignKey\",\"type\":[{\"type\":\"record\",\"name\":\"DatasetFieldForeignKey\",\"doc\":\"For non-urn based foregin keys.\",\"fields\":[{\"name\":\"parentDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"dataset that stores the resource.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"currentFieldPaths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset.\"},{\"name\":\"parentField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"SchemaField@fieldPath that uniquely identify field in parent dataset that this field references.\"}]},{\"type\":\"record\",\"name\":\"UrnForeignKey\",\"doc\":\"If SchemaMetadata fields make any external references and references are of type com.linkedin.pegasus2avro.common.Urn or any children, this models can be used to mark it.\",\"fields\":[{\"name\":\"currentFieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Field in hosting(current) SchemaMetadata.\"}]}],\"doc\":\"Foreign key definition in metadata schema.\"}]},\"avro.java.string\":\"String\"}],\"doc\":\"Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref.\",\"default\":null,\"deprecated\":\"Use foreignKeys instead.\"},{\"name\":\"foreignKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ForeignKeyConstr","aint\",\"doc\":\"Description of a foreign key constraint in a schema.\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the constraint, likely provided from the source\"},{\"name\":\"foreignFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the foreign dataset\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"ForeignKeyTo\"}}},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the source dataset\"},{\"name\":\"foreignDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Reference to the foreign dataset for ease of lookup\",\"Relationship\":{\"entityTypes\":[\"dataset\"],\"name\":\"ForeignKeyToDataset\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}}],\"doc\":\"List of foreign key constraints for the schema\",\"default\":null}],\"Aspect\":{\"name\":\"schemaMetadata\"}},{\"type\":\"record\",\"name\":\"EditableSchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"EditableSchemaMetadata stores editable changes made to schema metadata. 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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"editableSchemaFieldInfo\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"EditableSchemaFieldInfo\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"FieldPath uniquely identifying the SchemaField this metadata is associated with\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"editedFieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"globalTags\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlobalTags\"],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"EditableSchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\"],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"EditableSchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldGlossaryTerms\",\"fieldType\":\"URN\"}}}]}},\"doc\":\"Client provided a list of fields from document schema.\"}],\"Aspect\":{\"name\":\"editableSchemaMetadata\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\",{\"type\":\"record\",\"name\":\"ViewProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Details about a View. \\ne.g. Gets activated when subTypes is view\",\"fields\":[{\"name\":\"materialized\",\"type\":\"boolean\",\"doc\":\"Whether the view is materialized\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"viewLogic\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The view logic\"},{\"name\":\"viewLanguage\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The view logic language / dialect\"}],\"Aspect\":{\"name\":\"viewProperties\"}}]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"datasetKey\",\"name\":\"dataset\"}},{\"type\":\"record\",\"name\":\"DataProcessSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Data process entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataProcessUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataProcessKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Process\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Process name i.e. an ETL job name\",\"Searchable\":{\"boostScore\":4.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized Orchestrator where data process is defined.\\nTODO: Migrate towards something that can be validated like DataPlatform urn\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where dataset belongs to or where it was generated.\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"dataProcessKey\"}},\"com.linkedin.pegasus2avro.common.Ownership\",{\"type\":\"record\",\"name\":\"DataProcessInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"doc\":\"The inputs and outputs of this data process\",\"fields\":[{\"name\":\"inputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"the inputs of the data process\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"the outputs of the data process\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}}],\"Aspect\":{\"name\":\"dataProcessInfo\"}},\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the data process. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataProcessKey\",\"name\":\"dataProcess\"},\"deprecated\":\"Use DataJob instead.\"},{\"type\":\"record\",\"name\":\"DataPlatformSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataplatform entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataPlatformKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Platform\",\"fields\":[{\"name\":\"platformName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform name i.e. hdfs, oracle, espresso\"}],\"Aspect\":{\"name\":\"dataPlatformKey\"}},{\"type\":\"record\",\"name\":\"DataPlatformInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dat","aplatform\",\"doc\":\"Information about a data platform\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the data platform\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":false,\"fieldType\":\"TEXT_PARTIAL\"},\"validate\":{\"strlen\":{\"max\":15}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The name that will be used for displaying a platform type.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"PlatformType\",\"doc\":\"Platform types available at LinkedIn\",\"symbols\":[\"FILE_SYSTEM\",\"KEY_VALUE_STORE\",\"MESSAGE_BROKER\",\"OBJECT_STORE\",\"OLAP_DATASTORE\",\"OTHERS\",\"QUERY_ENGINE\",\"RELATIONAL_DB\",\"SEARCH_ENGINE\"],\"symbolDocs\":{\"FILE_SYSTEM\":\"Value for a file system, e.g. hdfs\",\"KEY_VALUE_STORE\":\"Value for a key value store, e.g. espresso, voldemort\",\"MESSAGE_BROKER\":\"Value for a message broker, e.g. kafka\",\"OBJECT_STORE\":\"Value for an object store, e.g. ambry\",\"OLAP_DATASTORE\":\"Value for an OLAP datastore, e.g. pinot\",\"OTHERS\":\"Value for other platforms, e.g salesforce, dovetail\",\"QUERY_ENGINE\":\"Value for a query engine, e.g. presto\",\"RELATIONAL_DB\":\"Value for a relational database, e.g. oracle, mysql\",\"SEARCH_ENGINE\":\"Value for a search engine, e.g seas\"}},\"doc\":\"Platform type this data platform describes\"},{\"name\":\"datasetNameDelimiter\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The delimiter in the dataset names on the data platform, e.g. '/' for HDFS and '.' for Oracle\"},{\"name\":\"logoUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The URL for a logo associated with the platform\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}],\"Aspect\":{\"name\":\"dataPlatformInfo\"}}]},\"doc\":\"The list of metadata aspects associated with the data platform. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataPlatformKey\",\"name\":\"dataPlatform\"}},{\"type\":\"record\",\"name\":\"MLModelSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"MLModel Snapshot entity details.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.MLModelUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModel\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where model belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelKey\"}},\"com.linkedin.pegasus2avro.common.Ownership\",{\"type\":\"record\",\"name\":\"MLModelProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a ML Model\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModel\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"date\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModel was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLModel\",\"default\":null},{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"hyperParameters\",\"type\":[\"null\",{\"type\":\"map\",\"values\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"int\",\"float\",\"double\",\"boolean\"],\"avro.java.string\":\"String\"}],\"doc\":\"Hyper Parameters of the MLModel\\n\\nNOTE: these are deprecated in favor of hyperParams\",\"default\":null},{\"name\":\"hyperParams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLHyperParam\",\"doc\":\"Properties associated with an ML Hyper Param\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLHyperParam\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLHyperParam\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the MLHyperParam\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLHyperParam was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlHyperParam\"}}}],\"doc\":\"Hyperparameters of the MLModel\",\"default\":null},{\"name\":\"trainingMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLMetric\",\"doc\":\"Properties associated with an ML Metric\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the mlMetric\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the mlMetric\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the mlMetric\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the mlMetric was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlMetric\"}}}],\"doc\":\"Metrics of the MLModel used in training\",\"default\":null},{\"name\":\"onlineMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLMetric\"}],\"doc\":\"Metrics of the MLModel used in production\",\"default\":null},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features used for MLModel training\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"isLineage\":true,\"name\":\"Consumes\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Tags for the MLModel\",\"default\":[]},{\"name\":\"deployments\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Deployments for the MLModel\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelDeployment\"],\"name\":\"DeployedTo\"}}},{\"name\":\"trainingJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) used to train the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"TrainedBy\"}}},{\"name\":\"downstreamJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) that use the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"UsedBy\"}}},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups the model belongs to\",\"default\":null,\"Relationship\":{\"/*\":{","\"entityTypes\":[\"mlModelGroup\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"MemberOf\"}}}],\"Aspect\":{\"name\":\"mlModelProperties\"}},{\"type\":\"record\",\"name\":\"IntendedUse\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Intended Use for the ML Model\",\"fields\":[{\"name\":\"primaryUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Primary Use cases for the MLModel.\",\"default\":null},{\"name\":\"primaryUsers\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"enum\",\"name\":\"IntendedUserType\",\"symbols\":[\"ENTERPRISE\",\"HOBBY\",\"ENTERTAINMENT\"]}}],\"doc\":\"Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions?\",\"default\":null},{\"name\":\"outOfScopeUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to.\",\"default\":null}],\"Aspect\":{\"name\":\"intendedUse\"}},{\"type\":\"record\",\"name\":\"MLModelFactorPrompts\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Prompts which affect the performance of the MLModel\",\"fields\":[{\"name\":\"relevantFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLModelFactors\",\"doc\":\"Factors affecting the performance of the MLModel.\",\"fields\":[{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances.\\nFor human-centric machine learning MLModels, groups are people who share one or multiple characteristics.\",\"default\":null},{\"name\":\"instrumentation\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel.\\nFor example, a face detection model may perform differently depending on the camera's hardware and software,\\nincluding lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode.\",\"default\":null},{\"name\":\"environment\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A further factor affecting MLModel performance is the environment in which it is deployed.\",\"default\":null}]}}],\"doc\":\"What are foreseeable salient factors for which MLModel performance may vary, and how were these determined?\",\"default\":null},{\"name\":\"evaluationFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLModelFactors\"}],\"doc\":\"Which factors are being reported, and why were these chosen?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelFactorPrompts\"}},{\"type\":\"record\",\"name\":\"Metrics\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Metrics to be featured for the MLModel.\",\"fields\":[{\"name\":\"performanceMeasures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Measures of MLModel performance\",\"default\":null},{\"name\":\"decisionThreshold\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Decision Thresholds used (if any)?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelMetrics\"}},{\"type\":\"record\",\"name\":\"EvaluationData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"All referenced datasets would ideally point to any set of documents that provide visibility into the source and composition of the dataset.\",\"fields\":[{\"name\":\"evaluationData\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BaseData\",\"doc\":\"BaseData record\",\"fields\":[{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"What dataset were used in the MLModel?\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"motivation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Why was this dataset chosen?\",\"default\":null},{\"name\":\"preProcessing\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)?\",\"default\":null}]}},\"doc\":\"Details on the dataset(s) used for the quantitative analyses in the MLModel\"}],\"Aspect\":{\"name\":\"mlModelEvaluationData\"}},{\"type\":\"record\",\"name\":\"TrainingData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Ideally, the MLModel card would contain as much information about the training data as the evaluation data. However, there might be cases where it is not feasible to provide this level of detailed information about the training data. For example, the data may be proprietary, or require a non-disclosure agreement. In these cases, we advocate for basic details about the distributions over groups in the data, as well as any other details that could inform stakeholders on the kinds of biases the model may have encoded.\",\"fields\":[{\"name\":\"trainingData\",\"type\":{\"type\":\"array\",\"items\":\"BaseData\"},\"doc\":\"Details on the dataset(s) used for training the MLModel\"}],\"Aspect\":{\"name\":\"mlModelTrainingData\"}},{\"type\":\"record\",\"name\":\"QuantitativeAnalyses\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Quantitative analyses should be disaggregated, that is, broken down by the chosen factors. Quantitative analyses should provide the results of evaluating the MLModel according to the chosen metrics, providing confidence interval values when possible.\",\"fields\":[{\"name\":\"unitaryResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to each factor\",\"default\":null},{\"name\":\"intersectionalResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelQuantitativeAnalyses\"}},{\"type\":\"record\",\"name\":\"EthicalConsiderations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section is intended to demonstrate the ethical considerations that went into MLModel development, surfacing ethical challenges and solutions to stakeholders.\",\"fields\":[{\"name\":\"data\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Does the MLModel use any sensitive data (e.g., protected classes)?\",\"default\":null},{\"name\":\"humanLife\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\" Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way?\",\"default\":null},{\"name\":\"mitigations\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risk mitigation strategies were used during MLModel development?\",\"default\":null},{\"name\":\"risksAndHarms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown.\",\"default\":null},{\"name\":\"useCases\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelEthicalConsiderations\"}},{\"type\":\"record\",\"name\":\"CaveatsAndRecommendations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"caveats\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"CaveatDetails\",\"doc\":\"This s","ection should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"needsFurtherTesting\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Did the results suggest any further testing?\",\"default\":null},{\"name\":\"caveatDescription\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Caveat Description\\nFor ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders.\",\"default\":null},{\"name\":\"groupsNotRepresented\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Relevant groups that were not represented in the evaluation dataset?\",\"default\":null}]}],\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset?\",\"default\":null},{\"name\":\"recommendations\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Recommendations on where this MLModel should be used.\",\"default\":null},{\"name\":\"idealDatasetCharacteristics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Ideal characteristics of an evaluation dataset for this MLModel\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelCaveatsAndRecommendations\"}},\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",{\"type\":\"record\",\"name\":\"SourceCode\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Source Code\",\"fields\":[{\"name\":\"sourceCode\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SourceCodeUrl\",\"doc\":\"Source Code Url Entity\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"SourceCodeUrlType\",\"symbols\":[\"ML_MODEL_SOURCE_CODE\",\"TRAINING_PIPELINE_SOURCE_CODE\",\"EVALUATION_PIPELINE_SOURCE_CODE\"]},\"doc\":\"Source Code Url Types\"},{\"name\":\"sourceCodeUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source Code Url\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}]}},\"doc\":\"Source Code along with types\"}],\"Aspect\":{\"name\":\"sourceCode\"}},\"com.linkedin.pegasus2avro.common.Status\",{\"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\"}},{\"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\"}},\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLModel. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelKey\",\"name\":\"mlModel\"}},{\"type\":\"record\",\"name\":\"MLPrimaryKeySnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLPrimaryKeyKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLPrimaryKey\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the primary key\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the primary key\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlPrimaryKeyKey\"}},{\"type\":\"record\",\"name\":\"MLPrimaryKeyProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLPrimaryKey\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLPrimaryKey\",\"default\":null},{\"name\":\"dataType\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"MLFeatureDataType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"MLFeature Data Type\",\"symbols\":[\"USELESS\",\"NOMINAL\",\"ORDINAL\",\"BINARY\",\"COUNT\",\"TIME\",\"INTERVAL\",\"IMAGE\",\"VIDEO\",\"AUDIO\",\"TEXT\",\"MAP\",\"SEQUENCE\",\"SET\",\"CONTINUOUS\",\"BYTE\",\"UNKNOWN\"],\"symbolDocs\":{\"AUDIO\":\"Audio Data\",\"BINARY\":\"Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc\",\"BYTE\":\"Bytes data are binary-encoded values that can represent complex objects.\",\"CONTINUOUS\":\"Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.\",\"COUNT\":\"Count data is discrete whole number data - no negative numbers here.\\nCount data often has many small values, such as zero and one.\",\"IMAGE\":\"Image Data\",\"INTERVAL\":\"Interval data has equal spaces between the numbers and does not represent a temporal pattern.\\nExamples include percentages, temperatures, and income.\",\"MAP\":\"Mapping Data Type ex: dict, map\",\"NOMINAL\":\"Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.\",\"ORDINAL\":\"Ordinal data are discrete integers that can be ranked or sorted.\\nFor example, the distance between first and second may not be the same as the distance between second and third.\",\"SEQUENCE\":\"Sequence Data Type ex: list, tuple, range\",\"SET\":\"Set Data Type ex: set, frozenset\",\"TEXT\":\"Text Data\",\"TIME\":\"Time data is a cyclical, repeating continuous form of data.\\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.\",\"UNKNOWN\":\"Unknown data are data that we don't know the type for.\",\"USELESS\":\"Useless data is unique, discrete data with no potential relationship with the outcome variable.\\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.\",\"VIDEO\":\"Video Data\"}}],\"doc\":\"Data Type of the MLPrimaryKey\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLPrimaryKey\",\"default\":null},{\"name\":\"sources\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Source of the MLPrimaryKey\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlPrimaryKeyProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linke","din.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLPrimaryKey. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlPrimaryKeyKey\",\"name\":\"mlPrimaryKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.MLFeatureUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLFeatureKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeature\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the feature\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeature\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeature\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"dataType\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.MLFeatureDataType\"],\"doc\":\"Data Type of the MLFeature\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLFeature\",\"default\":null},{\"name\":\"sources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Source of the MLFeature\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlFeatureProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLFeature. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlFeatureKey\",\"name\":\"mlFeature\"}},{\"type\":\"record\",\"name\":\"MLFeatureTableSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLFeatureTableKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeatureTable\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the feature table\",\"Relationship\":{\"entityTypes\":[\"dataPlatform\"],\"name\":\"SourcePlatform\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature table\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureTableKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureTableProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeatureTable\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeatureTable\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features contained in the feature table\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"name\":\"Contains\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"features\",\"fieldType\":\"URN\"}}},{\"name\":\"mlPrimaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of primary keys in the feature table (if multiple, assumed to act as a composite key)\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlPrimaryKey\"],\"name\":\"KeyedBy\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"primaryKeys\",\"fieldType\":\"URN\"}}}],\"Aspect\":{\"name\":\"mlFeatureTableProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLFeatureTable. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlFeatureTableKey\",\"name\":\"mlFeatureTable\"}},{\"type\":\"record\",\"name\":\"MLModelDeploymentSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelDeploymentKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model deployment\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model Deployment\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModelDeployment\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where model Deployment belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelDeploymentKey\"}},{\"type\":\"record\",\"name\":\"MLModelDeploymentProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Deployment\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModelDeployment\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModelDeployment was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLModelDeployment\",\"default\":null},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"DeploymentStatus\",\"doc\":\"Model endpoint statuses\",\"symbols\":[\"OUT_OF_SERVICE\",\"CREATING\",\"UPDATING\",\"ROLLING_BACK\",\"IN_SERVICE\",\"DELETING\",\"FAILED\"",",\"UNKNOWN\"],\"symbolDocs\":{\"CREATING\":\"Deployments being created.\",\"DELETING\":\"Deployments being deleted.\",\"FAILED\":\"Deployments with an error state.\",\"IN_SERVICE\":\"Deployments that are active.\",\"OUT_OF_SERVICE\":\"Deployments out of service.\",\"ROLLING_BACK\":\"Deployments being reverted to a previous version.\",\"UNKNOWN\":\"Deployments with unknown/unmappable state.\",\"UPDATING\":\"Deployments being updated.\"}}],\"doc\":\"Status of the deployment\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelDeploymentProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLModelDeployment. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelDeploymentKey\",\"name\":\"mlModelDeployment\"}},{\"type\":\"record\",\"name\":\"MLModelGroupSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model group\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model group\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModelGroup\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where model group belongs to or where it was generated\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelGroupKey\"}},{\"type\":\"record\",\"name\":\"MLModelGroupProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Group\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModelGroup\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModelGroup was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLModelGroup\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelGroupProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLModelGroup. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelGroupKey\",\"name\":\"mlModelGroup\"}},{\"type\":\"record\",\"name\":\"TagSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataset entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"TagKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The tag name, which serves as a unique id\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"tagKey\"}},\"com.linkedin.pegasus2avro.common.Ownership\",{\"type\":\"record\",\"name\":\"TagProperties\",\"namespace\":\"com.linkedin.pegasus2avro.tag\",\"doc\":\"Properties associated with a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the tag\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the tag\",\"default\":null,\"Searchable\":{}},{\"name\":\"colorHex\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The color associated with the Tag in Hex. For example #FFFFFF.\",\"default\":null}],\"Aspect\":{\"name\":\"tagProperties\"}},\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"tagKey\",\"name\":\"tag\"}},{\"type\":\"record\",\"name\":\"GlossaryTermSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific GlossaryTerm entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"GlossaryTermKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryTerm\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The term name, which serves as a unique id\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryTermKey\"}},{\"type\":\"record\",\"name\":\"GlossaryTermInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryTerm\",\"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\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the term\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the term\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business term.\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"termSource\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"External Reference to the business-term\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"rawSchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Schema definition of the glossary te","rm\",\"default\":null,\"deprecated\":true}],\"Aspect\":{\"name\":\"glossaryTermInfo\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",{\"type\":\"record\",\"name\":\"GlossaryRelatedTerms\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Has A / Is A lineage information about a glossary Term reporting the lineage\",\"fields\":[{\"name\":\"isRelatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Is A with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"IsA\"}},\"Searchable\":{\"/*\":{\"boostScore\":2.0,\"fieldName\":\"isRelatedTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"hasRelatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Has A with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"HasA\"}},\"Searchable\":{\"/*\":{\"boostScore\":2.0,\"fieldName\":\"hasRelatedTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"values\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Has Value with glossary term.\\nThese are fixed value a term has. For example a ColorEnum where RED, GREEN and YELLOW are fixed values.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"HasValue\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"values\",\"fieldType\":\"URN\"}}},{\"name\":\"relatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship isRelatedTo with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"IsRelatedTo\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"relatedTerms\",\"fieldType\":\"URN\"}}}],\"Aspect\":{\"name\":\"glossaryRelatedTerms\"}}]},\"doc\":\"The list of metadata aspects associated with the GlossaryTerm. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"glossaryTermKey\",\"name\":\"glossaryTerm\"}},{\"type\":\"record\",\"name\":\"GlossaryNodeSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific GlossaryNode entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"GlossaryNodeKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryNode\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeKey\"}},{\"type\":\"record\",\"name\":\"GlossaryNodeInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryNode\",\"fields\":[{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business node\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the node\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"displayName\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the GlossaryNode\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeInfo\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the GlossaryNode. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"glossaryNodeKey\",\"name\":\"glossaryNode\"}},{\"type\":\"record\",\"name\":\"DataHubPolicySnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for DataHub Access Policy data.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataHubPolicyKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Policy\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the DataHub access policy record. Generated on the server side at policy creation time.\"}],\"Aspect\":{\"name\":\"dataHubPolicyKey\"}},{\"type\":\"record\",\"name\":\"DataHubPolicyInfo\",\"namespace\":\"com.linkedin.pegasus2avro.policy\",\"doc\":\"Information about a DataHub (UI) access policy.\",\"fields\":[{\"name\":\"displayName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the Policy\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the Policy\",\"Searchable\":{\"fieldType\":\"TEXT\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of policy\"},{\"name\":\"state\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The state of policy, ACTIVE or INACTIVE\"},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DataHubResourceFilter\",\"doc\":\"Information used to filter DataHub resource.\",\"fields\":[{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The type of resource that the policy applies to. This will most often be a data asset entity name, for\\nexample 'dataset'. It is not strictly required because in the future we will want to support filtering a resource\\nby domain, as well.\",\"default\":null,\"deprecated\":true},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of resources to apply the policy to, e.g. asset urns\",\"default\":null,\"deprecated\":true},{\"name\":\"allResources\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be applied to all assets matching the filter.\",\"default\":false,\"deprecated\":true},{\"name\":\"filter\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"PolicyMatchFilter\",\"doc\":\"The filter for specifying the resource or actor to apply privileges to\",\"fields\":[{\"name\":\"criteria\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"PolicyMatchCriterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. Matches criterion if any one of the values matches condition (OR-relationship)\"},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"PolicyMatchCondition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"EQUALS\"],\"symbolDocs\":{\"EQUALS\":\"Whether the field matches the value\"}},\"doc\":\"The condition for the criterion\",\"default\":\"EQUALS\"}]}},\"doc\":\"A list of criteria to apply conjunctively (so all criteria must pass)\"}]}],\"doc\":\"Filter to apply privileges to\",\"default\":null}]}],\"doc\":\"The resource that the policy applies to. Not required for some 'Platform' privileges.\",\"default\":null},{\"name\":\"privileges\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"The privileges that the policy grants.\"},{\"name\":\"actors\",\"type\":{\"type\":\"record\",\"name\":\"DataHubActorFilter\",\"doc\":\"Information used to filter DataHub actors.\",\"fields\":[{\"name\":\"users\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of users to apply the policy to (disjunctive)\",\"de","fault\":null},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of groups to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"resourceOwners\",\"type\":\"boolean\",\"doc\":\"Whether the filter should return true for owners of a particular resource.\\nOnly applies to policies of type 'Metadata', which have a resource associated with them.\",\"default\":false},{\"name\":\"allUsers\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all users.\",\"default\":false},{\"name\":\"allGroups\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all groups.\",\"default\":false},{\"name\":\"roles\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of roles to apply the policy to (disjunctive).\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataHubRole\"],\"name\":\"IsAssociatedWithRole\"}}}]},\"doc\":\"The actors that the policy applies to.\"},{\"name\":\"editable\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be editable via the UI\",\"default\":true},{\"name\":\"lastUpdatedTimestamp\",\"type\":[\"null\",\"long\"],\"doc\":\"Timestamp when the policy was last updated\",\"default\":null,\"Searchable\":{\"fieldType\":\"DATETIME\"}}],\"Aspect\":{\"name\":\"dataHubPolicyInfo\"}}]},\"doc\":\"The list of metadata aspects associated with the DataHub access policy.\"}],\"Entity\":{\"keyAspect\":\"dataHubPolicyKey\",\"name\":\"dataHubPolicy\"}},{\"type\":\"record\",\"name\":\"SchemaFieldSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific schema field entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"SchemaFieldKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a SchemaField\",\"fields\":[{\"name\":\"parent\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Parent associated with the schema field\",\"Searchable\":{\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"fieldPath identifying the schema field\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}}],\"Aspect\":{\"name\":\"schemaFieldKey\"}}]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"schemaFieldKey\",\"name\":\"schemaField\"}},{\"type\":\"record\",\"name\":\"DataHubRetentionSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for DataHub Access Policy data.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataHubRetentionKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Retention\",\"fields\":[{\"name\":\"entityName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Entity name to apply retention to. * (or empty) for applying defaults.\"},{\"name\":\"aspectName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Aspect name to apply retention to. * (or empty) for applying defaults.\"}],\"Aspect\":{\"name\":\"dataHubRetentionKey\"}},{\"type\":\"record\",\"name\":\"DataHubRetentionConfig\",\"namespace\":\"com.linkedin.pegasus2avro.retention\",\"fields\":[{\"name\":\"retention\",\"type\":{\"type\":\"record\",\"name\":\"Retention\",\"doc\":\"Base class that encapsulates different retention policies.\\nOnly one of the fields should be set\",\"fields\":[{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionBasedRetention\",\"doc\":\"Keep max N latest records\",\"fields\":[{\"name\":\"maxVersions\",\"type\":\"int\"}]}],\"default\":null},{\"name\":\"time\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeBasedRetention\",\"doc\":\"Keep records that are less than X seconds old\",\"fields\":[{\"name\":\"maxAgeInSeconds\",\"type\":\"int\"}]}],\"default\":null}]}}],\"Aspect\":{\"name\":\"dataHubRetentionConfig\"}}]},\"doc\":\"The list of metadata aspects associated with the DataHub access policy.\"}],\"Entity\":{\"keyAspect\":\"dataHubRetentionKey\",\"name\":\"dataHubRetention\"}}],\"doc\":\"Snapshot of the proposed metadata change. Include only the aspects affected by the change in the snapshot.\"},{\"name\":\"proposedDelta\",\"type\":[\"null\"],\"doc\":\"Delta of the proposed metadata partial update.\",\"default\":null},{\"name\":\"systemMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SystemMetadata\",\"doc\":\"Metadata associated with each metadata change that is processed by the system\",\"fields\":[{\"name\":\"lastObserved\",\"type\":[\"long\",\"null\"],\"doc\":\"The timestamp the metadata was observed at\",\"default\":0},{\"name\":\"runId\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"],\"doc\":\"The run id that produced the metadata. Populated in case of batch-ingestion.\",\"default\":\"no-run-id-provided\"},{\"name\":\"registryName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry name that was used to process this event\",\"default\":null},{\"name\":\"registryVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry version that was used to process this event\",\"default\":null},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Additional properties\",\"default\":null}]}],\"doc\":\"Metadata around how the snapshot was ingested\",\"default\":null}]},\"doc\":\"The even that failed to be processed.\"},{\"name\":\"error\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The error message or the stacktrace for the failure.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Kafka audit header. See go/kafkaauditheader for more info. */ - @Deprecated public com.linkedin.events.KafkaAuditHeader auditHeader; - /** The even that failed to be processed. */ - @Deprecated public com.linkedin.pegasus2avro.mxe.MetadataChangeEvent metadataChangeEvent; - /** The error message or the stacktrace for the failure. */ - @Deprecated public java.lang.String error; - - /** - * 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 FailedMetadataChangeEvent() {} - - /** - * All-args constructor. - */ - public FailedMetadataChangeEvent(com.linkedin.events.KafkaAuditHeader auditHeader, com.linkedin.pegasus2avro.mxe.MetadataChangeEvent metadataChangeEvent, java.lang.String error) { - this.auditHeader = auditHeader; - this.metadataChangeEvent = metadataChangeEvent; - this.error = error; - } - - 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 auditHeader; - case 1: return metadataChangeEvent; - case 2: return error; - 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: auditHeader = (com.linkedin.events.KafkaAuditHeader)value$; break; - case 1: metadataChangeEvent = (com.linkedin.pegasus2avro.mxe.MetadataChangeEvent)value$; break; - case 2: error = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'auditHeader' field. - * Kafka audit header. See go/kafkaauditheader for more info. */ - public com.linkedin.events.KafkaAuditHeader getAuditHeader() { - return auditHeader; - } - - /** - * Sets the value of the 'auditHeader' field. - * Kafka audit header. See go/kafkaauditheader for more info. * @param value the value to set. - */ - public void setAuditHeader(com.linkedin.events.KafkaAuditHeader value) { - this.auditHeader = value; - } - - /** - * Gets the value of the 'metadataChangeEvent' field. - * The even that failed to be processed. */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeEvent getMetadataChangeEvent() { - return metadataChangeEvent; - } - - /** - * Sets the value of the 'metadataChangeEvent' field. - * The even that failed to be processed. * @param value the value to set. - */ - public void setMetadataChangeEvent(com.linkedin.pegasus2avro.mxe.MetadataChangeEvent value) { - this.metadataChangeEvent = value; - } - - /** - * Gets the value of the 'error' field. - * The error message or the stacktrace for the failure. */ - public java.lang.String getError() { - return error; - } - - /** - * Sets the value of the 'error' field. - * The error message or the stacktrace for the failure. * @param value the value to set. - */ - public void setError(java.lang.String value) { - this.error = value; - } - - /** Creates a new FailedMetadataChangeEvent RecordBuilder */ - public static com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder newBuilder() { - return new com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder(); - } - - /** Creates a new FailedMetadataChangeEvent RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder newBuilder(com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder other) { - return new com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder(other); - } - - /** Creates a new FailedMetadataChangeEvent RecordBuilder by copying an existing FailedMetadataChangeEvent instance */ - public static com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder newBuilder(com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent other) { - return new com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder(other); - } - - /** - * RecordBuilder for FailedMetadataChangeEvent instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.events.KafkaAuditHeader auditHeader; - private com.linkedin.pegasus2avro.mxe.MetadataChangeEvent metadataChangeEvent; - private java.lang.String error; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder other) { - super(other); - if (isValidValue(fields()[0], other.auditHeader)) { - this.auditHeader = data().deepCopy(fields()[0].schema(), other.auditHeader); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.metadataChangeEvent)) { - this.metadataChangeEvent = data().deepCopy(fields()[1].schema(), other.metadataChangeEvent); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.error)) { - this.error = data().deepCopy(fields()[2].schema(), other.error); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing FailedMetadataChangeEvent instance */ - private Builder(com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent other) { - super(com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.SCHEMA$); - if (isValidValue(fields()[0], other.auditHeader)) { - this.auditHeader = data().deepCopy(fields()[0].schema(), other.auditHeader); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.metadataChangeEvent)) { - this.metadataChangeEvent = data().deepCopy(fields()[1].schema(), other.metadataChangeEvent); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.error)) { - this.error = data().deepCopy(fields()[2].schema(), other.error); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'auditHeader' field */ - public com.linkedin.events.KafkaAuditHeader getAuditHeader() { - return auditHeader; - } - - /** Sets the value of the 'auditHeader' field */ - public com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder setAuditHeader(com.linkedin.events.KafkaAuditHeader value) { - validate(fields()[0], value); - this.auditHeader = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'auditHeader' field has been set */ - public boolean hasAuditHeader() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'auditHeader' field */ - public com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder clearAuditHeader() { - auditHeader = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'metadataChangeEvent' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeEvent getMetadataChangeEvent() { - return metadataChangeEvent; - } - - /** Sets the value of the 'metadataChangeEvent' field */ - public com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder setMetadataChangeEvent(com.linkedin.pegasus2avro.mxe.MetadataChangeEvent value) { - validate(fields()[1], value); - this.metadataChangeEvent = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'metadataChangeEvent' field has been set */ - public boolean hasMetadataChangeEvent() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'metadataChangeEvent' field */ - public com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder clearMetadataChangeEvent() { - metadataChangeEvent = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'error' field */ - public java.lang.String getError() { - return error; - } - - /** Sets the value of the 'error' field */ - public com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder setError(java.lang.String value) { - validate(fields()[2], value); - this.error = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'error' field has been set */ - public boolean hasError() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'error' field */ - public com.linkedin.pegasus2avro.mxe.FailedMetadataChangeEvent.Builder clearError() { - error = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public FailedMetadataChangeEvent build() { - try { - FailedMetadataChangeEvent record = new FailedMetadataChangeEvent(); - record.auditHeader = fieldSetFlags()[0] ? this.auditHeader : (com.linkedin.events.KafkaAuditHeader) defaultValue(fields()[0]); - record.metadataChangeEvent = fieldSetFlags()[1] ? this.metadataChangeEvent : (com.linkedin.pegasus2avro.mxe.MetadataChangeEvent) defaultValue(fields()[1]); - record.error = fieldSetFlags()[2] ? this.error : (java.lang.String) 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/mxe/FailedMetadataChangeProposal.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/FailedMetadataChangeProposal.java deleted file mode 100644 index b1f0a57a2e839..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/FailedMetadataChangeProposal.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -/** Kafka event for capturing a failure to process a specific MetadataChangeEvent. */ -@org.apache.avro.specific.AvroGenerated -public class FailedMetadataChangeProposal 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\":\"FailedMetadataChangeProposal\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Kafka event for capturing a failure to process a specific MetadataChangeEvent.\",\"fields\":[{\"name\":\"auditHeader\",\"type\":[\"null\",{\"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\"}]}],\"doc\":\"Kafka audit header. See go/kafkaauditheader for more info.\",\"default\":null},{\"name\":\"metadataChangeProposal\",\"type\":{\"type\":\"record\",\"name\":\"MetadataChangeProposal\",\"doc\":\"Kafka event for proposing a metadata change for an entity. A corresponding MetadataChangeLog is emitted when the change is accepted and committed, otherwise a FailedMetadataChangeProposal will be emitted instead.\",\"fields\":[{\"name\":\"auditHeader\",\"type\":[\"null\",\"com.linkedin.events.KafkaAuditHeader\"],\"doc\":\"Kafka audit header. Currently remains unused in the open source.\",\"default\":null},{\"name\":\"entityType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Type of the entity being written to\"},{\"name\":\"entityUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Urn of the entity being written\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"entityKeyAspect\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GenericAspect\",\"doc\":\"Generic record structure for serializing an Aspect\",\"fields\":[{\"name\":\"value\",\"type\":\"bytes\",\"doc\":\"The value of the aspect, serialized as bytes.\"},{\"name\":\"contentType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The content type, which represents the fashion in which the aspect was serialized.\\nThe only type currently supported is application/json.\"}]}],\"doc\":\"Key aspect of the entity being written\",\"default\":null},{\"name\":\"changeType\",\"type\":{\"type\":\"enum\",\"name\":\"ChangeType\",\"namespace\":\"com.linkedin.pegasus2avro.events.metadata\",\"doc\":\"Descriptor for a change action\",\"symbols\":[\"UPSERT\",\"CREATE\",\"UPDATE\",\"DELETE\",\"PATCH\",\"RESTATE\"],\"symbolDocs\":{\"CREATE\":\"NOT SUPPORTED YET\\ninsert if not exists. otherwise fail\",\"DELETE\":\"NOT SUPPORTED YET\\ndelete action\",\"PATCH\":\"NOT SUPPORTED YET\\npatch the changes instead of full replace\",\"RESTATE\":\"Restate an aspect, eg. in a index refresh.\",\"UPDATE\":\"NOT SUPPORTED YET\\nupdate if exists. otherwise fail\",\"UPSERT\":\"insert if not exists. otherwise update\"}},\"doc\":\"Type of change being proposed\"},{\"name\":\"aspectName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Aspect of the entity being written to\\nNot filling this out implies that the writer wants to affect the entire entity\\nNote: This is only valid for CREATE, UPSERT, and DELETE operations.\",\"default\":null},{\"name\":\"aspect\",\"type\":[\"null\",\"GenericAspect\"],\"doc\":\"The value of the new aspect.\",\"default\":null},{\"name\":\"systemMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SystemMetadata\",\"doc\":\"Metadata associated with each metadata change that is processed by the system\",\"fields\":[{\"name\":\"lastObserved\",\"type\":[\"long\",\"null\"],\"doc\":\"The timestamp the metadata was observed at\",\"default\":0},{\"name\":\"runId\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"],\"doc\":\"The run id that produced the metadata. Populated in case of batch-ingestion.\",\"default\":\"no-run-id-provided\"},{\"name\":\"registryName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry name that was used to process this event\",\"default\":null},{\"name\":\"registryVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry version that was used to process this event\",\"default\":null},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Additional properties\",\"default\":null}]}],\"doc\":\"A string->string map of custom properties that one might want to attach to an event\",\"default\":null}]},\"doc\":\"The even that failed to be processed.\"},{\"name\":\"error\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The error message or the stacktrace for the failure.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Kafka audit header. See go/kafkaauditheader for more info. */ - @Deprecated public com.linkedin.events.KafkaAuditHeader auditHeader; - /** The even that failed to be processed. */ - @Deprecated public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal metadataChangeProposal; - /** The error message or the stacktrace for the failure. */ - @Deprecated public java.lang.String error; - - /** - * 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 FailedMetadataChangeProposal() {} - - /** - * All-args constructor. - */ - public FailedMetadataChangeProposal(com.linkedin.events.KafkaAuditHeader auditHeader, com.linkedin.pegasus2avro.mxe.MetadataChangeProposal metadataChangeProposal, java.lang.String error) { - this.auditHeader = auditHeader; - this.metadataChangeProposal = metadataChangeProposal; - this.error = error; - } - - 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 auditHeader; - case 1: return metadataChangeProposal; - case 2: return error; - 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: auditHeader = (com.linkedin.events.KafkaAuditHeader)value$; break; - case 1: metadataChangeProposal = (com.linkedin.pegasus2avro.mxe.MetadataChangeProposal)value$; break; - case 2: error = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'auditHeader' field. - * Kafka audit header. See go/kafkaauditheader for more info. */ - public com.linkedin.events.KafkaAuditHeader getAuditHeader() { - return auditHeader; - } - - /** - * Sets the value of the 'auditHeader' field. - * Kafka audit header. See go/kafkaauditheader for more info. * @param value the value to set. - */ - public void setAuditHeader(com.linkedin.events.KafkaAuditHeader value) { - this.auditHeader = value; - } - - /** - * Gets the value of the 'metadataChangeProposal' field. - * The even that failed to be processed. */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal getMetadataChangeProposal() { - return metadataChangeProposal; - } - - /** - * Sets the value of the 'metadataChangeProposal' field. - * The even that failed to be processed. * @param value the value to set. - */ - public void setMetadataChangeProposal(com.linkedin.pegasus2avro.mxe.MetadataChangeProposal value) { - this.metadataChangeProposal = value; - } - - /** - * Gets the value of the 'error' field. - * The error message or the stacktrace for the failure. */ - public java.lang.String getError() { - return error; - } - - /** - * Sets the value of the 'error' field. - * The error message or the stacktrace for the failure. * @param value the value to set. - */ - public void setError(java.lang.String value) { - this.error = value; - } - - /** Creates a new FailedMetadataChangeProposal RecordBuilder */ - public static com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder newBuilder() { - return new com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder(); - } - - /** Creates a new FailedMetadataChangeProposal RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder newBuilder(com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder other) { - return new com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder(other); - } - - /** Creates a new FailedMetadataChangeProposal RecordBuilder by copying an existing FailedMetadataChangeProposal instance */ - public static com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder newBuilder(com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal other) { - return new com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder(other); - } - - /** - * RecordBuilder for FailedMetadataChangeProposal instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.events.KafkaAuditHeader auditHeader; - private com.linkedin.pegasus2avro.mxe.MetadataChangeProposal metadataChangeProposal; - private java.lang.String error; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder other) { - super(other); - if (isValidValue(fields()[0], other.auditHeader)) { - this.auditHeader = data().deepCopy(fields()[0].schema(), other.auditHeader); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.metadataChangeProposal)) { - this.metadataChangeProposal = data().deepCopy(fields()[1].schema(), other.metadataChangeProposal); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.error)) { - this.error = data().deepCopy(fields()[2].schema(), other.error); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing FailedMetadataChangeProposal instance */ - private Builder(com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal other) { - super(com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.SCHEMA$); - if (isValidValue(fields()[0], other.auditHeader)) { - this.auditHeader = data().deepCopy(fields()[0].schema(), other.auditHeader); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.metadataChangeProposal)) { - this.metadataChangeProposal = data().deepCopy(fields()[1].schema(), other.metadataChangeProposal); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.error)) { - this.error = data().deepCopy(fields()[2].schema(), other.error); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'auditHeader' field */ - public com.linkedin.events.KafkaAuditHeader getAuditHeader() { - return auditHeader; - } - - /** Sets the value of the 'auditHeader' field */ - public com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder setAuditHeader(com.linkedin.events.KafkaAuditHeader value) { - validate(fields()[0], value); - this.auditHeader = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'auditHeader' field has been set */ - public boolean hasAuditHeader() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'auditHeader' field */ - public com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder clearAuditHeader() { - auditHeader = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'metadataChangeProposal' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal getMetadataChangeProposal() { - return metadataChangeProposal; - } - - /** Sets the value of the 'metadataChangeProposal' field */ - public com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder setMetadataChangeProposal(com.linkedin.pegasus2avro.mxe.MetadataChangeProposal value) { - validate(fields()[1], value); - this.metadataChangeProposal = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'metadataChangeProposal' field has been set */ - public boolean hasMetadataChangeProposal() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'metadataChangeProposal' field */ - public com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder clearMetadataChangeProposal() { - metadataChangeProposal = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'error' field */ - public java.lang.String getError() { - return error; - } - - /** Sets the value of the 'error' field */ - public com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder setError(java.lang.String value) { - validate(fields()[2], value); - this.error = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'error' field has been set */ - public boolean hasError() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'error' field */ - public com.linkedin.pegasus2avro.mxe.FailedMetadataChangeProposal.Builder clearError() { - error = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public FailedMetadataChangeProposal build() { - try { - FailedMetadataChangeProposal record = new FailedMetadataChangeProposal(); - record.auditHeader = fieldSetFlags()[0] ? this.auditHeader : (com.linkedin.events.KafkaAuditHeader) defaultValue(fields()[0]); - record.metadataChangeProposal = fieldSetFlags()[1] ? this.metadataChangeProposal : (com.linkedin.pegasus2avro.mxe.MetadataChangeProposal) defaultValue(fields()[1]); - record.error = fieldSetFlags()[2] ? this.error : (java.lang.String) 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/mxe/GenericAspect.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/GenericAspect.java deleted file mode 100644 index 22bf9a14c2f98..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/GenericAspect.java +++ /dev/null @@ -1,202 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -/** Generic record structure for serializing an Aspect */ -@org.apache.avro.specific.AvroGenerated -public class GenericAspect 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\":\"GenericAspect\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Generic record structure for serializing an Aspect\",\"fields\":[{\"name\":\"value\",\"type\":\"bytes\",\"doc\":\"The value of the aspect, serialized as bytes.\"},{\"name\":\"contentType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The content type, which represents the fashion in which the aspect was serialized.\\nThe only type currently supported is application/json.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The value of the aspect, serialized as bytes. */ - @Deprecated public java.nio.ByteBuffer value; - /** The content type, which represents the fashion in which the aspect was serialized. -The only type currently supported is application/json. */ - @Deprecated public java.lang.String contentType; - - /** - * 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 GenericAspect() {} - - /** - * All-args constructor. - */ - public GenericAspect(java.nio.ByteBuffer value, java.lang.String contentType) { - this.value = value; - this.contentType = contentType; - } - - 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 contentType; - 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.nio.ByteBuffer)value$; break; - case 1: contentType = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'value' field. - * The value of the aspect, serialized as bytes. */ - public java.nio.ByteBuffer getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * The value of the aspect, serialized as bytes. * @param value the value to set. - */ - public void setValue(java.nio.ByteBuffer value) { - this.value = value; - } - - /** - * Gets the value of the 'contentType' field. - * The content type, which represents the fashion in which the aspect was serialized. -The only type currently supported is application/json. */ - public java.lang.String getContentType() { - return contentType; - } - - /** - * Sets the value of the 'contentType' field. - * The content type, which represents the fashion in which the aspect was serialized. -The only type currently supported is application/json. * @param value the value to set. - */ - public void setContentType(java.lang.String value) { - this.contentType = value; - } - - /** Creates a new GenericAspect RecordBuilder */ - public static com.linkedin.pegasus2avro.mxe.GenericAspect.Builder newBuilder() { - return new com.linkedin.pegasus2avro.mxe.GenericAspect.Builder(); - } - - /** Creates a new GenericAspect RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.mxe.GenericAspect.Builder newBuilder(com.linkedin.pegasus2avro.mxe.GenericAspect.Builder other) { - return new com.linkedin.pegasus2avro.mxe.GenericAspect.Builder(other); - } - - /** Creates a new GenericAspect RecordBuilder by copying an existing GenericAspect instance */ - public static com.linkedin.pegasus2avro.mxe.GenericAspect.Builder newBuilder(com.linkedin.pegasus2avro.mxe.GenericAspect other) { - return new com.linkedin.pegasus2avro.mxe.GenericAspect.Builder(other); - } - - /** - * RecordBuilder for GenericAspect instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.nio.ByteBuffer value; - private java.lang.String contentType; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.mxe.GenericAspect.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.mxe.GenericAspect.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.contentType)) { - this.contentType = data().deepCopy(fields()[1].schema(), other.contentType); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing GenericAspect instance */ - private Builder(com.linkedin.pegasus2avro.mxe.GenericAspect other) { - super(com.linkedin.pegasus2avro.mxe.GenericAspect.SCHEMA$); - if (isValidValue(fields()[0], other.value)) { - this.value = data().deepCopy(fields()[0].schema(), other.value); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.contentType)) { - this.contentType = data().deepCopy(fields()[1].schema(), other.contentType); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'value' field */ - public java.nio.ByteBuffer getValue() { - return value; - } - - /** Sets the value of the 'value' field */ - public com.linkedin.pegasus2avro.mxe.GenericAspect.Builder setValue(java.nio.ByteBuffer 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.mxe.GenericAspect.Builder clearValue() { - value = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'contentType' field */ - public java.lang.String getContentType() { - return contentType; - } - - /** Sets the value of the 'contentType' field */ - public com.linkedin.pegasus2avro.mxe.GenericAspect.Builder setContentType(java.lang.String value) { - validate(fields()[1], value); - this.contentType = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'contentType' field has been set */ - public boolean hasContentType() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'contentType' field */ - public com.linkedin.pegasus2avro.mxe.GenericAspect.Builder clearContentType() { - contentType = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public GenericAspect build() { - try { - GenericAspect record = new GenericAspect(); - record.value = fieldSetFlags()[0] ? this.value : (java.nio.ByteBuffer) defaultValue(fields()[0]); - record.contentType = fieldSetFlags()[1] ? this.contentType : (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/mxe/GenericPayload.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/GenericPayload.java deleted file mode 100644 index 05de6d7ec436c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/GenericPayload.java +++ /dev/null @@ -1,202 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -/** Generic payload record structure for serializing a Platform Event. */ -@org.apache.avro.specific.AvroGenerated -public class GenericPayload 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\":\"GenericPayload\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Generic payload record structure for serializing a Platform Event.\",\"fields\":[{\"name\":\"value\",\"type\":\"bytes\",\"doc\":\"The value of the event, serialized as bytes.\"},{\"name\":\"contentType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The content type, which represents the fashion in which the event was serialized.\\nThe only type currently supported is application/json.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The value of the event, serialized as bytes. */ - @Deprecated public java.nio.ByteBuffer value; - /** The content type, which represents the fashion in which the event was serialized. -The only type currently supported is application/json. */ - @Deprecated public java.lang.String contentType; - - /** - * 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 GenericPayload() {} - - /** - * All-args constructor. - */ - public GenericPayload(java.nio.ByteBuffer value, java.lang.String contentType) { - this.value = value; - this.contentType = contentType; - } - - 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 contentType; - 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.nio.ByteBuffer)value$; break; - case 1: contentType = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'value' field. - * The value of the event, serialized as bytes. */ - public java.nio.ByteBuffer getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * The value of the event, serialized as bytes. * @param value the value to set. - */ - public void setValue(java.nio.ByteBuffer value) { - this.value = value; - } - - /** - * Gets the value of the 'contentType' field. - * The content type, which represents the fashion in which the event was serialized. -The only type currently supported is application/json. */ - public java.lang.String getContentType() { - return contentType; - } - - /** - * Sets the value of the 'contentType' field. - * The content type, which represents the fashion in which the event was serialized. -The only type currently supported is application/json. * @param value the value to set. - */ - public void setContentType(java.lang.String value) { - this.contentType = value; - } - - /** Creates a new GenericPayload RecordBuilder */ - public static com.linkedin.pegasus2avro.mxe.GenericPayload.Builder newBuilder() { - return new com.linkedin.pegasus2avro.mxe.GenericPayload.Builder(); - } - - /** Creates a new GenericPayload RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.mxe.GenericPayload.Builder newBuilder(com.linkedin.pegasus2avro.mxe.GenericPayload.Builder other) { - return new com.linkedin.pegasus2avro.mxe.GenericPayload.Builder(other); - } - - /** Creates a new GenericPayload RecordBuilder by copying an existing GenericPayload instance */ - public static com.linkedin.pegasus2avro.mxe.GenericPayload.Builder newBuilder(com.linkedin.pegasus2avro.mxe.GenericPayload other) { - return new com.linkedin.pegasus2avro.mxe.GenericPayload.Builder(other); - } - - /** - * RecordBuilder for GenericPayload instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.nio.ByteBuffer value; - private java.lang.String contentType; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.mxe.GenericPayload.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.mxe.GenericPayload.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.contentType)) { - this.contentType = data().deepCopy(fields()[1].schema(), other.contentType); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing GenericPayload instance */ - private Builder(com.linkedin.pegasus2avro.mxe.GenericPayload other) { - super(com.linkedin.pegasus2avro.mxe.GenericPayload.SCHEMA$); - if (isValidValue(fields()[0], other.value)) { - this.value = data().deepCopy(fields()[0].schema(), other.value); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.contentType)) { - this.contentType = data().deepCopy(fields()[1].schema(), other.contentType); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'value' field */ - public java.nio.ByteBuffer getValue() { - return value; - } - - /** Sets the value of the 'value' field */ - public com.linkedin.pegasus2avro.mxe.GenericPayload.Builder setValue(java.nio.ByteBuffer 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.mxe.GenericPayload.Builder clearValue() { - value = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'contentType' field */ - public java.lang.String getContentType() { - return contentType; - } - - /** Sets the value of the 'contentType' field */ - public com.linkedin.pegasus2avro.mxe.GenericPayload.Builder setContentType(java.lang.String value) { - validate(fields()[1], value); - this.contentType = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'contentType' field has been set */ - public boolean hasContentType() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'contentType' field */ - public com.linkedin.pegasus2avro.mxe.GenericPayload.Builder clearContentType() { - contentType = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public GenericPayload build() { - try { - GenericPayload record = new GenericPayload(); - record.value = fieldSetFlags()[0] ? this.value : (java.nio.ByteBuffer) defaultValue(fields()[0]); - record.contentType = fieldSetFlags()[1] ? this.contentType : (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/mxe/MetadataAuditEvent.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/MetadataAuditEvent.java deleted file mode 100644 index 880e39410fc04..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/MetadataAuditEvent.java +++ /dev/null @@ -1,418 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -/** Kafka event for capturing update made to an entity's metadata. */ -@org.apache.avro.specific.AvroGenerated -public class MetadataAuditEvent 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\":\"MetadataAuditEvent\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Kafka event for capturing update made to an entity's metadata.\",\"fields\":[{\"name\":\"auditHeader\",\"type\":[\"null\",{\"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\"}]}],\"doc\":\"Kafka audit header. See go/kafkaauditheader for more info.\",\"default\":null},{\"name\":\"oldSnapshot\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"ChartSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Chart entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.ChartUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"ChartKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Chart\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"chartId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234'\"}],\"Aspect\":{\"name\":\"chartKey\"}},{\"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\":[\"da","taset\"],\"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\"}},{\"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\"}},{\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information for the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing"," who last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the chart. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"chartKey\",\"name\":\"chart\"}},{\"type\":\"record\",\"name\":\"CorpGroupSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific CorpGroup entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpGroupUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"CorpGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpGroup\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub.\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}}],\"Aspect\":{\"name\":\"corpGroupKey\"}},{\"type\":\"record\",\"name\":\"CorpGroupInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Information about a Corp Group ingested from a third party source\",\"fields\":[{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The name of the group.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email of this group\",\"default\":null},{\"name\":\"admins\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"owners of this group\\nDeprecated! Replaced by Ownership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"OwnedBy\"}},\"deprecated\":true},{\"name\":\"members\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of ldap urn in this group.\\nDeprecated! Replaced by GroupMembership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of groups in this group.\\nDeprecated! This field is unused.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A description of the group.\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack channel for the group\",\"default\":null},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Created Audit stamp\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdTime\",\"fieldType\":\"","DATETIME\"}}}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpGroupUrn\"],\"name\":\"corpGroupInfo\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the LdapUser. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"corpGroupKey\",\"name\":\"corpGroup\"}},{\"type\":\"record\",\"name\":\"CorpUserSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific CorpUser entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpuserUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"CorpUserKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpUser\",\"fields\":[{\"name\":\"username\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the AD/LDAP user.\",\"Searchable\":{\"boostScore\":2.0,\"enableAutocomplete\":true,\"fieldName\":\"ldap\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"corpUserKey\"}},{\"type\":\"record\",\"name\":\"CorpUserInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information\",\"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\":\"active\",\"type\":\"boolean\",\"doc\":\"Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":2.0}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"displayName of this user , e.g. Hang Zhang(DataHQ)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email address of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"title of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"managerUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"direct manager of this user\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"corpuser\"],\"name\":\"ReportsTo\"},\"Searchable\":{\"fieldName\":\"managerLdap\",\"fieldType\":\"URN\",\"queryByDefault\":true},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpuserUrn\"}},{\"name\":\"departmentId\",\"type\":[\"null\",\"long\"],\"doc\":\"department id this user belong to\",\"default\":null},{\"name\":\"departmentName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"department name this user belong to\",\"default\":null},{\"name\":\"firstName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"first name of this user\",\"default\":null},{\"name\":\"lastName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"last name of this user\",\"default\":null},{\"name\":\"fullName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Common name of this user, format is firstName + lastName (split by a whitespace)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"countryCode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"two uppercase letters country code. e.g. US\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserEditableInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information that can be edited from UI\",\"fields\":[{\"name\":\"aboutMe\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"About me section of the user\",\"default\":null},{\"name\":\"teams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Teams that the user belongs to e.g. Metadata\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"skills\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Skills that the user possesses e.g. Machine Learning\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"pictureLink\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A URL which points to a picture which user wants to set as a profile photo\",\"default\":\"https://raw.githubusercontent.com/datahub-project/datahub/master/datahub-web-react/src/images/default_avatar.png\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native display name\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native Title, e.g. 'Software Engineer'\",\"default\":null},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack handle for the user\",\"default\":null},{\"name\":\"phone\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Phone number to contact the user\",\"default\":null},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Email address to contact the user\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserEditableInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserStatus\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"The status of the user, e.g. provisioned, active, suspended, etc.\",\"fields\":[{\"name\":\"status\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit stamp containing who last modified the status and when.\"}],\"Aspect\":{\"name\":\"corpUserStatus\"}},{\"type\":\"record\",\"name\":\"GroupMembership\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Carries information about the CorpGroups a user is in.\",\"fields\":[{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsMemberOfGroup\"}}}],\"Aspect\":{\"name\":\"groupMembership\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the CorpUser. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"corpUserKey\",\"name\":\"corpuser\"}},{\"type\":\"record\",\"name\":\"DashboardSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Dashboard entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DashboardUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DashboardKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dashboard\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"dashboardId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin",".com/dashboards/1234'\"}],\"Aspect\":{\"name\":\"dashboardKey\"}},{\"type\":\"record\",\"name\":\"DashboardInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"doc\":\"Information about a dashboard\",\"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 dashboard\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Detailed description about the dashboard\",\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"charts\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Charts in a dashboard\\nDeprecated! Use chartEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\"}},\"deprecated\":true},{\"name\":\"chartEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Charts in a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"chartEdges/*/created/actor\",\"createdOn\":\"chartEdges/*/created/time\",\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\",\"properties\":\"chartEdges/*/properties\",\"updatedActor\":\"chartEdges/*/lastModified/actor\",\"updatedOn\":\"chartEdges/*/lastModified/time\"}}},{\"name\":\"datasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Datasets consumed by a dashboard\\nDeprecated! Use datasetEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"deprecated\":true},{\"name\":\"datasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Datasets consumed by a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"datasetEdges/*/created/actor\",\"createdOn\":\"datasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"datasetEdges/*/properties\",\"updatedActor\":\"datasetEdges/*/lastModified/actor\",\"updatedOn\":\"datasetEdges/*/lastModified/time\"}}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.ChangeAuditStamps\",\"doc\":\"Captures information about who created/last modified/deleted this dashboard and when\"},{\"name\":\"dashboardUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"access\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AccessLevel\"],\"doc\":\"Access level for the dashboard\",\"default\":null,\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"KEYWORD\",\"filterNameOverride\":\"Access Level\"}},{\"name\":\"lastRefreshed\",\"type\":[\"null\",\"long\"],\"doc\":\"The time when this dashboard last refreshed\",\"default\":null}],\"Aspect\":{\"name\":\"dashboardInfo\"}},{\"type\":\"record\",\"name\":\"EditableDashboardProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 dashboard\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDashboardProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the dashboard. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dashboardKey\",\"name\":\"dashboard\"}},{\"type\":\"record\",\"name\":\"DataFlowSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific DataFlow entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataFlowUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataFlowKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Flow\",\"fields\":[{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Workflow manager like azkaban, airflow which orchestrates the flow\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"flowId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data flow\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"cluster\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Cluster where the flow is executed\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataFlowKey\"}},{\"type\":\"record\",\"name\":\"DataFlowInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing flow\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flow name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flow description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"project\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional project/namespace associated with the flow\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}},{\"name\":\"created\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event tim","estamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"name\":\"dataFlowInfo\"}},{\"type\":\"record\",\"name\":\"EditableDataFlowProperties\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 data flow\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDataFlowProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the data flow. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataFlowKey\",\"name\":\"dataFlow\"}},{\"type\":\"record\",\"name\":\"DataJobSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific DataJob entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataJobUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataJobKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Job\",\"fields\":[{\"name\":\"flow\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized data processing flow urn representing the flow for the job\",\"Relationship\":{\"entityTypes\":[\"dataFlow\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"dataFlow\",\"fieldType\":\"URN_PARTIAL\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"jobId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data job\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataJobKey\"}},{\"type\":\"record\",\"name\":\"DataJobInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing job\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Job name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Job description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"type\",\"type\":[{\"type\":\"enum\",\"name\":\"AzkabanJobType\",\"namespace\":\"com.linkedin.pegasus2avro.datajob.azkaban\",\"doc\":\"The various types of support azkaban jobs\",\"symbols\":[\"COMMAND\",\"HADOOP_JAVA\",\"HADOOP_SHELL\",\"HIVE\",\"PIG\",\"SQL\",\"GLUE\"],\"symbolDocs\":{\"COMMAND\":\"The command job type is one of the basic built-in types. It runs multiple UNIX commands using java processbuilder.\\nUpon execution, Azkaban spawns off a process to run the command.\",\"GLUE\":\"Glue type is for running AWS Glue job transforms.\",\"HADOOP_JAVA\":\"Runs a java program with ability to access Hadoop cluster.\\nhttps://azkaban.readthedocs.io/en/latest/jobTypes.html#java-job-type\",\"HADOOP_SHELL\":\"In large part, this is the same Command type. The difference is its ability to talk to a Hadoop cluster\\nsecurely, via Hadoop tokens.\",\"HIVE\":\"Hive type is for running Hive jobs.\",\"PIG\":\"Pig type is for running Pig jobs.\",\"SQL\":\"SQL is for running Presto, mysql queries etc\"}},{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Datajob type\\n*NOTE**: AzkabanJobType is deprecated. Please use strings instead.\"},{\"name\":\"flowUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataFlow urn that this job is part of\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataFlowUrn\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"JobStatus\",\"doc\":\"Job statuses\",\"symbols\":[\"STARTING\",\"IN_PROGRESS\",\"STOPPING\",\"STOPPED\",\"COMPLETED\",\"FAILED\",\"UNKNOWN\",\"SKIPPED\"],\"symbolDocs\":{\"COMPLETED\":\"Jobs with successful completion.\",\"FAILED\":\"Jobs that have failed.\",\"IN_PROGRESS\":\"Jobs currently running.\",\"SKIPPED\":\"Jobs that have been skipped.\",\"STARTING\":\"Jobs being initialized.\",\"STOPPED\":\"Jobs that have stopped.\",\"STOPPING\":\"Jobs being stopped.\",\"UNKNOWN\":\"Jobs with unknown status (either unmappable or unavailable)\"}}],\"doc\":\"Status of the job - Deprecated for Data Process Instance model.\",\"default\":null,\"deprecated\":\"Use Data Process Instance model, instead\"}],\"Aspect\":{\"name\":\"dataJobInfo\"}},{\"type\":\"record\",\"name\":\"DataJobInputOutput\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about the inputs and outputs of a Data processing job\",\"fields\":[{\"name\":\"inputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Input datasets consumed by the data job during processing\\nDeprecated! Use inputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searcha","ble\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"inputDatasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Input datasets consumed by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatasetEdges/*/created/actor\",\"createdOn\":\"inputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"inputDatasetEdges/*/properties\",\"updatedActor\":\"inputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"inputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Output datasets produced by the data job during processing\\nDeprecated! Use outputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"outputDatasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Output datasets produced by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"outputDatasetEdges/*/created/actor\",\"createdOn\":\"outputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\",\"properties\":\"outputDatasetEdges/*/properties\",\"updatedActor\":\"outputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"outputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"outputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}},{\"name\":\"inputDatajobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Input datajobs that this data job depends on\\nDeprecated! Use inputDatajobEdges instead.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\"}},\"deprecated\":true},{\"name\":\"inputDatajobEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Input datajobs that this data job depends on\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatajobEdges/*/created/actor\",\"createdOn\":\"inputDatajobEdges/*/created/time\",\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"inputDatajobEdges/*/properties\",\"updatedActor\":\"inputDatajobEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatajobEdges/*/lastModified/time\"}}},{\"name\":\"inputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the input datasets used by this job\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputFields\",\"queryByDefault\":false}}},{\"name\":\"outputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the output datasets this job writes to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputFields\",\"queryByDefault\":false}}},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FineGrainedLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"A fine-grained lineage from upstream fields/datasets to downstream field(s)\",\"fields\":[{\"name\":\"upstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageUpstreamType\",\"doc\":\"The type of upstream entity in a fine-grained lineage\",\"symbols\":[\"FIELD_SET\",\"DATASET\",\"NONE\"],\"symbolDocs\":{\"DATASET\":\" Indicates that this lineage is originating from upstream dataset(s)\",\"FIELD_SET\":\" Indicates that this lineage is originating from upstream field(s)\",\"NONE\":\" Indicates that there is no upstream lineage i.e. the downstream field is not a derived field\"}},\"doc\":\"The type of upstream entity\"},{\"name\":\"upstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Upstream entities in the lineage\",\"default\":null},{\"name\":\"downstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageDownstreamType\",\"doc\":\"The type of downstream field(s) in a fine-grained lineage\",\"symbols\":[\"FIELD\",\"FIELD_SET\"],\"symbolDocs\":{\"FIELD\":\" Indicates that the lineage is for a single, specific, downstream field\",\"FIELD_SET\":\" Indicates that the lineage is for a set of downstream fields\"}},\"doc\":\"The type of downstream field(s)\"},{\"name\":\"downstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Downstream fields in the lineage\",\"default\":null},{\"name\":\"transformOperation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The transform operation applied to the upstream entities to produce the downstream field(s)\",\"default\":null},{\"name\":\"confidenceScore\",\"type\":\"float\",\"doc\":\"The confidence in this lineage between 0 (low confidence) and 1 (high confidence)\",\"default\":1.0}]}}],\"doc\":\"Fine-grained column-level lineages\",\"default\":null}],\"Aspect\":{\"name\":\"dataJobInputOutput\"}},{\"type\":\"record\",\"name\":\"EditableDataJobProperties\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 data job \",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDataJobProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the data job. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataJobKey\",\"name\":\"dataJob\"}},{\"type\":\"record\",\"name\":\"DatasetSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataset entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name","\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DatasetKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dataset\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the dataset\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique guid for dataset\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where dataset belongs to or where it was generated.\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"datasetKey\"}},{\"type\":\"record\",\"name\":\"DatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Properties associated with a Dataset\",\"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\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the Dataset\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"qualifiedName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Fully-qualified name of the Dataset\",\"default\":null,\"Searchable\":{\"addToFilters\":false,\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"uri\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic).\",\"default\":null,\"deprecated\":\"Use ExternalReference.externalUrl field instead.\",\"java\":{\"class\":\"java.net.URI\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"[Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect.\\nThis is now deprecated.\",\"default\":[],\"deprecated\":\"Use GlobalTags aspect instead.\"}],\"Aspect\":{\"name\":\"datasetProperties\"}},{\"type\":\"record\",\"name\":\"EditableDatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"EditableDatasetProperties stores editable changes made to dataset 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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDatasetProperties\"}},{\"type\":\"record\",\"name\":\"DatasetDeprecation\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Dataset deprecation status\\nDeprecated! This aspect is deprecated in favor of the more-general-purpose 'Deprecation' aspect.\",\"fields\":[{\"name\":\"deprecated\",\"type\":\"boolean\",\"doc\":\"Whether the dataset is deprecated by owner.\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"decommissionTime\",\"type\":[\"null\",\"long\"],\"doc\":\"The time user plan to decommission this dataset.\",\"default\":null},{\"name\":\"note\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Additional information about the dataset deprecation plan, such as the wiki, doc, RB.\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The corpuser URN which will be credited for modifying this deprecation content.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}],\"Aspect\":{\"name\":\"datasetDeprecation\"},\"Deprecated\":true},{\"type\":\"record\",\"name\":\"DatasetUpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Fine Grained upstream lineage for fields in a dataset\",\"fields\":[{\"name\":\"fieldMappings\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"DatasetFieldMapping\",\"doc\":\"Representation of mapping between fields in source dataset to the field in destination dataset\",\"fields\":[{\"name\":\"created\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\"},{\"name\":\"sourceFie","lds\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"string\",\"avro.java.string\":\"String\"}]},\"doc\":\"Source fields from which the fine grained lineage is derived\"},{\"name\":\"destinationField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Destination field which is derived from source fields\",\"deprecated\":\"use SchemaFieldPath and represent as generic Urn instead\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetFieldUrn\"}}],\"deprecated\":\"use FineGrainedLineage instead\"}},\"doc\":\"Upstream to downstream field level lineage mappings\"}],\"Aspect\":{\"name\":\"datasetUpstreamLineage\"},\"deprecated\":\"use UpstreamLineage.fineGrainedLineages instead\"},{\"type\":\"record\",\"name\":\"UpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Upstream lineage of a dataset\",\"fields\":[{\"name\":\"upstreams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Upstream\",\"doc\":\"Upstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"auditStamp\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit stamp containing who reported the lineage and when.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Audit stamp containing who created the lineage and when.\",\"default\":null},{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The upstream dataset the lineage points to\",\"Relationship\":{\"createdActor\":\"upstreams/*/created/actor\",\"createdOn\":\"upstreams/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"upstreams/*/properties\",\"updatedActor\":\"upstreams/*/auditStamp/actor\",\"updatedOn\":\"upstreams/*/auditStamp/time\"},\"Searchable\":{\"fieldName\":\"upstreams\",\"fieldType\":\"URN\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}},\"doc\":\"The type of the lineage\"},{\"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\":\"List of upstream dataset lineage information\"},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"FineGrainedLineage\"}],\"doc\":\" List of fine-grained lineage information, including field-level lineage\",\"default\":null,\"Relationship\":{\"/*/upstreams/*\":{\"entityTypes\":[\"dataset\",\"schemaField\"],\"name\":\"DownstreamOf\"}}}],\"Aspect\":{\"name\":\"upstreamLineage\"}},\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",{\"type\":\"record\",\"name\":\"SchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"SchemaMetadata to describe metadata related to store schema\",\"fields\":[{\"name\":\"schemaName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking\",\"validate\":{\"strlen\":{\"max\":500,\"min\":1}}},{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name})\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"version\",\"type\":\"long\",\"doc\":\"Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version.\"},{\"name\":\"created\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"dataset\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Dataset this schema metadata is associated with.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"cluster\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The cluster this schema metadata resides from\",\"default\":null},{\"name\":\"hash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"the SHA1 hash of the schema content\"},{\"name\":\"platformSchema\",\"type\":[{\"type\":\"record\",\"name\":\"EspressoSchema\",\"doc\":\"Schema text of an espresso table schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native espresso document schema.\"},{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The espresso table schema definition.\"}]},{\"type\":\"record\",\"name\":\"OracleDDL\",\"doc\":\"Schema holder for oracle data definition language that describes an oracle table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"MySqlDDL\",\"doc\":\"Schema holder for MySql data definition language that describes an MySql table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"PrestoDDL\",\"doc\":\"Schema holder for presto data definition language that describes a presto view.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL.\"}]},{\"type\":\"record\",\"name\":\"KafkaSchema\",\"doc\":\"Schema holder for kafka schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native kafka document schema. This is a human readable avro document schema.\"},{\"name\":\"keySchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The native kafka key schema as retrieved from Schema Registry\",\"default\":null}]},{\"type\":\"record\",\"name\":\"BinaryJsonSchema\",\"doc\":\"Schema text of binary JSON schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema text for binary JSON file format.\"}]},{\"type\":\"record\",\"name\":\"OrcSchema\",\"doc\":\"Schema text of an ORC schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema for ORC file format.\"}]},{\"type\":\"record\",\"name\":\"Schemaless\",\"doc\":\"The dataset has no specific schema associated with it\",\"fields\":[]},{\"type\":\"record\",\"name\":\"KeyValueSchema\",\"doc\":\"Schema text of a key-value store schema.\",\"fields\":[{\"name\":\"keySchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the key in the key-value store.\"},{\"name\":\"valueSchema\",\"type\":","{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the value in the key-value store.\"}]},{\"type\":\"record\",\"name\":\"OtherSchema\",\"doc\":\"Schema holder for undefined schema types.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform.\"}]}],\"doc\":\"The native schema in the dataset's platform.\"},{\"name\":\"fields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SchemaField\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flattened name of the field. Field is computed from jsonPath field.\",\"Searchable\":{\"fieldName\":\"fieldPaths\",\"fieldType\":\"TEXT\"}},{\"name\":\"jsonPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flattened name of a field in JSON Path notation.\",\"default\":null,\"Deprecated\":true},{\"name\":\"nullable\",\"type\":\"boolean\",\"doc\":\"Indicates if this field is optional or nullable\",\"default\":false},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"fieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"label\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Label of the field. Provides a more human-readable name for the field than field path. Some sources will\\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\\na field in a source, that is most likely a description.\",\"default\":null,\"Searchable\":{\"boostScore\":0.2,\"fieldName\":\"fieldLabels\",\"fieldType\":\"TEXT\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the creation of this schema field.\",\"default\":null},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the last modification of this schema field.\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"record\",\"name\":\"SchemaFieldDataType\",\"doc\":\"Schema field data types\",\"fields\":[{\"name\":\"type\",\"type\":[{\"type\":\"record\",\"name\":\"BooleanType\",\"doc\":\"Boolean field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"FixedType\",\"doc\":\"Fixed field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"StringType\",\"doc\":\"String field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"BytesType\",\"doc\":\"Bytes field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NumberType\",\"doc\":\"Number data type: long, integer, short, etc..\",\"fields\":[]},{\"type\":\"record\",\"name\":\"DateType\",\"doc\":\"Date field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"TimeType\",\"doc\":\"Time field type. This should also be used for datetimes.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"EnumType\",\"doc\":\"Enum field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NullType\",\"doc\":\"Null field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"MapType\",\"doc\":\"Map field type.\",\"fields\":[{\"name\":\"keyType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Key type in a map\",\"default\":null},{\"name\":\"valueType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of the value in a map\",\"default\":null}]},{\"type\":\"record\",\"name\":\"ArrayType\",\"doc\":\"Array field type.\",\"fields\":[{\"name\":\"nestedType\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types this array holds.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"UnionType\",\"doc\":\"Union field type.\",\"fields\":[{\"name\":\"nestedTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types in union type.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"RecordType\",\"doc\":\"Record field type.\",\"fields\":[]}],\"doc\":\"Data platform specific types\"}]},\"doc\":\"Platform independent field type of the field.\"},{\"name\":\"nativeDataType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native type of the field in the dataset's platform as declared by platform schema.\"},{\"name\":\"recursive\",\"type\":\"boolean\",\"doc\":\"There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.\",\"default\":false},{\"name\":\"globalTags\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlobalTags\"],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"SchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"fieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\"],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"SchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"fieldGlossaryTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"isPartOfKey\",\"type\":\"boolean\",\"doc\":\"For schema fields that are part of complex keys, set this field to true\\nWe do this to easily distinguish between value and key fields\",\"default\":false},{\"name\":\"isPartitioningKey\",\"type\":[\"null\",\"boolean\"],\"doc\":\"For Datasets which are partitioned, this determines the partitioning key.\",\"default\":null},{\"name\":\"jsonProps\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"For schema fields that have other properties that are not modeled explicitly,\\nuse this field to serialize those properties into a JSON string\",\"default\":null}]}},\"doc\":\"Client provided a list of fields from document schema.\"},{\"name\":\"primaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath.\",\"default\":null},{\"name\":\"foreignKeysSpecs\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"ForeignKeySpec\",\"doc\":\"Description of a foreign key in a schema.\",\"fields\":[{\"name\":\"foreignKey\",\"type\":[{\"type\":\"record\",\"name\":\"DatasetFieldForeignKey\",\"doc\":\"For non-urn based foregin keys.\",\"fields\":[{\"name\":\"parentDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"dataset that stores the resource.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"currentFieldPaths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset.\"},{\"name\":\"parentField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"SchemaField@fieldPath that uniquely identify field in parent dataset that this field references.\"}]},{\"type\":\"record\",\"name\":\"UrnForeignKey\",\"doc\":\"If SchemaMetadata fields make any external references and references are of type com.linkedin.pegasus2avro.common.Urn or any children, this models can be used to mark it.\",\"fields\":[{\"name\":\"currentFieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Field in hosting(current) SchemaMetadata.\"}]}],\"doc\":\"Foreign key definition in metadata schema.\"}]},\"avro.java.string\":\"String\"}],\"doc\":\"Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref.\",\"default\":null,\"deprecated\":\"Use foreignKeys instead.\"},{\"name\":\"foreignKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ForeignKeyConstraint\",\"doc\":\"Description of a foreign key constraint in a schema.\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the constraint, likely provided from the source\"},{\"name\":\"foreignFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the foreign dataset\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"ForeignKeyTo\"}}},{\"name\":\"sourceFields\",\"type\":{\"type\":\"arra","y\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the source dataset\"},{\"name\":\"foreignDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Reference to the foreign dataset for ease of lookup\",\"Relationship\":{\"entityTypes\":[\"dataset\"],\"name\":\"ForeignKeyToDataset\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}}],\"doc\":\"List of foreign key constraints for the schema\",\"default\":null}],\"Aspect\":{\"name\":\"schemaMetadata\"}},{\"type\":\"record\",\"name\":\"EditableSchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"EditableSchemaMetadata stores editable changes made to schema metadata. 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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"editableSchemaFieldInfo\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"EditableSchemaFieldInfo\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"FieldPath uniquely identifying the SchemaField this metadata is associated with\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"editedFieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"globalTags\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlobalTags\"],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"EditableSchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\"],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"EditableSchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldGlossaryTerms\",\"fieldType\":\"URN\"}}}]}},\"doc\":\"Client provided a list of fields from document schema.\"}],\"Aspect\":{\"name\":\"editableSchemaMetadata\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\",{\"type\":\"record\",\"name\":\"ViewProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Details about a View. \\ne.g. Gets activated when subTypes is view\",\"fields\":[{\"name\":\"materialized\",\"type\":\"boolean\",\"doc\":\"Whether the view is materialized\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"viewLogic\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The view logic\"},{\"name\":\"viewLanguage\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The view logic language / dialect\"}],\"Aspect\":{\"name\":\"viewProperties\"}}]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"datasetKey\",\"name\":\"dataset\"}},{\"type\":\"record\",\"name\":\"DataProcessSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Data process entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataProcessUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataProcessKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Process\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Process name i.e. an ETL job name\",\"Searchable\":{\"boostScore\":4.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized Orchestrator where data process is defined.\\nTODO: Migrate towards something that can be validated like DataPlatform urn\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where dataset belongs to or where it was generated.\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"dataProcessKey\"}},\"com.linkedin.pegasus2avro.common.Ownership\",{\"type\":\"record\",\"name\":\"DataProcessInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"doc\":\"The inputs and outputs of this data process\",\"fields\":[{\"name\":\"inputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"the inputs of the data process\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"the outputs of the data process\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}}],\"Aspect\":{\"name\":\"dataProcessInfo\"}},\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the data process. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataProcessKey\",\"name\":\"dataProcess\"},\"deprecated\":\"Use DataJob instead.\"},{\"type\":\"record\",\"name\":\"DataPlatformSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataplatform entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataPlatformKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Platform\",\"fields\":[{\"name\":\"platformName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform name i.e. hdfs, oracle, espresso\"}],\"Aspect\":{\"name\":\"dataPlatformKey\"}},{\"type\":\"record\",\"name\":\"DataPlatformInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dataplatform\",\"doc\":\"Information about a data platform\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the data platform\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":false,\"fieldType\":\"TEXT_PARTIAL\"},\"validate\":{\"strlen\":{\"max\":15}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The name that will be used for displaying a platform type.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAu","tocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"PlatformType\",\"doc\":\"Platform types available at LinkedIn\",\"symbols\":[\"FILE_SYSTEM\",\"KEY_VALUE_STORE\",\"MESSAGE_BROKER\",\"OBJECT_STORE\",\"OLAP_DATASTORE\",\"OTHERS\",\"QUERY_ENGINE\",\"RELATIONAL_DB\",\"SEARCH_ENGINE\"],\"symbolDocs\":{\"FILE_SYSTEM\":\"Value for a file system, e.g. hdfs\",\"KEY_VALUE_STORE\":\"Value for a key value store, e.g. espresso, voldemort\",\"MESSAGE_BROKER\":\"Value for a message broker, e.g. kafka\",\"OBJECT_STORE\":\"Value for an object store, e.g. ambry\",\"OLAP_DATASTORE\":\"Value for an OLAP datastore, e.g. pinot\",\"OTHERS\":\"Value for other platforms, e.g salesforce, dovetail\",\"QUERY_ENGINE\":\"Value for a query engine, e.g. presto\",\"RELATIONAL_DB\":\"Value for a relational database, e.g. oracle, mysql\",\"SEARCH_ENGINE\":\"Value for a search engine, e.g seas\"}},\"doc\":\"Platform type this data platform describes\"},{\"name\":\"datasetNameDelimiter\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The delimiter in the dataset names on the data platform, e.g. '/' for HDFS and '.' for Oracle\"},{\"name\":\"logoUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The URL for a logo associated with the platform\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}],\"Aspect\":{\"name\":\"dataPlatformInfo\"}}]},\"doc\":\"The list of metadata aspects associated with the data platform. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataPlatformKey\",\"name\":\"dataPlatform\"}},{\"type\":\"record\",\"name\":\"MLModelSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"MLModel Snapshot entity details.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.MLModelUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModel\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where model belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelKey\"}},\"com.linkedin.pegasus2avro.common.Ownership\",{\"type\":\"record\",\"name\":\"MLModelProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a ML Model\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModel\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"date\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModel was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLModel\",\"default\":null},{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"hyperParameters\",\"type\":[\"null\",{\"type\":\"map\",\"values\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"int\",\"float\",\"double\",\"boolean\"],\"avro.java.string\":\"String\"}],\"doc\":\"Hyper Parameters of the MLModel\\n\\nNOTE: these are deprecated in favor of hyperParams\",\"default\":null},{\"name\":\"hyperParams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLHyperParam\",\"doc\":\"Properties associated with an ML Hyper Param\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLHyperParam\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLHyperParam\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the MLHyperParam\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLHyperParam was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlHyperParam\"}}}],\"doc\":\"Hyperparameters of the MLModel\",\"default\":null},{\"name\":\"trainingMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLMetric\",\"doc\":\"Properties associated with an ML Metric\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the mlMetric\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the mlMetric\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the mlMetric\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the mlMetric was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlMetric\"}}}],\"doc\":\"Metrics of the MLModel used in training\",\"default\":null},{\"name\":\"onlineMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLMetric\"}],\"doc\":\"Metrics of the MLModel used in production\",\"default\":null},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features used for MLModel training\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"isLineage\":true,\"name\":\"Consumes\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Tags for the MLModel\",\"default\":[]},{\"name\":\"deployments\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Deployments for the MLModel\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelDeployment\"],\"name\":\"DeployedTo\"}}},{\"name\":\"trainingJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) used to train the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"TrainedBy\"}}},{\"name\":\"downstreamJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) that use the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"UsedBy\"}}},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups the model belongs to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelGroup\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"MemberOf\"}}}],\"Aspect\":{\"name\":\"mlModelProperties\"}},{\"type\":\"record\",\"name\":\"IntendedUse\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Intended Use for the ML Model\",\"fields\":[{\"name\":\"primaryUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Primary Use cases for the MLModel.\",\"default\":null},{\"name\":\"primaryUsers\",\"type\":[\"null\",{\"type\":\"array\",\"item","s\":{\"type\":\"enum\",\"name\":\"IntendedUserType\",\"symbols\":[\"ENTERPRISE\",\"HOBBY\",\"ENTERTAINMENT\"]}}],\"doc\":\"Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions?\",\"default\":null},{\"name\":\"outOfScopeUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to.\",\"default\":null}],\"Aspect\":{\"name\":\"intendedUse\"}},{\"type\":\"record\",\"name\":\"MLModelFactorPrompts\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Prompts which affect the performance of the MLModel\",\"fields\":[{\"name\":\"relevantFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLModelFactors\",\"doc\":\"Factors affecting the performance of the MLModel.\",\"fields\":[{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances.\\nFor human-centric machine learning MLModels, groups are people who share one or multiple characteristics.\",\"default\":null},{\"name\":\"instrumentation\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel.\\nFor example, a face detection model may perform differently depending on the camera's hardware and software,\\nincluding lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode.\",\"default\":null},{\"name\":\"environment\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A further factor affecting MLModel performance is the environment in which it is deployed.\",\"default\":null}]}}],\"doc\":\"What are foreseeable salient factors for which MLModel performance may vary, and how were these determined?\",\"default\":null},{\"name\":\"evaluationFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLModelFactors\"}],\"doc\":\"Which factors are being reported, and why were these chosen?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelFactorPrompts\"}},{\"type\":\"record\",\"name\":\"Metrics\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Metrics to be featured for the MLModel.\",\"fields\":[{\"name\":\"performanceMeasures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Measures of MLModel performance\",\"default\":null},{\"name\":\"decisionThreshold\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Decision Thresholds used (if any)?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelMetrics\"}},{\"type\":\"record\",\"name\":\"EvaluationData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"All referenced datasets would ideally point to any set of documents that provide visibility into the source and composition of the dataset.\",\"fields\":[{\"name\":\"evaluationData\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BaseData\",\"doc\":\"BaseData record\",\"fields\":[{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"What dataset were used in the MLModel?\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"motivation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Why was this dataset chosen?\",\"default\":null},{\"name\":\"preProcessing\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)?\",\"default\":null}]}},\"doc\":\"Details on the dataset(s) used for the quantitative analyses in the MLModel\"}],\"Aspect\":{\"name\":\"mlModelEvaluationData\"}},{\"type\":\"record\",\"name\":\"TrainingData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Ideally, the MLModel card would contain as much information about the training data as the evaluation data. However, there might be cases where it is not feasible to provide this level of detailed information about the training data. For example, the data may be proprietary, or require a non-disclosure agreement. In these cases, we advocate for basic details about the distributions over groups in the data, as well as any other details that could inform stakeholders on the kinds of biases the model may have encoded.\",\"fields\":[{\"name\":\"trainingData\",\"type\":{\"type\":\"array\",\"items\":\"BaseData\"},\"doc\":\"Details on the dataset(s) used for training the MLModel\"}],\"Aspect\":{\"name\":\"mlModelTrainingData\"}},{\"type\":\"record\",\"name\":\"QuantitativeAnalyses\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Quantitative analyses should be disaggregated, that is, broken down by the chosen factors. Quantitative analyses should provide the results of evaluating the MLModel according to the chosen metrics, providing confidence interval values when possible.\",\"fields\":[{\"name\":\"unitaryResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to each factor\",\"default\":null},{\"name\":\"intersectionalResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelQuantitativeAnalyses\"}},{\"type\":\"record\",\"name\":\"EthicalConsiderations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section is intended to demonstrate the ethical considerations that went into MLModel development, surfacing ethical challenges and solutions to stakeholders.\",\"fields\":[{\"name\":\"data\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Does the MLModel use any sensitive data (e.g., protected classes)?\",\"default\":null},{\"name\":\"humanLife\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\" Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way?\",\"default\":null},{\"name\":\"mitigations\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risk mitigation strategies were used during MLModel development?\",\"default\":null},{\"name\":\"risksAndHarms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown.\",\"default\":null},{\"name\":\"useCases\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelEthicalConsiderations\"}},{\"type\":\"record\",\"name\":\"CaveatsAndRecommendations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"caveats\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"CaveatDetails\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"needsFurtherTesting\",\"type\":[\"null\",\"boolean\"],\"doc\":\"Did the results suggest any further testing?\",\"default\":null},{\"name\":\"caveatDescription\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.strin","g\":\"String\"}],\"doc\":\"Caveat Description\\nFor ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders.\",\"default\":null},{\"name\":\"groupsNotRepresented\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Relevant groups that were not represented in the evaluation dataset?\",\"default\":null}]}],\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset?\",\"default\":null},{\"name\":\"recommendations\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Recommendations on where this MLModel should be used.\",\"default\":null},{\"name\":\"idealDatasetCharacteristics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Ideal characteristics of an evaluation dataset for this MLModel\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelCaveatsAndRecommendations\"}},\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",{\"type\":\"record\",\"name\":\"SourceCode\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Source Code\",\"fields\":[{\"name\":\"sourceCode\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SourceCodeUrl\",\"doc\":\"Source Code Url Entity\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"SourceCodeUrlType\",\"symbols\":[\"ML_MODEL_SOURCE_CODE\",\"TRAINING_PIPELINE_SOURCE_CODE\",\"EVALUATION_PIPELINE_SOURCE_CODE\"]},\"doc\":\"Source Code Url Types\"},{\"name\":\"sourceCodeUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source Code Url\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}]}},\"doc\":\"Source Code along with types\"}],\"Aspect\":{\"name\":\"sourceCode\"}},\"com.linkedin.pegasus2avro.common.Status\",{\"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\"}},{\"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\"}},\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLModel. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelKey\",\"name\":\"mlModel\"}},{\"type\":\"record\",\"name\":\"MLPrimaryKeySnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLPrimaryKeyKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLPrimaryKey\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the primary key\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the primary key\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlPrimaryKeyKey\"}},{\"type\":\"record\",\"name\":\"MLPrimaryKeyProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLPrimaryKey\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLPrimaryKey\",\"default\":null},{\"name\":\"dataType\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"MLFeatureDataType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"MLFeature Data Type\",\"symbols\":[\"USELESS\",\"NOMINAL\",\"ORDINAL\",\"BINARY\",\"COUNT\",\"TIME\",\"INTERVAL\",\"IMAGE\",\"VIDEO\",\"AUDIO\",\"TEXT\",\"MAP\",\"SEQUENCE\",\"SET\",\"CONTINUOUS\",\"BYTE\",\"UNKNOWN\"],\"symbolDocs\":{\"AUDIO\":\"Audio Data\",\"BINARY\":\"Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc\",\"BYTE\":\"Bytes data are binary-encoded values that can represent complex objects.\",\"CONTINUOUS\":\"Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.\",\"COUNT\":\"Count data is discrete whole number data - no negative numbers here.\\nCount data often has many small values, such as zero and one.\",\"IMAGE\":\"Image Data\",\"INTERVAL\":\"Interval data has equal spaces between the numbers and does not represent a temporal pattern.\\nExamples include percentages, temperatures, and income.\",\"MAP\":\"Mapping Data Type ex: dict, map\",\"NOMINAL\":\"Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.\",\"ORDINAL\":\"Ordinal data are discrete integers that can be ranked or sorted.\\nFor example, the distance between first and second may not be the same as the distance between second and third.\",\"SEQUENCE\":\"Sequence Data Type ex: list, tuple, range\",\"SET\":\"Set Data Type ex: set, frozenset\",\"TEXT\":\"Text Data\",\"TIME\":\"Time data is a cyclical, repeating continuous form of data.\\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.\",\"UNKNOWN\":\"Unknown data are data that we don't know the type for.\",\"USELESS\":\"Useless data is unique, discrete data with no potential relationship with the outcome variable.\\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.\",\"VIDEO\":\"Video Data\"}}],\"doc\":\"Data Type of the MLPrimaryKey\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLPrimaryKey\",\"default\":null},{\"name\":\"sources\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Source of the MLPrimaryKey\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlPrimaryKeyProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLPrimaryKey. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlPrimaryKeyKey\",\"name\":\"mlPrimaryKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.m","etadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.MLFeatureUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLFeatureKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeature\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the feature\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeature\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeature\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"dataType\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.MLFeatureDataType\"],\"doc\":\"Data Type of the MLFeature\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLFeature\",\"default\":null},{\"name\":\"sources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Source of the MLFeature\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlFeatureProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLFeature. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlFeatureKey\",\"name\":\"mlFeature\"}},{\"type\":\"record\",\"name\":\"MLFeatureTableSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLFeatureTableKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeatureTable\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the feature table\",\"Relationship\":{\"entityTypes\":[\"dataPlatform\"],\"name\":\"SourcePlatform\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature table\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureTableKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureTableProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeatureTable\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeatureTable\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features contained in the feature table\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"name\":\"Contains\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"features\",\"fieldType\":\"URN\"}}},{\"name\":\"mlPrimaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of primary keys in the feature table (if multiple, assumed to act as a composite key)\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlPrimaryKey\"],\"name\":\"KeyedBy\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"primaryKeys\",\"fieldType\":\"URN\"}}}],\"Aspect\":{\"name\":\"mlFeatureTableProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLFeatureTable. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlFeatureTableKey\",\"name\":\"mlFeatureTable\"}},{\"type\":\"record\",\"name\":\"MLModelDeploymentSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelDeploymentKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model deployment\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model Deployment\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModelDeployment\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where model Deployment belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelDeploymentKey\"}},{\"type\":\"record\",\"name\":\"MLModelDeploymentProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Deployment\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModelDeployment\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModelDeployment was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLModelDeployment\",\"default\":null},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"DeploymentStatus\",\"doc\":\"Model endpoint statuses\",\"symbols\":[\"OUT_OF_SERVICE\",\"CREATING\",\"UPDATING\",\"ROLLING_BACK\",\"IN_SERVICE\",\"DELETING\",\"FAILED\",\"UNKNOWN\"],\"symbolDocs\":{\"CREATING\":\"Deployments being created.\",\"DELETING\":\"Deployments being deleted.\",\"FAILED\":\"Deployments with an error state.\",\"IN_SERVICE\":\"Deployments that are active.\",\"OUT_OF_SERVICE\":\"Deployments out of service.\",\"ROLLING_BACK\":\"Deployments being reverted to a previous version.\",\"UNKNOWN\":\"Deployments with unknown/unmappable state.\",\"UPDATING\":\"Deployments being updated.\"}}],\"doc\":\"Status of the deployment\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelDeploymentPr","operties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLModelDeployment. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelDeploymentKey\",\"name\":\"mlModelDeployment\"}},{\"type\":\"record\",\"name\":\"MLModelGroupSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model group\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model group\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModelGroup\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where model group belongs to or where it was generated\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelGroupKey\"}},{\"type\":\"record\",\"name\":\"MLModelGroupProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Group\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModelGroup\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModelGroup was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLModelGroup\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelGroupProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLModelGroup. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelGroupKey\",\"name\":\"mlModelGroup\"}},{\"type\":\"record\",\"name\":\"TagSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataset entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"TagKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The tag name, which serves as a unique id\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"tagKey\"}},\"com.linkedin.pegasus2avro.common.Ownership\",{\"type\":\"record\",\"name\":\"TagProperties\",\"namespace\":\"com.linkedin.pegasus2avro.tag\",\"doc\":\"Properties associated with a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the tag\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the tag\",\"default\":null,\"Searchable\":{}},{\"name\":\"colorHex\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The color associated with the Tag in Hex. For example #FFFFFF.\",\"default\":null}],\"Aspect\":{\"name\":\"tagProperties\"}},\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"tagKey\",\"name\":\"tag\"}},{\"type\":\"record\",\"name\":\"GlossaryTermSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific GlossaryTerm entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"GlossaryTermKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryTerm\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The term name, which serves as a unique id\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryTermKey\"}},{\"type\":\"record\",\"name\":\"GlossaryTermInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryTerm\",\"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\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the term\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the term\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business term.\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"termSource\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"External Reference to the business-term\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"rawSchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Schema definition of the glossary term\",\"default\":null,\"deprecated\":true}],\"Aspect\":{\"name\":\"glossaryTermInfo\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",{\"type\":\"record\",\"name\":\"GlossaryRelatedTerms\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Has A / Is A lineage information about a glossary Term reporting the lineage\",\"fields\":[{\"name\":\"isRelatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java",".string\":\"String\"}}],\"doc\":\"The relationship Is A with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"IsA\"}},\"Searchable\":{\"/*\":{\"boostScore\":2.0,\"fieldName\":\"isRelatedTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"hasRelatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Has A with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"HasA\"}},\"Searchable\":{\"/*\":{\"boostScore\":2.0,\"fieldName\":\"hasRelatedTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"values\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Has Value with glossary term.\\nThese are fixed value a term has. For example a ColorEnum where RED, GREEN and YELLOW are fixed values.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"HasValue\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"values\",\"fieldType\":\"URN\"}}},{\"name\":\"relatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship isRelatedTo with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"IsRelatedTo\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"relatedTerms\",\"fieldType\":\"URN\"}}}],\"Aspect\":{\"name\":\"glossaryRelatedTerms\"}}]},\"doc\":\"The list of metadata aspects associated with the GlossaryTerm. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"glossaryTermKey\",\"name\":\"glossaryTerm\"}},{\"type\":\"record\",\"name\":\"GlossaryNodeSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific GlossaryNode entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"GlossaryNodeKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryNode\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeKey\"}},{\"type\":\"record\",\"name\":\"GlossaryNodeInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryNode\",\"fields\":[{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business node\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the node\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"displayName\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the GlossaryNode\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeInfo\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the GlossaryNode. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"glossaryNodeKey\",\"name\":\"glossaryNode\"}},{\"type\":\"record\",\"name\":\"DataHubPolicySnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for DataHub Access Policy data.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataHubPolicyKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Policy\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the DataHub access policy record. Generated on the server side at policy creation time.\"}],\"Aspect\":{\"name\":\"dataHubPolicyKey\"}},{\"type\":\"record\",\"name\":\"DataHubPolicyInfo\",\"namespace\":\"com.linkedin.pegasus2avro.policy\",\"doc\":\"Information about a DataHub (UI) access policy.\",\"fields\":[{\"name\":\"displayName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the Policy\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the Policy\",\"Searchable\":{\"fieldType\":\"TEXT\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of policy\"},{\"name\":\"state\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The state of policy, ACTIVE or INACTIVE\"},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DataHubResourceFilter\",\"doc\":\"Information used to filter DataHub resource.\",\"fields\":[{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The type of resource that the policy applies to. This will most often be a data asset entity name, for\\nexample 'dataset'. It is not strictly required because in the future we will want to support filtering a resource\\nby domain, as well.\",\"default\":null,\"deprecated\":true},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of resources to apply the policy to, e.g. asset urns\",\"default\":null,\"deprecated\":true},{\"name\":\"allResources\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be applied to all assets matching the filter.\",\"default\":false,\"deprecated\":true},{\"name\":\"filter\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"PolicyMatchFilter\",\"doc\":\"The filter for specifying the resource or actor to apply privileges to\",\"fields\":[{\"name\":\"criteria\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"PolicyMatchCriterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. Matches criterion if any one of the values matches condition (OR-relationship)\"},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"PolicyMatchCondition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"EQUALS\"],\"symbolDocs\":{\"EQUALS\":\"Whether the field matches the value\"}},\"doc\":\"The condition for the criterion\",\"default\":\"EQUALS\"}]}},\"doc\":\"A list of criteria to apply conjunctively (so all criteria must pass)\"}]}],\"doc\":\"Filter to apply privileges to\",\"default\":null}]}],\"doc\":\"The resource that the policy applies to. Not required for some 'Platform' privileges.\",\"default\":null},{\"name\":\"privileges\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"The privileges that the policy grants.\"},{\"name\":\"actors\",\"type\":{\"type\":\"record\",\"name\":\"DataHubActorFilter\",\"doc\":\"Information used to filter DataHub actors.\",\"fields\":[{\"name\":\"users\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of users to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of groups to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"resourceOwners\",\"type\":\"boolean\",\"doc\":\"Whether the filter should return true for owners of a particular resource.\\nOnly applies to policies of type 'Metadata', which have a resource associated with them.\",\"default\":false},{\"name\":\"allUsers\",\"type\":\"boolean\",\"doc\":\"Whether the fil","ter should apply to all users.\",\"default\":false},{\"name\":\"allGroups\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all groups.\",\"default\":false},{\"name\":\"roles\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of roles to apply the policy to (disjunctive).\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataHubRole\"],\"name\":\"IsAssociatedWithRole\"}}}]},\"doc\":\"The actors that the policy applies to.\"},{\"name\":\"editable\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be editable via the UI\",\"default\":true},{\"name\":\"lastUpdatedTimestamp\",\"type\":[\"null\",\"long\"],\"doc\":\"Timestamp when the policy was last updated\",\"default\":null,\"Searchable\":{\"fieldType\":\"DATETIME\"}}],\"Aspect\":{\"name\":\"dataHubPolicyInfo\"}}]},\"doc\":\"The list of metadata aspects associated with the DataHub access policy.\"}],\"Entity\":{\"keyAspect\":\"dataHubPolicyKey\",\"name\":\"dataHubPolicy\"}},{\"type\":\"record\",\"name\":\"SchemaFieldSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific schema field entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"SchemaFieldKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a SchemaField\",\"fields\":[{\"name\":\"parent\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Parent associated with the schema field\",\"Searchable\":{\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"fieldPath identifying the schema field\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}}],\"Aspect\":{\"name\":\"schemaFieldKey\"}}]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"schemaFieldKey\",\"name\":\"schemaField\"}},{\"type\":\"record\",\"name\":\"DataHubRetentionSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for DataHub Access Policy data.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataHubRetentionKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Retention\",\"fields\":[{\"name\":\"entityName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Entity name to apply retention to. * (or empty) for applying defaults.\"},{\"name\":\"aspectName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Aspect name to apply retention to. * (or empty) for applying defaults.\"}],\"Aspect\":{\"name\":\"dataHubRetentionKey\"}},{\"type\":\"record\",\"name\":\"DataHubRetentionConfig\",\"namespace\":\"com.linkedin.pegasus2avro.retention\",\"fields\":[{\"name\":\"retention\",\"type\":{\"type\":\"record\",\"name\":\"Retention\",\"doc\":\"Base class that encapsulates different retention policies.\\nOnly one of the fields should be set\",\"fields\":[{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionBasedRetention\",\"doc\":\"Keep max N latest records\",\"fields\":[{\"name\":\"maxVersions\",\"type\":\"int\"}]}],\"default\":null},{\"name\":\"time\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeBasedRetention\",\"doc\":\"Keep records that are less than X seconds old\",\"fields\":[{\"name\":\"maxAgeInSeconds\",\"type\":\"int\"}]}],\"default\":null}]}}],\"Aspect\":{\"name\":\"dataHubRetentionConfig\"}}]},\"doc\":\"The list of metadata aspects associated with the DataHub access policy.\"}],\"Entity\":{\"keyAspect\":\"dataHubRetentionKey\",\"name\":\"dataHubRetention\"}}],\"doc\":\"Snapshot of the metadata before the update. Set to null for newly created metadata. Only the metadata aspects affected by the update are included in the snapshot.\",\"default\":null},{\"name\":\"oldSystemMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SystemMetadata\",\"doc\":\"Metadata associated with each metadata change that is processed by the system\",\"fields\":[{\"name\":\"lastObserved\",\"type\":[\"long\",\"null\"],\"doc\":\"The timestamp the metadata was observed at\",\"default\":0},{\"name\":\"runId\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"],\"doc\":\"The run id that produced the metadata. Populated in case of batch-ingestion.\",\"default\":\"no-run-id-provided\"},{\"name\":\"registryName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry name that was used to process this event\",\"default\":null},{\"name\":\"registryVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry version that was used to process this event\",\"default\":null},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Additional properties\",\"default\":null}]}],\"doc\":\"Metadata around how the old snapshot was produced.\",\"default\":null},{\"name\":\"newSnapshot\",\"type\":[\"com.linkedin.pegasus2avro.metadata.snapshot.ChartSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.CorpGroupSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.CorpUserSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.DataFlowSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.DataJobSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.DatasetSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.DataProcessSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.DataPlatformSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.MLModelSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.MLPrimaryKeySnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.MLFeatureTableSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.MLModelDeploymentSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.MLModelGroupSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.TagSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.GlossaryTermSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.GlossaryNodeSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.DataHubPolicySnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.SchemaFieldSnapshot\",\"com.linkedin.pegasus2avro.metadata.snapshot.DataHubRetentionSnapshot\"],\"doc\":\"Snapshot of the metadata after the update. Only the metadata aspects affected by the update are included in the snapshot.\"},{\"name\":\"newSystemMetadata\",\"type\":[\"null\",\"SystemMetadata\"],\"doc\":\"Metadata around how the new snapshot was produced.\",\"default\":null},{\"name\":\"operation\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"MetadataAuditOperation\",\"symbols\":[\"UPDATE\",\"DELETE\"]}],\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Kafka audit header. See go/kafkaauditheader for more info. */ - @Deprecated public com.linkedin.events.KafkaAuditHeader auditHeader; - /** Snapshot of the metadata before the update. Set to null for newly created metadata. Only the metadata aspects affected by the update are included in the snapshot. */ - @Deprecated public java.lang.Object oldSnapshot; - /** Metadata around how the old snapshot was produced. */ - @Deprecated public com.linkedin.pegasus2avro.mxe.SystemMetadata oldSystemMetadata; - /** Snapshot of the metadata after the update. Only the metadata aspects affected by the update are included in the snapshot. */ - @Deprecated public java.lang.Object newSnapshot; - /** Metadata around how the new snapshot was produced. */ - @Deprecated public com.linkedin.pegasus2avro.mxe.SystemMetadata newSystemMetadata; - @Deprecated public com.linkedin.pegasus2avro.mxe.MetadataAuditOperation operation; - - /** - * 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 MetadataAuditEvent() {} - - /** - * All-args constructor. - */ - public MetadataAuditEvent(com.linkedin.events.KafkaAuditHeader auditHeader, java.lang.Object oldSnapshot, com.linkedin.pegasus2avro.mxe.SystemMetadata oldSystemMetadata, java.lang.Object newSnapshot, com.linkedin.pegasus2avro.mxe.SystemMetadata newSystemMetadata, com.linkedin.pegasus2avro.mxe.MetadataAuditOperation operation) { - this.auditHeader = auditHeader; - this.oldSnapshot = oldSnapshot; - this.oldSystemMetadata = oldSystemMetadata; - this.newSnapshot = newSnapshot; - this.newSystemMetadata = newSystemMetadata; - this.operation = operation; - } - - 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 auditHeader; - case 1: return oldSnapshot; - case 2: return oldSystemMetadata; - case 3: return newSnapshot; - case 4: return newSystemMetadata; - case 5: return operation; - 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: auditHeader = (com.linkedin.events.KafkaAuditHeader)value$; break; - case 1: oldSnapshot = (java.lang.Object)value$; break; - case 2: oldSystemMetadata = (com.linkedin.pegasus2avro.mxe.SystemMetadata)value$; break; - case 3: newSnapshot = (java.lang.Object)value$; break; - case 4: newSystemMetadata = (com.linkedin.pegasus2avro.mxe.SystemMetadata)value$; break; - case 5: operation = (com.linkedin.pegasus2avro.mxe.MetadataAuditOperation)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'auditHeader' field. - * Kafka audit header. See go/kafkaauditheader for more info. */ - public com.linkedin.events.KafkaAuditHeader getAuditHeader() { - return auditHeader; - } - - /** - * Sets the value of the 'auditHeader' field. - * Kafka audit header. See go/kafkaauditheader for more info. * @param value the value to set. - */ - public void setAuditHeader(com.linkedin.events.KafkaAuditHeader value) { - this.auditHeader = value; - } - - /** - * Gets the value of the 'oldSnapshot' field. - * Snapshot of the metadata before the update. Set to null for newly created metadata. Only the metadata aspects affected by the update are included in the snapshot. */ - public java.lang.Object getOldSnapshot() { - return oldSnapshot; - } - - /** - * Sets the value of the 'oldSnapshot' field. - * Snapshot of the metadata before the update. Set to null for newly created metadata. Only the metadata aspects affected by the update are included in the snapshot. * @param value the value to set. - */ - public void setOldSnapshot(java.lang.Object value) { - this.oldSnapshot = value; - } - - /** - * Gets the value of the 'oldSystemMetadata' field. - * Metadata around how the old snapshot was produced. */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getOldSystemMetadata() { - return oldSystemMetadata; - } - - /** - * Sets the value of the 'oldSystemMetadata' field. - * Metadata around how the old snapshot was produced. * @param value the value to set. - */ - public void setOldSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - this.oldSystemMetadata = value; - } - - /** - * Gets the value of the 'newSnapshot' field. - * Snapshot of the metadata after the update. Only the metadata aspects affected by the update are included in the snapshot. */ - public java.lang.Object getNewSnapshot() { - return newSnapshot; - } - - /** - * Sets the value of the 'newSnapshot' field. - * Snapshot of the metadata after the update. Only the metadata aspects affected by the update are included in the snapshot. * @param value the value to set. - */ - public void setNewSnapshot(java.lang.Object value) { - this.newSnapshot = value; - } - - /** - * Gets the value of the 'newSystemMetadata' field. - * Metadata around how the new snapshot was produced. */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getNewSystemMetadata() { - return newSystemMetadata; - } - - /** - * Sets the value of the 'newSystemMetadata' field. - * Metadata around how the new snapshot was produced. * @param value the value to set. - */ - public void setNewSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - this.newSystemMetadata = value; - } - - /** - * Gets the value of the 'operation' field. - */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditOperation getOperation() { - return operation; - } - - /** - * Sets the value of the 'operation' field. - * @param value the value to set. - */ - public void setOperation(com.linkedin.pegasus2avro.mxe.MetadataAuditOperation value) { - this.operation = value; - } - - /** Creates a new MetadataAuditEvent RecordBuilder */ - public static com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder newBuilder() { - return new com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder(); - } - - /** Creates a new MetadataAuditEvent RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder newBuilder(com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder other) { - return new com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder(other); - } - - /** Creates a new MetadataAuditEvent RecordBuilder by copying an existing MetadataAuditEvent instance */ - public static com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder newBuilder(com.linkedin.pegasus2avro.mxe.MetadataAuditEvent other) { - return new com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder(other); - } - - /** - * RecordBuilder for MetadataAuditEvent instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.events.KafkaAuditHeader auditHeader; - private java.lang.Object oldSnapshot; - private com.linkedin.pegasus2avro.mxe.SystemMetadata oldSystemMetadata; - private java.lang.Object newSnapshot; - private com.linkedin.pegasus2avro.mxe.SystemMetadata newSystemMetadata; - private com.linkedin.pegasus2avro.mxe.MetadataAuditOperation operation; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder other) { - super(other); - if (isValidValue(fields()[0], other.auditHeader)) { - this.auditHeader = data().deepCopy(fields()[0].schema(), other.auditHeader); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.oldSnapshot)) { - this.oldSnapshot = data().deepCopy(fields()[1].schema(), other.oldSnapshot); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.oldSystemMetadata)) { - this.oldSystemMetadata = data().deepCopy(fields()[2].schema(), other.oldSystemMetadata); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.newSnapshot)) { - this.newSnapshot = data().deepCopy(fields()[3].schema(), other.newSnapshot); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.newSystemMetadata)) { - this.newSystemMetadata = data().deepCopy(fields()[4].schema(), other.newSystemMetadata); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.operation)) { - this.operation = data().deepCopy(fields()[5].schema(), other.operation); - fieldSetFlags()[5] = true; - } - } - - /** Creates a Builder by copying an existing MetadataAuditEvent instance */ - private Builder(com.linkedin.pegasus2avro.mxe.MetadataAuditEvent other) { - super(com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.SCHEMA$); - if (isValidValue(fields()[0], other.auditHeader)) { - this.auditHeader = data().deepCopy(fields()[0].schema(), other.auditHeader); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.oldSnapshot)) { - this.oldSnapshot = data().deepCopy(fields()[1].schema(), other.oldSnapshot); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.oldSystemMetadata)) { - this.oldSystemMetadata = data().deepCopy(fields()[2].schema(), other.oldSystemMetadata); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.newSnapshot)) { - this.newSnapshot = data().deepCopy(fields()[3].schema(), other.newSnapshot); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.newSystemMetadata)) { - this.newSystemMetadata = data().deepCopy(fields()[4].schema(), other.newSystemMetadata); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.operation)) { - this.operation = data().deepCopy(fields()[5].schema(), other.operation); - fieldSetFlags()[5] = true; - } - } - - /** Gets the value of the 'auditHeader' field */ - public com.linkedin.events.KafkaAuditHeader getAuditHeader() { - return auditHeader; - } - - /** Sets the value of the 'auditHeader' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder setAuditHeader(com.linkedin.events.KafkaAuditHeader value) { - validate(fields()[0], value); - this.auditHeader = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'auditHeader' field has been set */ - public boolean hasAuditHeader() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'auditHeader' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder clearAuditHeader() { - auditHeader = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'oldSnapshot' field */ - public java.lang.Object getOldSnapshot() { - return oldSnapshot; - } - - /** Sets the value of the 'oldSnapshot' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder setOldSnapshot(java.lang.Object value) { - validate(fields()[1], value); - this.oldSnapshot = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'oldSnapshot' field has been set */ - public boolean hasOldSnapshot() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'oldSnapshot' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder clearOldSnapshot() { - oldSnapshot = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'oldSystemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getOldSystemMetadata() { - return oldSystemMetadata; - } - - /** Sets the value of the 'oldSystemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder setOldSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - validate(fields()[2], value); - this.oldSystemMetadata = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'oldSystemMetadata' field has been set */ - public boolean hasOldSystemMetadata() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'oldSystemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder clearOldSystemMetadata() { - oldSystemMetadata = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'newSnapshot' field */ - public java.lang.Object getNewSnapshot() { - return newSnapshot; - } - - /** Sets the value of the 'newSnapshot' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder setNewSnapshot(java.lang.Object value) { - validate(fields()[3], value); - this.newSnapshot = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'newSnapshot' field has been set */ - public boolean hasNewSnapshot() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'newSnapshot' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder clearNewSnapshot() { - newSnapshot = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'newSystemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getNewSystemMetadata() { - return newSystemMetadata; - } - - /** Sets the value of the 'newSystemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder setNewSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - validate(fields()[4], value); - this.newSystemMetadata = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'newSystemMetadata' field has been set */ - public boolean hasNewSystemMetadata() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'newSystemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder clearNewSystemMetadata() { - newSystemMetadata = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'operation' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditOperation getOperation() { - return operation; - } - - /** Sets the value of the 'operation' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder setOperation(com.linkedin.pegasus2avro.mxe.MetadataAuditOperation value) { - validate(fields()[5], value); - this.operation = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'operation' field has been set */ - public boolean hasOperation() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'operation' field */ - public com.linkedin.pegasus2avro.mxe.MetadataAuditEvent.Builder clearOperation() { - operation = null; - fieldSetFlags()[5] = false; - return this; - } - - @Override - public MetadataAuditEvent build() { - try { - MetadataAuditEvent record = new MetadataAuditEvent(); - record.auditHeader = fieldSetFlags()[0] ? this.auditHeader : (com.linkedin.events.KafkaAuditHeader) defaultValue(fields()[0]); - record.oldSnapshot = fieldSetFlags()[1] ? this.oldSnapshot : (java.lang.Object) defaultValue(fields()[1]); - record.oldSystemMetadata = fieldSetFlags()[2] ? this.oldSystemMetadata : (com.linkedin.pegasus2avro.mxe.SystemMetadata) defaultValue(fields()[2]); - record.newSnapshot = fieldSetFlags()[3] ? this.newSnapshot : (java.lang.Object) defaultValue(fields()[3]); - record.newSystemMetadata = fieldSetFlags()[4] ? this.newSystemMetadata : (com.linkedin.pegasus2avro.mxe.SystemMetadata) defaultValue(fields()[4]); - record.operation = fieldSetFlags()[5] ? this.operation : (com.linkedin.pegasus2avro.mxe.MetadataAuditOperation) 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/mxe/MetadataAuditOperation.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/MetadataAuditOperation.java deleted file mode 100644 index e910ab0771c4c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/MetadataAuditOperation.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum MetadataAuditOperation { - UPDATE, DELETE ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"MetadataAuditOperation\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"symbols\":[\"UPDATE\",\"DELETE\"]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/MetadataChangeEvent.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/MetadataChangeEvent.java deleted file mode 100644 index 43b590a4a4976..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/MetadataChangeEvent.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -/** Kafka event for proposing a metadata change for an entity. A corresponding MetadataAuditEvent is emitted when the change is accepted and committed, otherwise a FailedMetadataChangeEvent will be emitted instead. */ -@org.apache.avro.specific.AvroGenerated -public class MetadataChangeEvent 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\":\"MetadataChangeEvent\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Kafka event for proposing a metadata change for an entity. A corresponding MetadataAuditEvent is emitted when the change is accepted and committed, otherwise a FailedMetadataChangeEvent will be emitted instead.\",\"fields\":[{\"name\":\"auditHeader\",\"type\":[\"null\",{\"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\"}]}],\"doc\":\"Kafka audit header. See go/kafkaauditheader for more info.\",\"default\":null},{\"name\":\"proposedSnapshot\",\"type\":[{\"type\":\"record\",\"name\":\"ChartSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Chart entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.ChartUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"ChartKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Chart\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"chartId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234'\"}],\"Aspect\":{\"name\":\"chartKey\"}},{\"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\"}},{\"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\"}},{\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\"}},{\"type\":\"record\",\"name\":\"Ownership\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Ownership information of an entity.\",\"fields\":[{\"name\":\"owners\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Owner\",\"doc\":\"Ownership information\",\"fields\":[{\"name\":\"owner\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\\n(Caveat: only corpuser is currently supported in the frontend.)\",\"Relationship\":{\"entityTypes\":[\"corpuser\",\"corpGroup\"],\"name\":\"OwnedBy\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"owners\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Owned By\",\"hasValuesFieldName\":\"hasOwners\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipType\",\"doc\":\"Asset owner types\",\"symbols\":[\"TECHNICAL_OWNER\",\"BUSINESS_OWNER\",\"DATA_STEWARD\",\"NONE\",\"DEVELOPER\",\"DATAOWNER\",\"DELEGATE\",\"PRODUCER\",\"CONSUMER\",\"STAKEHOLDER\"],\"symbolDocs\":{\"BUSINESS_OWNER\":\"A person or group who is responsible for logical, or business related, aspects of the asset.\",\"CONSUMER\":\"A person, group, or service that consumes the data\\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.\",\"DATAOWNER\":\"A person or group that is owning the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DATA_STEWARD\":\"A steward, expert, or delegate responsible for the asset.\",\"DELEGATE\":\"A person or a group that overseas the operation, e.g. a DBA or SRE.\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"DEVELOPER\":\"A person or group that is in charge of developing the code\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"NONE\":\"No specific type associated to the owner.\",\"PRODUCER\":\"A person, group, or service that produces/generates the data\\nDeprecated! Use TECHNICAL_OWNER instead.\",\"STAKEHOLDER\":\"A person or a group that has direct business interest\\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.\",\"TECHNICAL_OWNER\":\"person or group who is responsible for technical aspects of the asset.\"},\"deprecatedSymbols\":{\"CONSUMER\":true,\"DATAOWNER\":true,\"DELEGATE\":true,\"DEVELOPER\":true,\"PRODUCER\":true,\"STAKEHOLDER\":true}},\"doc\":\"The type of the ownership\"},{\"name\":\"source\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"OwnershipSource\",\"doc\":\"Source/provider of the ownership information\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"OwnershipSourceType\",\"symbols\":[\"AUDIT\",\"DATABASE\",\"FILE_SYSTEM\",\"ISSUE_TRACKING_SYSTEM\",\"MANUAL\",\"SERVICE\",\"SOURCE_CONTROL\",\"OTHER\"],\"symbolDocs\":{\"AUDIT\":\"Auditing system or audit logs\",\"DATABASE\":\"Database, e.g. GRANTS table\",\"FILE_SYSTEM\":\"File system, e.g. file/directory owner\",\"ISSUE_TRACKING_SYSTEM\":\"Issue tracking system, e.g. Jira\",\"MANUAL\":\"Manually provided by a user\",\"OTHER\":\"Other sources\",\"SERVICE\":\"Other ownership-like service, e.g. Nuage, ACL service etc\",\"SOURCE_CONTROL\":\"SCM system, e.g. GIT, SVN\"}},\"doc\":\"The type of the source\"},{\"name\":\"url\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A reference URL for the source\",\"default\":null}]}],\"doc\":\"Source information fo","r the ownership\",\"default\":null}]}},\"doc\":\"List of owners of the entity.\"},{\"name\":\"lastModified\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}}],\"Aspect\":{\"name\":\"ownership\"}},{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\\nThis aspect is used to represent soft deletes conventionally.\",\"fields\":[{\"name\":\"removed\",\"type\":\"boolean\",\"doc\":\"Whether the entity has been removed (soft-deleted).\",\"default\":false,\"Searchable\":{\"fieldType\":\"BOOLEAN\"}}],\"Aspect\":{\"name\":\"status\"}},{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}},{\"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\"}},{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}},{\"type\":\"record\",\"name\":\"InstitutionalMemory\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.\",\"fields\":[{\"name\":\"elements\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"InstitutionalMemoryMetadata\",\"doc\":\"Metadata corresponding to a record of institutional memory.\",\"fields\":[{\"name\":\"url\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Link to an engineering design document or a wiki page.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the link.\"},{\"name\":\"createStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp associated with creation of this record\"}]}},\"doc\":\"List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record.\"}],\"Aspect\":{\"name\":\"institutionalMemory\"}},{\"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\"}}]},\"doc\":\"The list of metadata aspects associated with the chart. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"chartKey\",\"name\":\"chart\"}},{\"type\":\"record\",\"name\":\"CorpGroupSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific CorpGroup entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpGroupUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"CorpGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpGroup\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub.\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}}],\"Aspect\":{\"name\":\"corpGroupKey\"}},{\"type\":\"record\",\"name\":\"CorpGroupInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Information about a Corp Group ingested from a third party source\",\"fields\":[{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The name of the group.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email of this group\",\"default\":null},{\"name\":\"admins\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"owners of this group\\nDeprecated! Replaced by Ownership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"OwnedBy\"}},\"deprecated\":true},{\"name\":\"members\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of ldap urn in this group.\\nDeprecated! Replaced by GroupMembership aspect.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpuser\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of groups in this group.\\nDeprecated! This field is unused.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsPartOf\"}},\"deprecated\":true},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"A description of the group.\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack channel for the group\",\"default\":null},{\"name\":\"created\",\"type\":[\"null\",\"com.","linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Created Audit stamp\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdTime\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpGroupUrn\"],\"name\":\"corpGroupInfo\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the LdapUser. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"corpGroupKey\",\"name\":\"corpGroup\"}},{\"type\":\"record\",\"name\":\"CorpUserSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific CorpUser entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpuserUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"CorpUserKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a CorpUser\",\"fields\":[{\"name\":\"username\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the AD/LDAP user.\",\"Searchable\":{\"boostScore\":2.0,\"enableAutocomplete\":true,\"fieldName\":\"ldap\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"corpUserKey\"}},{\"type\":\"record\",\"name\":\"CorpUserInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information\",\"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\":\"active\",\"type\":\"boolean\",\"doc\":\"Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":2.0}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"displayName of this user , e.g. Hang Zhang(DataHQ)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"email address of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"title of this user\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\",\"queryByDefault\":true}},{\"name\":\"managerUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"direct manager of this user\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"corpuser\"],\"name\":\"ReportsTo\"},\"Searchable\":{\"fieldName\":\"managerLdap\",\"fieldType\":\"URN\",\"queryByDefault\":true},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.CorpuserUrn\"}},{\"name\":\"departmentId\",\"type\":[\"null\",\"long\"],\"doc\":\"department id this user belong to\",\"default\":null},{\"name\":\"departmentName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"department name this user belong to\",\"default\":null},{\"name\":\"firstName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"first name of this user\",\"default\":null},{\"name\":\"lastName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"last name of this user\",\"default\":null},{\"name\":\"fullName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Common name of this user, format is firstName + lastName (split by a whitespace)\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"countryCode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"two uppercase letters country code. e.g. US\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserEditableInfo\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Linkedin corp user information that can be edited from UI\",\"fields\":[{\"name\":\"aboutMe\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"About me section of the user\",\"default\":null},{\"name\":\"teams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Teams that the user belongs to e.g. Metadata\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"skills\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Skills that the user possesses e.g. Machine Learning\",\"default\":[],\"Searchable\":{\"/*\":{\"fieldType\":\"TEXT\"}}},{\"name\":\"pictureLink\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A URL which points to a picture which user wants to set as a profile photo\",\"default\":\"https://raw.githubusercontent.com/datahub-project/datahub/master/datahub-web-react/src/images/default_avatar.png\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native display name\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":true}},{\"name\":\"title\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataHub-native Title, e.g. 'Software Engineer'\",\"default\":null},{\"name\":\"slack\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Slack handle for the user\",\"default\":null},{\"name\":\"phone\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Phone number to contact the user\",\"default\":null},{\"name\":\"email\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Email address to contact the user\",\"default\":null}],\"Aspect\":{\"EntityUrns\":[\"com.linkedin.pegasus2avro.common.CorpuserUrn\"],\"name\":\"corpUserEditableInfo\"}},{\"type\":\"record\",\"name\":\"CorpUserStatus\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"The status of the user, e.g. provisioned, active, suspended, etc.\",\"fields\":[{\"name\":\"status\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit stamp containing who last modified the status and when.\"}],\"Aspect\":{\"name\":\"corpUserStatus\"}},{\"type\":\"record\",\"name\":\"GroupMembership\",\"namespace\":\"com.linkedin.pegasus2avro.identity\",\"doc\":\"Carries information about the CorpGroups a user is in.\",\"fields\":[{\"name\":\"groups\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"Relationship\":{\"/*\":{\"entityTypes\":[\"corpGroup\"],\"name\":\"IsMemberOfGroup\"}}}],\"Aspect\":{\"name\":\"groupMembership\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the CorpUser. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"corpUserKey\",\"name\":\"corpuser\"}},{\"type\":\"record\",\"name\":\"DashboardSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Dashboard entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DashboardUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DashboardKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dashboard\",\"fields\":[{\"name\":\"dashboardTool\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the dashboard tool such as looker, redash etc.\",\"Searchable\":{\"boostScore\":4.0,\"fieldName\":\"tool\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"dashboardId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the dashboard. This id should be globally unique for a da","shboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234'\"}],\"Aspect\":{\"name\":\"dashboardKey\"}},{\"type\":\"record\",\"name\":\"DashboardInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"doc\":\"Information about a dashboard\",\"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 dashboard\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Detailed description about the dashboard\",\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"charts\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Charts in a dashboard\\nDeprecated! Use chartEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\"}},\"deprecated\":true},{\"name\":\"chartEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Charts in a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"chartEdges/*/created/actor\",\"createdOn\":\"chartEdges/*/created/time\",\"entityTypes\":[\"chart\"],\"isLineage\":true,\"name\":\"Contains\",\"properties\":\"chartEdges/*/properties\",\"updatedActor\":\"chartEdges/*/lastModified/actor\",\"updatedOn\":\"chartEdges/*/lastModified/time\"}}},{\"name\":\"datasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Datasets consumed by a dashboard\\nDeprecated! Use datasetEdges instead.\",\"default\":[],\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"deprecated\":true},{\"name\":\"datasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Datasets consumed by a dashboard\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"datasetEdges/*/created/actor\",\"createdOn\":\"datasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"datasetEdges/*/properties\",\"updatedActor\":\"datasetEdges/*/lastModified/actor\",\"updatedOn\":\"datasetEdges/*/lastModified/time\"}}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.ChangeAuditStamps\",\"doc\":\"Captures information about who created/last modified/deleted this dashboard and when\"},{\"name\":\"dashboardUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"access\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AccessLevel\"],\"doc\":\"Access level for the dashboard\",\"default\":null,\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"KEYWORD\",\"filterNameOverride\":\"Access Level\"}},{\"name\":\"lastRefreshed\",\"type\":[\"null\",\"long\"],\"doc\":\"The time when this dashboard last refreshed\",\"default\":null}],\"Aspect\":{\"name\":\"dashboardInfo\"}},{\"type\":\"record\",\"name\":\"EditableDashboardProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dashboard\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 dashboard\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDashboardProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the dashboard. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dashboardKey\",\"name\":\"dashboard\"}},{\"type\":\"record\",\"name\":\"DataFlowSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific DataFlow entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataFlowUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataFlowKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Flow\",\"fields\":[{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Workflow manager like azkaban, airflow which orchestrates the flow\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"flowId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data flow\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"cluster\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Cluster where the flow is executed\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataFlowKey\"}},{\"type\":\"record\",\"name\":\"DataFlowInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing flow\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flow name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flow description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"project\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional project/namespace associated with the flow\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":fals","e}},{\"name\":\"created\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeStamp\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A standard event timestamp\",\"fields\":[{\"name\":\"time\",\"type\":\"long\",\"doc\":\"When did the event occur\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional: The actor urn involved in the event.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"name\":\"dataFlowInfo\"}},{\"type\":\"record\",\"name\":\"EditableDataFlowProperties\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 data flow\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDataFlowProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the data flow. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataFlowKey\",\"name\":\"dataFlow\"}},{\"type\":\"record\",\"name\":\"DataJobSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific DataJob entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataJobUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataJobKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Job\",\"fields\":[{\"name\":\"flow\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized data processing flow urn representing the flow for the job\",\"Relationship\":{\"entityTypes\":[\"dataFlow\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"dataFlow\",\"fieldType\":\"URN_PARTIAL\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"jobId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique Identifier of the data job\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"dataJobKey\"}},{\"type\":\"record\",\"name\":\"DataJobInfo\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about a Data processing job\",\"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\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Job name\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Job description\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"type\",\"type\":[{\"type\":\"enum\",\"name\":\"AzkabanJobType\",\"namespace\":\"com.linkedin.pegasus2avro.datajob.azkaban\",\"doc\":\"The various types of support azkaban jobs\",\"symbols\":[\"COMMAND\",\"HADOOP_JAVA\",\"HADOOP_SHELL\",\"HIVE\",\"PIG\",\"SQL\",\"GLUE\"],\"symbolDocs\":{\"COMMAND\":\"The command job type is one of the basic built-in types. It runs multiple UNIX commands using java processbuilder.\\nUpon execution, Azkaban spawns off a process to run the command.\",\"GLUE\":\"Glue type is for running AWS Glue job transforms.\",\"HADOOP_JAVA\":\"Runs a java program with ability to access Hadoop cluster.\\nhttps://azkaban.readthedocs.io/en/latest/jobTypes.html#java-job-type\",\"HADOOP_SHELL\":\"In large part, this is the same Command type. The difference is its ability to talk to a Hadoop cluster\\nsecurely, via Hadoop tokens.\",\"HIVE\":\"Hive type is for running Hive jobs.\",\"PIG\":\"Pig type is for running Pig jobs.\",\"SQL\":\"SQL is for running Presto, mysql queries etc\"}},{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Datajob type\\n*NOTE**: AzkabanJobType is deprecated. Please use strings instead.\"},{\"name\":\"flowUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"DataFlow urn that this job is part of\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataFlowUrn\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"JobStatus\",\"doc\":\"Job statuses\",\"symbols\":[\"STARTING\",\"IN_PROGRESS\",\"STOPPING\",\"STOPPED\",\"COMPLETED\",\"FAILED\",\"UNKNOWN\",\"SKIPPED\"],\"symbolDocs\":{\"COMPLETED\":\"Jobs with successful completion.\",\"FAILED\":\"Jobs that have failed.\",\"IN_PROGRESS\":\"Jobs currently running.\",\"SKIPPED\":\"Jobs that have been skipped.\",\"STARTING\":\"Jobs being initialized.\",\"STOPPED\":\"Jobs that have stopped.\",\"STOPPING\":\"Jobs being stopped.\",\"UNKNOWN\":\"Jobs with unknown status (either unmappable or unavailable)\"}}],\"doc\":\"Status of the job - Deprecated for Data Process Instance model.\",\"default\":null,\"deprecated\":\"Use Data Process Instance model, instead\"}],\"Aspect\":{\"name\":\"dataJobInfo\"}},{\"type\":\"record\",\"name\":\"DataJobInputOutput\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"doc\":\"Information about the inputs and outputs of a Data processing job\",\"fields\":[{\"name\":\"inputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Input datasets consumed by the data job during pr","ocessing\\nDeprecated! Use inputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"inputDatasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Input datasets consumed by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatasetEdges/*/created/actor\",\"createdOn\":\"inputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\",\"properties\":\"inputDatasetEdges/*/properties\",\"updatedActor\":\"inputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"inputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputDatasets\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Output datasets produced by the data job during processing\\nDeprecated! Use outputDatasetEdges instead.\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}},\"deprecated\":true},{\"name\":\"outputDatasetEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Output datasets produced by the data job during processing\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"outputDatasetEdges/*/created/actor\",\"createdOn\":\"outputDatasetEdges/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"Produces\",\"properties\":\"outputDatasetEdges/*/properties\",\"updatedActor\":\"outputDatasetEdges/*/lastModified/actor\",\"updatedOn\":\"outputDatasetEdges/*/lastModified/time\"}},\"Searchable\":{\"/*/destinationUrn\":{\"fieldName\":\"outputDatasetEdges\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}},{\"name\":\"inputDatajobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Input datajobs that this data job depends on\\nDeprecated! Use inputDatajobEdges instead.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\"}},\"deprecated\":true},{\"name\":\"inputDatajobEdges\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"com.linkedin.pegasus2avro.common.Edge\"}],\"doc\":\"Input datajobs that this data job depends on\",\"default\":null,\"Relationship\":{\"/*/destinationUrn\":{\"createdActor\":\"inputDatajobEdges/*/created/actor\",\"createdOn\":\"inputDatajobEdges/*/created/time\",\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"inputDatajobEdges/*/properties\",\"updatedActor\":\"inputDatajobEdges/*/lastModified/actor\",\"updatedOn\":\"inputDatajobEdges/*/lastModified/time\"}}},{\"name\":\"inputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the input datasets used by this job\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputFields\",\"queryByDefault\":false}}},{\"name\":\"outputDatasetFields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Fields of the output datasets this job writes to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"Produces\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputFields\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputFields\",\"queryByDefault\":false}}},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FineGrainedLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"A fine-grained lineage from upstream fields/datasets to downstream field(s)\",\"fields\":[{\"name\":\"upstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageUpstreamType\",\"doc\":\"The type of upstream entity in a fine-grained lineage\",\"symbols\":[\"FIELD_SET\",\"DATASET\",\"NONE\"],\"symbolDocs\":{\"DATASET\":\" Indicates that this lineage is originating from upstream dataset(s)\",\"FIELD_SET\":\" Indicates that this lineage is originating from upstream field(s)\",\"NONE\":\" Indicates that there is no upstream lineage i.e. the downstream field is not a derived field\"}},\"doc\":\"The type of upstream entity\"},{\"name\":\"upstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Upstream entities in the lineage\",\"default\":null},{\"name\":\"downstreamType\",\"type\":{\"type\":\"enum\",\"name\":\"FineGrainedLineageDownstreamType\",\"doc\":\"The type of downstream field(s) in a fine-grained lineage\",\"symbols\":[\"FIELD\",\"FIELD_SET\"],\"symbolDocs\":{\"FIELD\":\" Indicates that the lineage is for a single, specific, downstream field\",\"FIELD_SET\":\" Indicates that the lineage is for a set of downstream fields\"}},\"doc\":\"The type of downstream field(s)\"},{\"name\":\"downstreams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Downstream fields in the lineage\",\"default\":null},{\"name\":\"transformOperation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The transform operation applied to the upstream entities to produce the downstream field(s)\",\"default\":null},{\"name\":\"confidenceScore\",\"type\":\"float\",\"doc\":\"The confidence in this lineage between 0 (low confidence) and 1 (high confidence)\",\"default\":1.0}]}}],\"doc\":\"Fine-grained column-level lineages\",\"default\":null}],\"Aspect\":{\"name\":\"dataJobInputOutput\"}},{\"type\":\"record\",\"name\":\"EditableDataJobProperties\",\"namespace\":\"com.linkedin.pegasus2avro.datajob\",\"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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 data job \",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDataJobProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the data job. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataJobKey\",\"name\":\"dataJob\"}},{\"type\":\"record\",\"name\":\"DatasetSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataset entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"Strin","g\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DatasetKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Dataset\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the dataset\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique guid for dataset\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":{\"type\":\"enum\",\"name\":\"FabricType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Fabric group type\",\"symbols\":[\"DEV\",\"TEST\",\"QA\",\"UAT\",\"EI\",\"PRE\",\"STG\",\"NON_PROD\",\"PROD\",\"CORP\"],\"symbolDocs\":{\"CORP\":\"Designates corporation fabrics\",\"DEV\":\"Designates development fabrics\",\"EI\":\"Designates early-integration fabrics\",\"NON_PROD\":\"Designates non-production fabrics\",\"PRE\":\"Designates pre-production fabrics\",\"PROD\":\"Designates production fabrics\",\"QA\":\"Designates quality assurance fabrics\",\"STG\":\"Designates staging fabrics\",\"TEST\":\"Designates testing fabrics\",\"UAT\":\"Designates user acceptance testing fabrics\"}},\"doc\":\"Fabric type where dataset belongs to or where it was generated.\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"datasetKey\"}},{\"type\":\"record\",\"name\":\"DatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Properties associated with a Dataset\",\"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\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the Dataset\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"qualifiedName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Fully-qualified name of the Dataset\",\"default\":null,\"Searchable\":{\"addToFilters\":false,\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"uri\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic).\",\"default\":null,\"deprecated\":\"Use ExternalReference.externalUrl field instead.\",\"java\":{\"class\":\"java.net.URI\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.TimeStamp\"],\"doc\":\"A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"[Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect.\\nThis is now deprecated.\",\"default\":[],\"deprecated\":\"Use GlobalTags aspect instead.\"}],\"Aspect\":{\"name\":\"datasetProperties\"}},{\"type\":\"record\",\"name\":\"EditableDatasetProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"EditableDatasetProperties stores editable changes made to dataset 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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"Documentation of the dataset\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableDatasetProperties\"}},{\"type\":\"record\",\"name\":\"DatasetDeprecation\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Dataset deprecation status\\nDeprecated! This aspect is deprecated in favor of the more-general-purpose 'Deprecation' aspect.\",\"fields\":[{\"name\":\"deprecated\",\"type\":\"boolean\",\"doc\":\"Whether the dataset is deprecated by owner.\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"decommissionTime\",\"type\":[\"null\",\"long\"],\"doc\":\"The time user plan to decommission this dataset.\",\"default\":null},{\"name\":\"note\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Additional information about the dataset deprecation plan, such as the wiki, doc, RB.\"},{\"name\":\"actor\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The corpuser URN which will be credited for modifying this deprecation content.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}],\"Aspect\":{\"name\":\"datasetDeprecation\"},\"Deprecated\":true},{\"type\":\"record\",\"name\":\"DatasetUpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Fine Grained upstream lineage for fields in a dataset\",\"fields\":[{\"name\":\"fieldMappings\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"DatasetFieldMapping\",\"doc\":\"Representation of mapping between fields in source dataset to the field in destination dataset\",\"fields\":[{\"name\":\"created\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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 f","ield. This is the FQCN(Fully Qualified Class Name) of the udf.\"}]}],\"doc\":\"Transfomration function between the fields involved\"},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"string\",\"avro.java.string\":\"String\"}]},\"doc\":\"Source fields from which the fine grained lineage is derived\"},{\"name\":\"destinationField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Destination field which is derived from source fields\",\"deprecated\":\"use SchemaFieldPath and represent as generic Urn instead\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetFieldUrn\"}}],\"deprecated\":\"use FineGrainedLineage instead\"}},\"doc\":\"Upstream to downstream field level lineage mappings\"}],\"Aspect\":{\"name\":\"datasetUpstreamLineage\"},\"deprecated\":\"use UpstreamLineage.fineGrainedLineages instead\"},{\"type\":\"record\",\"name\":\"UpstreamLineage\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Upstream lineage of a dataset\",\"fields\":[{\"name\":\"upstreams\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Upstream\",\"doc\":\"Upstream lineage information about a dataset including the source reporting the lineage\",\"fields\":[{\"name\":\"auditStamp\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit stamp containing who reported the lineage and when.\",\"default\":{\"actor\":\"urn:li:corpuser:unknown\",\"impersonator\":null,\"time\":0,\"message\":null}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Audit stamp containing who created the lineage and when.\",\"default\":null},{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The upstream dataset the lineage points to\",\"Relationship\":{\"createdActor\":\"upstreams/*/created/actor\",\"createdOn\":\"upstreams/*/created/time\",\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DownstreamOf\",\"properties\":\"upstreams/*/properties\",\"updatedActor\":\"upstreams/*/auditStamp/actor\",\"updatedOn\":\"upstreams/*/auditStamp/time\"},\"Searchable\":{\"fieldName\":\"upstreams\",\"fieldType\":\"URN\",\"queryByDefault\":false},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DatasetLineageType\",\"doc\":\"The various types of supported dataset lineage\",\"symbols\":[\"COPY\",\"TRANSFORMED\",\"VIEW\"],\"symbolDocs\":{\"COPY\":\"Direct copy without modification\",\"TRANSFORMED\":\"Transformed data with modification (format or content change)\",\"VIEW\":\"Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources\"}},\"doc\":\"The type of the lineage\"},{\"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\":\"List of upstream dataset lineage information\"},{\"name\":\"fineGrainedLineages\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"FineGrainedLineage\"}],\"doc\":\" List of fine-grained lineage information, including field-level lineage\",\"default\":null,\"Relationship\":{\"/*/upstreams/*\":{\"entityTypes\":[\"dataset\",\"schemaField\"],\"name\":\"DownstreamOf\"}}}],\"Aspect\":{\"name\":\"upstreamLineage\"}},\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",{\"type\":\"record\",\"name\":\"SchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"SchemaMetadata to describe metadata related to store schema\",\"fields\":[{\"name\":\"schemaName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking\",\"validate\":{\"strlen\":{\"max\":500,\"min\":1}}},{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name})\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"version\",\"type\":\"long\",\"doc\":\"Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version.\"},{\"name\":\"created\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"dataset\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Dataset this schema metadata is associated with.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"cluster\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The cluster this schema metadata resides from\",\"default\":null},{\"name\":\"hash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"the SHA1 hash of the schema content\"},{\"name\":\"platformSchema\",\"type\":[{\"type\":\"record\",\"name\":\"EspressoSchema\",\"doc\":\"Schema text of an espresso table schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native espresso document schema.\"},{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The espresso table schema definition.\"}]},{\"type\":\"record\",\"name\":\"OracleDDL\",\"doc\":\"Schema holder for oracle data definition language that describes an oracle table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"MySqlDDL\",\"doc\":\"Schema holder for MySql data definition language that describes an MySql table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"PrestoDDL\",\"doc\":\"Schema holder for presto data definition language that describes a presto view.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL.\"}]},{\"type\":\"record\",\"name\":\"KafkaSchema\",\"doc\":\"Schema holder for kafka schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native kafka document schema. This is a human readable avro document schema.\"},{\"name\":\"keySchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The native kafka key schema as retrieved from Schema Registry\",\"default\":null}]},{\"type\":\"record\",\"name\":\"BinaryJsonSchema\",\"doc\":\"Schema text of binary JSON schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema text for binary JSON file format.\"}]},{\"type\":\"record\",\"name\":\"OrcSchema\",\"doc\":\"Schema text of an ORC schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema for ORC file format.\"}]},{\"type\":\"record\",\"name\":\"Schemaless\",\"doc\":\"The dataset has no specific schema associated with it\",\"fields\":[]},{\"type\":\"record\",\"name\":\"KeyValueSchema\",\"doc\":\"Schema text of a key-value store schema.\",\"fields\":[{\"name\":\"keySch","ema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the key in the key-value store.\"},{\"name\":\"valueSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the value in the key-value store.\"}]},{\"type\":\"record\",\"name\":\"OtherSchema\",\"doc\":\"Schema holder for undefined schema types.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform.\"}]}],\"doc\":\"The native schema in the dataset's platform.\"},{\"name\":\"fields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SchemaField\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flattened name of the field. Field is computed from jsonPath field.\",\"Searchable\":{\"fieldName\":\"fieldPaths\",\"fieldType\":\"TEXT\"}},{\"name\":\"jsonPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flattened name of a field in JSON Path notation.\",\"default\":null,\"Deprecated\":true},{\"name\":\"nullable\",\"type\":\"boolean\",\"doc\":\"Indicates if this field is optional or nullable\",\"default\":false},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"fieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"label\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Label of the field. Provides a more human-readable name for the field than field path. Some sources will\\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\\na field in a source, that is most likely a description.\",\"default\":null,\"Searchable\":{\"boostScore\":0.2,\"fieldName\":\"fieldLabels\",\"fieldType\":\"TEXT\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the creation of this schema field.\",\"default\":null},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the last modification of this schema field.\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"record\",\"name\":\"SchemaFieldDataType\",\"doc\":\"Schema field data types\",\"fields\":[{\"name\":\"type\",\"type\":[{\"type\":\"record\",\"name\":\"BooleanType\",\"doc\":\"Boolean field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"FixedType\",\"doc\":\"Fixed field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"StringType\",\"doc\":\"String field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"BytesType\",\"doc\":\"Bytes field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NumberType\",\"doc\":\"Number data type: long, integer, short, etc..\",\"fields\":[]},{\"type\":\"record\",\"name\":\"DateType\",\"doc\":\"Date field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"TimeType\",\"doc\":\"Time field type. This should also be used for datetimes.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"EnumType\",\"doc\":\"Enum field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NullType\",\"doc\":\"Null field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"MapType\",\"doc\":\"Map field type.\",\"fields\":[{\"name\":\"keyType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Key type in a map\",\"default\":null},{\"name\":\"valueType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of the value in a map\",\"default\":null}]},{\"type\":\"record\",\"name\":\"ArrayType\",\"doc\":\"Array field type.\",\"fields\":[{\"name\":\"nestedType\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types this array holds.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"UnionType\",\"doc\":\"Union field type.\",\"fields\":[{\"name\":\"nestedTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types in union type.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"RecordType\",\"doc\":\"Record field type.\",\"fields\":[]}],\"doc\":\"Data platform specific types\"}]},\"doc\":\"Platform independent field type of the field.\"},{\"name\":\"nativeDataType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native type of the field in the dataset's platform as declared by platform schema.\"},{\"name\":\"recursive\",\"type\":\"boolean\",\"doc\":\"There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.\",\"default\":false},{\"name\":\"globalTags\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlobalTags\"],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"SchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"fieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\"],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"SchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"fieldGlossaryTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"isPartOfKey\",\"type\":\"boolean\",\"doc\":\"For schema fields that are part of complex keys, set this field to true\\nWe do this to easily distinguish between value and key fields\",\"default\":false},{\"name\":\"isPartitioningKey\",\"type\":[\"null\",\"boolean\"],\"doc\":\"For Datasets which are partitioned, this determines the partitioning key.\",\"default\":null},{\"name\":\"jsonProps\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"For schema fields that have other properties that are not modeled explicitly,\\nuse this field to serialize those properties into a JSON string\",\"default\":null}]}},\"doc\":\"Client provided a list of fields from document schema.\"},{\"name\":\"primaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath.\",\"default\":null},{\"name\":\"foreignKeysSpecs\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"ForeignKeySpec\",\"doc\":\"Description of a foreign key in a schema.\",\"fields\":[{\"name\":\"foreignKey\",\"type\":[{\"type\":\"record\",\"name\":\"DatasetFieldForeignKey\",\"doc\":\"For non-urn based foregin keys.\",\"fields\":[{\"name\":\"parentDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"dataset that stores the resource.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"currentFieldPaths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset.\"},{\"name\":\"parentField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"SchemaField@fieldPath that uniquely identify field in parent dataset that this field references.\"}]},{\"type\":\"record\",\"name\":\"UrnForeignKey\",\"doc\":\"If SchemaMetadata fields make any external references and references are of type com.linkedin.pegasus2avro.common.Urn or any children, this models can be used to mark it.\",\"fields\":[{\"name\":\"currentFieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Field in hosting(current) SchemaMetadata.\"}]}],\"doc\":\"Foreign key definition in metadata schema.\"}]},\"avro.java.string\":\"String\"}],\"doc\":\"Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref.\",\"default\":null,\"deprecated\":\"Use foreignKeys instead.\"},{\"name\":\"foreignKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ForeignKeyConstraint\",\"doc\":\"Description of a foreign key constraint in a schema.\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the constraint, likely provided from the source\"},{\"name\":\"foreignFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps ","to on the foreign dataset\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"ForeignKeyTo\"}}},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the source dataset\"},{\"name\":\"foreignDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Reference to the foreign dataset for ease of lookup\",\"Relationship\":{\"entityTypes\":[\"dataset\"],\"name\":\"ForeignKeyToDataset\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}}],\"doc\":\"List of foreign key constraints for the schema\",\"default\":null}],\"Aspect\":{\"name\":\"schemaMetadata\"}},{\"type\":\"record\",\"name\":\"EditableSchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"EditableSchemaMetadata stores editable changes made to schema metadata. 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\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"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\":\"editableSchemaFieldInfo\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"EditableSchemaFieldInfo\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"FieldPath uniquely identifying the SchemaField this metadata is associated with\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"editedFieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"globalTags\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlobalTags\"],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"EditableSchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\"],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"EditableSchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldGlossaryTerms\",\"fieldType\":\"URN\"}}}]}},\"doc\":\"Client provided a list of fields from document schema.\"}],\"Aspect\":{\"name\":\"editableSchemaMetadata\"}},\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.GlossaryTerms\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\",{\"type\":\"record\",\"name\":\"ViewProperties\",\"namespace\":\"com.linkedin.pegasus2avro.dataset\",\"doc\":\"Details about a View. \\ne.g. Gets activated when subTypes is view\",\"fields\":[{\"name\":\"materialized\",\"type\":\"boolean\",\"doc\":\"Whether the view is materialized\",\"Searchable\":{\"fieldType\":\"BOOLEAN\",\"weightsPerFieldValue\":{\"true\":0.5}}},{\"name\":\"viewLogic\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The view logic\"},{\"name\":\"viewLanguage\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The view logic language / dialect\"}],\"Aspect\":{\"name\":\"viewProperties\"}}]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"datasetKey\",\"name\":\"dataset\"}},{\"type\":\"record\",\"name\":\"DataProcessSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific Data process entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataProcessUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataProcessKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Process\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Process name i.e. an ETL job name\",\"Searchable\":{\"boostScore\":4.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"orchestrator\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized Orchestrator where data process is defined.\\nTODO: Migrate towards something that can be validated like DataPlatform urn\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where dataset belongs to or where it was generated.\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"dataProcessKey\"}},\"com.linkedin.pegasus2avro.common.Ownership\",{\"type\":\"record\",\"name\":\"DataProcessInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dataprocess\",\"doc\":\"The inputs and outputs of this data process\",\"fields\":[{\"name\":\"inputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"the inputs of the data process\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"inputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numInputDatasets\",\"queryByDefault\":false}}},{\"name\":\"outputs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"the outputs of the data process\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"Consumes\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"outputs\",\"fieldType\":\"URN\",\"numValuesFieldName\":\"numOutputDatasets\",\"queryByDefault\":false}}}],\"Aspect\":{\"name\":\"dataProcessInfo\"}},\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the data process. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataProcessKey\",\"name\":\"dataProcess\"},\"deprecated\":\"Use DataJob instead.\"},{\"type\":\"record\",\"name\":\"DataPlatformSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataplatform entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataPlatformKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Data Platform\",\"fields\":[{\"name\":\"platformName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform name i.e. hdfs, oracle, espresso\"}],\"Aspect\":{\"name\":\"dataPlatformKey\"}},{\"type\":\"record\",\"name\":\"DataPlatformInfo\",\"namespace\":\"com.linkedin.pegasus2avro.dataplatform\",\"doc\":\"Information about a data platform\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the data platform\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":false,\"fieldType\":\"TEXT_PARTIAL\"},\"validate\":{\"strlen\":{\"max\":15}}},{\"name\":\"displayName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.","java.string\":\"String\"}],\"doc\":\"The name that will be used for displaying a platform type.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"PlatformType\",\"doc\":\"Platform types available at LinkedIn\",\"symbols\":[\"FILE_SYSTEM\",\"KEY_VALUE_STORE\",\"MESSAGE_BROKER\",\"OBJECT_STORE\",\"OLAP_DATASTORE\",\"OTHERS\",\"QUERY_ENGINE\",\"RELATIONAL_DB\",\"SEARCH_ENGINE\"],\"symbolDocs\":{\"FILE_SYSTEM\":\"Value for a file system, e.g. hdfs\",\"KEY_VALUE_STORE\":\"Value for a key value store, e.g. espresso, voldemort\",\"MESSAGE_BROKER\":\"Value for a message broker, e.g. kafka\",\"OBJECT_STORE\":\"Value for an object store, e.g. ambry\",\"OLAP_DATASTORE\":\"Value for an OLAP datastore, e.g. pinot\",\"OTHERS\":\"Value for other platforms, e.g salesforce, dovetail\",\"QUERY_ENGINE\":\"Value for a query engine, e.g. presto\",\"RELATIONAL_DB\":\"Value for a relational database, e.g. oracle, mysql\",\"SEARCH_ENGINE\":\"Value for a search engine, e.g seas\"}},\"doc\":\"Platform type this data platform describes\"},{\"name\":\"datasetNameDelimiter\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The delimiter in the dataset names on the data platform, e.g. '/' for HDFS and '.' for Oracle\"},{\"name\":\"logoUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The URL for a logo associated with the platform\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}],\"Aspect\":{\"name\":\"dataPlatformInfo\"}}]},\"doc\":\"The list of metadata aspects associated with the data platform. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"dataPlatformKey\",\"name\":\"dataPlatform\"}},{\"type\":\"record\",\"name\":\"MLModelSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"MLModel Snapshot entity details.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.MLModelUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModel\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where model belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelKey\"}},\"com.linkedin.pegasus2avro.common.Ownership\",{\"type\":\"record\",\"name\":\"MLModelProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a ML Model\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModel\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"date\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModel was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionTag\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"A resource-defined string representing the resource state for the purpose of concurrency control\",\"fields\":[{\"name\":\"versionTag\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null}]}],\"doc\":\"Version of the MLModel\",\"default\":null},{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"hyperParameters\",\"type\":[\"null\",{\"type\":\"map\",\"values\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"int\",\"float\",\"double\",\"boolean\"],\"avro.java.string\":\"String\"}],\"doc\":\"Hyper Parameters of the MLModel\\n\\nNOTE: these are deprecated in favor of hyperParams\",\"default\":null},{\"name\":\"hyperParams\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLHyperParam\",\"doc\":\"Properties associated with an ML Hyper Param\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLHyperParam\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLHyperParam\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the MLHyperParam\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLHyperParam was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlHyperParam\"}}}],\"doc\":\"Hyperparameters of the MLModel\",\"default\":null},{\"name\":\"trainingMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLMetric\",\"doc\":\"Properties associated with an ML Metric\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the mlMetric\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the mlMetric\",\"default\":null},{\"name\":\"value\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The value of the mlMetric\",\"default\":null},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the mlMetric was developed\",\"default\":null}],\"Aspect\":{\"name\":\"mlMetric\"}}}],\"doc\":\"Metrics of the MLModel used in training\",\"default\":null},{\"name\":\"onlineMetrics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLMetric\"}],\"doc\":\"Metrics of the MLModel used in production\",\"default\":null},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features used for MLModel training\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"isLineage\":true,\"name\":\"Consumes\"}}},{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Tags for the MLModel\",\"default\":[]},{\"name\":\"deployments\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Deployments for the MLModel\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelDeployment\"],\"name\":\"DeployedTo\"}}},{\"name\":\"trainingJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) used to train the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"name\":\"TrainedBy\"}}},{\"name\":\"downstreamJobs\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of jobs (if any) that use the model\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataJob\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"UsedBy\"}}},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups the model belongs to\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlModelGroup\"],\"isLineage\":true,\"isUpstream\":false,\"name\":\"MemberOf\"}}}],\"Aspect\":{\"name\":\"mlModelProperties\"}},{\"type\":\"record\",\"name\":\"IntendedUse\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Intended Use for the ML Model\",\"fields\":[{\"name\":\"primaryUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"a","vro.java.string\":\"String\"}}],\"doc\":\"Primary Use cases for the MLModel.\",\"default\":null},{\"name\":\"primaryUsers\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"enum\",\"name\":\"IntendedUserType\",\"symbols\":[\"ENTERPRISE\",\"HOBBY\",\"ENTERTAINMENT\"]}}],\"doc\":\"Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions?\",\"default\":null},{\"name\":\"outOfScopeUses\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to.\",\"default\":null}],\"Aspect\":{\"name\":\"intendedUse\"}},{\"type\":\"record\",\"name\":\"MLModelFactorPrompts\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Prompts which affect the performance of the MLModel\",\"fields\":[{\"name\":\"relevantFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"MLModelFactors\",\"doc\":\"Factors affecting the performance of the MLModel.\",\"fields\":[{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances.\\nFor human-centric machine learning MLModels, groups are people who share one or multiple characteristics.\",\"default\":null},{\"name\":\"instrumentation\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel.\\nFor example, a face detection model may perform differently depending on the camera's hardware and software,\\nincluding lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode.\",\"default\":null},{\"name\":\"environment\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A further factor affecting MLModel performance is the environment in which it is deployed.\",\"default\":null}]}}],\"doc\":\"What are foreseeable salient factors for which MLModel performance may vary, and how were these determined?\",\"default\":null},{\"name\":\"evaluationFactors\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"MLModelFactors\"}],\"doc\":\"Which factors are being reported, and why were these chosen?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelFactorPrompts\"}},{\"type\":\"record\",\"name\":\"Metrics\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Metrics to be featured for the MLModel.\",\"fields\":[{\"name\":\"performanceMeasures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Measures of MLModel performance\",\"default\":null},{\"name\":\"decisionThreshold\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Decision Thresholds used (if any)?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelMetrics\"}},{\"type\":\"record\",\"name\":\"EvaluationData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"All referenced datasets would ideally point to any set of documents that provide visibility into the source and composition of the dataset.\",\"fields\":[{\"name\":\"evaluationData\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BaseData\",\"doc\":\"BaseData record\",\"fields\":[{\"name\":\"dataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"What dataset were used in the MLModel?\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"motivation\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Why was this dataset chosen?\",\"default\":null},{\"name\":\"preProcessing\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)?\",\"default\":null}]}},\"doc\":\"Details on the dataset(s) used for the quantitative analyses in the MLModel\"}],\"Aspect\":{\"name\":\"mlModelEvaluationData\"}},{\"type\":\"record\",\"name\":\"TrainingData\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Ideally, the MLModel card would contain as much information about the training data as the evaluation data. However, there might be cases where it is not feasible to provide this level of detailed information about the training data. For example, the data may be proprietary, or require a non-disclosure agreement. In these cases, we advocate for basic details about the distributions over groups in the data, as well as any other details that could inform stakeholders on the kinds of biases the model may have encoded.\",\"fields\":[{\"name\":\"trainingData\",\"type\":{\"type\":\"array\",\"items\":\"BaseData\"},\"doc\":\"Details on the dataset(s) used for training the MLModel\"}],\"Aspect\":{\"name\":\"mlModelTrainingData\"}},{\"type\":\"record\",\"name\":\"QuantitativeAnalyses\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Quantitative analyses should be disaggregated, that is, broken down by the chosen factors. Quantitative analyses should provide the results of evaluating the MLModel according to the chosen metrics, providing confidence interval values when possible.\",\"fields\":[{\"name\":\"unitaryResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to each factor\",\"default\":null},{\"name\":\"intersectionalResults\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors?\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelQuantitativeAnalyses\"}},{\"type\":\"record\",\"name\":\"EthicalConsiderations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section is intended to demonstrate the ethical considerations that went into MLModel development, surfacing ethical challenges and solutions to stakeholders.\",\"fields\":[{\"name\":\"data\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Does the MLModel use any sensitive data (e.g., protected classes)?\",\"default\":null},{\"name\":\"humanLife\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\" Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way?\",\"default\":null},{\"name\":\"mitigations\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risk mitigation strategies were used during MLModel development?\",\"default\":null},{\"name\":\"risksAndHarms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown.\",\"default\":null},{\"name\":\"useCases\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelEthicalConsiderations\"}},{\"type\":\"record\",\"name\":\"CaveatsAndRecommendations\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"caveats\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"CaveatDetails\",\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?\",\"fields\":[{\"name\":\"needsFurtherTesting\",\"type\":[\"null\",\"boolean\"","],\"doc\":\"Did the results suggest any further testing?\",\"default\":null},{\"name\":\"caveatDescription\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Caveat Description\\nFor ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders.\",\"default\":null},{\"name\":\"groupsNotRepresented\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Relevant groups that were not represented in the evaluation dataset?\",\"default\":null}]}],\"doc\":\"This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset?\",\"default\":null},{\"name\":\"recommendations\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Recommendations on where this MLModel should be used.\",\"default\":null},{\"name\":\"idealDatasetCharacteristics\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Ideal characteristics of an evaluation dataset for this MLModel\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelCaveatsAndRecommendations\"}},\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",{\"type\":\"record\",\"name\":\"SourceCode\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Source Code\",\"fields\":[{\"name\":\"sourceCode\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SourceCodeUrl\",\"doc\":\"Source Code Url Entity\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"SourceCodeUrlType\",\"symbols\":[\"ML_MODEL_SOURCE_CODE\",\"TRAINING_PIPELINE_SOURCE_CODE\",\"EVALUATION_PIPELINE_SOURCE_CODE\"]},\"doc\":\"Source Code Url Types\"},{\"name\":\"sourceCodeUrl\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source Code Url\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}]}},\"doc\":\"Source Code along with types\"}],\"Aspect\":{\"name\":\"sourceCode\"}},\"com.linkedin.pegasus2avro.common.Status\",{\"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\"}},{\"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\"}},\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLModel. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelKey\",\"name\":\"mlModel\"}},{\"type\":\"record\",\"name\":\"MLPrimaryKeySnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLPrimaryKeyKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLPrimaryKey\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the primary key\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the primary key\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlPrimaryKeyKey\"}},{\"type\":\"record\",\"name\":\"MLPrimaryKeyProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLPrimaryKey\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLPrimaryKey\",\"default\":null},{\"name\":\"dataType\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"MLFeatureDataType\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"MLFeature Data Type\",\"symbols\":[\"USELESS\",\"NOMINAL\",\"ORDINAL\",\"BINARY\",\"COUNT\",\"TIME\",\"INTERVAL\",\"IMAGE\",\"VIDEO\",\"AUDIO\",\"TEXT\",\"MAP\",\"SEQUENCE\",\"SET\",\"CONTINUOUS\",\"BYTE\",\"UNKNOWN\"],\"symbolDocs\":{\"AUDIO\":\"Audio Data\",\"BINARY\":\"Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc\",\"BYTE\":\"Bytes data are binary-encoded values that can represent complex objects.\",\"CONTINUOUS\":\"Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.\",\"COUNT\":\"Count data is discrete whole number data - no negative numbers here.\\nCount data often has many small values, such as zero and one.\",\"IMAGE\":\"Image Data\",\"INTERVAL\":\"Interval data has equal spaces between the numbers and does not represent a temporal pattern.\\nExamples include percentages, temperatures, and income.\",\"MAP\":\"Mapping Data Type ex: dict, map\",\"NOMINAL\":\"Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.\",\"ORDINAL\":\"Ordinal data are discrete integers that can be ranked or sorted.\\nFor example, the distance between first and second may not be the same as the distance between second and third.\",\"SEQUENCE\":\"Sequence Data Type ex: list, tuple, range\",\"SET\":\"Set Data Type ex: set, frozenset\",\"TEXT\":\"Text Data\",\"TIME\":\"Time data is a cyclical, repeating continuous form of data.\\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.\",\"UNKNOWN\":\"Unknown data are data that we don't know the type for.\",\"USELESS\":\"Useless data is unique, discrete data with no potential relationship with the outcome variable.\\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.\",\"VIDEO\":\"Video Data\"}}],\"doc\":\"Data Type of the MLPrimaryKey\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLPrimaryKey\",\"default\":null},{\"name\":\"sources\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Source of the MLPrimaryKey\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlPrimaryKeyProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLPrimaryKey. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"","Entity\":{\"keyAspect\":\"mlPrimaryKeyKey\",\"name\":\"mlPrimaryKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.MLFeatureUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLFeatureKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeature\",\"fields\":[{\"name\":\"featureNamespace\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Namespace for the feature\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeature\",\"fields\":[{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeature\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"dataType\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.MLFeatureDataType\"],\"doc\":\"Data Type of the MLFeature\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLFeature\",\"default\":null},{\"name\":\"sources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Source of the MLFeature\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataset\"],\"isLineage\":true,\"name\":\"DerivedFrom\"}}}],\"Aspect\":{\"name\":\"mlFeatureProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLFeature. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlFeatureKey\",\"name\":\"mlFeature\"}},{\"type\":\"record\",\"name\":\"MLFeatureTableSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLFeatureTableKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an MLFeatureTable\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Data platform urn associated with the feature table\",\"Relationship\":{\"entityTypes\":[\"dataPlatform\"],\"name\":\"SourcePlatform\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the feature table\",\"Searchable\":{\"boostScore\":8.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"mlFeatureTableKey\"}},{\"type\":\"record\",\"name\":\"MLFeatureTableProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with a MLFeatureTable\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLFeatureTable\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"mlFeatures\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of features contained in the feature table\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlFeature\"],\"name\":\"Contains\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"features\",\"fieldType\":\"URN\"}}},{\"name\":\"mlPrimaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of primary keys in the feature table (if multiple, assumed to act as a composite key)\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"mlPrimaryKey\"],\"name\":\"KeyedBy\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"primaryKeys\",\"fieldType\":\"URN\"}}}],\"Aspect\":{\"name\":\"mlFeatureTableProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.InstitutionalMemory\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLFeatureTable. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlFeatureTableKey\",\"name\":\"mlFeatureTable\"}},{\"type\":\"record\",\"name\":\"MLModelDeploymentSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelDeploymentKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model deployment\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model Deployment\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModelDeployment\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where model Deployment belongs to or where it was generated\",\"Searchable\":{\"addToFilters\":true,\"fieldType\":\"TEXT_PARTIAL\",\"filterNameOverride\":\"Environment\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelDeploymentKey\"}},{\"type\":\"record\",\"name\":\"MLModelDeploymentProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Deployment\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModelDeployment\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModelDeployment was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLModelDeployment\",\"default\":null},{\"name\":\"status\",\"type\":[\"null\",{\"type\":\"enum\",\"name\":\"DeploymentStatus\",\"doc\":\"Model endpoint statuses\",\"symbols\":[\"OUT_OF_SERVICE\",\"CREATING\",\"UPDATING\",\"ROLLING_BACK\",\"IN_SERVICE\",\"DELETING\",\"FAILED\",\"UNKNOWN\"],\"symbolDocs\":{\"CREATING\":\"Deployments being created.\",\"DELETING\":\"Deployments being deleted.\",\"FAILED\":\"Deployments with an error state.\",\"IN_SERVICE\":\"Deployments that are active.\",\"OUT_OF_SERVICE\":\"Deployments out of service.\",\"ROLLING_BACK\":\"Deployments being reverted to a previous version.\",\"UNKNOWN\":\"Deployments with unknown/un","mappable state.\",\"UPDATING\":\"Deployments being updated.\"}}],\"doc\":\"Status of the deployment\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelDeploymentProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLModelDeployment. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelDeploymentKey\",\"name\":\"mlModelDeployment\"}},{\"type\":\"record\",\"name\":\"MLModelGroupSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"MLModelGroupKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for an ML model group\",\"fields\":[{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn for the model group\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the MLModelGroup\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"origin\",\"type\":\"com.linkedin.pegasus2avro.common.FabricType\",\"doc\":\"Fabric type where model group belongs to or where it was generated\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\",\"queryByDefault\":false}}],\"Aspect\":{\"name\":\"mlModelGroupKey\"}},{\"type\":\"record\",\"name\":\"MLModelGroupProperties\",\"namespace\":\"com.linkedin.pegasus2avro.ml.metadata\",\"doc\":\"Properties associated with an ML Model Group\",\"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\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the MLModelGroup\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"createdAt\",\"type\":[\"null\",\"long\"],\"doc\":\"Date when the MLModelGroup was developed\",\"default\":null},{\"name\":\"version\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.VersionTag\"],\"doc\":\"Version of the MLModelGroup\",\"default\":null}],\"Aspect\":{\"name\":\"mlModelGroupProperties\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.Deprecation\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",\"com.linkedin.pegasus2avro.common.GlobalTags\",\"com.linkedin.pegasus2avro.common.DataPlatformInstance\"]},\"doc\":\"The list of metadata aspects associated with the MLModelGroup. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"mlModelGroupKey\",\"name\":\"mlModelGroup\"}},{\"type\":\"record\",\"name\":\"TagSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific dataset entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"TagKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The tag name, which serves as a unique id\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"tagKey\"}},\"com.linkedin.pegasus2avro.common.Ownership\",{\"type\":\"record\",\"name\":\"TagProperties\",\"namespace\":\"com.linkedin.pegasus2avro.tag\",\"doc\":\"Properties associated with a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the tag\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the tag\",\"default\":null,\"Searchable\":{}},{\"name\":\"colorHex\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The color associated with the Tag in Hex. For example #FFFFFF.\",\"default\":null}],\"Aspect\":{\"name\":\"tagProperties\"}},\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"tagKey\",\"name\":\"tag\"}},{\"type\":\"record\",\"name\":\"GlossaryTermSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific GlossaryTerm entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"GlossaryTermKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryTerm\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The term name, which serves as a unique id\",\"Searchable\":{\"enableAutocomplete\":true,\"fieldName\":\"id\",\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryTermKey\"}},{\"type\":\"record\",\"name\":\"GlossaryTermInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryTerm\",\"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\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the term\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the term\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business term.\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"termSource\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceRef\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"External Reference to the business-term\",\"default\":null,\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"sourceUrl\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"rawSchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Schema definition of the glossary term\",\"default\":null,\"deprecated\":true}],\"Aspect\":{\"name\":\"glossaryTermInfo\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\",\"com.linkedin.pegasus2avro.common.BrowsePaths\",{\"type\":\"record\",\"name\":\"GlossaryRelatedTerms\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Has A / Is A lineage information"," about a glossary Term reporting the lineage\",\"fields\":[{\"name\":\"isRelatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Is A with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"IsA\"}},\"Searchable\":{\"/*\":{\"boostScore\":2.0,\"fieldName\":\"isRelatedTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"hasRelatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Has A with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"HasA\"}},\"Searchable\":{\"/*\":{\"boostScore\":2.0,\"fieldName\":\"hasRelatedTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"values\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship Has Value with glossary term.\\nThese are fixed value a term has. For example a ColorEnum where RED, GREEN and YELLOW are fixed values.\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"HasValue\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"values\",\"fieldType\":\"URN\"}}},{\"name\":\"relatedTerms\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"The relationship isRelatedTo with glossary term\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"IsRelatedTo\"}},\"Searchable\":{\"/*\":{\"fieldName\":\"relatedTerms\",\"fieldType\":\"URN\"}}}],\"Aspect\":{\"name\":\"glossaryRelatedTerms\"}}]},\"doc\":\"The list of metadata aspects associated with the GlossaryTerm. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"glossaryTermKey\",\"name\":\"glossaryTerm\"}},{\"type\":\"record\",\"name\":\"GlossaryNodeSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific GlossaryNode entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"GlossaryNodeKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a GlossaryNode\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"Searchable\":{\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeKey\"}},{\"type\":\"record\",\"name\":\"GlossaryNodeInfo\",\"namespace\":\"com.linkedin.pegasus2avro.glossary\",\"doc\":\"Properties associated with a GlossaryNode\",\"fields\":[{\"name\":\"definition\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Definition of business node\",\"Searchable\":{}},{\"name\":\"parentNode\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Parent node of the glossary term\",\"default\":null,\"Relationship\":{\"entityTypes\":[\"glossaryNode\"],\"name\":\"IsPartOf\"},\"Searchable\":{\"fieldName\":\"parentNode\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasParentNode\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryNodeUrn\"}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Display name of the node\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldName\":\"displayName\",\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"id\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional id for the GlossaryNode\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}}],\"Aspect\":{\"name\":\"glossaryNodeInfo\"}},\"com.linkedin.pegasus2avro.common.Ownership\",\"com.linkedin.pegasus2avro.common.Status\"]},\"doc\":\"The list of metadata aspects associated with the GlossaryNode. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"glossaryNodeKey\",\"name\":\"glossaryNode\"}},{\"type\":\"record\",\"name\":\"DataHubPolicySnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for DataHub Access Policy data.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataHubPolicyKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Policy\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A unique id for the DataHub access policy record. Generated on the server side at policy creation time.\"}],\"Aspect\":{\"name\":\"dataHubPolicyKey\"}},{\"type\":\"record\",\"name\":\"DataHubPolicyInfo\",\"namespace\":\"com.linkedin.pegasus2avro.policy\",\"doc\":\"Information about a DataHub (UI) access policy.\",\"fields\":[{\"name\":\"displayName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the Policy\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the Policy\",\"Searchable\":{\"fieldType\":\"TEXT\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of policy\"},{\"name\":\"state\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The state of policy, ACTIVE or INACTIVE\"},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DataHubResourceFilter\",\"doc\":\"Information used to filter DataHub resource.\",\"fields\":[{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The type of resource that the policy applies to. This will most often be a data asset entity name, for\\nexample 'dataset'. It is not strictly required because in the future we will want to support filtering a resource\\nby domain, as well.\",\"default\":null,\"deprecated\":true},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of resources to apply the policy to, e.g. asset urns\",\"default\":null,\"deprecated\":true},{\"name\":\"allResources\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be applied to all assets matching the filter.\",\"default\":false,\"deprecated\":true},{\"name\":\"filter\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"PolicyMatchFilter\",\"doc\":\"The filter for specifying the resource or actor to apply privileges to\",\"fields\":[{\"name\":\"criteria\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"PolicyMatchCriterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. Matches criterion if any one of the values matches condition (OR-relationship)\"},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"PolicyMatchCondition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"EQUALS\"],\"symbolDocs\":{\"EQUALS\":\"Whether the field matches the value\"}},\"doc\":\"The condition for the criterion\",\"default\":\"EQUALS\"}]}},\"doc\":\"A list of criteria to apply conjunctively (so all criteria must pass)\"}]}],\"doc\":\"Filter to apply privileges to\",\"default\":null}]}],\"doc\":\"The resource that the policy applies to. Not required for some 'Platform' privileges.\",\"default\":null},{\"name\":\"privileges\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"The privileges that the policy grants.\"},{\"name\":\"actors\",\"type\":{\"type\":\"record\",\"name\":\"DataHubActorFilter\",\"doc\":\"Information used to filter DataHub actors.\",\"fields\":[{\"name\":\"users\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of users to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of groups to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"resourceOwners\",\"type\":\"boolean\",\"doc\":\"Whether the filter should return true for owners of a particular resource.\\nOnly applies to po","licies of type 'Metadata', which have a resource associated with them.\",\"default\":false},{\"name\":\"allUsers\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all users.\",\"default\":false},{\"name\":\"allGroups\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all groups.\",\"default\":false},{\"name\":\"roles\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of roles to apply the policy to (disjunctive).\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataHubRole\"],\"name\":\"IsAssociatedWithRole\"}}}]},\"doc\":\"The actors that the policy applies to.\"},{\"name\":\"editable\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be editable via the UI\",\"default\":true},{\"name\":\"lastUpdatedTimestamp\",\"type\":[\"null\",\"long\"],\"doc\":\"Timestamp when the policy was last updated\",\"default\":null,\"Searchable\":{\"fieldType\":\"DATETIME\"}}],\"Aspect\":{\"name\":\"dataHubPolicyInfo\"}}]},\"doc\":\"The list of metadata aspects associated with the DataHub access policy.\"}],\"Entity\":{\"keyAspect\":\"dataHubPolicyKey\",\"name\":\"dataHubPolicy\"}},{\"type\":\"record\",\"name\":\"SchemaFieldSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for a specific schema field entity.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"SchemaFieldKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a SchemaField\",\"fields\":[{\"name\":\"parent\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Parent associated with the schema field\",\"Searchable\":{\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"fieldPath identifying the schema field\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}}],\"Aspect\":{\"name\":\"schemaFieldKey\"}}]},\"doc\":\"The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects.\"}],\"Entity\":{\"keyAspect\":\"schemaFieldKey\",\"name\":\"schemaField\"}},{\"type\":\"record\",\"name\":\"DataHubRetentionSnapshot\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.snapshot\",\"doc\":\"A metadata snapshot for DataHub Access Policy data.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"URN for the entity the metadata snapshot is associated with.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"aspects\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"DataHubRetentionKey\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.key\",\"doc\":\"Key for a DataHub Retention\",\"fields\":[{\"name\":\"entityName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Entity name to apply retention to. * (or empty) for applying defaults.\"},{\"name\":\"aspectName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Aspect name to apply retention to. * (or empty) for applying defaults.\"}],\"Aspect\":{\"name\":\"dataHubRetentionKey\"}},{\"type\":\"record\",\"name\":\"DataHubRetentionConfig\",\"namespace\":\"com.linkedin.pegasus2avro.retention\",\"fields\":[{\"name\":\"retention\",\"type\":{\"type\":\"record\",\"name\":\"Retention\",\"doc\":\"Base class that encapsulates different retention policies.\\nOnly one of the fields should be set\",\"fields\":[{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionBasedRetention\",\"doc\":\"Keep max N latest records\",\"fields\":[{\"name\":\"maxVersions\",\"type\":\"int\"}]}],\"default\":null},{\"name\":\"time\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeBasedRetention\",\"doc\":\"Keep records that are less than X seconds old\",\"fields\":[{\"name\":\"maxAgeInSeconds\",\"type\":\"int\"}]}],\"default\":null}]}}],\"Aspect\":{\"name\":\"dataHubRetentionConfig\"}}]},\"doc\":\"The list of metadata aspects associated with the DataHub access policy.\"}],\"Entity\":{\"keyAspect\":\"dataHubRetentionKey\",\"name\":\"dataHubRetention\"}}],\"doc\":\"Snapshot of the proposed metadata change. Include only the aspects affected by the change in the snapshot.\"},{\"name\":\"proposedDelta\",\"type\":[\"null\"],\"doc\":\"Delta of the proposed metadata partial update.\",\"default\":null},{\"name\":\"systemMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SystemMetadata\",\"doc\":\"Metadata associated with each metadata change that is processed by the system\",\"fields\":[{\"name\":\"lastObserved\",\"type\":[\"long\",\"null\"],\"doc\":\"The timestamp the metadata was observed at\",\"default\":0},{\"name\":\"runId\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"],\"doc\":\"The run id that produced the metadata. Populated in case of batch-ingestion.\",\"default\":\"no-run-id-provided\"},{\"name\":\"registryName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry name that was used to process this event\",\"default\":null},{\"name\":\"registryVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry version that was used to process this event\",\"default\":null},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Additional properties\",\"default\":null}]}],\"doc\":\"Metadata around how the snapshot was ingested\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Kafka audit header. See go/kafkaauditheader for more info. */ - @Deprecated public com.linkedin.events.KafkaAuditHeader auditHeader; - /** Snapshot of the proposed metadata change. Include only the aspects affected by the change in the snapshot. */ - @Deprecated public java.lang.Object proposedSnapshot; - /** Delta of the proposed metadata partial update. */ - @Deprecated public java.lang.Object proposedDelta; - /** Metadata around how the snapshot was ingested */ - @Deprecated public com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata; - - /** - * 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 MetadataChangeEvent() {} - - /** - * All-args constructor. - */ - public MetadataChangeEvent(com.linkedin.events.KafkaAuditHeader auditHeader, java.lang.Object proposedSnapshot, java.lang.Object proposedDelta, com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata) { - this.auditHeader = auditHeader; - this.proposedSnapshot = proposedSnapshot; - this.proposedDelta = proposedDelta; - this.systemMetadata = systemMetadata; - } - - 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 auditHeader; - case 1: return proposedSnapshot; - case 2: return proposedDelta; - case 3: return systemMetadata; - 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: auditHeader = (com.linkedin.events.KafkaAuditHeader)value$; break; - case 1: proposedSnapshot = (java.lang.Object)value$; break; - case 2: proposedDelta = (java.lang.Object)value$; break; - case 3: systemMetadata = (com.linkedin.pegasus2avro.mxe.SystemMetadata)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'auditHeader' field. - * Kafka audit header. See go/kafkaauditheader for more info. */ - public com.linkedin.events.KafkaAuditHeader getAuditHeader() { - return auditHeader; - } - - /** - * Sets the value of the 'auditHeader' field. - * Kafka audit header. See go/kafkaauditheader for more info. * @param value the value to set. - */ - public void setAuditHeader(com.linkedin.events.KafkaAuditHeader value) { - this.auditHeader = value; - } - - /** - * Gets the value of the 'proposedSnapshot' field. - * Snapshot of the proposed metadata change. Include only the aspects affected by the change in the snapshot. */ - public java.lang.Object getProposedSnapshot() { - return proposedSnapshot; - } - - /** - * Sets the value of the 'proposedSnapshot' field. - * Snapshot of the proposed metadata change. Include only the aspects affected by the change in the snapshot. * @param value the value to set. - */ - public void setProposedSnapshot(java.lang.Object value) { - this.proposedSnapshot = value; - } - - /** - * Gets the value of the 'proposedDelta' field. - * Delta of the proposed metadata partial update. */ - public java.lang.Object getProposedDelta() { - return proposedDelta; - } - - /** - * Sets the value of the 'proposedDelta' field. - * Delta of the proposed metadata partial update. * @param value the value to set. - */ - public void setProposedDelta(java.lang.Object value) { - this.proposedDelta = value; - } - - /** - * Gets the value of the 'systemMetadata' field. - * Metadata around how the snapshot was ingested */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getSystemMetadata() { - return systemMetadata; - } - - /** - * Sets the value of the 'systemMetadata' field. - * Metadata around how the snapshot was ingested * @param value the value to set. - */ - public void setSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - this.systemMetadata = value; - } - - /** Creates a new MetadataChangeEvent RecordBuilder */ - public static com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder newBuilder() { - return new com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder(); - } - - /** Creates a new MetadataChangeEvent RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder newBuilder(com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder other) { - return new com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder(other); - } - - /** Creates a new MetadataChangeEvent RecordBuilder by copying an existing MetadataChangeEvent instance */ - public static com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder newBuilder(com.linkedin.pegasus2avro.mxe.MetadataChangeEvent other) { - return new com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder(other); - } - - /** - * RecordBuilder for MetadataChangeEvent instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.events.KafkaAuditHeader auditHeader; - private java.lang.Object proposedSnapshot; - private java.lang.Object proposedDelta; - private com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder other) { - super(other); - if (isValidValue(fields()[0], other.auditHeader)) { - this.auditHeader = data().deepCopy(fields()[0].schema(), other.auditHeader); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.proposedSnapshot)) { - this.proposedSnapshot = data().deepCopy(fields()[1].schema(), other.proposedSnapshot); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.proposedDelta)) { - this.proposedDelta = data().deepCopy(fields()[2].schema(), other.proposedDelta); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.systemMetadata)) { - this.systemMetadata = data().deepCopy(fields()[3].schema(), other.systemMetadata); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing MetadataChangeEvent instance */ - private Builder(com.linkedin.pegasus2avro.mxe.MetadataChangeEvent other) { - super(com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.SCHEMA$); - if (isValidValue(fields()[0], other.auditHeader)) { - this.auditHeader = data().deepCopy(fields()[0].schema(), other.auditHeader); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.proposedSnapshot)) { - this.proposedSnapshot = data().deepCopy(fields()[1].schema(), other.proposedSnapshot); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.proposedDelta)) { - this.proposedDelta = data().deepCopy(fields()[2].schema(), other.proposedDelta); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.systemMetadata)) { - this.systemMetadata = data().deepCopy(fields()[3].schema(), other.systemMetadata); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'auditHeader' field */ - public com.linkedin.events.KafkaAuditHeader getAuditHeader() { - return auditHeader; - } - - /** Sets the value of the 'auditHeader' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder setAuditHeader(com.linkedin.events.KafkaAuditHeader value) { - validate(fields()[0], value); - this.auditHeader = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'auditHeader' field has been set */ - public boolean hasAuditHeader() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'auditHeader' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder clearAuditHeader() { - auditHeader = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'proposedSnapshot' field */ - public java.lang.Object getProposedSnapshot() { - return proposedSnapshot; - } - - /** Sets the value of the 'proposedSnapshot' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder setProposedSnapshot(java.lang.Object value) { - validate(fields()[1], value); - this.proposedSnapshot = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'proposedSnapshot' field has been set */ - public boolean hasProposedSnapshot() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'proposedSnapshot' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder clearProposedSnapshot() { - proposedSnapshot = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'proposedDelta' field */ - public java.lang.Object getProposedDelta() { - return proposedDelta; - } - - /** Sets the value of the 'proposedDelta' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder setProposedDelta(java.lang.Object value) { - validate(fields()[2], value); - this.proposedDelta = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'proposedDelta' field has been set */ - public boolean hasProposedDelta() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'proposedDelta' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder clearProposedDelta() { - proposedDelta = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getSystemMetadata() { - return systemMetadata; - } - - /** Sets the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder setSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - validate(fields()[3], value); - this.systemMetadata = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'systemMetadata' field has been set */ - public boolean hasSystemMetadata() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeEvent.Builder clearSystemMetadata() { - systemMetadata = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public MetadataChangeEvent build() { - try { - MetadataChangeEvent record = new MetadataChangeEvent(); - record.auditHeader = fieldSetFlags()[0] ? this.auditHeader : (com.linkedin.events.KafkaAuditHeader) defaultValue(fields()[0]); - record.proposedSnapshot = fieldSetFlags()[1] ? this.proposedSnapshot : (java.lang.Object) defaultValue(fields()[1]); - record.proposedDelta = fieldSetFlags()[2] ? this.proposedDelta : (java.lang.Object) defaultValue(fields()[2]); - record.systemMetadata = fieldSetFlags()[3] ? this.systemMetadata : (com.linkedin.pegasus2avro.mxe.SystemMetadata) 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/mxe/MetadataChangeLog.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/MetadataChangeLog.java deleted file mode 100644 index 6d1b419711b18..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/MetadataChangeLog.java +++ /dev/null @@ -1,700 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -/** Kafka event for capturing update made to an entity's metadata. */ -@org.apache.avro.specific.AvroGenerated -public class MetadataChangeLog 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\":\"MetadataChangeLog\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Kafka event for capturing update made to an entity's metadata.\",\"fields\":[{\"name\":\"auditHeader\",\"type\":[\"null\",{\"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\"}]}],\"doc\":\"Kafka audit header. Currently remains unused in the open source.\",\"default\":null},{\"name\":\"entityType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Type of the entity being written to\"},{\"name\":\"entityUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Urn of the entity being written\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"entityKeyAspect\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GenericAspect\",\"doc\":\"Generic record structure for serializing an Aspect\",\"fields\":[{\"name\":\"value\",\"type\":\"bytes\",\"doc\":\"The value of the aspect, serialized as bytes.\"},{\"name\":\"contentType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The content type, which represents the fashion in which the aspect was serialized.\\nThe only type currently supported is application/json.\"}]}],\"doc\":\"Key aspect of the entity being written\",\"default\":null},{\"name\":\"changeType\",\"type\":{\"type\":\"enum\",\"name\":\"ChangeType\",\"namespace\":\"com.linkedin.pegasus2avro.events.metadata\",\"doc\":\"Descriptor for a change action\",\"symbols\":[\"UPSERT\",\"CREATE\",\"UPDATE\",\"DELETE\",\"PATCH\",\"RESTATE\"],\"symbolDocs\":{\"CREATE\":\"NOT SUPPORTED YET\\ninsert if not exists. otherwise fail\",\"DELETE\":\"NOT SUPPORTED YET\\ndelete action\",\"PATCH\":\"NOT SUPPORTED YET\\npatch the changes instead of full replace\",\"RESTATE\":\"Restate an aspect, eg. in a index refresh.\",\"UPDATE\":\"NOT SUPPORTED YET\\nupdate if exists. otherwise fail\",\"UPSERT\":\"insert if not exists. otherwise update\"}},\"doc\":\"Type of change being proposed\"},{\"name\":\"aspectName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Aspect of the entity being written to\\nNot filling this out implies that the writer wants to affect the entire entity\\nNote: This is only valid for CREATE, UPSERT, and DELETE operations.\",\"default\":null},{\"name\":\"aspect\",\"type\":[\"null\",\"GenericAspect\"],\"doc\":\"The value of the new aspect.\",\"default\":null},{\"name\":\"systemMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SystemMetadata\",\"doc\":\"Metadata associated with each metadata change that is processed by the system\",\"fields\":[{\"name\":\"lastObserved\",\"type\":[\"long\",\"null\"],\"doc\":\"The timestamp the metadata was observed at\",\"default\":0},{\"name\":\"runId\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"],\"doc\":\"The run id that produced the metadata. Populated in case of batch-ingestion.\",\"default\":\"no-run-id-provided\"},{\"name\":\"registryName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry name that was used to process this event\",\"default\":null},{\"name\":\"registryVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry version that was used to process this event\",\"default\":null},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Additional properties\",\"default\":null}]}],\"doc\":\"A string->string map of custom properties that one might want to attach to an event\",\"default\":null},{\"name\":\"previousAspectValue\",\"type\":[\"null\",\"GenericAspect\"],\"doc\":\"The previous value of the aspect that has changed.\",\"default\":null},{\"name\":\"previousSystemMetadata\",\"type\":[\"null\",\"SystemMetadata\"],\"doc\":\"The previous value of the system metadata field that has changed.\",\"default\":null},{\"name\":\"created\",\"type\":[\"null\",{\"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 audit stamp detailing who and when the aspect was changed by. Required for all intents and purposes.\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Kafka audit header. Currently remains unused in the open source. */ - @Deprecated public com.linkedin.events.KafkaAuditHeader auditHeader; - /** Type of the entity being written to */ - @Deprecated public java.lang.String entityType; - /** Urn of the entity being written */ - @Deprecated public java.lang.String entityUrn; - /** Key aspect of the entity being written */ - @Deprecated public com.linkedin.pegasus2avro.mxe.GenericAspect entityKeyAspect; - /** Type of change being proposed */ - @Deprecated public com.linkedin.pegasus2avro.events.metadata.ChangeType changeType; - /** Aspect of the entity being written to -Not filling this out implies that the writer wants to affect the entire entity -Note: This is only valid for CREATE, UPSERT, and DELETE operations. */ - @Deprecated public java.lang.String aspectName; - /** The value of the new aspect. */ - @Deprecated public com.linkedin.pegasus2avro.mxe.GenericAspect aspect; - /** A string->string map of custom properties that one might want to attach to an event */ - @Deprecated public com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata; - /** The previous value of the aspect that has changed. */ - @Deprecated public com.linkedin.pegasus2avro.mxe.GenericAspect previousAspectValue; - /** The previous value of the system metadata field that has changed. */ - @Deprecated public com.linkedin.pegasus2avro.mxe.SystemMetadata previousSystemMetadata; - /** An audit stamp detailing who and when the aspect was changed by. Required for all intents and purposes. */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created; - - /** - * 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 MetadataChangeLog() {} - - /** - * All-args constructor. - */ - public MetadataChangeLog(com.linkedin.events.KafkaAuditHeader auditHeader, java.lang.String entityType, java.lang.String entityUrn, com.linkedin.pegasus2avro.mxe.GenericAspect entityKeyAspect, com.linkedin.pegasus2avro.events.metadata.ChangeType changeType, java.lang.String aspectName, com.linkedin.pegasus2avro.mxe.GenericAspect aspect, com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata, com.linkedin.pegasus2avro.mxe.GenericAspect previousAspectValue, com.linkedin.pegasus2avro.mxe.SystemMetadata previousSystemMetadata, com.linkedin.pegasus2avro.common.AuditStamp created) { - this.auditHeader = auditHeader; - this.entityType = entityType; - this.entityUrn = entityUrn; - this.entityKeyAspect = entityKeyAspect; - this.changeType = changeType; - this.aspectName = aspectName; - this.aspect = aspect; - this.systemMetadata = systemMetadata; - this.previousAspectValue = previousAspectValue; - this.previousSystemMetadata = previousSystemMetadata; - this.created = created; - } - - 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 auditHeader; - case 1: return entityType; - case 2: return entityUrn; - case 3: return entityKeyAspect; - case 4: return changeType; - case 5: return aspectName; - case 6: return aspect; - case 7: return systemMetadata; - case 8: return previousAspectValue; - case 9: return previousSystemMetadata; - case 10: return created; - 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: auditHeader = (com.linkedin.events.KafkaAuditHeader)value$; break; - case 1: entityType = (java.lang.String)value$; break; - case 2: entityUrn = (java.lang.String)value$; break; - case 3: entityKeyAspect = (com.linkedin.pegasus2avro.mxe.GenericAspect)value$; break; - case 4: changeType = (com.linkedin.pegasus2avro.events.metadata.ChangeType)value$; break; - case 5: aspectName = (java.lang.String)value$; break; - case 6: aspect = (com.linkedin.pegasus2avro.mxe.GenericAspect)value$; break; - case 7: systemMetadata = (com.linkedin.pegasus2avro.mxe.SystemMetadata)value$; break; - case 8: previousAspectValue = (com.linkedin.pegasus2avro.mxe.GenericAspect)value$; break; - case 9: previousSystemMetadata = (com.linkedin.pegasus2avro.mxe.SystemMetadata)value$; break; - case 10: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'auditHeader' field. - * Kafka audit header. Currently remains unused in the open source. */ - public com.linkedin.events.KafkaAuditHeader getAuditHeader() { - return auditHeader; - } - - /** - * Sets the value of the 'auditHeader' field. - * Kafka audit header. Currently remains unused in the open source. * @param value the value to set. - */ - public void setAuditHeader(com.linkedin.events.KafkaAuditHeader value) { - this.auditHeader = value; - } - - /** - * Gets the value of the 'entityType' field. - * Type of the entity being written to */ - public java.lang.String getEntityType() { - return entityType; - } - - /** - * Sets the value of the 'entityType' field. - * Type of the entity being written to * @param value the value to set. - */ - public void setEntityType(java.lang.String value) { - this.entityType = value; - } - - /** - * Gets the value of the 'entityUrn' field. - * Urn of the entity being written */ - public java.lang.String getEntityUrn() { - return entityUrn; - } - - /** - * Sets the value of the 'entityUrn' field. - * Urn of the entity being written * @param value the value to set. - */ - public void setEntityUrn(java.lang.String value) { - this.entityUrn = value; - } - - /** - * Gets the value of the 'entityKeyAspect' field. - * Key aspect of the entity being written */ - public com.linkedin.pegasus2avro.mxe.GenericAspect getEntityKeyAspect() { - return entityKeyAspect; - } - - /** - * Sets the value of the 'entityKeyAspect' field. - * Key aspect of the entity being written * @param value the value to set. - */ - public void setEntityKeyAspect(com.linkedin.pegasus2avro.mxe.GenericAspect value) { - this.entityKeyAspect = value; - } - - /** - * Gets the value of the 'changeType' field. - * Type of change being proposed */ - public com.linkedin.pegasus2avro.events.metadata.ChangeType getChangeType() { - return changeType; - } - - /** - * Sets the value of the 'changeType' field. - * Type of change being proposed * @param value the value to set. - */ - public void setChangeType(com.linkedin.pegasus2avro.events.metadata.ChangeType value) { - this.changeType = value; - } - - /** - * Gets the value of the 'aspectName' field. - * Aspect of the entity being written to -Not filling this out implies that the writer wants to affect the entire entity -Note: This is only valid for CREATE, UPSERT, and DELETE operations. */ - public java.lang.String getAspectName() { - return aspectName; - } - - /** - * Sets the value of the 'aspectName' field. - * Aspect of the entity being written to -Not filling this out implies that the writer wants to affect the entire entity -Note: This is only valid for CREATE, UPSERT, and DELETE operations. * @param value the value to set. - */ - public void setAspectName(java.lang.String value) { - this.aspectName = value; - } - - /** - * Gets the value of the 'aspect' field. - * The value of the new aspect. */ - public com.linkedin.pegasus2avro.mxe.GenericAspect getAspect() { - return aspect; - } - - /** - * Sets the value of the 'aspect' field. - * The value of the new aspect. * @param value the value to set. - */ - public void setAspect(com.linkedin.pegasus2avro.mxe.GenericAspect value) { - this.aspect = value; - } - - /** - * Gets the value of the 'systemMetadata' field. - * A string->string map of custom properties that one might want to attach to an event */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getSystemMetadata() { - return systemMetadata; - } - - /** - * Sets the value of the 'systemMetadata' field. - * A string->string map of custom properties that one might want to attach to an event * @param value the value to set. - */ - public void setSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - this.systemMetadata = value; - } - - /** - * Gets the value of the 'previousAspectValue' field. - * The previous value of the aspect that has changed. */ - public com.linkedin.pegasus2avro.mxe.GenericAspect getPreviousAspectValue() { - return previousAspectValue; - } - - /** - * Sets the value of the 'previousAspectValue' field. - * The previous value of the aspect that has changed. * @param value the value to set. - */ - public void setPreviousAspectValue(com.linkedin.pegasus2avro.mxe.GenericAspect value) { - this.previousAspectValue = value; - } - - /** - * Gets the value of the 'previousSystemMetadata' field. - * The previous value of the system metadata field that has changed. */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getPreviousSystemMetadata() { - return previousSystemMetadata; - } - - /** - * Sets the value of the 'previousSystemMetadata' field. - * The previous value of the system metadata field that has changed. * @param value the value to set. - */ - public void setPreviousSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - this.previousSystemMetadata = value; - } - - /** - * Gets the value of the 'created' field. - * An audit stamp detailing who and when the aspect was changed by. Required for all intents and purposes. */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * An audit stamp detailing who and when the aspect was changed by. Required for all intents and purposes. * @param value the value to set. - */ - public void setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.created = value; - } - - /** Creates a new MetadataChangeLog RecordBuilder */ - public static com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder newBuilder() { - return new com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder(); - } - - /** Creates a new MetadataChangeLog RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder newBuilder(com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder other) { - return new com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder(other); - } - - /** Creates a new MetadataChangeLog RecordBuilder by copying an existing MetadataChangeLog instance */ - public static com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder newBuilder(com.linkedin.pegasus2avro.mxe.MetadataChangeLog other) { - return new com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder(other); - } - - /** - * RecordBuilder for MetadataChangeLog instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.events.KafkaAuditHeader auditHeader; - private java.lang.String entityType; - private java.lang.String entityUrn; - private com.linkedin.pegasus2avro.mxe.GenericAspect entityKeyAspect; - private com.linkedin.pegasus2avro.events.metadata.ChangeType changeType; - private java.lang.String aspectName; - private com.linkedin.pegasus2avro.mxe.GenericAspect aspect; - private com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata; - private com.linkedin.pegasus2avro.mxe.GenericAspect previousAspectValue; - private com.linkedin.pegasus2avro.mxe.SystemMetadata previousSystemMetadata; - private com.linkedin.pegasus2avro.common.AuditStamp created; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.mxe.MetadataChangeLog.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder other) { - super(other); - if (isValidValue(fields()[0], other.auditHeader)) { - this.auditHeader = data().deepCopy(fields()[0].schema(), other.auditHeader); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entityType)) { - this.entityType = data().deepCopy(fields()[1].schema(), other.entityType); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.entityUrn)) { - this.entityUrn = data().deepCopy(fields()[2].schema(), other.entityUrn); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.entityKeyAspect)) { - this.entityKeyAspect = data().deepCopy(fields()[3].schema(), other.entityKeyAspect); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.changeType)) { - this.changeType = data().deepCopy(fields()[4].schema(), other.changeType); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.aspectName)) { - this.aspectName = data().deepCopy(fields()[5].schema(), other.aspectName); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.aspect)) { - this.aspect = data().deepCopy(fields()[6].schema(), other.aspect); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.systemMetadata)) { - this.systemMetadata = data().deepCopy(fields()[7].schema(), other.systemMetadata); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.previousAspectValue)) { - this.previousAspectValue = data().deepCopy(fields()[8].schema(), other.previousAspectValue); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.previousSystemMetadata)) { - this.previousSystemMetadata = data().deepCopy(fields()[9].schema(), other.previousSystemMetadata); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.created)) { - this.created = data().deepCopy(fields()[10].schema(), other.created); - fieldSetFlags()[10] = true; - } - } - - /** Creates a Builder by copying an existing MetadataChangeLog instance */ - private Builder(com.linkedin.pegasus2avro.mxe.MetadataChangeLog other) { - super(com.linkedin.pegasus2avro.mxe.MetadataChangeLog.SCHEMA$); - if (isValidValue(fields()[0], other.auditHeader)) { - this.auditHeader = data().deepCopy(fields()[0].schema(), other.auditHeader); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entityType)) { - this.entityType = data().deepCopy(fields()[1].schema(), other.entityType); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.entityUrn)) { - this.entityUrn = data().deepCopy(fields()[2].schema(), other.entityUrn); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.entityKeyAspect)) { - this.entityKeyAspect = data().deepCopy(fields()[3].schema(), other.entityKeyAspect); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.changeType)) { - this.changeType = data().deepCopy(fields()[4].schema(), other.changeType); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.aspectName)) { - this.aspectName = data().deepCopy(fields()[5].schema(), other.aspectName); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.aspect)) { - this.aspect = data().deepCopy(fields()[6].schema(), other.aspect); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.systemMetadata)) { - this.systemMetadata = data().deepCopy(fields()[7].schema(), other.systemMetadata); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.previousAspectValue)) { - this.previousAspectValue = data().deepCopy(fields()[8].schema(), other.previousAspectValue); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.previousSystemMetadata)) { - this.previousSystemMetadata = data().deepCopy(fields()[9].schema(), other.previousSystemMetadata); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.created)) { - this.created = data().deepCopy(fields()[10].schema(), other.created); - fieldSetFlags()[10] = true; - } - } - - /** Gets the value of the 'auditHeader' field */ - public com.linkedin.events.KafkaAuditHeader getAuditHeader() { - return auditHeader; - } - - /** Sets the value of the 'auditHeader' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder setAuditHeader(com.linkedin.events.KafkaAuditHeader value) { - validate(fields()[0], value); - this.auditHeader = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'auditHeader' field has been set */ - public boolean hasAuditHeader() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'auditHeader' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder clearAuditHeader() { - auditHeader = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'entityType' field */ - public java.lang.String getEntityType() { - return entityType; - } - - /** Sets the value of the 'entityType' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder setEntityType(java.lang.String value) { - validate(fields()[1], value); - this.entityType = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'entityType' field has been set */ - public boolean hasEntityType() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'entityType' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder clearEntityType() { - entityType = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'entityUrn' field */ - public java.lang.String getEntityUrn() { - return entityUrn; - } - - /** Sets the value of the 'entityUrn' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder setEntityUrn(java.lang.String value) { - validate(fields()[2], value); - this.entityUrn = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'entityUrn' field has been set */ - public boolean hasEntityUrn() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'entityUrn' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder clearEntityUrn() { - entityUrn = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'entityKeyAspect' field */ - public com.linkedin.pegasus2avro.mxe.GenericAspect getEntityKeyAspect() { - return entityKeyAspect; - } - - /** Sets the value of the 'entityKeyAspect' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder setEntityKeyAspect(com.linkedin.pegasus2avro.mxe.GenericAspect value) { - validate(fields()[3], value); - this.entityKeyAspect = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'entityKeyAspect' field has been set */ - public boolean hasEntityKeyAspect() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'entityKeyAspect' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder clearEntityKeyAspect() { - entityKeyAspect = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'changeType' field */ - public com.linkedin.pegasus2avro.events.metadata.ChangeType getChangeType() { - return changeType; - } - - /** Sets the value of the 'changeType' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder setChangeType(com.linkedin.pegasus2avro.events.metadata.ChangeType value) { - validate(fields()[4], value); - this.changeType = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'changeType' field has been set */ - public boolean hasChangeType() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'changeType' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder clearChangeType() { - changeType = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'aspectName' field */ - public java.lang.String getAspectName() { - return aspectName; - } - - /** Sets the value of the 'aspectName' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder setAspectName(java.lang.String value) { - validate(fields()[5], value); - this.aspectName = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'aspectName' field has been set */ - public boolean hasAspectName() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'aspectName' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder clearAspectName() { - aspectName = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.mxe.GenericAspect getAspect() { - return aspect; - } - - /** Sets the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder setAspect(com.linkedin.pegasus2avro.mxe.GenericAspect value) { - validate(fields()[6], value); - this.aspect = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'aspect' field has been set */ - public boolean hasAspect() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder clearAspect() { - aspect = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getSystemMetadata() { - return systemMetadata; - } - - /** Sets the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder setSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - validate(fields()[7], value); - this.systemMetadata = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'systemMetadata' field has been set */ - public boolean hasSystemMetadata() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder clearSystemMetadata() { - systemMetadata = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'previousAspectValue' field */ - public com.linkedin.pegasus2avro.mxe.GenericAspect getPreviousAspectValue() { - return previousAspectValue; - } - - /** Sets the value of the 'previousAspectValue' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder setPreviousAspectValue(com.linkedin.pegasus2avro.mxe.GenericAspect value) { - validate(fields()[8], value); - this.previousAspectValue = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'previousAspectValue' field has been set */ - public boolean hasPreviousAspectValue() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'previousAspectValue' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder clearPreviousAspectValue() { - previousAspectValue = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'previousSystemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getPreviousSystemMetadata() { - return previousSystemMetadata; - } - - /** Sets the value of the 'previousSystemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder setPreviousSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - validate(fields()[9], value); - this.previousSystemMetadata = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'previousSystemMetadata' field has been set */ - public boolean hasPreviousSystemMetadata() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'previousSystemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder clearPreviousSystemMetadata() { - previousSystemMetadata = null; - fieldSetFlags()[9] = 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.mxe.MetadataChangeLog.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[10], value); - this.created = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeLog.Builder clearCreated() { - created = null; - fieldSetFlags()[10] = false; - return this; - } - - @Override - public MetadataChangeLog build() { - try { - MetadataChangeLog record = new MetadataChangeLog(); - record.auditHeader = fieldSetFlags()[0] ? this.auditHeader : (com.linkedin.events.KafkaAuditHeader) defaultValue(fields()[0]); - record.entityType = fieldSetFlags()[1] ? this.entityType : (java.lang.String) defaultValue(fields()[1]); - record.entityUrn = fieldSetFlags()[2] ? this.entityUrn : (java.lang.String) defaultValue(fields()[2]); - record.entityKeyAspect = fieldSetFlags()[3] ? this.entityKeyAspect : (com.linkedin.pegasus2avro.mxe.GenericAspect) defaultValue(fields()[3]); - record.changeType = fieldSetFlags()[4] ? this.changeType : (com.linkedin.pegasus2avro.events.metadata.ChangeType) defaultValue(fields()[4]); - record.aspectName = fieldSetFlags()[5] ? this.aspectName : (java.lang.String) defaultValue(fields()[5]); - record.aspect = fieldSetFlags()[6] ? this.aspect : (com.linkedin.pegasus2avro.mxe.GenericAspect) defaultValue(fields()[6]); - record.systemMetadata = fieldSetFlags()[7] ? this.systemMetadata : (com.linkedin.pegasus2avro.mxe.SystemMetadata) defaultValue(fields()[7]); - record.previousAspectValue = fieldSetFlags()[8] ? this.previousAspectValue : (com.linkedin.pegasus2avro.mxe.GenericAspect) defaultValue(fields()[8]); - record.previousSystemMetadata = fieldSetFlags()[9] ? this.previousSystemMetadata : (com.linkedin.pegasus2avro.mxe.SystemMetadata) defaultValue(fields()[9]); - record.created = fieldSetFlags()[10] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) 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/mxe/MetadataChangeProposal.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/MetadataChangeProposal.java deleted file mode 100644 index 31fc703a53b32..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/MetadataChangeProposal.java +++ /dev/null @@ -1,535 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -/** Kafka event for proposing a metadata change for an entity. A corresponding MetadataChangeLog is emitted when the change is accepted and committed, otherwise a FailedMetadataChangeProposal will be emitted instead. */ -@org.apache.avro.specific.AvroGenerated -public class MetadataChangeProposal 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\":\"MetadataChangeProposal\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Kafka event for proposing a metadata change for an entity. A corresponding MetadataChangeLog is emitted when the change is accepted and committed, otherwise a FailedMetadataChangeProposal will be emitted instead.\",\"fields\":[{\"name\":\"auditHeader\",\"type\":[\"null\",{\"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\"}]}],\"doc\":\"Kafka audit header. Currently remains unused in the open source.\",\"default\":null},{\"name\":\"entityType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Type of the entity being written to\"},{\"name\":\"entityUrn\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Urn of the entity being written\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"entityKeyAspect\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GenericAspect\",\"doc\":\"Generic record structure for serializing an Aspect\",\"fields\":[{\"name\":\"value\",\"type\":\"bytes\",\"doc\":\"The value of the aspect, serialized as bytes.\"},{\"name\":\"contentType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The content type, which represents the fashion in which the aspect was serialized.\\nThe only type currently supported is application/json.\"}]}],\"doc\":\"Key aspect of the entity being written\",\"default\":null},{\"name\":\"changeType\",\"type\":{\"type\":\"enum\",\"name\":\"ChangeType\",\"namespace\":\"com.linkedin.pegasus2avro.events.metadata\",\"doc\":\"Descriptor for a change action\",\"symbols\":[\"UPSERT\",\"CREATE\",\"UPDATE\",\"DELETE\",\"PATCH\",\"RESTATE\"],\"symbolDocs\":{\"CREATE\":\"NOT SUPPORTED YET\\ninsert if not exists. otherwise fail\",\"DELETE\":\"NOT SUPPORTED YET\\ndelete action\",\"PATCH\":\"NOT SUPPORTED YET\\npatch the changes instead of full replace\",\"RESTATE\":\"Restate an aspect, eg. in a index refresh.\",\"UPDATE\":\"NOT SUPPORTED YET\\nupdate if exists. otherwise fail\",\"UPSERT\":\"insert if not exists. otherwise update\"}},\"doc\":\"Type of change being proposed\"},{\"name\":\"aspectName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Aspect of the entity being written to\\nNot filling this out implies that the writer wants to affect the entire entity\\nNote: This is only valid for CREATE, UPSERT, and DELETE operations.\",\"default\":null},{\"name\":\"aspect\",\"type\":[\"null\",\"GenericAspect\"],\"doc\":\"The value of the new aspect.\",\"default\":null},{\"name\":\"systemMetadata\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SystemMetadata\",\"doc\":\"Metadata associated with each metadata change that is processed by the system\",\"fields\":[{\"name\":\"lastObserved\",\"type\":[\"long\",\"null\"],\"doc\":\"The timestamp the metadata was observed at\",\"default\":0},{\"name\":\"runId\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"],\"doc\":\"The run id that produced the metadata. Populated in case of batch-ingestion.\",\"default\":\"no-run-id-provided\"},{\"name\":\"registryName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry name that was used to process this event\",\"default\":null},{\"name\":\"registryVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry version that was used to process this event\",\"default\":null},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Additional properties\",\"default\":null}]}],\"doc\":\"A string->string map of custom properties that one might want to attach to an event\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Kafka audit header. Currently remains unused in the open source. */ - @Deprecated public com.linkedin.events.KafkaAuditHeader auditHeader; - /** Type of the entity being written to */ - @Deprecated public java.lang.String entityType; - /** Urn of the entity being written */ - @Deprecated public java.lang.String entityUrn; - /** Key aspect of the entity being written */ - @Deprecated public com.linkedin.pegasus2avro.mxe.GenericAspect entityKeyAspect; - /** Type of change being proposed */ - @Deprecated public com.linkedin.pegasus2avro.events.metadata.ChangeType changeType; - /** Aspect of the entity being written to -Not filling this out implies that the writer wants to affect the entire entity -Note: This is only valid for CREATE, UPSERT, and DELETE operations. */ - @Deprecated public java.lang.String aspectName; - /** The value of the new aspect. */ - @Deprecated public com.linkedin.pegasus2avro.mxe.GenericAspect aspect; - /** A string->string map of custom properties that one might want to attach to an event */ - @Deprecated public com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata; - - /** - * 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 MetadataChangeProposal() {} - - /** - * All-args constructor. - */ - public MetadataChangeProposal(com.linkedin.events.KafkaAuditHeader auditHeader, java.lang.String entityType, java.lang.String entityUrn, com.linkedin.pegasus2avro.mxe.GenericAspect entityKeyAspect, com.linkedin.pegasus2avro.events.metadata.ChangeType changeType, java.lang.String aspectName, com.linkedin.pegasus2avro.mxe.GenericAspect aspect, com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata) { - this.auditHeader = auditHeader; - this.entityType = entityType; - this.entityUrn = entityUrn; - this.entityKeyAspect = entityKeyAspect; - this.changeType = changeType; - this.aspectName = aspectName; - this.aspect = aspect; - this.systemMetadata = systemMetadata; - } - - 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 auditHeader; - case 1: return entityType; - case 2: return entityUrn; - case 3: return entityKeyAspect; - case 4: return changeType; - case 5: return aspectName; - case 6: return aspect; - case 7: return systemMetadata; - 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: auditHeader = (com.linkedin.events.KafkaAuditHeader)value$; break; - case 1: entityType = (java.lang.String)value$; break; - case 2: entityUrn = (java.lang.String)value$; break; - case 3: entityKeyAspect = (com.linkedin.pegasus2avro.mxe.GenericAspect)value$; break; - case 4: changeType = (com.linkedin.pegasus2avro.events.metadata.ChangeType)value$; break; - case 5: aspectName = (java.lang.String)value$; break; - case 6: aspect = (com.linkedin.pegasus2avro.mxe.GenericAspect)value$; break; - case 7: systemMetadata = (com.linkedin.pegasus2avro.mxe.SystemMetadata)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'auditHeader' field. - * Kafka audit header. Currently remains unused in the open source. */ - public com.linkedin.events.KafkaAuditHeader getAuditHeader() { - return auditHeader; - } - - /** - * Sets the value of the 'auditHeader' field. - * Kafka audit header. Currently remains unused in the open source. * @param value the value to set. - */ - public void setAuditHeader(com.linkedin.events.KafkaAuditHeader value) { - this.auditHeader = value; - } - - /** - * Gets the value of the 'entityType' field. - * Type of the entity being written to */ - public java.lang.String getEntityType() { - return entityType; - } - - /** - * Sets the value of the 'entityType' field. - * Type of the entity being written to * @param value the value to set. - */ - public void setEntityType(java.lang.String value) { - this.entityType = value; - } - - /** - * Gets the value of the 'entityUrn' field. - * Urn of the entity being written */ - public java.lang.String getEntityUrn() { - return entityUrn; - } - - /** - * Sets the value of the 'entityUrn' field. - * Urn of the entity being written * @param value the value to set. - */ - public void setEntityUrn(java.lang.String value) { - this.entityUrn = value; - } - - /** - * Gets the value of the 'entityKeyAspect' field. - * Key aspect of the entity being written */ - public com.linkedin.pegasus2avro.mxe.GenericAspect getEntityKeyAspect() { - return entityKeyAspect; - } - - /** - * Sets the value of the 'entityKeyAspect' field. - * Key aspect of the entity being written * @param value the value to set. - */ - public void setEntityKeyAspect(com.linkedin.pegasus2avro.mxe.GenericAspect value) { - this.entityKeyAspect = value; - } - - /** - * Gets the value of the 'changeType' field. - * Type of change being proposed */ - public com.linkedin.pegasus2avro.events.metadata.ChangeType getChangeType() { - return changeType; - } - - /** - * Sets the value of the 'changeType' field. - * Type of change being proposed * @param value the value to set. - */ - public void setChangeType(com.linkedin.pegasus2avro.events.metadata.ChangeType value) { - this.changeType = value; - } - - /** - * Gets the value of the 'aspectName' field. - * Aspect of the entity being written to -Not filling this out implies that the writer wants to affect the entire entity -Note: This is only valid for CREATE, UPSERT, and DELETE operations. */ - public java.lang.String getAspectName() { - return aspectName; - } - - /** - * Sets the value of the 'aspectName' field. - * Aspect of the entity being written to -Not filling this out implies that the writer wants to affect the entire entity -Note: This is only valid for CREATE, UPSERT, and DELETE operations. * @param value the value to set. - */ - public void setAspectName(java.lang.String value) { - this.aspectName = value; - } - - /** - * Gets the value of the 'aspect' field. - * The value of the new aspect. */ - public com.linkedin.pegasus2avro.mxe.GenericAspect getAspect() { - return aspect; - } - - /** - * Sets the value of the 'aspect' field. - * The value of the new aspect. * @param value the value to set. - */ - public void setAspect(com.linkedin.pegasus2avro.mxe.GenericAspect value) { - this.aspect = value; - } - - /** - * Gets the value of the 'systemMetadata' field. - * A string->string map of custom properties that one might want to attach to an event */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getSystemMetadata() { - return systemMetadata; - } - - /** - * Sets the value of the 'systemMetadata' field. - * A string->string map of custom properties that one might want to attach to an event * @param value the value to set. - */ - public void setSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - this.systemMetadata = value; - } - - /** Creates a new MetadataChangeProposal RecordBuilder */ - public static com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder newBuilder() { - return new com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder(); - } - - /** Creates a new MetadataChangeProposal RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder newBuilder(com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder other) { - return new com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder(other); - } - - /** Creates a new MetadataChangeProposal RecordBuilder by copying an existing MetadataChangeProposal instance */ - public static com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder newBuilder(com.linkedin.pegasus2avro.mxe.MetadataChangeProposal other) { - return new com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder(other); - } - - /** - * RecordBuilder for MetadataChangeProposal instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.events.KafkaAuditHeader auditHeader; - private java.lang.String entityType; - private java.lang.String entityUrn; - private com.linkedin.pegasus2avro.mxe.GenericAspect entityKeyAspect; - private com.linkedin.pegasus2avro.events.metadata.ChangeType changeType; - private java.lang.String aspectName; - private com.linkedin.pegasus2avro.mxe.GenericAspect aspect; - private com.linkedin.pegasus2avro.mxe.SystemMetadata systemMetadata; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder other) { - super(other); - if (isValidValue(fields()[0], other.auditHeader)) { - this.auditHeader = data().deepCopy(fields()[0].schema(), other.auditHeader); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entityType)) { - this.entityType = data().deepCopy(fields()[1].schema(), other.entityType); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.entityUrn)) { - this.entityUrn = data().deepCopy(fields()[2].schema(), other.entityUrn); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.entityKeyAspect)) { - this.entityKeyAspect = data().deepCopy(fields()[3].schema(), other.entityKeyAspect); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.changeType)) { - this.changeType = data().deepCopy(fields()[4].schema(), other.changeType); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.aspectName)) { - this.aspectName = data().deepCopy(fields()[5].schema(), other.aspectName); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.aspect)) { - this.aspect = data().deepCopy(fields()[6].schema(), other.aspect); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.systemMetadata)) { - this.systemMetadata = data().deepCopy(fields()[7].schema(), other.systemMetadata); - fieldSetFlags()[7] = true; - } - } - - /** Creates a Builder by copying an existing MetadataChangeProposal instance */ - private Builder(com.linkedin.pegasus2avro.mxe.MetadataChangeProposal other) { - super(com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.SCHEMA$); - if (isValidValue(fields()[0], other.auditHeader)) { - this.auditHeader = data().deepCopy(fields()[0].schema(), other.auditHeader); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entityType)) { - this.entityType = data().deepCopy(fields()[1].schema(), other.entityType); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.entityUrn)) { - this.entityUrn = data().deepCopy(fields()[2].schema(), other.entityUrn); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.entityKeyAspect)) { - this.entityKeyAspect = data().deepCopy(fields()[3].schema(), other.entityKeyAspect); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.changeType)) { - this.changeType = data().deepCopy(fields()[4].schema(), other.changeType); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.aspectName)) { - this.aspectName = data().deepCopy(fields()[5].schema(), other.aspectName); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.aspect)) { - this.aspect = data().deepCopy(fields()[6].schema(), other.aspect); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.systemMetadata)) { - this.systemMetadata = data().deepCopy(fields()[7].schema(), other.systemMetadata); - fieldSetFlags()[7] = true; - } - } - - /** Gets the value of the 'auditHeader' field */ - public com.linkedin.events.KafkaAuditHeader getAuditHeader() { - return auditHeader; - } - - /** Sets the value of the 'auditHeader' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder setAuditHeader(com.linkedin.events.KafkaAuditHeader value) { - validate(fields()[0], value); - this.auditHeader = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'auditHeader' field has been set */ - public boolean hasAuditHeader() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'auditHeader' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder clearAuditHeader() { - auditHeader = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'entityType' field */ - public java.lang.String getEntityType() { - return entityType; - } - - /** Sets the value of the 'entityType' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder setEntityType(java.lang.String value) { - validate(fields()[1], value); - this.entityType = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'entityType' field has been set */ - public boolean hasEntityType() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'entityType' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder clearEntityType() { - entityType = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'entityUrn' field */ - public java.lang.String getEntityUrn() { - return entityUrn; - } - - /** Sets the value of the 'entityUrn' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder setEntityUrn(java.lang.String value) { - validate(fields()[2], value); - this.entityUrn = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'entityUrn' field has been set */ - public boolean hasEntityUrn() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'entityUrn' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder clearEntityUrn() { - entityUrn = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'entityKeyAspect' field */ - public com.linkedin.pegasus2avro.mxe.GenericAspect getEntityKeyAspect() { - return entityKeyAspect; - } - - /** Sets the value of the 'entityKeyAspect' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder setEntityKeyAspect(com.linkedin.pegasus2avro.mxe.GenericAspect value) { - validate(fields()[3], value); - this.entityKeyAspect = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'entityKeyAspect' field has been set */ - public boolean hasEntityKeyAspect() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'entityKeyAspect' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder clearEntityKeyAspect() { - entityKeyAspect = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'changeType' field */ - public com.linkedin.pegasus2avro.events.metadata.ChangeType getChangeType() { - return changeType; - } - - /** Sets the value of the 'changeType' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder setChangeType(com.linkedin.pegasus2avro.events.metadata.ChangeType value) { - validate(fields()[4], value); - this.changeType = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'changeType' field has been set */ - public boolean hasChangeType() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'changeType' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder clearChangeType() { - changeType = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'aspectName' field */ - public java.lang.String getAspectName() { - return aspectName; - } - - /** Sets the value of the 'aspectName' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder setAspectName(java.lang.String value) { - validate(fields()[5], value); - this.aspectName = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'aspectName' field has been set */ - public boolean hasAspectName() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'aspectName' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder clearAspectName() { - aspectName = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.mxe.GenericAspect getAspect() { - return aspect; - } - - /** Sets the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder setAspect(com.linkedin.pegasus2avro.mxe.GenericAspect value) { - validate(fields()[6], value); - this.aspect = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'aspect' field has been set */ - public boolean hasAspect() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'aspect' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder clearAspect() { - aspect = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata getSystemMetadata() { - return systemMetadata; - } - - /** Sets the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder setSystemMetadata(com.linkedin.pegasus2avro.mxe.SystemMetadata value) { - validate(fields()[7], value); - this.systemMetadata = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'systemMetadata' field has been set */ - public boolean hasSystemMetadata() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'systemMetadata' field */ - public com.linkedin.pegasus2avro.mxe.MetadataChangeProposal.Builder clearSystemMetadata() { - systemMetadata = null; - fieldSetFlags()[7] = false; - return this; - } - - @Override - public MetadataChangeProposal build() { - try { - MetadataChangeProposal record = new MetadataChangeProposal(); - record.auditHeader = fieldSetFlags()[0] ? this.auditHeader : (com.linkedin.events.KafkaAuditHeader) defaultValue(fields()[0]); - record.entityType = fieldSetFlags()[1] ? this.entityType : (java.lang.String) defaultValue(fields()[1]); - record.entityUrn = fieldSetFlags()[2] ? this.entityUrn : (java.lang.String) defaultValue(fields()[2]); - record.entityKeyAspect = fieldSetFlags()[3] ? this.entityKeyAspect : (com.linkedin.pegasus2avro.mxe.GenericAspect) defaultValue(fields()[3]); - record.changeType = fieldSetFlags()[4] ? this.changeType : (com.linkedin.pegasus2avro.events.metadata.ChangeType) defaultValue(fields()[4]); - record.aspectName = fieldSetFlags()[5] ? this.aspectName : (java.lang.String) defaultValue(fields()[5]); - record.aspect = fieldSetFlags()[6] ? this.aspect : (com.linkedin.pegasus2avro.mxe.GenericAspect) defaultValue(fields()[6]); - record.systemMetadata = fieldSetFlags()[7] ? this.systemMetadata : (com.linkedin.pegasus2avro.mxe.SystemMetadata) 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/pegasus2avro/mxe/PlatformEvent.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/PlatformEvent.java deleted file mode 100644 index 7688915a7d08f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/PlatformEvent.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -/** A DataHub Platform Event. */ -@org.apache.avro.specific.AvroGenerated -public class PlatformEvent 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\":\"PlatformEvent\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"A DataHub Platform Event.\",\"fields\":[{\"name\":\"header\",\"type\":{\"type\":\"record\",\"name\":\"PlatformEventHeader\",\"doc\":\"A header included with each DataHub platform event.\",\"fields\":[{\"name\":\"timestampMillis\",\"type\":\"long\",\"doc\":\"The event timestamp field as epoch at UTC in milli seconds.\"}]},\"doc\":\"Header information stored with the event.\"},{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the event, e.g. the type of event. For example, 'notificationRequestEvent', 'entityChangeEvent'\"},{\"name\":\"payload\",\"type\":{\"type\":\"record\",\"name\":\"GenericPayload\",\"doc\":\"Generic payload record structure for serializing a Platform Event.\",\"fields\":[{\"name\":\"value\",\"type\":\"bytes\",\"doc\":\"The value of the event, serialized as bytes.\"},{\"name\":\"contentType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The content type, which represents the fashion in which the event was serialized.\\nThe only type currently supported is application/json.\"}]},\"doc\":\"The event payload.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Header information stored with the event. */ - @Deprecated public com.linkedin.pegasus2avro.mxe.PlatformEventHeader header; - /** The name of the event, e.g. the type of event. For example, 'notificationRequestEvent', 'entityChangeEvent' */ - @Deprecated public java.lang.String name; - /** The event payload. */ - @Deprecated public com.linkedin.pegasus2avro.mxe.GenericPayload payload; - - /** - * 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 PlatformEvent() {} - - /** - * All-args constructor. - */ - public PlatformEvent(com.linkedin.pegasus2avro.mxe.PlatformEventHeader header, java.lang.String name, com.linkedin.pegasus2avro.mxe.GenericPayload payload) { - this.header = header; - this.name = name; - this.payload = payload; - } - - 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 header; - case 1: return name; - case 2: return payload; - 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: header = (com.linkedin.pegasus2avro.mxe.PlatformEventHeader)value$; break; - case 1: name = (java.lang.String)value$; break; - case 2: payload = (com.linkedin.pegasus2avro.mxe.GenericPayload)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'header' field. - * Header information stored with the event. */ - public com.linkedin.pegasus2avro.mxe.PlatformEventHeader getHeader() { - return header; - } - - /** - * Sets the value of the 'header' field. - * Header information stored with the event. * @param value the value to set. - */ - public void setHeader(com.linkedin.pegasus2avro.mxe.PlatformEventHeader value) { - this.header = value; - } - - /** - * Gets the value of the 'name' field. - * The name of the event, e.g. the type of event. For example, 'notificationRequestEvent', 'entityChangeEvent' */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * The name of the event, e.g. the type of event. For example, 'notificationRequestEvent', 'entityChangeEvent' * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'payload' field. - * The event payload. */ - public com.linkedin.pegasus2avro.mxe.GenericPayload getPayload() { - return payload; - } - - /** - * Sets the value of the 'payload' field. - * The event payload. * @param value the value to set. - */ - public void setPayload(com.linkedin.pegasus2avro.mxe.GenericPayload value) { - this.payload = value; - } - - /** Creates a new PlatformEvent RecordBuilder */ - public static com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder newBuilder() { - return new com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder(); - } - - /** Creates a new PlatformEvent RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder newBuilder(com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder other) { - return new com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder(other); - } - - /** Creates a new PlatformEvent RecordBuilder by copying an existing PlatformEvent instance */ - public static com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder newBuilder(com.linkedin.pegasus2avro.mxe.PlatformEvent other) { - return new com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder(other); - } - - /** - * RecordBuilder for PlatformEvent instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.mxe.PlatformEventHeader header; - private java.lang.String name; - private com.linkedin.pegasus2avro.mxe.GenericPayload payload; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.mxe.PlatformEvent.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder other) { - super(other); - if (isValidValue(fields()[0], other.header)) { - this.header = data().deepCopy(fields()[0].schema(), other.header); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.payload)) { - this.payload = data().deepCopy(fields()[2].schema(), other.payload); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing PlatformEvent instance */ - private Builder(com.linkedin.pegasus2avro.mxe.PlatformEvent other) { - super(com.linkedin.pegasus2avro.mxe.PlatformEvent.SCHEMA$); - if (isValidValue(fields()[0], other.header)) { - this.header = data().deepCopy(fields()[0].schema(), other.header); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.payload)) { - this.payload = data().deepCopy(fields()[2].schema(), other.payload); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'header' field */ - public com.linkedin.pegasus2avro.mxe.PlatformEventHeader getHeader() { - return header; - } - - /** Sets the value of the 'header' field */ - public com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder setHeader(com.linkedin.pegasus2avro.mxe.PlatformEventHeader value) { - validate(fields()[0], value); - this.header = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'header' field has been set */ - public boolean hasHeader() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'header' field */ - public com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder clearHeader() { - header = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.mxe.PlatformEvent.Builder setName(java.lang.String value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'payload' field */ - public com.linkedin.pegasus2avro.mxe.GenericPayload getPayload() { - return payload; - } - - /** Sets the value of the 'payload' field */ - public com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder setPayload(com.linkedin.pegasus2avro.mxe.GenericPayload value) { - validate(fields()[2], value); - this.payload = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'payload' field has been set */ - public boolean hasPayload() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'payload' field */ - public com.linkedin.pegasus2avro.mxe.PlatformEvent.Builder clearPayload() { - payload = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public PlatformEvent build() { - try { - PlatformEvent record = new PlatformEvent(); - record.header = fieldSetFlags()[0] ? this.header : (com.linkedin.pegasus2avro.mxe.PlatformEventHeader) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (java.lang.String) defaultValue(fields()[1]); - record.payload = fieldSetFlags()[2] ? this.payload : (com.linkedin.pegasus2avro.mxe.GenericPayload) 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/mxe/PlatformEventHeader.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/PlatformEventHeader.java deleted file mode 100644 index a9da1a71d64fa..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/PlatformEventHeader.java +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -/** A header included with each DataHub platform event. */ -@org.apache.avro.specific.AvroGenerated -public class PlatformEventHeader 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\":\"PlatformEventHeader\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"A header included with each DataHub platform event.\",\"fields\":[{\"name\":\"timestampMillis\",\"type\":\"long\",\"doc\":\"The event timestamp field as epoch at UTC in milli seconds.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The event timestamp field as epoch at UTC in milli seconds. */ - @Deprecated public long timestampMillis; - - /** - * 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 PlatformEventHeader() {} - - /** - * All-args constructor. - */ - public PlatformEventHeader(java.lang.Long timestampMillis) { - this.timestampMillis = timestampMillis; - } - - 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; - 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; - 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; - } - - /** Creates a new PlatformEventHeader RecordBuilder */ - public static com.linkedin.pegasus2avro.mxe.PlatformEventHeader.Builder newBuilder() { - return new com.linkedin.pegasus2avro.mxe.PlatformEventHeader.Builder(); - } - - /** Creates a new PlatformEventHeader RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.mxe.PlatformEventHeader.Builder newBuilder(com.linkedin.pegasus2avro.mxe.PlatformEventHeader.Builder other) { - return new com.linkedin.pegasus2avro.mxe.PlatformEventHeader.Builder(other); - } - - /** Creates a new PlatformEventHeader RecordBuilder by copying an existing PlatformEventHeader instance */ - public static com.linkedin.pegasus2avro.mxe.PlatformEventHeader.Builder newBuilder(com.linkedin.pegasus2avro.mxe.PlatformEventHeader other) { - return new com.linkedin.pegasus2avro.mxe.PlatformEventHeader.Builder(other); - } - - /** - * RecordBuilder for PlatformEventHeader instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private long timestampMillis; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.mxe.PlatformEventHeader.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.mxe.PlatformEventHeader.Builder other) { - super(other); - if (isValidValue(fields()[0], other.timestampMillis)) { - this.timestampMillis = data().deepCopy(fields()[0].schema(), other.timestampMillis); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing PlatformEventHeader instance */ - private Builder(com.linkedin.pegasus2avro.mxe.PlatformEventHeader other) { - super(com.linkedin.pegasus2avro.mxe.PlatformEventHeader.SCHEMA$); - if (isValidValue(fields()[0], other.timestampMillis)) { - this.timestampMillis = data().deepCopy(fields()[0].schema(), other.timestampMillis); - fieldSetFlags()[0] = 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.mxe.PlatformEventHeader.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.mxe.PlatformEventHeader.Builder clearTimestampMillis() { - fieldSetFlags()[0] = false; - return this; - } - - @Override - public PlatformEventHeader build() { - try { - PlatformEventHeader record = new PlatformEventHeader(); - record.timestampMillis = fieldSetFlags()[0] ? this.timestampMillis : (java.lang.Long) 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/mxe/SystemMetadata.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/SystemMetadata.java deleted file mode 100644 index e8f588133d00e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/mxe/SystemMetadata.java +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.mxe; -@SuppressWarnings("all") -/** Metadata associated with each metadata change that is processed by the system */ -@org.apache.avro.specific.AvroGenerated -public class SystemMetadata 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\":\"SystemMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.mxe\",\"doc\":\"Metadata associated with each metadata change that is processed by the system\",\"fields\":[{\"name\":\"lastObserved\",\"type\":[\"long\",\"null\"],\"doc\":\"The timestamp the metadata was observed at\",\"default\":0},{\"name\":\"runId\",\"type\":[{\"type\":\"string\",\"avro.java.string\":\"String\"},\"null\"],\"doc\":\"The run id that produced the metadata. Populated in case of batch-ingestion.\",\"default\":\"no-run-id-provided\"},{\"name\":\"registryName\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry name that was used to process this event\",\"default\":null},{\"name\":\"registryVersion\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The model registry version that was used to process this event\",\"default\":null},{\"name\":\"properties\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Additional properties\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The timestamp the metadata was observed at */ - @Deprecated public java.lang.Long lastObserved; - /** The run id that produced the metadata. Populated in case of batch-ingestion. */ - @Deprecated public java.lang.String runId; - /** The model registry name that was used to process this event */ - @Deprecated public java.lang.String registryName; - /** The model registry version that was used to process this event */ - @Deprecated public java.lang.String registryVersion; - /** Additional properties */ - @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 SystemMetadata() {} - - /** - * All-args constructor. - */ - public SystemMetadata(java.lang.Long lastObserved, java.lang.String runId, java.lang.String registryName, java.lang.String registryVersion, java.util.Map properties) { - this.lastObserved = lastObserved; - this.runId = runId; - this.registryName = registryName; - this.registryVersion = registryVersion; - 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 lastObserved; - case 1: return runId; - case 2: return registryName; - case 3: return registryVersion; - 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: lastObserved = (java.lang.Long)value$; break; - case 1: runId = (java.lang.String)value$; break; - case 2: registryName = (java.lang.String)value$; break; - case 3: registryVersion = (java.lang.String)value$; break; - case 4: properties = (java.util.Map)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'lastObserved' field. - * The timestamp the metadata was observed at */ - public java.lang.Long getLastObserved() { - return lastObserved; - } - - /** - * Sets the value of the 'lastObserved' field. - * The timestamp the metadata was observed at * @param value the value to set. - */ - public void setLastObserved(java.lang.Long value) { - this.lastObserved = value; - } - - /** - * Gets the value of the 'runId' field. - * The run id that produced the metadata. Populated in case of batch-ingestion. */ - public java.lang.String getRunId() { - return runId; - } - - /** - * Sets the value of the 'runId' field. - * The run id that produced the metadata. Populated in case of batch-ingestion. * @param value the value to set. - */ - public void setRunId(java.lang.String value) { - this.runId = value; - } - - /** - * Gets the value of the 'registryName' field. - * The model registry name that was used to process this event */ - public java.lang.String getRegistryName() { - return registryName; - } - - /** - * Sets the value of the 'registryName' field. - * The model registry name that was used to process this event * @param value the value to set. - */ - public void setRegistryName(java.lang.String value) { - this.registryName = value; - } - - /** - * Gets the value of the 'registryVersion' field. - * The model registry version that was used to process this event */ - public java.lang.String getRegistryVersion() { - return registryVersion; - } - - /** - * Sets the value of the 'registryVersion' field. - * The model registry version that was used to process this event * @param value the value to set. - */ - public void setRegistryVersion(java.lang.String value) { - this.registryVersion = value; - } - - /** - * Gets the value of the 'properties' field. - * Additional properties */ - public java.util.Map getProperties() { - return properties; - } - - /** - * Sets the value of the 'properties' field. - * Additional properties * @param value the value to set. - */ - public void setProperties(java.util.Map value) { - this.properties = value; - } - - /** Creates a new SystemMetadata RecordBuilder */ - public static com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder newBuilder() { - return new com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder(); - } - - /** Creates a new SystemMetadata RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder newBuilder(com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder other) { - return new com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder(other); - } - - /** Creates a new SystemMetadata RecordBuilder by copying an existing SystemMetadata instance */ - public static com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder newBuilder(com.linkedin.pegasus2avro.mxe.SystemMetadata other) { - return new com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder(other); - } - - /** - * RecordBuilder for SystemMetadata instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Long lastObserved; - private java.lang.String runId; - private java.lang.String registryName; - private java.lang.String registryVersion; - private java.util.Map properties; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.mxe.SystemMetadata.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder other) { - super(other); - if (isValidValue(fields()[0], other.lastObserved)) { - this.lastObserved = data().deepCopy(fields()[0].schema(), other.lastObserved); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.runId)) { - this.runId = data().deepCopy(fields()[1].schema(), other.runId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.registryName)) { - this.registryName = data().deepCopy(fields()[2].schema(), other.registryName); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.registryVersion)) { - this.registryVersion = data().deepCopy(fields()[3].schema(), other.registryVersion); - 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 SystemMetadata instance */ - private Builder(com.linkedin.pegasus2avro.mxe.SystemMetadata other) { - super(com.linkedin.pegasus2avro.mxe.SystemMetadata.SCHEMA$); - if (isValidValue(fields()[0], other.lastObserved)) { - this.lastObserved = data().deepCopy(fields()[0].schema(), other.lastObserved); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.runId)) { - this.runId = data().deepCopy(fields()[1].schema(), other.runId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.registryName)) { - this.registryName = data().deepCopy(fields()[2].schema(), other.registryName); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.registryVersion)) { - this.registryVersion = data().deepCopy(fields()[3].schema(), other.registryVersion); - 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 'lastObserved' field */ - public java.lang.Long getLastObserved() { - return lastObserved; - } - - /** Sets the value of the 'lastObserved' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder setLastObserved(java.lang.Long value) { - validate(fields()[0], value); - this.lastObserved = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'lastObserved' field has been set */ - public boolean hasLastObserved() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'lastObserved' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder clearLastObserved() { - lastObserved = null; - fieldSetFlags()[0] = 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.mxe.SystemMetadata.Builder setRunId(java.lang.String value) { - validate(fields()[1], value); - this.runId = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'runId' field has been set */ - public boolean hasRunId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'runId' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder clearRunId() { - runId = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'registryName' field */ - public java.lang.String getRegistryName() { - return registryName; - } - - /** Sets the value of the 'registryName' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder setRegistryName(java.lang.String value) { - validate(fields()[2], value); - this.registryName = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'registryName' field has been set */ - public boolean hasRegistryName() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'registryName' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder clearRegistryName() { - registryName = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'registryVersion' field */ - public java.lang.String getRegistryVersion() { - return registryVersion; - } - - /** Sets the value of the 'registryVersion' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder setRegistryVersion(java.lang.String value) { - validate(fields()[3], value); - this.registryVersion = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'registryVersion' field has been set */ - public boolean hasRegistryVersion() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'registryVersion' field */ - public com.linkedin.pegasus2avro.mxe.SystemMetadata.Builder clearRegistryVersion() { - registryVersion = 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.mxe.SystemMetadata.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.mxe.SystemMetadata.Builder clearProperties() { - properties = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public SystemMetadata build() { - try { - SystemMetadata record = new SystemMetadata(); - record.lastObserved = fieldSetFlags()[0] ? this.lastObserved : (java.lang.Long) defaultValue(fields()[0]); - record.runId = fieldSetFlags()[1] ? this.runId : (java.lang.String) defaultValue(fields()[1]); - record.registryName = fieldSetFlags()[2] ? this.registryName : (java.lang.String) defaultValue(fields()[2]); - record.registryVersion = fieldSetFlags()[3] ? this.registryVersion : (java.lang.String) 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/notebook/ChartCell.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/ChartCell.java deleted file mode 100644 index b4a59e9e2e324..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/ChartCell.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.notebook; -@SuppressWarnings("all") -/** Chart cell in a notebook, which will present content in chart format */ -@org.apache.avro.specific.AvroGenerated -public class ChartCell 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\":\"ChartCell\",\"namespace\":\"com.linkedin.pegasus2avro.notebook\",\"doc\":\"Chart cell in a notebook, which will present content in chart format\",\"fields\":[{\"name\":\"cellTitle\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Title of the cell\",\"default\":null},{\"name\":\"cellId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234'\"},{\"name\":\"changeAuditStamps\",\"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 Notebook cell and when\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Title of the cell */ - @Deprecated public java.lang.String cellTitle; - /** Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234' */ - @Deprecated public java.lang.String cellId; - /** Captures information about who created/last modified/deleted this Notebook cell and when */ - @Deprecated public com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps; - - /** - * 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 ChartCell() {} - - /** - * All-args constructor. - */ - public ChartCell(java.lang.String cellTitle, java.lang.String cellId, com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps) { - this.cellTitle = cellTitle; - this.cellId = cellId; - this.changeAuditStamps = changeAuditStamps; - } - - 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 cellTitle; - case 1: return cellId; - case 2: return changeAuditStamps; - 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: cellTitle = (java.lang.String)value$; break; - case 1: cellId = (java.lang.String)value$; break; - case 2: changeAuditStamps = (com.linkedin.pegasus2avro.common.ChangeAuditStamps)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'cellTitle' field. - * Title of the cell */ - public java.lang.String getCellTitle() { - return cellTitle; - } - - /** - * Sets the value of the 'cellTitle' field. - * Title of the cell * @param value the value to set. - */ - public void setCellTitle(java.lang.String value) { - this.cellTitle = value; - } - - /** - * Gets the value of the 'cellId' field. - * Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234' */ - public java.lang.String getCellId() { - return cellId; - } - - /** - * Sets the value of the 'cellId' field. - * Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234' * @param value the value to set. - */ - public void setCellId(java.lang.String value) { - this.cellId = value; - } - - /** - * Gets the value of the 'changeAuditStamps' field. - * Captures information about who created/last modified/deleted this Notebook cell and when */ - public com.linkedin.pegasus2avro.common.ChangeAuditStamps getChangeAuditStamps() { - return changeAuditStamps; - } - - /** - * Sets the value of the 'changeAuditStamps' field. - * Captures information about who created/last modified/deleted this Notebook cell and when * @param value the value to set. - */ - public void setChangeAuditStamps(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) { - this.changeAuditStamps = value; - } - - /** Creates a new ChartCell RecordBuilder */ - public static com.linkedin.pegasus2avro.notebook.ChartCell.Builder newBuilder() { - return new com.linkedin.pegasus2avro.notebook.ChartCell.Builder(); - } - - /** Creates a new ChartCell RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.notebook.ChartCell.Builder newBuilder(com.linkedin.pegasus2avro.notebook.ChartCell.Builder other) { - return new com.linkedin.pegasus2avro.notebook.ChartCell.Builder(other); - } - - /** Creates a new ChartCell RecordBuilder by copying an existing ChartCell instance */ - public static com.linkedin.pegasus2avro.notebook.ChartCell.Builder newBuilder(com.linkedin.pegasus2avro.notebook.ChartCell other) { - return new com.linkedin.pegasus2avro.notebook.ChartCell.Builder(other); - } - - /** - * RecordBuilder for ChartCell instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String cellTitle; - private java.lang.String cellId; - private com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.notebook.ChartCell.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.notebook.ChartCell.Builder other) { - super(other); - if (isValidValue(fields()[0], other.cellTitle)) { - this.cellTitle = data().deepCopy(fields()[0].schema(), other.cellTitle); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.cellId)) { - this.cellId = data().deepCopy(fields()[1].schema(), other.cellId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.changeAuditStamps)) { - this.changeAuditStamps = data().deepCopy(fields()[2].schema(), other.changeAuditStamps); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing ChartCell instance */ - private Builder(com.linkedin.pegasus2avro.notebook.ChartCell other) { - super(com.linkedin.pegasus2avro.notebook.ChartCell.SCHEMA$); - if (isValidValue(fields()[0], other.cellTitle)) { - this.cellTitle = data().deepCopy(fields()[0].schema(), other.cellTitle); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.cellId)) { - this.cellId = data().deepCopy(fields()[1].schema(), other.cellId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.changeAuditStamps)) { - this.changeAuditStamps = data().deepCopy(fields()[2].schema(), other.changeAuditStamps); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'cellTitle' field */ - public java.lang.String getCellTitle() { - return cellTitle; - } - - /** Sets the value of the 'cellTitle' field */ - public com.linkedin.pegasus2avro.notebook.ChartCell.Builder setCellTitle(java.lang.String value) { - validate(fields()[0], value); - this.cellTitle = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'cellTitle' field has been set */ - public boolean hasCellTitle() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'cellTitle' field */ - public com.linkedin.pegasus2avro.notebook.ChartCell.Builder clearCellTitle() { - cellTitle = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'cellId' field */ - public java.lang.String getCellId() { - return cellId; - } - - /** Sets the value of the 'cellId' field */ - public com.linkedin.pegasus2avro.notebook.ChartCell.Builder setCellId(java.lang.String value) { - validate(fields()[1], value); - this.cellId = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'cellId' field has been set */ - public boolean hasCellId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'cellId' field */ - public com.linkedin.pegasus2avro.notebook.ChartCell.Builder clearCellId() { - cellId = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.common.ChangeAuditStamps getChangeAuditStamps() { - return changeAuditStamps; - } - - /** Sets the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.notebook.ChartCell.Builder setChangeAuditStamps(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) { - validate(fields()[2], value); - this.changeAuditStamps = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'changeAuditStamps' field has been set */ - public boolean hasChangeAuditStamps() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.notebook.ChartCell.Builder clearChangeAuditStamps() { - changeAuditStamps = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public ChartCell build() { - try { - ChartCell record = new ChartCell(); - record.cellTitle = fieldSetFlags()[0] ? this.cellTitle : (java.lang.String) defaultValue(fields()[0]); - record.cellId = fieldSetFlags()[1] ? this.cellId : (java.lang.String) defaultValue(fields()[1]); - record.changeAuditStamps = fieldSetFlags()[2] ? this.changeAuditStamps : (com.linkedin.pegasus2avro.common.ChangeAuditStamps) 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/notebook/CommonCellAttributes.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/CommonCellAttributes.java deleted file mode 100644 index bcc4dde5ed7c6..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/CommonCellAttributes.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.notebook; -@SuppressWarnings("all") -/** Common attributes for a cell in a Notebook */ -@org.apache.avro.specific.AvroGenerated -public class CommonCellAttributes 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\":\"CommonCellAttributes\",\"namespace\":\"com.linkedin.pegasus2avro.notebook\",\"doc\":\"Common attributes for a cell in a Notebook\",\"fields\":[{\"name\":\"cellTitle\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Title of the cell\",\"default\":null},{\"name\":\"cellId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234'\"},{\"name\":\"changeAuditStamps\",\"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 Notebook cell and when\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Title of the cell */ - @Deprecated public java.lang.String cellTitle; - /** Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234' */ - @Deprecated public java.lang.String cellId; - /** Captures information about who created/last modified/deleted this Notebook cell and when */ - @Deprecated public com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps; - - /** - * 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 CommonCellAttributes() {} - - /** - * All-args constructor. - */ - public CommonCellAttributes(java.lang.String cellTitle, java.lang.String cellId, com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps) { - this.cellTitle = cellTitle; - this.cellId = cellId; - this.changeAuditStamps = changeAuditStamps; - } - - 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 cellTitle; - case 1: return cellId; - case 2: return changeAuditStamps; - 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: cellTitle = (java.lang.String)value$; break; - case 1: cellId = (java.lang.String)value$; break; - case 2: changeAuditStamps = (com.linkedin.pegasus2avro.common.ChangeAuditStamps)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'cellTitle' field. - * Title of the cell */ - public java.lang.String getCellTitle() { - return cellTitle; - } - - /** - * Sets the value of the 'cellTitle' field. - * Title of the cell * @param value the value to set. - */ - public void setCellTitle(java.lang.String value) { - this.cellTitle = value; - } - - /** - * Gets the value of the 'cellId' field. - * Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234' */ - public java.lang.String getCellId() { - return cellId; - } - - /** - * Sets the value of the 'cellId' field. - * Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234' * @param value the value to set. - */ - public void setCellId(java.lang.String value) { - this.cellId = value; - } - - /** - * Gets the value of the 'changeAuditStamps' field. - * Captures information about who created/last modified/deleted this Notebook cell and when */ - public com.linkedin.pegasus2avro.common.ChangeAuditStamps getChangeAuditStamps() { - return changeAuditStamps; - } - - /** - * Sets the value of the 'changeAuditStamps' field. - * Captures information about who created/last modified/deleted this Notebook cell and when * @param value the value to set. - */ - public void setChangeAuditStamps(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) { - this.changeAuditStamps = value; - } - - /** Creates a new CommonCellAttributes RecordBuilder */ - public static com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder newBuilder() { - return new com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder(); - } - - /** Creates a new CommonCellAttributes RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder newBuilder(com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder other) { - return new com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder(other); - } - - /** Creates a new CommonCellAttributes RecordBuilder by copying an existing CommonCellAttributes instance */ - public static com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder newBuilder(com.linkedin.pegasus2avro.notebook.CommonCellAttributes other) { - return new com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder(other); - } - - /** - * RecordBuilder for CommonCellAttributes instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String cellTitle; - private java.lang.String cellId; - private com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.notebook.CommonCellAttributes.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder other) { - super(other); - if (isValidValue(fields()[0], other.cellTitle)) { - this.cellTitle = data().deepCopy(fields()[0].schema(), other.cellTitle); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.cellId)) { - this.cellId = data().deepCopy(fields()[1].schema(), other.cellId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.changeAuditStamps)) { - this.changeAuditStamps = data().deepCopy(fields()[2].schema(), other.changeAuditStamps); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing CommonCellAttributes instance */ - private Builder(com.linkedin.pegasus2avro.notebook.CommonCellAttributes other) { - super(com.linkedin.pegasus2avro.notebook.CommonCellAttributes.SCHEMA$); - if (isValidValue(fields()[0], other.cellTitle)) { - this.cellTitle = data().deepCopy(fields()[0].schema(), other.cellTitle); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.cellId)) { - this.cellId = data().deepCopy(fields()[1].schema(), other.cellId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.changeAuditStamps)) { - this.changeAuditStamps = data().deepCopy(fields()[2].schema(), other.changeAuditStamps); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'cellTitle' field */ - public java.lang.String getCellTitle() { - return cellTitle; - } - - /** Sets the value of the 'cellTitle' field */ - public com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder setCellTitle(java.lang.String value) { - validate(fields()[0], value); - this.cellTitle = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'cellTitle' field has been set */ - public boolean hasCellTitle() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'cellTitle' field */ - public com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder clearCellTitle() { - cellTitle = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'cellId' field */ - public java.lang.String getCellId() { - return cellId; - } - - /** Sets the value of the 'cellId' field */ - public com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder setCellId(java.lang.String value) { - validate(fields()[1], value); - this.cellId = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'cellId' field has been set */ - public boolean hasCellId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'cellId' field */ - public com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder clearCellId() { - cellId = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.common.ChangeAuditStamps getChangeAuditStamps() { - return changeAuditStamps; - } - - /** Sets the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder setChangeAuditStamps(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) { - validate(fields()[2], value); - this.changeAuditStamps = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'changeAuditStamps' field has been set */ - public boolean hasChangeAuditStamps() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.notebook.CommonCellAttributes.Builder clearChangeAuditStamps() { - changeAuditStamps = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public CommonCellAttributes build() { - try { - CommonCellAttributes record = new CommonCellAttributes(); - record.cellTitle = fieldSetFlags()[0] ? this.cellTitle : (java.lang.String) defaultValue(fields()[0]); - record.cellId = fieldSetFlags()[1] ? this.cellId : (java.lang.String) defaultValue(fields()[1]); - record.changeAuditStamps = fieldSetFlags()[2] ? this.changeAuditStamps : (com.linkedin.pegasus2avro.common.ChangeAuditStamps) 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/notebook/EditableNotebookProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/EditableNotebookProperties.java deleted file mode 100644 index ee52b494e21df..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/EditableNotebookProperties.java +++ /dev/null @@ -1,311 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.notebook; -@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 -Note: This is IN BETA version */ -@org.apache.avro.specific.AvroGenerated -public class EditableNotebookProperties 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\":\"EditableNotebookProperties\",\"namespace\":\"com.linkedin.pegasus2avro.notebook\",\"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\\nNote: This is IN BETA version\",\"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 Notebook\",\"default\":null,\"Searchable\":{\"fieldName\":\"editedDescription\",\"fieldType\":\"TEXT\"}}],\"Aspect\":{\"name\":\"editableNotebookProperties\"}}"); - 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 Notebook */ - @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 EditableNotebookProperties() {} - - /** - * All-args constructor. - */ - public EditableNotebookProperties(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 Notebook */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Edited documentation of the Notebook * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** Creates a new EditableNotebookProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.notebook.EditableNotebookProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.notebook.EditableNotebookProperties.Builder(); - } - - /** Creates a new EditableNotebookProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.notebook.EditableNotebookProperties.Builder newBuilder(com.linkedin.pegasus2avro.notebook.EditableNotebookProperties.Builder other) { - return new com.linkedin.pegasus2avro.notebook.EditableNotebookProperties.Builder(other); - } - - /** Creates a new EditableNotebookProperties RecordBuilder by copying an existing EditableNotebookProperties instance */ - public static com.linkedin.pegasus2avro.notebook.EditableNotebookProperties.Builder newBuilder(com.linkedin.pegasus2avro.notebook.EditableNotebookProperties other) { - return new com.linkedin.pegasus2avro.notebook.EditableNotebookProperties.Builder(other); - } - - /** - * RecordBuilder for EditableNotebookProperties 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.notebook.EditableNotebookProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.notebook.EditableNotebookProperties.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 EditableNotebookProperties instance */ - private Builder(com.linkedin.pegasus2avro.notebook.EditableNotebookProperties other) { - super(com.linkedin.pegasus2avro.notebook.EditableNotebookProperties.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.notebook.EditableNotebookProperties.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.notebook.EditableNotebookProperties.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.notebook.EditableNotebookProperties.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.notebook.EditableNotebookProperties.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.notebook.EditableNotebookProperties.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.notebook.EditableNotebookProperties.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.notebook.EditableNotebookProperties.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.notebook.EditableNotebookProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public EditableNotebookProperties build() { - try { - EditableNotebookProperties record = new EditableNotebookProperties(); - 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/notebook/NotebookCell.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/NotebookCell.java deleted file mode 100644 index c5af12d2490fa..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/NotebookCell.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.notebook; -@SuppressWarnings("all") -/** A record of all supported cells for a Notebook. Only one type of cell will be non-null. */ -@org.apache.avro.specific.AvroGenerated -public class NotebookCell 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\":\"NotebookCell\",\"namespace\":\"com.linkedin.pegasus2avro.notebook\",\"doc\":\"A record of all supported cells for a Notebook. Only one type of cell will be non-null.\",\"fields\":[{\"name\":\"textCell\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TextCell\",\"doc\":\"Text cell in a Notebook, which will present content in text format\",\"fields\":[{\"name\":\"cellTitle\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Title of the cell\",\"default\":null},{\"name\":\"cellId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234'\"},{\"name\":\"changeAuditStamps\",\"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 Notebook cell and when\"},{\"name\":\"text\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The actual text in a TextCell in a Notebook\"}]}],\"doc\":\"The text cell content. The will be non-null only when all other cell field is null.\",\"default\":null},{\"name\":\"queryCell\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"QueryCell\",\"doc\":\"Query cell in a Notebook, which will present content in query format\",\"fields\":[{\"name\":\"cellTitle\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Title of the cell\",\"default\":null},{\"name\":\"cellId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234'\"},{\"name\":\"changeAuditStamps\",\"type\":\"com.linkedin.pegasus2avro.common.ChangeAuditStamps\",\"doc\":\"Captures information about who created/last modified/deleted this Notebook cell and when\"},{\"name\":\"rawQuery\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Raw query to explain some specific logic in a Notebook\"},{\"name\":\"lastExecuted\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Captures information about who last executed this query cell and when\",\"default\":null}]}],\"doc\":\"The query cell content. The will be non-null only when all other cell field is null.\",\"default\":null},{\"name\":\"chartCell\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"ChartCell\",\"doc\":\"Chart cell in a notebook, which will present content in chart format\",\"fields\":[{\"name\":\"cellTitle\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Title of the cell\",\"default\":null},{\"name\":\"cellId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234'\"},{\"name\":\"changeAuditStamps\",\"type\":\"com.linkedin.pegasus2avro.common.ChangeAuditStamps\",\"doc\":\"Captures information about who created/last modified/deleted this Notebook cell and when\"}]}],\"doc\":\"The chart cell content. The will be non-null only when all other cell field is null.\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"NotebookCellType\",\"doc\":\"Type of Notebook Cell\",\"symbols\":[\"TEXT_CELL\",\"QUERY_CELL\",\"CHART_CELL\"],\"symbolDocs\":{\"CHART_CELL\":\"CHART Notebook cell type. The cell content is chart only.\",\"QUERY_CELL\":\"QUERY Notebook cell type. The cell context is query only.\",\"TEXT_CELL\":\"TEXT Notebook cell type. The cell context is text only.\"}},\"doc\":\"The type of this Notebook cell\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The text cell content. The will be non-null only when all other cell field is null. */ - @Deprecated public com.linkedin.pegasus2avro.notebook.TextCell textCell; - /** The query cell content. The will be non-null only when all other cell field is null. */ - @Deprecated public com.linkedin.pegasus2avro.notebook.QueryCell queryCell; - /** The chart cell content. The will be non-null only when all other cell field is null. */ - @Deprecated public com.linkedin.pegasus2avro.notebook.ChartCell chartCell; - /** The type of this Notebook cell */ - @Deprecated public com.linkedin.pegasus2avro.notebook.NotebookCellType 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 NotebookCell() {} - - /** - * All-args constructor. - */ - public NotebookCell(com.linkedin.pegasus2avro.notebook.TextCell textCell, com.linkedin.pegasus2avro.notebook.QueryCell queryCell, com.linkedin.pegasus2avro.notebook.ChartCell chartCell, com.linkedin.pegasus2avro.notebook.NotebookCellType type) { - this.textCell = textCell; - this.queryCell = queryCell; - this.chartCell = chartCell; - 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 textCell; - case 1: return queryCell; - case 2: return chartCell; - case 3: 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: textCell = (com.linkedin.pegasus2avro.notebook.TextCell)value$; break; - case 1: queryCell = (com.linkedin.pegasus2avro.notebook.QueryCell)value$; break; - case 2: chartCell = (com.linkedin.pegasus2avro.notebook.ChartCell)value$; break; - case 3: type = (com.linkedin.pegasus2avro.notebook.NotebookCellType)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'textCell' field. - * The text cell content. The will be non-null only when all other cell field is null. */ - public com.linkedin.pegasus2avro.notebook.TextCell getTextCell() { - return textCell; - } - - /** - * Sets the value of the 'textCell' field. - * The text cell content. The will be non-null only when all other cell field is null. * @param value the value to set. - */ - public void setTextCell(com.linkedin.pegasus2avro.notebook.TextCell value) { - this.textCell = value; - } - - /** - * Gets the value of the 'queryCell' field. - * The query cell content. The will be non-null only when all other cell field is null. */ - public com.linkedin.pegasus2avro.notebook.QueryCell getQueryCell() { - return queryCell; - } - - /** - * Sets the value of the 'queryCell' field. - * The query cell content. The will be non-null only when all other cell field is null. * @param value the value to set. - */ - public void setQueryCell(com.linkedin.pegasus2avro.notebook.QueryCell value) { - this.queryCell = value; - } - - /** - * Gets the value of the 'chartCell' field. - * The chart cell content. The will be non-null only when all other cell field is null. */ - public com.linkedin.pegasus2avro.notebook.ChartCell getChartCell() { - return chartCell; - } - - /** - * Sets the value of the 'chartCell' field. - * The chart cell content. The will be non-null only when all other cell field is null. * @param value the value to set. - */ - public void setChartCell(com.linkedin.pegasus2avro.notebook.ChartCell value) { - this.chartCell = value; - } - - /** - * Gets the value of the 'type' field. - * The type of this Notebook cell */ - public com.linkedin.pegasus2avro.notebook.NotebookCellType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of this Notebook cell * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.notebook.NotebookCellType value) { - this.type = value; - } - - /** Creates a new NotebookCell RecordBuilder */ - public static com.linkedin.pegasus2avro.notebook.NotebookCell.Builder newBuilder() { - return new com.linkedin.pegasus2avro.notebook.NotebookCell.Builder(); - } - - /** Creates a new NotebookCell RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.notebook.NotebookCell.Builder newBuilder(com.linkedin.pegasus2avro.notebook.NotebookCell.Builder other) { - return new com.linkedin.pegasus2avro.notebook.NotebookCell.Builder(other); - } - - /** Creates a new NotebookCell RecordBuilder by copying an existing NotebookCell instance */ - public static com.linkedin.pegasus2avro.notebook.NotebookCell.Builder newBuilder(com.linkedin.pegasus2avro.notebook.NotebookCell other) { - return new com.linkedin.pegasus2avro.notebook.NotebookCell.Builder(other); - } - - /** - * RecordBuilder for NotebookCell instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.notebook.TextCell textCell; - private com.linkedin.pegasus2avro.notebook.QueryCell queryCell; - private com.linkedin.pegasus2avro.notebook.ChartCell chartCell; - private com.linkedin.pegasus2avro.notebook.NotebookCellType type; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.notebook.NotebookCell.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.notebook.NotebookCell.Builder other) { - super(other); - if (isValidValue(fields()[0], other.textCell)) { - this.textCell = data().deepCopy(fields()[0].schema(), other.textCell); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.queryCell)) { - this.queryCell = data().deepCopy(fields()[1].schema(), other.queryCell); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.chartCell)) { - this.chartCell = data().deepCopy(fields()[2].schema(), other.chartCell); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.type)) { - this.type = data().deepCopy(fields()[3].schema(), other.type); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing NotebookCell instance */ - private Builder(com.linkedin.pegasus2avro.notebook.NotebookCell other) { - super(com.linkedin.pegasus2avro.notebook.NotebookCell.SCHEMA$); - if (isValidValue(fields()[0], other.textCell)) { - this.textCell = data().deepCopy(fields()[0].schema(), other.textCell); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.queryCell)) { - this.queryCell = data().deepCopy(fields()[1].schema(), other.queryCell); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.chartCell)) { - this.chartCell = data().deepCopy(fields()[2].schema(), other.chartCell); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.type)) { - this.type = data().deepCopy(fields()[3].schema(), other.type); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'textCell' field */ - public com.linkedin.pegasus2avro.notebook.TextCell getTextCell() { - return textCell; - } - - /** Sets the value of the 'textCell' field */ - public com.linkedin.pegasus2avro.notebook.NotebookCell.Builder setTextCell(com.linkedin.pegasus2avro.notebook.TextCell value) { - validate(fields()[0], value); - this.textCell = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'textCell' field has been set */ - public boolean hasTextCell() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'textCell' field */ - public com.linkedin.pegasus2avro.notebook.NotebookCell.Builder clearTextCell() { - textCell = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'queryCell' field */ - public com.linkedin.pegasus2avro.notebook.QueryCell getQueryCell() { - return queryCell; - } - - /** Sets the value of the 'queryCell' field */ - public com.linkedin.pegasus2avro.notebook.NotebookCell.Builder setQueryCell(com.linkedin.pegasus2avro.notebook.QueryCell value) { - validate(fields()[1], value); - this.queryCell = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'queryCell' field has been set */ - public boolean hasQueryCell() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'queryCell' field */ - public com.linkedin.pegasus2avro.notebook.NotebookCell.Builder clearQueryCell() { - queryCell = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'chartCell' field */ - public com.linkedin.pegasus2avro.notebook.ChartCell getChartCell() { - return chartCell; - } - - /** Sets the value of the 'chartCell' field */ - public com.linkedin.pegasus2avro.notebook.NotebookCell.Builder setChartCell(com.linkedin.pegasus2avro.notebook.ChartCell value) { - validate(fields()[2], value); - this.chartCell = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'chartCell' field has been set */ - public boolean hasChartCell() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'chartCell' field */ - public com.linkedin.pegasus2avro.notebook.NotebookCell.Builder clearChartCell() { - chartCell = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.notebook.NotebookCellType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.notebook.NotebookCell.Builder setType(com.linkedin.pegasus2avro.notebook.NotebookCellType value) { - validate(fields()[3], value); - this.type = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'type' field has been set */ - public boolean hasType() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'type' field */ - public com.linkedin.pegasus2avro.notebook.NotebookCell.Builder clearType() { - type = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public NotebookCell build() { - try { - NotebookCell record = new NotebookCell(); - record.textCell = fieldSetFlags()[0] ? this.textCell : (com.linkedin.pegasus2avro.notebook.TextCell) defaultValue(fields()[0]); - record.queryCell = fieldSetFlags()[1] ? this.queryCell : (com.linkedin.pegasus2avro.notebook.QueryCell) defaultValue(fields()[1]); - record.chartCell = fieldSetFlags()[2] ? this.chartCell : (com.linkedin.pegasus2avro.notebook.ChartCell) defaultValue(fields()[2]); - record.type = fieldSetFlags()[3] ? this.type : (com.linkedin.pegasus2avro.notebook.NotebookCellType) 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/notebook/NotebookCellType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/NotebookCellType.java deleted file mode 100644 index bf957e9f33cc2..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/NotebookCellType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.notebook; -@SuppressWarnings("all") -/** Type of Notebook Cell */ -@org.apache.avro.specific.AvroGenerated -public enum NotebookCellType { - TEXT_CELL, QUERY_CELL, CHART_CELL ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"NotebookCellType\",\"namespace\":\"com.linkedin.pegasus2avro.notebook\",\"doc\":\"Type of Notebook Cell\",\"symbols\":[\"TEXT_CELL\",\"QUERY_CELL\",\"CHART_CELL\"],\"symbolDocs\":{\"CHART_CELL\":\"CHART Notebook cell type. The cell content is chart only.\",\"QUERY_CELL\":\"QUERY Notebook cell type. The cell context is query only.\",\"TEXT_CELL\":\"TEXT Notebook cell type. The cell context is text only.\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/NotebookContent.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/NotebookContent.java deleted file mode 100644 index c65c7e46ed963..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/NotebookContent.java +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.notebook; -@SuppressWarnings("all") -/** Content in a Notebook -Note: This is IN BETA version */ -@org.apache.avro.specific.AvroGenerated -public class NotebookContent 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\":\"NotebookContent\",\"namespace\":\"com.linkedin.pegasus2avro.notebook\",\"doc\":\"Content in a Notebook\\nNote: This is IN BETA version\",\"fields\":[{\"name\":\"cells\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"NotebookCell\",\"doc\":\"A record of all supported cells for a Notebook. Only one type of cell will be non-null.\",\"fields\":[{\"name\":\"textCell\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TextCell\",\"doc\":\"Text cell in a Notebook, which will present content in text format\",\"fields\":[{\"name\":\"cellTitle\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Title of the cell\",\"default\":null},{\"name\":\"cellId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234'\"},{\"name\":\"changeAuditStamps\",\"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 Notebook cell and when\"},{\"name\":\"text\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The actual text in a TextCell in a Notebook\"}]}],\"doc\":\"The text cell content. The will be non-null only when all other cell field is null.\",\"default\":null},{\"name\":\"queryCell\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"QueryCell\",\"doc\":\"Query cell in a Notebook, which will present content in query format\",\"fields\":[{\"name\":\"cellTitle\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Title of the cell\",\"default\":null},{\"name\":\"cellId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234'\"},{\"name\":\"changeAuditStamps\",\"type\":\"com.linkedin.pegasus2avro.common.ChangeAuditStamps\",\"doc\":\"Captures information about who created/last modified/deleted this Notebook cell and when\"},{\"name\":\"rawQuery\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Raw query to explain some specific logic in a Notebook\"},{\"name\":\"lastExecuted\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Captures information about who last executed this query cell and when\",\"default\":null}]}],\"doc\":\"The query cell content. The will be non-null only when all other cell field is null.\",\"default\":null},{\"name\":\"chartCell\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"ChartCell\",\"doc\":\"Chart cell in a notebook, which will present content in chart format\",\"fields\":[{\"name\":\"cellTitle\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Title of the cell\",\"default\":null},{\"name\":\"cellId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234'\"},{\"name\":\"changeAuditStamps\",\"type\":\"com.linkedin.pegasus2avro.common.ChangeAuditStamps\",\"doc\":\"Captures information about who created/last modified/deleted this Notebook cell and when\"}]}],\"doc\":\"The chart cell content. The will be non-null only when all other cell field is null.\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"NotebookCellType\",\"doc\":\"Type of Notebook Cell\",\"symbols\":[\"TEXT_CELL\",\"QUERY_CELL\",\"CHART_CELL\"],\"symbolDocs\":{\"CHART_CELL\":\"CHART Notebook cell type. The cell content is chart only.\",\"QUERY_CELL\":\"QUERY Notebook cell type. The cell context is query only.\",\"TEXT_CELL\":\"TEXT Notebook cell type. The cell context is text only.\"}},\"doc\":\"The type of this Notebook cell\"}]}},\"doc\":\"The content of a Notebook which is composed by a list of NotebookCell\",\"default\":[]}],\"Aspect\":{\"name\":\"notebookContent\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The content of a Notebook which is composed by a list of NotebookCell */ - @Deprecated public java.util.List cells; - - /** - * 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 NotebookContent() {} - - /** - * All-args constructor. - */ - public NotebookContent(java.util.List cells) { - this.cells = cells; - } - - 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 cells; - 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: cells = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'cells' field. - * The content of a Notebook which is composed by a list of NotebookCell */ - public java.util.List getCells() { - return cells; - } - - /** - * Sets the value of the 'cells' field. - * The content of a Notebook which is composed by a list of NotebookCell * @param value the value to set. - */ - public void setCells(java.util.List value) { - this.cells = value; - } - - /** Creates a new NotebookContent RecordBuilder */ - public static com.linkedin.pegasus2avro.notebook.NotebookContent.Builder newBuilder() { - return new com.linkedin.pegasus2avro.notebook.NotebookContent.Builder(); - } - - /** Creates a new NotebookContent RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.notebook.NotebookContent.Builder newBuilder(com.linkedin.pegasus2avro.notebook.NotebookContent.Builder other) { - return new com.linkedin.pegasus2avro.notebook.NotebookContent.Builder(other); - } - - /** Creates a new NotebookContent RecordBuilder by copying an existing NotebookContent instance */ - public static com.linkedin.pegasus2avro.notebook.NotebookContent.Builder newBuilder(com.linkedin.pegasus2avro.notebook.NotebookContent other) { - return new com.linkedin.pegasus2avro.notebook.NotebookContent.Builder(other); - } - - /** - * RecordBuilder for NotebookContent instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List cells; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.notebook.NotebookContent.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.notebook.NotebookContent.Builder other) { - super(other); - if (isValidValue(fields()[0], other.cells)) { - this.cells = data().deepCopy(fields()[0].schema(), other.cells); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing NotebookContent instance */ - private Builder(com.linkedin.pegasus2avro.notebook.NotebookContent other) { - super(com.linkedin.pegasus2avro.notebook.NotebookContent.SCHEMA$); - if (isValidValue(fields()[0], other.cells)) { - this.cells = data().deepCopy(fields()[0].schema(), other.cells); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'cells' field */ - public java.util.List getCells() { - return cells; - } - - /** Sets the value of the 'cells' field */ - public com.linkedin.pegasus2avro.notebook.NotebookContent.Builder setCells(java.util.List value) { - validate(fields()[0], value); - this.cells = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'cells' field has been set */ - public boolean hasCells() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'cells' field */ - public com.linkedin.pegasus2avro.notebook.NotebookContent.Builder clearCells() { - cells = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public NotebookContent build() { - try { - NotebookContent record = new NotebookContent(); - record.cells = fieldSetFlags()[0] ? this.cells : (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/notebook/NotebookInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/NotebookInfo.java deleted file mode 100644 index eb80933c7f57f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/NotebookInfo.java +++ /dev/null @@ -1,365 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.notebook; -@SuppressWarnings("all") -/** Information about a Notebook -Note: This is IN BETA version */ -@org.apache.avro.specific.AvroGenerated -public class NotebookInfo 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\":\"NotebookInfo\",\"namespace\":\"com.linkedin.pegasus2avro.notebook\",\"doc\":\"Information about a Notebook\\nNote: This is IN BETA version\",\"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 Notebook\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Detailed description about the Notebook\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\",\"hasValuesFieldName\":\"hasDescription\"}},{\"name\":\"changeAuditStamps\",\"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 Notebook and when\"}],\"Aspect\":{\"name\":\"notebookInfo\"}}"); - 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 Notebook */ - @Deprecated public java.lang.String title; - /** Detailed description about the Notebook */ - @Deprecated public java.lang.String description; - /** Captures information about who created/last modified/deleted this Notebook and when */ - @Deprecated public com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps; - - /** - * 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 NotebookInfo() {} - - /** - * All-args constructor. - */ - public NotebookInfo(java.util.Map customProperties, java.lang.String externalUrl, java.lang.String title, java.lang.String description, com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps) { - this.customProperties = customProperties; - this.externalUrl = externalUrl; - this.title = title; - this.description = description; - this.changeAuditStamps = changeAuditStamps; - } - - 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 changeAuditStamps; - 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: changeAuditStamps = (com.linkedin.pegasus2avro.common.ChangeAuditStamps)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 Notebook */ - public java.lang.String getTitle() { - return title; - } - - /** - * Sets the value of the 'title' field. - * Title of the Notebook * @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 Notebook */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Detailed description about the Notebook * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'changeAuditStamps' field. - * Captures information about who created/last modified/deleted this Notebook and when */ - public com.linkedin.pegasus2avro.common.ChangeAuditStamps getChangeAuditStamps() { - return changeAuditStamps; - } - - /** - * Sets the value of the 'changeAuditStamps' field. - * Captures information about who created/last modified/deleted this Notebook and when * @param value the value to set. - */ - public void setChangeAuditStamps(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) { - this.changeAuditStamps = value; - } - - /** Creates a new NotebookInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.notebook.NotebookInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.notebook.NotebookInfo.Builder(); - } - - /** Creates a new NotebookInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.notebook.NotebookInfo.Builder newBuilder(com.linkedin.pegasus2avro.notebook.NotebookInfo.Builder other) { - return new com.linkedin.pegasus2avro.notebook.NotebookInfo.Builder(other); - } - - /** Creates a new NotebookInfo RecordBuilder by copying an existing NotebookInfo instance */ - public static com.linkedin.pegasus2avro.notebook.NotebookInfo.Builder newBuilder(com.linkedin.pegasus2avro.notebook.NotebookInfo other) { - return new com.linkedin.pegasus2avro.notebook.NotebookInfo.Builder(other); - } - - /** - * RecordBuilder for NotebookInfo 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 changeAuditStamps; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.notebook.NotebookInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.notebook.NotebookInfo.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.changeAuditStamps)) { - this.changeAuditStamps = data().deepCopy(fields()[4].schema(), other.changeAuditStamps); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing NotebookInfo instance */ - private Builder(com.linkedin.pegasus2avro.notebook.NotebookInfo other) { - super(com.linkedin.pegasus2avro.notebook.NotebookInfo.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.changeAuditStamps)) { - this.changeAuditStamps = data().deepCopy(fields()[4].schema(), other.changeAuditStamps); - fieldSetFlags()[4] = 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.notebook.NotebookInfo.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.notebook.NotebookInfo.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.notebook.NotebookInfo.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.notebook.NotebookInfo.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.notebook.NotebookInfo.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.notebook.NotebookInfo.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.notebook.NotebookInfo.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.notebook.NotebookInfo.Builder clearDescription() { - description = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.common.ChangeAuditStamps getChangeAuditStamps() { - return changeAuditStamps; - } - - /** Sets the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.notebook.NotebookInfo.Builder setChangeAuditStamps(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) { - validate(fields()[4], value); - this.changeAuditStamps = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'changeAuditStamps' field has been set */ - public boolean hasChangeAuditStamps() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.notebook.NotebookInfo.Builder clearChangeAuditStamps() { - changeAuditStamps = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public NotebookInfo build() { - try { - NotebookInfo record = new NotebookInfo(); - 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.changeAuditStamps = fieldSetFlags()[4] ? this.changeAuditStamps : (com.linkedin.pegasus2avro.common.ChangeAuditStamps) 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/notebook/QueryCell.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/QueryCell.java deleted file mode 100644 index 0a77b6b3f9df1..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/QueryCell.java +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.notebook; -@SuppressWarnings("all") -/** Query cell in a Notebook, which will present content in query format */ -@org.apache.avro.specific.AvroGenerated -public class QueryCell 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\":\"QueryCell\",\"namespace\":\"com.linkedin.pegasus2avro.notebook\",\"doc\":\"Query cell in a Notebook, which will present content in query format\",\"fields\":[{\"name\":\"cellTitle\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Title of the cell\",\"default\":null},{\"name\":\"cellId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234'\"},{\"name\":\"changeAuditStamps\",\"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 Notebook cell and when\"},{\"name\":\"rawQuery\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Raw query to explain some specific logic in a Notebook\"},{\"name\":\"lastExecuted\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"Captures information about who last executed this query cell and when\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Title of the cell */ - @Deprecated public java.lang.String cellTitle; - /** Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234' */ - @Deprecated public java.lang.String cellId; - /** Captures information about who created/last modified/deleted this Notebook cell and when */ - @Deprecated public com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps; - /** Raw query to explain some specific logic in a Notebook */ - @Deprecated public java.lang.String rawQuery; - /** Captures information about who last executed this query cell and when */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp lastExecuted; - - /** - * 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 QueryCell() {} - - /** - * All-args constructor. - */ - public QueryCell(java.lang.String cellTitle, java.lang.String cellId, com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps, java.lang.String rawQuery, com.linkedin.pegasus2avro.common.AuditStamp lastExecuted) { - this.cellTitle = cellTitle; - this.cellId = cellId; - this.changeAuditStamps = changeAuditStamps; - this.rawQuery = rawQuery; - this.lastExecuted = lastExecuted; - } - - 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 cellTitle; - case 1: return cellId; - case 2: return changeAuditStamps; - case 3: return rawQuery; - case 4: return lastExecuted; - 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: cellTitle = (java.lang.String)value$; break; - case 1: cellId = (java.lang.String)value$; break; - case 2: changeAuditStamps = (com.linkedin.pegasus2avro.common.ChangeAuditStamps)value$; break; - case 3: rawQuery = (java.lang.String)value$; break; - case 4: lastExecuted = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'cellTitle' field. - * Title of the cell */ - public java.lang.String getCellTitle() { - return cellTitle; - } - - /** - * Sets the value of the 'cellTitle' field. - * Title of the cell * @param value the value to set. - */ - public void setCellTitle(java.lang.String value) { - this.cellTitle = value; - } - - /** - * Gets the value of the 'cellId' field. - * Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234' */ - public java.lang.String getCellId() { - return cellId; - } - - /** - * Sets the value of the 'cellId' field. - * Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234' * @param value the value to set. - */ - public void setCellId(java.lang.String value) { - this.cellId = value; - } - - /** - * Gets the value of the 'changeAuditStamps' field. - * Captures information about who created/last modified/deleted this Notebook cell and when */ - public com.linkedin.pegasus2avro.common.ChangeAuditStamps getChangeAuditStamps() { - return changeAuditStamps; - } - - /** - * Sets the value of the 'changeAuditStamps' field. - * Captures information about who created/last modified/deleted this Notebook cell and when * @param value the value to set. - */ - public void setChangeAuditStamps(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) { - this.changeAuditStamps = value; - } - - /** - * Gets the value of the 'rawQuery' field. - * Raw query to explain some specific logic in a Notebook */ - public java.lang.String getRawQuery() { - return rawQuery; - } - - /** - * Sets the value of the 'rawQuery' field. - * Raw query to explain some specific logic in a Notebook * @param value the value to set. - */ - public void setRawQuery(java.lang.String value) { - this.rawQuery = value; - } - - /** - * Gets the value of the 'lastExecuted' field. - * Captures information about who last executed this query cell and when */ - public com.linkedin.pegasus2avro.common.AuditStamp getLastExecuted() { - return lastExecuted; - } - - /** - * Sets the value of the 'lastExecuted' field. - * Captures information about who last executed this query cell and when * @param value the value to set. - */ - public void setLastExecuted(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.lastExecuted = value; - } - - /** Creates a new QueryCell RecordBuilder */ - public static com.linkedin.pegasus2avro.notebook.QueryCell.Builder newBuilder() { - return new com.linkedin.pegasus2avro.notebook.QueryCell.Builder(); - } - - /** Creates a new QueryCell RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.notebook.QueryCell.Builder newBuilder(com.linkedin.pegasus2avro.notebook.QueryCell.Builder other) { - return new com.linkedin.pegasus2avro.notebook.QueryCell.Builder(other); - } - - /** Creates a new QueryCell RecordBuilder by copying an existing QueryCell instance */ - public static com.linkedin.pegasus2avro.notebook.QueryCell.Builder newBuilder(com.linkedin.pegasus2avro.notebook.QueryCell other) { - return new com.linkedin.pegasus2avro.notebook.QueryCell.Builder(other); - } - - /** - * RecordBuilder for QueryCell instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String cellTitle; - private java.lang.String cellId; - private com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps; - private java.lang.String rawQuery; - private com.linkedin.pegasus2avro.common.AuditStamp lastExecuted; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.notebook.QueryCell.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.notebook.QueryCell.Builder other) { - super(other); - if (isValidValue(fields()[0], other.cellTitle)) { - this.cellTitle = data().deepCopy(fields()[0].schema(), other.cellTitle); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.cellId)) { - this.cellId = data().deepCopy(fields()[1].schema(), other.cellId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.changeAuditStamps)) { - this.changeAuditStamps = data().deepCopy(fields()[2].schema(), other.changeAuditStamps); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.rawQuery)) { - this.rawQuery = data().deepCopy(fields()[3].schema(), other.rawQuery); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.lastExecuted)) { - this.lastExecuted = data().deepCopy(fields()[4].schema(), other.lastExecuted); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing QueryCell instance */ - private Builder(com.linkedin.pegasus2avro.notebook.QueryCell other) { - super(com.linkedin.pegasus2avro.notebook.QueryCell.SCHEMA$); - if (isValidValue(fields()[0], other.cellTitle)) { - this.cellTitle = data().deepCopy(fields()[0].schema(), other.cellTitle); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.cellId)) { - this.cellId = data().deepCopy(fields()[1].schema(), other.cellId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.changeAuditStamps)) { - this.changeAuditStamps = data().deepCopy(fields()[2].schema(), other.changeAuditStamps); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.rawQuery)) { - this.rawQuery = data().deepCopy(fields()[3].schema(), other.rawQuery); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.lastExecuted)) { - this.lastExecuted = data().deepCopy(fields()[4].schema(), other.lastExecuted); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'cellTitle' field */ - public java.lang.String getCellTitle() { - return cellTitle; - } - - /** Sets the value of the 'cellTitle' field */ - public com.linkedin.pegasus2avro.notebook.QueryCell.Builder setCellTitle(java.lang.String value) { - validate(fields()[0], value); - this.cellTitle = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'cellTitle' field has been set */ - public boolean hasCellTitle() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'cellTitle' field */ - public com.linkedin.pegasus2avro.notebook.QueryCell.Builder clearCellTitle() { - cellTitle = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'cellId' field */ - public java.lang.String getCellId() { - return cellId; - } - - /** Sets the value of the 'cellId' field */ - public com.linkedin.pegasus2avro.notebook.QueryCell.Builder setCellId(java.lang.String value) { - validate(fields()[1], value); - this.cellId = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'cellId' field has been set */ - public boolean hasCellId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'cellId' field */ - public com.linkedin.pegasus2avro.notebook.QueryCell.Builder clearCellId() { - cellId = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.common.ChangeAuditStamps getChangeAuditStamps() { - return changeAuditStamps; - } - - /** Sets the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.notebook.QueryCell.Builder setChangeAuditStamps(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) { - validate(fields()[2], value); - this.changeAuditStamps = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'changeAuditStamps' field has been set */ - public boolean hasChangeAuditStamps() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.notebook.QueryCell.Builder clearChangeAuditStamps() { - changeAuditStamps = null; - fieldSetFlags()[2] = false; - return this; - } - - /** 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.notebook.QueryCell.Builder setRawQuery(java.lang.String value) { - validate(fields()[3], value); - this.rawQuery = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'rawQuery' field has been set */ - public boolean hasRawQuery() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'rawQuery' field */ - public com.linkedin.pegasus2avro.notebook.QueryCell.Builder clearRawQuery() { - rawQuery = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'lastExecuted' field */ - public com.linkedin.pegasus2avro.common.AuditStamp getLastExecuted() { - return lastExecuted; - } - - /** Sets the value of the 'lastExecuted' field */ - public com.linkedin.pegasus2avro.notebook.QueryCell.Builder setLastExecuted(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[4], value); - this.lastExecuted = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'lastExecuted' field has been set */ - public boolean hasLastExecuted() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'lastExecuted' field */ - public com.linkedin.pegasus2avro.notebook.QueryCell.Builder clearLastExecuted() { - lastExecuted = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public QueryCell build() { - try { - QueryCell record = new QueryCell(); - record.cellTitle = fieldSetFlags()[0] ? this.cellTitle : (java.lang.String) defaultValue(fields()[0]); - record.cellId = fieldSetFlags()[1] ? this.cellId : (java.lang.String) defaultValue(fields()[1]); - record.changeAuditStamps = fieldSetFlags()[2] ? this.changeAuditStamps : (com.linkedin.pegasus2avro.common.ChangeAuditStamps) defaultValue(fields()[2]); - record.rawQuery = fieldSetFlags()[3] ? this.rawQuery : (java.lang.String) defaultValue(fields()[3]); - record.lastExecuted = fieldSetFlags()[4] ? this.lastExecuted : (com.linkedin.pegasus2avro.common.AuditStamp) 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/notebook/TextCell.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/TextCell.java deleted file mode 100644 index 0d00a52a65ff1..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/notebook/TextCell.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.notebook; -@SuppressWarnings("all") -/** Text cell in a Notebook, which will present content in text format */ -@org.apache.avro.specific.AvroGenerated -public class TextCell 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\":\"TextCell\",\"namespace\":\"com.linkedin.pegasus2avro.notebook\",\"doc\":\"Text cell in a Notebook, which will present content in text format\",\"fields\":[{\"name\":\"cellTitle\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Title of the cell\",\"default\":null},{\"name\":\"cellId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234'\"},{\"name\":\"changeAuditStamps\",\"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 Notebook cell and when\"},{\"name\":\"text\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The actual text in a TextCell in a Notebook\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Title of the cell */ - @Deprecated public java.lang.String cellTitle; - /** Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234' */ - @Deprecated public java.lang.String cellId; - /** Captures information about who created/last modified/deleted this Notebook cell and when */ - @Deprecated public com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps; - /** The actual text in a TextCell in a Notebook */ - @Deprecated public java.lang.String text; - - /** - * 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 TextCell() {} - - /** - * All-args constructor. - */ - public TextCell(java.lang.String cellTitle, java.lang.String cellId, com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps, java.lang.String text) { - this.cellTitle = cellTitle; - this.cellId = cellId; - this.changeAuditStamps = changeAuditStamps; - this.text = text; - } - - 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 cellTitle; - case 1: return cellId; - case 2: return changeAuditStamps; - case 3: return text; - 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: cellTitle = (java.lang.String)value$; break; - case 1: cellId = (java.lang.String)value$; break; - case 2: changeAuditStamps = (com.linkedin.pegasus2avro.common.ChangeAuditStamps)value$; break; - case 3: text = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'cellTitle' field. - * Title of the cell */ - public java.lang.String getCellTitle() { - return cellTitle; - } - - /** - * Sets the value of the 'cellTitle' field. - * Title of the cell * @param value the value to set. - */ - public void setCellTitle(java.lang.String value) { - this.cellTitle = value; - } - - /** - * Gets the value of the 'cellId' field. - * Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234' */ - public java.lang.String getCellId() { - return cellId; - } - - /** - * Sets the value of the 'cellId' field. - * Unique id for the cell. This id should be globally unique for a Notebook tool even when there are multiple deployments of it. As an example, Notebook URL could be used here for QueryBook such as 'querybook.com/notebook/773/?cellId=1234' * @param value the value to set. - */ - public void setCellId(java.lang.String value) { - this.cellId = value; - } - - /** - * Gets the value of the 'changeAuditStamps' field. - * Captures information about who created/last modified/deleted this Notebook cell and when */ - public com.linkedin.pegasus2avro.common.ChangeAuditStamps getChangeAuditStamps() { - return changeAuditStamps; - } - - /** - * Sets the value of the 'changeAuditStamps' field. - * Captures information about who created/last modified/deleted this Notebook cell and when * @param value the value to set. - */ - public void setChangeAuditStamps(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) { - this.changeAuditStamps = value; - } - - /** - * Gets the value of the 'text' field. - * The actual text in a TextCell in a Notebook */ - public java.lang.String getText() { - return text; - } - - /** - * Sets the value of the 'text' field. - * The actual text in a TextCell in a Notebook * @param value the value to set. - */ - public void setText(java.lang.String value) { - this.text = value; - } - - /** Creates a new TextCell RecordBuilder */ - public static com.linkedin.pegasus2avro.notebook.TextCell.Builder newBuilder() { - return new com.linkedin.pegasus2avro.notebook.TextCell.Builder(); - } - - /** Creates a new TextCell RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.notebook.TextCell.Builder newBuilder(com.linkedin.pegasus2avro.notebook.TextCell.Builder other) { - return new com.linkedin.pegasus2avro.notebook.TextCell.Builder(other); - } - - /** Creates a new TextCell RecordBuilder by copying an existing TextCell instance */ - public static com.linkedin.pegasus2avro.notebook.TextCell.Builder newBuilder(com.linkedin.pegasus2avro.notebook.TextCell other) { - return new com.linkedin.pegasus2avro.notebook.TextCell.Builder(other); - } - - /** - * RecordBuilder for TextCell instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String cellTitle; - private java.lang.String cellId; - private com.linkedin.pegasus2avro.common.ChangeAuditStamps changeAuditStamps; - private java.lang.String text; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.notebook.TextCell.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.notebook.TextCell.Builder other) { - super(other); - if (isValidValue(fields()[0], other.cellTitle)) { - this.cellTitle = data().deepCopy(fields()[0].schema(), other.cellTitle); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.cellId)) { - this.cellId = data().deepCopy(fields()[1].schema(), other.cellId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.changeAuditStamps)) { - this.changeAuditStamps = data().deepCopy(fields()[2].schema(), other.changeAuditStamps); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.text)) { - this.text = data().deepCopy(fields()[3].schema(), other.text); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing TextCell instance */ - private Builder(com.linkedin.pegasus2avro.notebook.TextCell other) { - super(com.linkedin.pegasus2avro.notebook.TextCell.SCHEMA$); - if (isValidValue(fields()[0], other.cellTitle)) { - this.cellTitle = data().deepCopy(fields()[0].schema(), other.cellTitle); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.cellId)) { - this.cellId = data().deepCopy(fields()[1].schema(), other.cellId); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.changeAuditStamps)) { - this.changeAuditStamps = data().deepCopy(fields()[2].schema(), other.changeAuditStamps); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.text)) { - this.text = data().deepCopy(fields()[3].schema(), other.text); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'cellTitle' field */ - public java.lang.String getCellTitle() { - return cellTitle; - } - - /** Sets the value of the 'cellTitle' field */ - public com.linkedin.pegasus2avro.notebook.TextCell.Builder setCellTitle(java.lang.String value) { - validate(fields()[0], value); - this.cellTitle = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'cellTitle' field has been set */ - public boolean hasCellTitle() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'cellTitle' field */ - public com.linkedin.pegasus2avro.notebook.TextCell.Builder clearCellTitle() { - cellTitle = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'cellId' field */ - public java.lang.String getCellId() { - return cellId; - } - - /** Sets the value of the 'cellId' field */ - public com.linkedin.pegasus2avro.notebook.TextCell.Builder setCellId(java.lang.String value) { - validate(fields()[1], value); - this.cellId = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'cellId' field has been set */ - public boolean hasCellId() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'cellId' field */ - public com.linkedin.pegasus2avro.notebook.TextCell.Builder clearCellId() { - cellId = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.common.ChangeAuditStamps getChangeAuditStamps() { - return changeAuditStamps; - } - - /** Sets the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.notebook.TextCell.Builder setChangeAuditStamps(com.linkedin.pegasus2avro.common.ChangeAuditStamps value) { - validate(fields()[2], value); - this.changeAuditStamps = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'changeAuditStamps' field has been set */ - public boolean hasChangeAuditStamps() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'changeAuditStamps' field */ - public com.linkedin.pegasus2avro.notebook.TextCell.Builder clearChangeAuditStamps() { - changeAuditStamps = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'text' field */ - public java.lang.String getText() { - return text; - } - - /** Sets the value of the 'text' field */ - public com.linkedin.pegasus2avro.notebook.TextCell.Builder setText(java.lang.String value) { - validate(fields()[3], value); - this.text = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'text' field has been set */ - public boolean hasText() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'text' field */ - public com.linkedin.pegasus2avro.notebook.TextCell.Builder clearText() { - text = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public TextCell build() { - try { - TextCell record = new TextCell(); - record.cellTitle = fieldSetFlags()[0] ? this.cellTitle : (java.lang.String) defaultValue(fields()[0]); - record.cellId = fieldSetFlags()[1] ? this.cellId : (java.lang.String) defaultValue(fields()[1]); - record.changeAuditStamps = fieldSetFlags()[2] ? this.changeAuditStamps : (com.linkedin.pegasus2avro.common.ChangeAuditStamps) defaultValue(fields()[2]); - record.text = fieldSetFlags()[3] ? this.text : (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/platform/event/v1/EntityChangeEvent.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/platform/event/v1/EntityChangeEvent.java deleted file mode 100644 index 6cf030ac7978a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/platform/event/v1/EntityChangeEvent.java +++ /dev/null @@ -1,528 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.platform.event.v1; -@SuppressWarnings("all") -/** Shared fields for all entity change events. */ -@org.apache.avro.specific.AvroGenerated -public class EntityChangeEvent 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\":\"EntityChangeEvent\",\"namespace\":\"com.linkedin.pegasus2avro.platform.event.v1\",\"doc\":\"Shared fields for all entity change events.\",\"fields\":[{\"name\":\"entityType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of the entity affected. Corresponds to the entity registry, e.g. 'dataset', 'chart', 'dashboard', etc.\"},{\"name\":\"entityUrn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The urn of the entity which was affected.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"category\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The category type (TAG, GLOSSARY_TERM, OWNERSHIP, TECHNICAL_SCHEMA, etc). This is used to determine what the rest of the schema will look like.\"},{\"name\":\"operation\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The operation type. This is used to determine what the rest of the schema will look like.\"},{\"name\":\"modifier\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The urn of the entity which was affected.\",\"default\":null},{\"name\":\"parameters\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Parameters\",\"doc\":\"Arbitrary key-value parameters for an Entity Change Event. (any record).\",\"fields\":[]}],\"doc\":\"Arbitrary key-value parameters corresponding to the event.\",\"default\":null},{\"name\":\"auditStamp\",\"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\":\"Audit stamp of the operation\"},{\"name\":\"version\",\"type\":\"int\",\"doc\":\"The version of the event type, incremented in integers.\"}],\"Event\":{\"name\":\"entityChangeEvent\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The type of the entity affected. Corresponds to the entity registry, e.g. 'dataset', 'chart', 'dashboard', etc. */ - @Deprecated public java.lang.String entityType; - /** The urn of the entity which was affected. */ - @Deprecated public java.lang.String entityUrn; - /** The category type (TAG, GLOSSARY_TERM, OWNERSHIP, TECHNICAL_SCHEMA, etc). This is used to determine what the rest of the schema will look like. */ - @Deprecated public java.lang.String category; - /** The operation type. This is used to determine what the rest of the schema will look like. */ - @Deprecated public java.lang.String operation; - /** The urn of the entity which was affected. */ - @Deprecated public java.lang.String modifier; - /** Arbitrary key-value parameters corresponding to the event. */ - @Deprecated public com.linkedin.pegasus2avro.platform.event.v1.Parameters parameters; - /** Audit stamp of the operation */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp auditStamp; - /** The version of the event type, incremented in integers. */ - @Deprecated public int version; - - /** - * 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 EntityChangeEvent() {} - - /** - * All-args constructor. - */ - public EntityChangeEvent(java.lang.String entityType, java.lang.String entityUrn, java.lang.String category, java.lang.String operation, java.lang.String modifier, com.linkedin.pegasus2avro.platform.event.v1.Parameters parameters, com.linkedin.pegasus2avro.common.AuditStamp auditStamp, java.lang.Integer version) { - this.entityType = entityType; - this.entityUrn = entityUrn; - this.category = category; - this.operation = operation; - this.modifier = modifier; - this.parameters = parameters; - this.auditStamp = auditStamp; - this.version = version; - } - - 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 entityType; - case 1: return entityUrn; - case 2: return category; - case 3: return operation; - case 4: return modifier; - case 5: return parameters; - case 6: return auditStamp; - case 7: return version; - 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: entityType = (java.lang.String)value$; break; - case 1: entityUrn = (java.lang.String)value$; break; - case 2: category = (java.lang.String)value$; break; - case 3: operation = (java.lang.String)value$; break; - case 4: modifier = (java.lang.String)value$; break; - case 5: parameters = (com.linkedin.pegasus2avro.platform.event.v1.Parameters)value$; break; - case 6: auditStamp = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 7: version = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entityType' field. - * The type of the entity affected. Corresponds to the entity registry, e.g. 'dataset', 'chart', 'dashboard', etc. */ - public java.lang.String getEntityType() { - return entityType; - } - - /** - * Sets the value of the 'entityType' field. - * The type of the entity affected. Corresponds to the entity registry, e.g. 'dataset', 'chart', 'dashboard', etc. * @param value the value to set. - */ - public void setEntityType(java.lang.String value) { - this.entityType = value; - } - - /** - * Gets the value of the 'entityUrn' field. - * The urn of the entity which was affected. */ - public java.lang.String getEntityUrn() { - return entityUrn; - } - - /** - * Sets the value of the 'entityUrn' field. - * The urn of the entity which was affected. * @param value the value to set. - */ - public void setEntityUrn(java.lang.String value) { - this.entityUrn = value; - } - - /** - * Gets the value of the 'category' field. - * The category type (TAG, GLOSSARY_TERM, OWNERSHIP, TECHNICAL_SCHEMA, etc). This is used to determine what the rest of the schema will look like. */ - public java.lang.String getCategory() { - return category; - } - - /** - * Sets the value of the 'category' field. - * The category type (TAG, GLOSSARY_TERM, OWNERSHIP, TECHNICAL_SCHEMA, etc). This is used to determine what the rest of the schema will look like. * @param value the value to set. - */ - public void setCategory(java.lang.String value) { - this.category = value; - } - - /** - * Gets the value of the 'operation' field. - * The operation type. This is used to determine what the rest of the schema will look like. */ - public java.lang.String getOperation() { - return operation; - } - - /** - * Sets the value of the 'operation' field. - * The operation type. This is used to determine what the rest of the schema will look like. * @param value the value to set. - */ - public void setOperation(java.lang.String value) { - this.operation = value; - } - - /** - * Gets the value of the 'modifier' field. - * The urn of the entity which was affected. */ - public java.lang.String getModifier() { - return modifier; - } - - /** - * Sets the value of the 'modifier' field. - * The urn of the entity which was affected. * @param value the value to set. - */ - public void setModifier(java.lang.String value) { - this.modifier = value; - } - - /** - * Gets the value of the 'parameters' field. - * Arbitrary key-value parameters corresponding to the event. */ - public com.linkedin.pegasus2avro.platform.event.v1.Parameters getParameters() { - return parameters; - } - - /** - * Sets the value of the 'parameters' field. - * Arbitrary key-value parameters corresponding to the event. * @param value the value to set. - */ - public void setParameters(com.linkedin.pegasus2avro.platform.event.v1.Parameters value) { - this.parameters = value; - } - - /** - * Gets the value of the 'auditStamp' field. - * Audit stamp of the operation */ - public com.linkedin.pegasus2avro.common.AuditStamp getAuditStamp() { - return auditStamp; - } - - /** - * Sets the value of the 'auditStamp' field. - * Audit stamp of the operation * @param value the value to set. - */ - public void setAuditStamp(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.auditStamp = value; - } - - /** - * Gets the value of the 'version' field. - * The version of the event type, incremented in integers. */ - public java.lang.Integer getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * The version of the event type, incremented in integers. * @param value the value to set. - */ - public void setVersion(java.lang.Integer value) { - this.version = value; - } - - /** Creates a new EntityChangeEvent RecordBuilder */ - public static com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder newBuilder() { - return new com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder(); - } - - /** Creates a new EntityChangeEvent RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder newBuilder(com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder other) { - return new com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder(other); - } - - /** Creates a new EntityChangeEvent RecordBuilder by copying an existing EntityChangeEvent instance */ - public static com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder newBuilder(com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent other) { - return new com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder(other); - } - - /** - * RecordBuilder for EntityChangeEvent instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String entityType; - private java.lang.String entityUrn; - private java.lang.String category; - private java.lang.String operation; - private java.lang.String modifier; - private com.linkedin.pegasus2avro.platform.event.v1.Parameters parameters; - private com.linkedin.pegasus2avro.common.AuditStamp auditStamp; - private int version; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entityType)) { - this.entityType = data().deepCopy(fields()[0].schema(), other.entityType); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entityUrn)) { - this.entityUrn = data().deepCopy(fields()[1].schema(), other.entityUrn); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.category)) { - this.category = data().deepCopy(fields()[2].schema(), other.category); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.operation)) { - this.operation = data().deepCopy(fields()[3].schema(), other.operation); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.modifier)) { - this.modifier = data().deepCopy(fields()[4].schema(), other.modifier); - 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.auditStamp)) { - this.auditStamp = data().deepCopy(fields()[6].schema(), other.auditStamp); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.version)) { - this.version = data().deepCopy(fields()[7].schema(), other.version); - fieldSetFlags()[7] = true; - } - } - - /** Creates a Builder by copying an existing EntityChangeEvent instance */ - private Builder(com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent other) { - super(com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.SCHEMA$); - if (isValidValue(fields()[0], other.entityType)) { - this.entityType = data().deepCopy(fields()[0].schema(), other.entityType); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.entityUrn)) { - this.entityUrn = data().deepCopy(fields()[1].schema(), other.entityUrn); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.category)) { - this.category = data().deepCopy(fields()[2].schema(), other.category); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.operation)) { - this.operation = data().deepCopy(fields()[3].schema(), other.operation); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.modifier)) { - this.modifier = data().deepCopy(fields()[4].schema(), other.modifier); - 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.auditStamp)) { - this.auditStamp = data().deepCopy(fields()[6].schema(), other.auditStamp); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.version)) { - this.version = data().deepCopy(fields()[7].schema(), other.version); - fieldSetFlags()[7] = true; - } - } - - /** Gets the value of the 'entityType' field */ - public java.lang.String getEntityType() { - return entityType; - } - - /** Sets the value of the 'entityType' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder setEntityType(java.lang.String value) { - validate(fields()[0], value); - this.entityType = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entityType' field has been set */ - public boolean hasEntityType() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entityType' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder clearEntityType() { - entityType = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'entityUrn' field */ - public java.lang.String getEntityUrn() { - return entityUrn; - } - - /** Sets the value of the 'entityUrn' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder setEntityUrn(java.lang.String value) { - validate(fields()[1], value); - this.entityUrn = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'entityUrn' field has been set */ - public boolean hasEntityUrn() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'entityUrn' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder clearEntityUrn() { - entityUrn = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'category' field */ - public java.lang.String getCategory() { - return category; - } - - /** Sets the value of the 'category' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder setCategory(java.lang.String value) { - validate(fields()[2], value); - this.category = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'category' field has been set */ - public boolean hasCategory() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'category' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder clearCategory() { - category = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'operation' field */ - public java.lang.String getOperation() { - return operation; - } - - /** Sets the value of the 'operation' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder setOperation(java.lang.String value) { - validate(fields()[3], value); - this.operation = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'operation' field has been set */ - public boolean hasOperation() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'operation' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder clearOperation() { - operation = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'modifier' field */ - public java.lang.String getModifier() { - return modifier; - } - - /** Sets the value of the 'modifier' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder setModifier(java.lang.String value) { - validate(fields()[4], value); - this.modifier = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'modifier' field has been set */ - public boolean hasModifier() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'modifier' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder clearModifier() { - modifier = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'parameters' field */ - public com.linkedin.pegasus2avro.platform.event.v1.Parameters getParameters() { - return parameters; - } - - /** Sets the value of the 'parameters' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder setParameters(com.linkedin.pegasus2avro.platform.event.v1.Parameters 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.platform.event.v1.EntityChangeEvent.Builder clearParameters() { - parameters = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'auditStamp' field */ - public com.linkedin.pegasus2avro.common.AuditStamp getAuditStamp() { - return auditStamp; - } - - /** Sets the value of the 'auditStamp' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder setAuditStamp(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[6], value); - this.auditStamp = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'auditStamp' field has been set */ - public boolean hasAuditStamp() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'auditStamp' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder clearAuditStamp() { - auditStamp = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public java.lang.Integer getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder setVersion(int value) { - validate(fields()[7], value); - this.version = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.platform.event.v1.EntityChangeEvent.Builder clearVersion() { - fieldSetFlags()[7] = false; - return this; - } - - @Override - public EntityChangeEvent build() { - try { - EntityChangeEvent record = new EntityChangeEvent(); - record.entityType = fieldSetFlags()[0] ? this.entityType : (java.lang.String) defaultValue(fields()[0]); - record.entityUrn = fieldSetFlags()[1] ? this.entityUrn : (java.lang.String) defaultValue(fields()[1]); - record.category = fieldSetFlags()[2] ? this.category : (java.lang.String) defaultValue(fields()[2]); - record.operation = fieldSetFlags()[3] ? this.operation : (java.lang.String) defaultValue(fields()[3]); - record.modifier = fieldSetFlags()[4] ? this.modifier : (java.lang.String) defaultValue(fields()[4]); - record.parameters = fieldSetFlags()[5] ? this.parameters : (com.linkedin.pegasus2avro.platform.event.v1.Parameters) defaultValue(fields()[5]); - record.auditStamp = fieldSetFlags()[6] ? this.auditStamp : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[6]); - record.version = fieldSetFlags()[7] ? this.version : (java.lang.Integer) 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/pegasus2avro/platform/event/v1/Parameters.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/platform/event/v1/Parameters.java deleted file mode 100644 index de7f8722cfc19..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/platform/event/v1/Parameters.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.platform.event.v1; -@SuppressWarnings("all") -/** Arbitrary key-value parameters for an Entity Change Event. (any record). */ -@org.apache.avro.specific.AvroGenerated -public class Parameters 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\":\"Parameters\",\"namespace\":\"com.linkedin.pegasus2avro.platform.event.v1\",\"doc\":\"Arbitrary key-value parameters for an Entity Change Event. (any record).\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new Parameters RecordBuilder */ - public static com.linkedin.pegasus2avro.platform.event.v1.Parameters.Builder newBuilder() { - return new com.linkedin.pegasus2avro.platform.event.v1.Parameters.Builder(); - } - - /** Creates a new Parameters RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.platform.event.v1.Parameters.Builder newBuilder(com.linkedin.pegasus2avro.platform.event.v1.Parameters.Builder other) { - return new com.linkedin.pegasus2avro.platform.event.v1.Parameters.Builder(other); - } - - /** Creates a new Parameters RecordBuilder by copying an existing Parameters instance */ - public static com.linkedin.pegasus2avro.platform.event.v1.Parameters.Builder newBuilder(com.linkedin.pegasus2avro.platform.event.v1.Parameters other) { - return new com.linkedin.pegasus2avro.platform.event.v1.Parameters.Builder(other); - } - - /** - * RecordBuilder for Parameters instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.platform.event.v1.Parameters.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.platform.event.v1.Parameters.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Parameters instance */ - private Builder(com.linkedin.pegasus2avro.platform.event.v1.Parameters other) { - super(com.linkedin.pegasus2avro.platform.event.v1.Parameters.SCHEMA$); - } - - @Override - public Parameters build() { - try { - Parameters record = new Parameters(); - 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/policy/DataHubActorFilter.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/DataHubActorFilter.java deleted file mode 100644 index 475ef9dc5cb4c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/DataHubActorFilter.java +++ /dev/null @@ -1,419 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.policy; -@SuppressWarnings("all") -/** Information used to filter DataHub actors. */ -@org.apache.avro.specific.AvroGenerated -public class DataHubActorFilter 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\":\"DataHubActorFilter\",\"namespace\":\"com.linkedin.pegasus2avro.policy\",\"doc\":\"Information used to filter DataHub actors.\",\"fields\":[{\"name\":\"users\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of users to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of groups to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"resourceOwners\",\"type\":\"boolean\",\"doc\":\"Whether the filter should return true for owners of a particular resource.\\nOnly applies to policies of type 'Metadata', which have a resource associated with them.\",\"default\":false},{\"name\":\"allUsers\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all users.\",\"default\":false},{\"name\":\"allGroups\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all groups.\",\"default\":false},{\"name\":\"roles\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of roles to apply the policy to (disjunctive).\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataHubRole\"],\"name\":\"IsAssociatedWithRole\"}}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A specific set of users to apply the policy to (disjunctive) */ - @Deprecated public java.util.List users; - /** A specific set of groups to apply the policy to (disjunctive) */ - @Deprecated public java.util.List groups; - /** Whether the filter should return true for owners of a particular resource. -Only applies to policies of type 'Metadata', which have a resource associated with them. */ - @Deprecated public boolean resourceOwners; - /** Whether the filter should apply to all users. */ - @Deprecated public boolean allUsers; - /** Whether the filter should apply to all groups. */ - @Deprecated public boolean allGroups; - /** A specific set of roles to apply the policy to (disjunctive). */ - @Deprecated public java.util.List roles; - - /** - * 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 DataHubActorFilter() {} - - /** - * All-args constructor. - */ - public DataHubActorFilter(java.util.List users, java.util.List groups, java.lang.Boolean resourceOwners, java.lang.Boolean allUsers, java.lang.Boolean allGroups, java.util.List roles) { - this.users = users; - this.groups = groups; - this.resourceOwners = resourceOwners; - this.allUsers = allUsers; - this.allGroups = allGroups; - this.roles = roles; - } - - 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 users; - case 1: return groups; - case 2: return resourceOwners; - case 3: return allUsers; - case 4: return allGroups; - case 5: return roles; - 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: users = (java.util.List)value$; break; - case 1: groups = (java.util.List)value$; break; - case 2: resourceOwners = (java.lang.Boolean)value$; break; - case 3: allUsers = (java.lang.Boolean)value$; break; - case 4: allGroups = (java.lang.Boolean)value$; break; - case 5: roles = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'users' field. - * A specific set of users to apply the policy to (disjunctive) */ - public java.util.List getUsers() { - return users; - } - - /** - * Sets the value of the 'users' field. - * A specific set of users to apply the policy to (disjunctive) * @param value the value to set. - */ - public void setUsers(java.util.List value) { - this.users = value; - } - - /** - * Gets the value of the 'groups' field. - * A specific set of groups to apply the policy to (disjunctive) */ - public java.util.List getGroups() { - return groups; - } - - /** - * Sets the value of the 'groups' field. - * A specific set of groups to apply the policy to (disjunctive) * @param value the value to set. - */ - public void setGroups(java.util.List value) { - this.groups = value; - } - - /** - * Gets the value of the 'resourceOwners' field. - * Whether the filter should return true for owners of a particular resource. -Only applies to policies of type 'Metadata', which have a resource associated with them. */ - public java.lang.Boolean getResourceOwners() { - return resourceOwners; - } - - /** - * Sets the value of the 'resourceOwners' field. - * Whether the filter should return true for owners of a particular resource. -Only applies to policies of type 'Metadata', which have a resource associated with them. * @param value the value to set. - */ - public void setResourceOwners(java.lang.Boolean value) { - this.resourceOwners = value; - } - - /** - * Gets the value of the 'allUsers' field. - * Whether the filter should apply to all users. */ - public java.lang.Boolean getAllUsers() { - return allUsers; - } - - /** - * Sets the value of the 'allUsers' field. - * Whether the filter should apply to all users. * @param value the value to set. - */ - public void setAllUsers(java.lang.Boolean value) { - this.allUsers = value; - } - - /** - * Gets the value of the 'allGroups' field. - * Whether the filter should apply to all groups. */ - public java.lang.Boolean getAllGroups() { - return allGroups; - } - - /** - * Sets the value of the 'allGroups' field. - * Whether the filter should apply to all groups. * @param value the value to set. - */ - public void setAllGroups(java.lang.Boolean value) { - this.allGroups = value; - } - - /** - * Gets the value of the 'roles' field. - * A specific set of roles to apply the policy to (disjunctive). */ - public java.util.List getRoles() { - return roles; - } - - /** - * Sets the value of the 'roles' field. - * A specific set of roles to apply the policy to (disjunctive). * @param value the value to set. - */ - public void setRoles(java.util.List value) { - this.roles = value; - } - - /** Creates a new DataHubActorFilter RecordBuilder */ - public static com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder newBuilder() { - return new com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder(); - } - - /** Creates a new DataHubActorFilter RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder newBuilder(com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder other) { - return new com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder(other); - } - - /** Creates a new DataHubActorFilter RecordBuilder by copying an existing DataHubActorFilter instance */ - public static com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder newBuilder(com.linkedin.pegasus2avro.policy.DataHubActorFilter other) { - return new com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder(other); - } - - /** - * RecordBuilder for DataHubActorFilter instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List users; - private java.util.List groups; - private boolean resourceOwners; - private boolean allUsers; - private boolean allGroups; - private java.util.List roles; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.policy.DataHubActorFilter.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder other) { - super(other); - if (isValidValue(fields()[0], other.users)) { - this.users = data().deepCopy(fields()[0].schema(), other.users); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.groups)) { - this.groups = data().deepCopy(fields()[1].schema(), other.groups); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.resourceOwners)) { - this.resourceOwners = data().deepCopy(fields()[2].schema(), other.resourceOwners); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.allUsers)) { - this.allUsers = data().deepCopy(fields()[3].schema(), other.allUsers); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.allGroups)) { - this.allGroups = data().deepCopy(fields()[4].schema(), other.allGroups); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.roles)) { - this.roles = data().deepCopy(fields()[5].schema(), other.roles); - fieldSetFlags()[5] = true; - } - } - - /** Creates a Builder by copying an existing DataHubActorFilter instance */ - private Builder(com.linkedin.pegasus2avro.policy.DataHubActorFilter other) { - super(com.linkedin.pegasus2avro.policy.DataHubActorFilter.SCHEMA$); - if (isValidValue(fields()[0], other.users)) { - this.users = data().deepCopy(fields()[0].schema(), other.users); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.groups)) { - this.groups = data().deepCopy(fields()[1].schema(), other.groups); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.resourceOwners)) { - this.resourceOwners = data().deepCopy(fields()[2].schema(), other.resourceOwners); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.allUsers)) { - this.allUsers = data().deepCopy(fields()[3].schema(), other.allUsers); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.allGroups)) { - this.allGroups = data().deepCopy(fields()[4].schema(), other.allGroups); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.roles)) { - this.roles = data().deepCopy(fields()[5].schema(), other.roles); - fieldSetFlags()[5] = true; - } - } - - /** Gets the value of the 'users' field */ - public java.util.List getUsers() { - return users; - } - - /** Sets the value of the 'users' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder setUsers(java.util.List value) { - validate(fields()[0], value); - this.users = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'users' field has been set */ - public boolean hasUsers() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'users' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder clearUsers() { - users = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'groups' field */ - public java.util.List getGroups() { - return groups; - } - - /** Sets the value of the 'groups' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder setGroups(java.util.List value) { - validate(fields()[1], value); - this.groups = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'groups' field has been set */ - public boolean hasGroups() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'groups' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder clearGroups() { - groups = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'resourceOwners' field */ - public java.lang.Boolean getResourceOwners() { - return resourceOwners; - } - - /** Sets the value of the 'resourceOwners' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder setResourceOwners(boolean value) { - validate(fields()[2], value); - this.resourceOwners = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'resourceOwners' field has been set */ - public boolean hasResourceOwners() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'resourceOwners' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder clearResourceOwners() { - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'allUsers' field */ - public java.lang.Boolean getAllUsers() { - return allUsers; - } - - /** Sets the value of the 'allUsers' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder setAllUsers(boolean value) { - validate(fields()[3], value); - this.allUsers = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'allUsers' field has been set */ - public boolean hasAllUsers() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'allUsers' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder clearAllUsers() { - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'allGroups' field */ - public java.lang.Boolean getAllGroups() { - return allGroups; - } - - /** Sets the value of the 'allGroups' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder setAllGroups(boolean value) { - validate(fields()[4], value); - this.allGroups = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'allGroups' field has been set */ - public boolean hasAllGroups() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'allGroups' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder clearAllGroups() { - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'roles' field */ - public java.util.List getRoles() { - return roles; - } - - /** Sets the value of the 'roles' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder setRoles(java.util.List value) { - validate(fields()[5], value); - this.roles = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'roles' field has been set */ - public boolean hasRoles() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'roles' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter.Builder clearRoles() { - roles = null; - fieldSetFlags()[5] = false; - return this; - } - - @Override - public DataHubActorFilter build() { - try { - DataHubActorFilter record = new DataHubActorFilter(); - record.users = fieldSetFlags()[0] ? this.users : (java.util.List) defaultValue(fields()[0]); - record.groups = fieldSetFlags()[1] ? this.groups : (java.util.List) defaultValue(fields()[1]); - record.resourceOwners = fieldSetFlags()[2] ? this.resourceOwners : (java.lang.Boolean) defaultValue(fields()[2]); - record.allUsers = fieldSetFlags()[3] ? this.allUsers : (java.lang.Boolean) defaultValue(fields()[3]); - record.allGroups = fieldSetFlags()[4] ? this.allGroups : (java.lang.Boolean) defaultValue(fields()[4]); - record.roles = fieldSetFlags()[5] ? this.roles : (java.util.List) 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/policy/DataHubPolicyInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/DataHubPolicyInfo.java deleted file mode 100644 index 1d476b8a2f995..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/DataHubPolicyInfo.java +++ /dev/null @@ -1,583 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.policy; -@SuppressWarnings("all") -/** Information about a DataHub (UI) access policy. */ -@org.apache.avro.specific.AvroGenerated -public class DataHubPolicyInfo 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\":\"DataHubPolicyInfo\",\"namespace\":\"com.linkedin.pegasus2avro.policy\",\"doc\":\"Information about a DataHub (UI) access policy.\",\"fields\":[{\"name\":\"displayName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the Policy\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the Policy\",\"Searchable\":{\"fieldType\":\"TEXT\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The type of policy\"},{\"name\":\"state\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The state of policy, ACTIVE or INACTIVE\"},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DataHubResourceFilter\",\"doc\":\"Information used to filter DataHub resource.\",\"fields\":[{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The type of resource that the policy applies to. This will most often be a data asset entity name, for\\nexample 'dataset'. It is not strictly required because in the future we will want to support filtering a resource\\nby domain, as well.\",\"default\":null,\"deprecated\":true},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of resources to apply the policy to, e.g. asset urns\",\"default\":null,\"deprecated\":true},{\"name\":\"allResources\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be applied to all assets matching the filter.\",\"default\":false,\"deprecated\":true},{\"name\":\"filter\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"PolicyMatchFilter\",\"doc\":\"The filter for specifying the resource or actor to apply privileges to\",\"fields\":[{\"name\":\"criteria\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"PolicyMatchCriterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. Matches criterion if any one of the values matches condition (OR-relationship)\"},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"PolicyMatchCondition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"EQUALS\"],\"symbolDocs\":{\"EQUALS\":\"Whether the field matches the value\"}},\"doc\":\"The condition for the criterion\",\"default\":\"EQUALS\"}]}},\"doc\":\"A list of criteria to apply conjunctively (so all criteria must pass)\"}]}],\"doc\":\"Filter to apply privileges to\",\"default\":null}]}],\"doc\":\"The resource that the policy applies to. Not required for some 'Platform' privileges.\",\"default\":null},{\"name\":\"privileges\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"The privileges that the policy grants.\"},{\"name\":\"actors\",\"type\":{\"type\":\"record\",\"name\":\"DataHubActorFilter\",\"doc\":\"Information used to filter DataHub actors.\",\"fields\":[{\"name\":\"users\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of users to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"groups\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of groups to apply the policy to (disjunctive)\",\"default\":null},{\"name\":\"resourceOwners\",\"type\":\"boolean\",\"doc\":\"Whether the filter should return true for owners of a particular resource.\\nOnly applies to policies of type 'Metadata', which have a resource associated with them.\",\"default\":false},{\"name\":\"allUsers\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all users.\",\"default\":false},{\"name\":\"allGroups\",\"type\":\"boolean\",\"doc\":\"Whether the filter should apply to all groups.\",\"default\":false},{\"name\":\"roles\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of roles to apply the policy to (disjunctive).\",\"default\":null,\"Relationship\":{\"/*\":{\"entityTypes\":[\"dataHubRole\"],\"name\":\"IsAssociatedWithRole\"}}}]},\"doc\":\"The actors that the policy applies to.\"},{\"name\":\"editable\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be editable via the UI\",\"default\":true},{\"name\":\"lastUpdatedTimestamp\",\"type\":[\"null\",\"long\"],\"doc\":\"Timestamp when the policy was last updated\",\"default\":null,\"Searchable\":{\"fieldType\":\"DATETIME\"}}],\"Aspect\":{\"name\":\"dataHubPolicyInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Display name of the Policy */ - @Deprecated public java.lang.String displayName; - /** Description of the Policy */ - @Deprecated public java.lang.String description; - /** The type of policy */ - @Deprecated public java.lang.String type; - /** The state of policy, ACTIVE or INACTIVE */ - @Deprecated public java.lang.String state; - /** The resource that the policy applies to. Not required for some 'Platform' privileges. */ - @Deprecated public com.linkedin.pegasus2avro.policy.DataHubResourceFilter resources; - /** The privileges that the policy grants. */ - @Deprecated public java.util.List privileges; - /** The actors that the policy applies to. */ - @Deprecated public com.linkedin.pegasus2avro.policy.DataHubActorFilter actors; - /** Whether the policy should be editable via the UI */ - @Deprecated public boolean editable; - /** Timestamp when the policy was last updated */ - @Deprecated public java.lang.Long lastUpdatedTimestamp; - - /** - * 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 DataHubPolicyInfo() {} - - /** - * All-args constructor. - */ - public DataHubPolicyInfo(java.lang.String displayName, java.lang.String description, java.lang.String type, java.lang.String state, com.linkedin.pegasus2avro.policy.DataHubResourceFilter resources, java.util.List privileges, com.linkedin.pegasus2avro.policy.DataHubActorFilter actors, java.lang.Boolean editable, java.lang.Long lastUpdatedTimestamp) { - this.displayName = displayName; - this.description = description; - this.type = type; - this.state = state; - this.resources = resources; - this.privileges = privileges; - this.actors = actors; - this.editable = editable; - this.lastUpdatedTimestamp = lastUpdatedTimestamp; - } - - 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 displayName; - case 1: return description; - case 2: return type; - case 3: return state; - case 4: return resources; - case 5: return privileges; - case 6: return actors; - case 7: return editable; - case 8: return lastUpdatedTimestamp; - 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: displayName = (java.lang.String)value$; break; - case 1: description = (java.lang.String)value$; break; - case 2: type = (java.lang.String)value$; break; - case 3: state = (java.lang.String)value$; break; - case 4: resources = (com.linkedin.pegasus2avro.policy.DataHubResourceFilter)value$; break; - case 5: privileges = (java.util.List)value$; break; - case 6: actors = (com.linkedin.pegasus2avro.policy.DataHubActorFilter)value$; break; - case 7: editable = (java.lang.Boolean)value$; break; - case 8: lastUpdatedTimestamp = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'displayName' field. - * Display name of the Policy */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Sets the value of the 'displayName' field. - * Display name of the Policy * @param value the value to set. - */ - public void setDisplayName(java.lang.String value) { - this.displayName = value; - } - - /** - * Gets the value of the 'description' field. - * Description of the Policy */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Description of the Policy * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'type' field. - * The type of policy */ - public java.lang.String getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of policy * @param value the value to set. - */ - public void setType(java.lang.String value) { - this.type = value; - } - - /** - * Gets the value of the 'state' field. - * The state of policy, ACTIVE or INACTIVE */ - public java.lang.String getState() { - return state; - } - - /** - * Sets the value of the 'state' field. - * The state of policy, ACTIVE or INACTIVE * @param value the value to set. - */ - public void setState(java.lang.String value) { - this.state = value; - } - - /** - * Gets the value of the 'resources' field. - * The resource that the policy applies to. Not required for some 'Platform' privileges. */ - public com.linkedin.pegasus2avro.policy.DataHubResourceFilter getResources() { - return resources; - } - - /** - * Sets the value of the 'resources' field. - * The resource that the policy applies to. Not required for some 'Platform' privileges. * @param value the value to set. - */ - public void setResources(com.linkedin.pegasus2avro.policy.DataHubResourceFilter value) { - this.resources = value; - } - - /** - * Gets the value of the 'privileges' field. - * The privileges that the policy grants. */ - public java.util.List getPrivileges() { - return privileges; - } - - /** - * Sets the value of the 'privileges' field. - * The privileges that the policy grants. * @param value the value to set. - */ - public void setPrivileges(java.util.List value) { - this.privileges = value; - } - - /** - * Gets the value of the 'actors' field. - * The actors that the policy applies to. */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter getActors() { - return actors; - } - - /** - * Sets the value of the 'actors' field. - * The actors that the policy applies to. * @param value the value to set. - */ - public void setActors(com.linkedin.pegasus2avro.policy.DataHubActorFilter value) { - this.actors = value; - } - - /** - * Gets the value of the 'editable' field. - * Whether the policy should be editable via the UI */ - public java.lang.Boolean getEditable() { - return editable; - } - - /** - * Sets the value of the 'editable' field. - * Whether the policy should be editable via the UI * @param value the value to set. - */ - public void setEditable(java.lang.Boolean value) { - this.editable = value; - } - - /** - * Gets the value of the 'lastUpdatedTimestamp' field. - * Timestamp when the policy was last updated */ - public java.lang.Long getLastUpdatedTimestamp() { - return lastUpdatedTimestamp; - } - - /** - * Sets the value of the 'lastUpdatedTimestamp' field. - * Timestamp when the policy was last updated * @param value the value to set. - */ - public void setLastUpdatedTimestamp(java.lang.Long value) { - this.lastUpdatedTimestamp = value; - } - - /** Creates a new DataHubPolicyInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder(); - } - - /** Creates a new DataHubPolicyInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder newBuilder(com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder other) { - return new com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder(other); - } - - /** Creates a new DataHubPolicyInfo RecordBuilder by copying an existing DataHubPolicyInfo instance */ - public static com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder newBuilder(com.linkedin.pegasus2avro.policy.DataHubPolicyInfo other) { - return new com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder(other); - } - - /** - * RecordBuilder for DataHubPolicyInfo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String displayName; - private java.lang.String description; - private java.lang.String type; - private java.lang.String state; - private com.linkedin.pegasus2avro.policy.DataHubResourceFilter resources; - private java.util.List privileges; - private com.linkedin.pegasus2avro.policy.DataHubActorFilter actors; - private boolean editable; - private java.lang.Long lastUpdatedTimestamp; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder other) { - super(other); - if (isValidValue(fields()[0], other.displayName)) { - this.displayName = data().deepCopy(fields()[0].schema(), other.displayName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - 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.state)) { - this.state = data().deepCopy(fields()[3].schema(), other.state); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.resources)) { - this.resources = data().deepCopy(fields()[4].schema(), other.resources); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.privileges)) { - this.privileges = data().deepCopy(fields()[5].schema(), other.privileges); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.actors)) { - this.actors = data().deepCopy(fields()[6].schema(), other.actors); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.editable)) { - this.editable = data().deepCopy(fields()[7].schema(), other.editable); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.lastUpdatedTimestamp)) { - this.lastUpdatedTimestamp = data().deepCopy(fields()[8].schema(), other.lastUpdatedTimestamp); - fieldSetFlags()[8] = true; - } - } - - /** Creates a Builder by copying an existing DataHubPolicyInfo instance */ - private Builder(com.linkedin.pegasus2avro.policy.DataHubPolicyInfo other) { - super(com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.SCHEMA$); - if (isValidValue(fields()[0], other.displayName)) { - this.displayName = data().deepCopy(fields()[0].schema(), other.displayName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - 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.state)) { - this.state = data().deepCopy(fields()[3].schema(), other.state); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.resources)) { - this.resources = data().deepCopy(fields()[4].schema(), other.resources); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.privileges)) { - this.privileges = data().deepCopy(fields()[5].schema(), other.privileges); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.actors)) { - this.actors = data().deepCopy(fields()[6].schema(), other.actors); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.editable)) { - this.editable = data().deepCopy(fields()[7].schema(), other.editable); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.lastUpdatedTimestamp)) { - this.lastUpdatedTimestamp = data().deepCopy(fields()[8].schema(), other.lastUpdatedTimestamp); - fieldSetFlags()[8] = true; - } - } - - /** Gets the value of the 'displayName' field */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** Sets the value of the 'displayName' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder setDisplayName(java.lang.String value) { - validate(fields()[0], value); - this.displayName = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'displayName' field has been set */ - public boolean hasDisplayName() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'displayName' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder clearDisplayName() { - displayName = null; - fieldSetFlags()[0] = 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.policy.DataHubPolicyInfo.Builder setDescription(java.lang.String value) { - validate(fields()[1], value); - this.description = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder clearDescription() { - description = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public java.lang.String getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder setType(java.lang.String 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.policy.DataHubPolicyInfo.Builder clearType() { - type = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'state' field */ - public java.lang.String getState() { - return state; - } - - /** Sets the value of the 'state' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder setState(java.lang.String value) { - validate(fields()[3], value); - this.state = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'state' field has been set */ - public boolean hasState() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'state' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder clearState() { - state = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'resources' field */ - public com.linkedin.pegasus2avro.policy.DataHubResourceFilter getResources() { - return resources; - } - - /** Sets the value of the 'resources' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder setResources(com.linkedin.pegasus2avro.policy.DataHubResourceFilter value) { - validate(fields()[4], value); - this.resources = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'resources' field has been set */ - public boolean hasResources() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'resources' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder clearResources() { - resources = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'privileges' field */ - public java.util.List getPrivileges() { - return privileges; - } - - /** Sets the value of the 'privileges' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder setPrivileges(java.util.List value) { - validate(fields()[5], value); - this.privileges = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'privileges' field has been set */ - public boolean hasPrivileges() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'privileges' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder clearPrivileges() { - privileges = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'actors' field */ - public com.linkedin.pegasus2avro.policy.DataHubActorFilter getActors() { - return actors; - } - - /** Sets the value of the 'actors' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder setActors(com.linkedin.pegasus2avro.policy.DataHubActorFilter value) { - validate(fields()[6], value); - this.actors = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'actors' field has been set */ - public boolean hasActors() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'actors' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder clearActors() { - actors = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'editable' field */ - public java.lang.Boolean getEditable() { - return editable; - } - - /** Sets the value of the 'editable' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder setEditable(boolean value) { - validate(fields()[7], value); - this.editable = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'editable' field has been set */ - public boolean hasEditable() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'editable' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder clearEditable() { - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'lastUpdatedTimestamp' field */ - public java.lang.Long getLastUpdatedTimestamp() { - return lastUpdatedTimestamp; - } - - /** Sets the value of the 'lastUpdatedTimestamp' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder setLastUpdatedTimestamp(java.lang.Long value) { - validate(fields()[8], value); - this.lastUpdatedTimestamp = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'lastUpdatedTimestamp' field has been set */ - public boolean hasLastUpdatedTimestamp() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'lastUpdatedTimestamp' field */ - public com.linkedin.pegasus2avro.policy.DataHubPolicyInfo.Builder clearLastUpdatedTimestamp() { - lastUpdatedTimestamp = null; - fieldSetFlags()[8] = false; - return this; - } - - @Override - public DataHubPolicyInfo build() { - try { - DataHubPolicyInfo record = new DataHubPolicyInfo(); - record.displayName = fieldSetFlags()[0] ? this.displayName : (java.lang.String) defaultValue(fields()[0]); - record.description = fieldSetFlags()[1] ? this.description : (java.lang.String) defaultValue(fields()[1]); - record.type = fieldSetFlags()[2] ? this.type : (java.lang.String) defaultValue(fields()[2]); - record.state = fieldSetFlags()[3] ? this.state : (java.lang.String) defaultValue(fields()[3]); - record.resources = fieldSetFlags()[4] ? this.resources : (com.linkedin.pegasus2avro.policy.DataHubResourceFilter) defaultValue(fields()[4]); - record.privileges = fieldSetFlags()[5] ? this.privileges : (java.util.List) defaultValue(fields()[5]); - record.actors = fieldSetFlags()[6] ? this.actors : (com.linkedin.pegasus2avro.policy.DataHubActorFilter) defaultValue(fields()[6]); - record.editable = fieldSetFlags()[7] ? this.editable : (java.lang.Boolean) defaultValue(fields()[7]); - record.lastUpdatedTimestamp = fieldSetFlags()[8] ? this.lastUpdatedTimestamp : (java.lang.Long) 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/policy/DataHubResourceFilter.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/DataHubResourceFilter.java deleted file mode 100644 index 00ab73d87c665..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/DataHubResourceFilter.java +++ /dev/null @@ -1,314 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.policy; -@SuppressWarnings("all") -/** Information used to filter DataHub resource. */ -@org.apache.avro.specific.AvroGenerated -public class DataHubResourceFilter 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\":\"DataHubResourceFilter\",\"namespace\":\"com.linkedin.pegasus2avro.policy\",\"doc\":\"Information used to filter DataHub resource.\",\"fields\":[{\"name\":\"type\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The type of resource that the policy applies to. This will most often be a data asset entity name, for\\nexample 'dataset'. It is not strictly required because in the future we will want to support filtering a resource\\nby domain, as well.\",\"default\":null,\"deprecated\":true},{\"name\":\"resources\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"A specific set of resources to apply the policy to, e.g. asset urns\",\"default\":null,\"deprecated\":true},{\"name\":\"allResources\",\"type\":\"boolean\",\"doc\":\"Whether the policy should be applied to all assets matching the filter.\",\"default\":false,\"deprecated\":true},{\"name\":\"filter\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"PolicyMatchFilter\",\"doc\":\"The filter for specifying the resource or actor to apply privileges to\",\"fields\":[{\"name\":\"criteria\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"PolicyMatchCriterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. Matches criterion if any one of the values matches condition (OR-relationship)\"},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"PolicyMatchCondition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"EQUALS\"],\"symbolDocs\":{\"EQUALS\":\"Whether the field matches the value\"}},\"doc\":\"The condition for the criterion\",\"default\":\"EQUALS\"}]}},\"doc\":\"A list of criteria to apply conjunctively (so all criteria must pass)\"}]}],\"doc\":\"Filter to apply privileges to\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The type of resource that the policy applies to. This will most often be a data asset entity name, for -example 'dataset'. It is not strictly required because in the future we will want to support filtering a resource -by domain, as well. */ - @Deprecated public java.lang.String type; - /** A specific set of resources to apply the policy to, e.g. asset urns */ - @Deprecated public java.util.List resources; - /** Whether the policy should be applied to all assets matching the filter. */ - @Deprecated public boolean allResources; - /** Filter to apply privileges to */ - @Deprecated public com.linkedin.pegasus2avro.policy.PolicyMatchFilter filter; - - /** - * 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 DataHubResourceFilter() {} - - /** - * All-args constructor. - */ - public DataHubResourceFilter(java.lang.String type, java.util.List resources, java.lang.Boolean allResources, com.linkedin.pegasus2avro.policy.PolicyMatchFilter filter) { - this.type = type; - this.resources = resources; - this.allResources = allResources; - this.filter = filter; - } - - 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 resources; - case 2: return allResources; - case 3: return filter; - 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 = (java.lang.String)value$; break; - case 1: resources = (java.util.List)value$; break; - case 2: allResources = (java.lang.Boolean)value$; break; - case 3: filter = (com.linkedin.pegasus2avro.policy.PolicyMatchFilter)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * The type of resource that the policy applies to. This will most often be a data asset entity name, for -example 'dataset'. It is not strictly required because in the future we will want to support filtering a resource -by domain, as well. */ - public java.lang.String getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of resource that the policy applies to. This will most often be a data asset entity name, for -example 'dataset'. It is not strictly required because in the future we will want to support filtering a resource -by domain, as well. * @param value the value to set. - */ - public void setType(java.lang.String value) { - this.type = value; - } - - /** - * Gets the value of the 'resources' field. - * A specific set of resources to apply the policy to, e.g. asset urns */ - public java.util.List getResources() { - return resources; - } - - /** - * Sets the value of the 'resources' field. - * A specific set of resources to apply the policy to, e.g. asset urns * @param value the value to set. - */ - public void setResources(java.util.List value) { - this.resources = value; - } - - /** - * Gets the value of the 'allResources' field. - * Whether the policy should be applied to all assets matching the filter. */ - public java.lang.Boolean getAllResources() { - return allResources; - } - - /** - * Sets the value of the 'allResources' field. - * Whether the policy should be applied to all assets matching the filter. * @param value the value to set. - */ - public void setAllResources(java.lang.Boolean value) { - this.allResources = value; - } - - /** - * Gets the value of the 'filter' field. - * Filter to apply privileges to */ - public com.linkedin.pegasus2avro.policy.PolicyMatchFilter getFilter() { - return filter; - } - - /** - * Sets the value of the 'filter' field. - * Filter to apply privileges to * @param value the value to set. - */ - public void setFilter(com.linkedin.pegasus2avro.policy.PolicyMatchFilter value) { - this.filter = value; - } - - /** Creates a new DataHubResourceFilter RecordBuilder */ - public static com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder newBuilder() { - return new com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder(); - } - - /** Creates a new DataHubResourceFilter RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder newBuilder(com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder other) { - return new com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder(other); - } - - /** Creates a new DataHubResourceFilter RecordBuilder by copying an existing DataHubResourceFilter instance */ - public static com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder newBuilder(com.linkedin.pegasus2avro.policy.DataHubResourceFilter other) { - return new com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder(other); - } - - /** - * RecordBuilder for DataHubResourceFilter instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String type; - private java.util.List resources; - private boolean allResources; - private com.linkedin.pegasus2avro.policy.PolicyMatchFilter filter; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.policy.DataHubResourceFilter.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.policy.DataHubResourceFilter.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.resources)) { - this.resources = data().deepCopy(fields()[1].schema(), other.resources); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.allResources)) { - this.allResources = data().deepCopy(fields()[2].schema(), other.allResources); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.filter)) { - this.filter = data().deepCopy(fields()[3].schema(), other.filter); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing DataHubResourceFilter instance */ - private Builder(com.linkedin.pegasus2avro.policy.DataHubResourceFilter other) { - super(com.linkedin.pegasus2avro.policy.DataHubResourceFilter.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.resources)) { - this.resources = data().deepCopy(fields()[1].schema(), other.resources); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.allResources)) { - this.allResources = data().deepCopy(fields()[2].schema(), other.allResources); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.filter)) { - this.filter = data().deepCopy(fields()[3].schema(), other.filter); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'type' field */ - public java.lang.String getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder setType(java.lang.String 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.policy.DataHubResourceFilter.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'resources' field */ - public java.util.List getResources() { - return resources; - } - - /** Sets the value of the 'resources' field */ - public com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder setResources(java.util.List value) { - validate(fields()[1], value); - this.resources = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'resources' field has been set */ - public boolean hasResources() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'resources' field */ - public com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder clearResources() { - resources = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'allResources' field */ - public java.lang.Boolean getAllResources() { - return allResources; - } - - /** Sets the value of the 'allResources' field */ - public com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder setAllResources(boolean value) { - validate(fields()[2], value); - this.allResources = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'allResources' field has been set */ - public boolean hasAllResources() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'allResources' field */ - public com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder clearAllResources() { - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'filter' field */ - public com.linkedin.pegasus2avro.policy.PolicyMatchFilter getFilter() { - return filter; - } - - /** Sets the value of the 'filter' field */ - public com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder setFilter(com.linkedin.pegasus2avro.policy.PolicyMatchFilter value) { - validate(fields()[3], value); - this.filter = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'filter' field has been set */ - public boolean hasFilter() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'filter' field */ - public com.linkedin.pegasus2avro.policy.DataHubResourceFilter.Builder clearFilter() { - filter = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public DataHubResourceFilter build() { - try { - DataHubResourceFilter record = new DataHubResourceFilter(); - record.type = fieldSetFlags()[0] ? this.type : (java.lang.String) defaultValue(fields()[0]); - record.resources = fieldSetFlags()[1] ? this.resources : (java.util.List) defaultValue(fields()[1]); - record.allResources = fieldSetFlags()[2] ? this.allResources : (java.lang.Boolean) defaultValue(fields()[2]); - record.filter = fieldSetFlags()[3] ? this.filter : (com.linkedin.pegasus2avro.policy.PolicyMatchFilter) 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/policy/DataHubRoleInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/DataHubRoleInfo.java deleted file mode 100644 index 33b0b1dbadcda..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/DataHubRoleInfo.java +++ /dev/null @@ -1,253 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.policy; -@SuppressWarnings("all") -/** Information about a DataHub Role. */ -@org.apache.avro.specific.AvroGenerated -public class DataHubRoleInfo 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\":\"DataHubRoleInfo\",\"namespace\":\"com.linkedin.pegasus2avro.policy\",\"doc\":\"Information about a DataHub Role.\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the Role\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Description of the Role\",\"Searchable\":{\"fieldType\":\"TEXT\"}},{\"name\":\"editable\",\"type\":\"boolean\",\"doc\":\"Whether the role should be editable via the UI\",\"default\":false}],\"Aspect\":{\"name\":\"dataHubRoleInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Name of the Role */ - @Deprecated public java.lang.String name; - /** Description of the Role */ - @Deprecated public java.lang.String description; - /** Whether the role should be editable via the UI */ - @Deprecated public boolean editable; - - /** - * 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 DataHubRoleInfo() {} - - /** - * All-args constructor. - */ - public DataHubRoleInfo(java.lang.String name, java.lang.String description, java.lang.Boolean editable) { - this.name = name; - this.description = description; - this.editable = editable; - } - - 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 description; - case 2: return editable; - 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: description = (java.lang.String)value$; break; - case 2: editable = (java.lang.Boolean)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Name of the Role */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the Role * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'description' field. - * Description of the Role */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Description of the Role * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'editable' field. - * Whether the role should be editable via the UI */ - public java.lang.Boolean getEditable() { - return editable; - } - - /** - * Sets the value of the 'editable' field. - * Whether the role should be editable via the UI * @param value the value to set. - */ - public void setEditable(java.lang.Boolean value) { - this.editable = value; - } - - /** Creates a new DataHubRoleInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.policy.DataHubRoleInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.policy.DataHubRoleInfo.Builder(); - } - - /** Creates a new DataHubRoleInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.policy.DataHubRoleInfo.Builder newBuilder(com.linkedin.pegasus2avro.policy.DataHubRoleInfo.Builder other) { - return new com.linkedin.pegasus2avro.policy.DataHubRoleInfo.Builder(other); - } - - /** Creates a new DataHubRoleInfo RecordBuilder by copying an existing DataHubRoleInfo instance */ - public static com.linkedin.pegasus2avro.policy.DataHubRoleInfo.Builder newBuilder(com.linkedin.pegasus2avro.policy.DataHubRoleInfo other) { - return new com.linkedin.pegasus2avro.policy.DataHubRoleInfo.Builder(other); - } - - /** - * RecordBuilder for DataHubRoleInfo 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 description; - private boolean editable; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.policy.DataHubRoleInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.policy.DataHubRoleInfo.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.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.editable)) { - this.editable = data().deepCopy(fields()[2].schema(), other.editable); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing DataHubRoleInfo instance */ - private Builder(com.linkedin.pegasus2avro.policy.DataHubRoleInfo other) { - super(com.linkedin.pegasus2avro.policy.DataHubRoleInfo.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.editable)) { - this.editable = data().deepCopy(fields()[2].schema(), other.editable); - fieldSetFlags()[2] = 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.policy.DataHubRoleInfo.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.policy.DataHubRoleInfo.Builder clearName() { - name = null; - fieldSetFlags()[0] = 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.policy.DataHubRoleInfo.Builder setDescription(java.lang.String value) { - validate(fields()[1], value); - this.description = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.policy.DataHubRoleInfo.Builder clearDescription() { - description = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'editable' field */ - public java.lang.Boolean getEditable() { - return editable; - } - - /** Sets the value of the 'editable' field */ - public com.linkedin.pegasus2avro.policy.DataHubRoleInfo.Builder setEditable(boolean value) { - validate(fields()[2], value); - this.editable = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'editable' field has been set */ - public boolean hasEditable() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'editable' field */ - public com.linkedin.pegasus2avro.policy.DataHubRoleInfo.Builder clearEditable() { - fieldSetFlags()[2] = false; - return this; - } - - @Override - public DataHubRoleInfo build() { - try { - DataHubRoleInfo record = new DataHubRoleInfo(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.description = fieldSetFlags()[1] ? this.description : (java.lang.String) defaultValue(fields()[1]); - record.editable = fieldSetFlags()[2] ? this.editable : (java.lang.Boolean) 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/policy/PolicyMatchCondition.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/PolicyMatchCondition.java deleted file mode 100644 index 3012dcda74c00..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/PolicyMatchCondition.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.policy; -@SuppressWarnings("all") -/** The matching condition in a filter criterion */ -@org.apache.avro.specific.AvroGenerated -public enum PolicyMatchCondition { - EQUALS ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"PolicyMatchCondition\",\"namespace\":\"com.linkedin.pegasus2avro.policy\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"EQUALS\"],\"symbolDocs\":{\"EQUALS\":\"Whether the field matches the value\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/PolicyMatchCriterion.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/PolicyMatchCriterion.java deleted file mode 100644 index dba7eee5df628..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/PolicyMatchCriterion.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.policy; -@SuppressWarnings("all") -/** A criterion for matching a field with given value */ -@org.apache.avro.specific.AvroGenerated -public class PolicyMatchCriterion 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\":\"PolicyMatchCriterion\",\"namespace\":\"com.linkedin.pegasus2avro.policy\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. Matches criterion if any one of the values matches condition (OR-relationship)\"},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"PolicyMatchCondition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"EQUALS\"],\"symbolDocs\":{\"EQUALS\":\"Whether the field matches the value\"}},\"doc\":\"The condition for the criterion\",\"default\":\"EQUALS\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the field that the criterion refers to */ - @Deprecated public java.lang.String field; - /** Values. Matches criterion if any one of the values matches condition (OR-relationship) */ - @Deprecated public java.util.List values; - /** The condition for the criterion */ - @Deprecated public com.linkedin.pegasus2avro.policy.PolicyMatchCondition condition; - - /** - * 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 PolicyMatchCriterion() {} - - /** - * All-args constructor. - */ - public PolicyMatchCriterion(java.lang.String field, java.util.List values, com.linkedin.pegasus2avro.policy.PolicyMatchCondition condition) { - this.field = field; - this.values = values; - this.condition = condition; - } - - 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 field; - case 1: return values; - case 2: return condition; - 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: field = (java.lang.String)value$; break; - case 1: values = (java.util.List)value$; break; - case 2: condition = (com.linkedin.pegasus2avro.policy.PolicyMatchCondition)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'field' field. - * The name of the field that the criterion refers to */ - public java.lang.String getField() { - return field; - } - - /** - * Sets the value of the 'field' field. - * The name of the field that the criterion refers to * @param value the value to set. - */ - public void setField(java.lang.String value) { - this.field = value; - } - - /** - * Gets the value of the 'values' field. - * Values. Matches criterion if any one of the values matches condition (OR-relationship) */ - public java.util.List getValues() { - return values; - } - - /** - * Sets the value of the 'values' field. - * Values. Matches criterion if any one of the values matches condition (OR-relationship) * @param value the value to set. - */ - public void setValues(java.util.List value) { - this.values = value; - } - - /** - * Gets the value of the 'condition' field. - * The condition for the criterion */ - public com.linkedin.pegasus2avro.policy.PolicyMatchCondition getCondition() { - return condition; - } - - /** - * Sets the value of the 'condition' field. - * The condition for the criterion * @param value the value to set. - */ - public void setCondition(com.linkedin.pegasus2avro.policy.PolicyMatchCondition value) { - this.condition = value; - } - - /** Creates a new PolicyMatchCriterion RecordBuilder */ - public static com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder newBuilder() { - return new com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder(); - } - - /** Creates a new PolicyMatchCriterion RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder newBuilder(com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder other) { - return new com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder(other); - } - - /** Creates a new PolicyMatchCriterion RecordBuilder by copying an existing PolicyMatchCriterion instance */ - public static com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder newBuilder(com.linkedin.pegasus2avro.policy.PolicyMatchCriterion other) { - return new com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder(other); - } - - /** - * RecordBuilder for PolicyMatchCriterion instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String field; - private java.util.List values; - private com.linkedin.pegasus2avro.policy.PolicyMatchCondition condition; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder other) { - super(other); - if (isValidValue(fields()[0], other.field)) { - this.field = data().deepCopy(fields()[0].schema(), other.field); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.values)) { - this.values = data().deepCopy(fields()[1].schema(), other.values); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.condition)) { - this.condition = data().deepCopy(fields()[2].schema(), other.condition); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing PolicyMatchCriterion instance */ - private Builder(com.linkedin.pegasus2avro.policy.PolicyMatchCriterion other) { - super(com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.SCHEMA$); - if (isValidValue(fields()[0], other.field)) { - this.field = data().deepCopy(fields()[0].schema(), other.field); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.values)) { - this.values = data().deepCopy(fields()[1].schema(), other.values); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.condition)) { - this.condition = data().deepCopy(fields()[2].schema(), other.condition); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'field' field */ - public java.lang.String getField() { - return field; - } - - /** Sets the value of the 'field' field */ - public com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder setField(java.lang.String value) { - validate(fields()[0], value); - this.field = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'field' field has been set */ - public boolean hasField() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'field' field */ - public com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder clearField() { - field = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'values' field */ - public java.util.List getValues() { - return values; - } - - /** Sets the value of the 'values' field */ - public com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder setValues(java.util.List value) { - validate(fields()[1], value); - this.values = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'values' field has been set */ - public boolean hasValues() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'values' field */ - public com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder clearValues() { - values = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'condition' field */ - public com.linkedin.pegasus2avro.policy.PolicyMatchCondition getCondition() { - return condition; - } - - /** Sets the value of the 'condition' field */ - public com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder setCondition(com.linkedin.pegasus2avro.policy.PolicyMatchCondition value) { - validate(fields()[2], value); - this.condition = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'condition' field has been set */ - public boolean hasCondition() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'condition' field */ - public com.linkedin.pegasus2avro.policy.PolicyMatchCriterion.Builder clearCondition() { - condition = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public PolicyMatchCriterion build() { - try { - PolicyMatchCriterion record = new PolicyMatchCriterion(); - record.field = fieldSetFlags()[0] ? this.field : (java.lang.String) defaultValue(fields()[0]); - record.values = fieldSetFlags()[1] ? this.values : (java.util.List) defaultValue(fields()[1]); - record.condition = fieldSetFlags()[2] ? this.condition : (com.linkedin.pegasus2avro.policy.PolicyMatchCondition) 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/policy/PolicyMatchFilter.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/PolicyMatchFilter.java deleted file mode 100644 index e58d6fc3da333..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/policy/PolicyMatchFilter.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.policy; -@SuppressWarnings("all") -/** The filter for specifying the resource or actor to apply privileges to */ -@org.apache.avro.specific.AvroGenerated -public class PolicyMatchFilter 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\":\"PolicyMatchFilter\",\"namespace\":\"com.linkedin.pegasus2avro.policy\",\"doc\":\"The filter for specifying the resource or actor to apply privileges to\",\"fields\":[{\"name\":\"criteria\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"PolicyMatchCriterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. Matches criterion if any one of the values matches condition (OR-relationship)\"},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"PolicyMatchCondition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"EQUALS\"],\"symbolDocs\":{\"EQUALS\":\"Whether the field matches the value\"}},\"doc\":\"The condition for the criterion\",\"default\":\"EQUALS\"}]}},\"doc\":\"A list of criteria to apply conjunctively (so all criteria must pass)\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A list of criteria to apply conjunctively (so all criteria must pass) */ - @Deprecated public java.util.List criteria; - - /** - * 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 PolicyMatchFilter() {} - - /** - * All-args constructor. - */ - public PolicyMatchFilter(java.util.List criteria) { - this.criteria = criteria; - } - - 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 criteria; - 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: criteria = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'criteria' field. - * A list of criteria to apply conjunctively (so all criteria must pass) */ - public java.util.List getCriteria() { - return criteria; - } - - /** - * Sets the value of the 'criteria' field. - * A list of criteria to apply conjunctively (so all criteria must pass) * @param value the value to set. - */ - public void setCriteria(java.util.List value) { - this.criteria = value; - } - - /** Creates a new PolicyMatchFilter RecordBuilder */ - public static com.linkedin.pegasus2avro.policy.PolicyMatchFilter.Builder newBuilder() { - return new com.linkedin.pegasus2avro.policy.PolicyMatchFilter.Builder(); - } - - /** Creates a new PolicyMatchFilter RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.policy.PolicyMatchFilter.Builder newBuilder(com.linkedin.pegasus2avro.policy.PolicyMatchFilter.Builder other) { - return new com.linkedin.pegasus2avro.policy.PolicyMatchFilter.Builder(other); - } - - /** Creates a new PolicyMatchFilter RecordBuilder by copying an existing PolicyMatchFilter instance */ - public static com.linkedin.pegasus2avro.policy.PolicyMatchFilter.Builder newBuilder(com.linkedin.pegasus2avro.policy.PolicyMatchFilter other) { - return new com.linkedin.pegasus2avro.policy.PolicyMatchFilter.Builder(other); - } - - /** - * RecordBuilder for PolicyMatchFilter instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List criteria; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.policy.PolicyMatchFilter.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.policy.PolicyMatchFilter.Builder other) { - super(other); - if (isValidValue(fields()[0], other.criteria)) { - this.criteria = data().deepCopy(fields()[0].schema(), other.criteria); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing PolicyMatchFilter instance */ - private Builder(com.linkedin.pegasus2avro.policy.PolicyMatchFilter other) { - super(com.linkedin.pegasus2avro.policy.PolicyMatchFilter.SCHEMA$); - if (isValidValue(fields()[0], other.criteria)) { - this.criteria = data().deepCopy(fields()[0].schema(), other.criteria); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'criteria' field */ - public java.util.List getCriteria() { - return criteria; - } - - /** Sets the value of the 'criteria' field */ - public com.linkedin.pegasus2avro.policy.PolicyMatchFilter.Builder setCriteria(java.util.List value) { - validate(fields()[0], value); - this.criteria = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'criteria' field has been set */ - public boolean hasCriteria() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'criteria' field */ - public com.linkedin.pegasus2avro.policy.PolicyMatchFilter.Builder clearCriteria() { - criteria = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public PolicyMatchFilter build() { - try { - PolicyMatchFilter record = new PolicyMatchFilter(); - record.criteria = fieldSetFlags()[0] ? this.criteria : (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/post/PostContent.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/post/PostContent.java deleted file mode 100644 index ef5a5eb30525d..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/post/PostContent.java +++ /dev/null @@ -1,364 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.post; -@SuppressWarnings("all") -/** Content stored inside a Post. */ -@org.apache.avro.specific.AvroGenerated -public class PostContent 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\":\"PostContent\",\"namespace\":\"com.linkedin.pegasus2avro.post\",\"doc\":\"Content stored inside a Post.\",\"fields\":[{\"name\":\"title\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Title of the post.\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"PostContentType\",\"doc\":\"Enum defining the type of content held in a Post.\",\"symbols\":[\"TEXT\",\"LINK\"],\"symbolDocs\":{\"LINK\":\"Link content\",\"TEXT\":\"Text content\"}},\"doc\":\"Type of content held in the post.\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional description of the post.\",\"default\":null},{\"name\":\"link\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional link that the post is associated with.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"media\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Media\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Carries information about which roles a user is assigned to.\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"MediaType\",\"doc\":\"Enum defining the type of content a Media object holds.\",\"symbols\":[\"IMAGE\"],\"symbolDocs\":{\"IMAGE\":\"The Media holds an image.\"}},\"doc\":\"Type of content the Media is storing, e.g. image, video, etc.\"},{\"name\":\"location\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Where the media content is stored.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}]}],\"doc\":\"Optional media that the post is storing\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Title of the post. */ - @Deprecated public java.lang.String title; - /** Type of content held in the post. */ - @Deprecated public com.linkedin.pegasus2avro.post.PostContentType type; - /** Optional description of the post. */ - @Deprecated public java.lang.String description; - /** Optional link that the post is associated with. */ - @Deprecated public java.lang.String link; - /** Optional media that the post is storing */ - @Deprecated public com.linkedin.pegasus2avro.common.Media media; - - /** - * 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 PostContent() {} - - /** - * All-args constructor. - */ - public PostContent(java.lang.String title, com.linkedin.pegasus2avro.post.PostContentType type, java.lang.String description, java.lang.String link, com.linkedin.pegasus2avro.common.Media media) { - this.title = title; - this.type = type; - this.description = description; - this.link = link; - this.media = media; - } - - 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 title; - case 1: return type; - case 2: return description; - case 3: return link; - case 4: return media; - 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: title = (java.lang.String)value$; break; - case 1: type = (com.linkedin.pegasus2avro.post.PostContentType)value$; break; - case 2: description = (java.lang.String)value$; break; - case 3: link = (java.lang.String)value$; break; - case 4: media = (com.linkedin.pegasus2avro.common.Media)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'title' field. - * Title of the post. */ - public java.lang.String getTitle() { - return title; - } - - /** - * Sets the value of the 'title' field. - * Title of the post. * @param value the value to set. - */ - public void setTitle(java.lang.String value) { - this.title = value; - } - - /** - * Gets the value of the 'type' field. - * Type of content held in the post. */ - public com.linkedin.pegasus2avro.post.PostContentType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Type of content held in the post. * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.post.PostContentType value) { - this.type = value; - } - - /** - * Gets the value of the 'description' field. - * Optional description of the post. */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Optional description of the post. * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'link' field. - * Optional link that the post is associated with. */ - public java.lang.String getLink() { - return link; - } - - /** - * Sets the value of the 'link' field. - * Optional link that the post is associated with. * @param value the value to set. - */ - public void setLink(java.lang.String value) { - this.link = value; - } - - /** - * Gets the value of the 'media' field. - * Optional media that the post is storing */ - public com.linkedin.pegasus2avro.common.Media getMedia() { - return media; - } - - /** - * Sets the value of the 'media' field. - * Optional media that the post is storing * @param value the value to set. - */ - public void setMedia(com.linkedin.pegasus2avro.common.Media value) { - this.media = value; - } - - /** Creates a new PostContent RecordBuilder */ - public static com.linkedin.pegasus2avro.post.PostContent.Builder newBuilder() { - return new com.linkedin.pegasus2avro.post.PostContent.Builder(); - } - - /** Creates a new PostContent RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.post.PostContent.Builder newBuilder(com.linkedin.pegasus2avro.post.PostContent.Builder other) { - return new com.linkedin.pegasus2avro.post.PostContent.Builder(other); - } - - /** Creates a new PostContent RecordBuilder by copying an existing PostContent instance */ - public static com.linkedin.pegasus2avro.post.PostContent.Builder newBuilder(com.linkedin.pegasus2avro.post.PostContent other) { - return new com.linkedin.pegasus2avro.post.PostContent.Builder(other); - } - - /** - * RecordBuilder for PostContent instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String title; - private com.linkedin.pegasus2avro.post.PostContentType type; - private java.lang.String description; - private java.lang.String link; - private com.linkedin.pegasus2avro.common.Media media; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.post.PostContent.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.post.PostContent.Builder other) { - super(other); - if (isValidValue(fields()[0], other.title)) { - this.title = data().deepCopy(fields()[0].schema(), other.title); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.type)) { - this.type = data().deepCopy(fields()[1].schema(), other.type); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.description)) { - this.description = data().deepCopy(fields()[2].schema(), other.description); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.link)) { - this.link = data().deepCopy(fields()[3].schema(), other.link); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.media)) { - this.media = data().deepCopy(fields()[4].schema(), other.media); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing PostContent instance */ - private Builder(com.linkedin.pegasus2avro.post.PostContent other) { - super(com.linkedin.pegasus2avro.post.PostContent.SCHEMA$); - if (isValidValue(fields()[0], other.title)) { - this.title = data().deepCopy(fields()[0].schema(), other.title); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.type)) { - this.type = data().deepCopy(fields()[1].schema(), other.type); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.description)) { - this.description = data().deepCopy(fields()[2].schema(), other.description); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.link)) { - this.link = data().deepCopy(fields()[3].schema(), other.link); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.media)) { - this.media = data().deepCopy(fields()[4].schema(), other.media); - fieldSetFlags()[4] = true; - } - } - - /** 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.post.PostContent.Builder setTitle(java.lang.String value) { - validate(fields()[0], value); - this.title = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'title' field has been set */ - public boolean hasTitle() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'title' field */ - public com.linkedin.pegasus2avro.post.PostContent.Builder clearTitle() { - title = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.post.PostContentType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.post.PostContent.Builder setType(com.linkedin.pegasus2avro.post.PostContentType 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.post.PostContent.Builder clearType() { - type = null; - fieldSetFlags()[1] = 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.post.PostContent.Builder setDescription(java.lang.String value) { - validate(fields()[2], value); - this.description = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.post.PostContent.Builder clearDescription() { - description = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'link' field */ - public java.lang.String getLink() { - return link; - } - - /** Sets the value of the 'link' field */ - public com.linkedin.pegasus2avro.post.PostContent.Builder setLink(java.lang.String value) { - validate(fields()[3], value); - this.link = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'link' field has been set */ - public boolean hasLink() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'link' field */ - public com.linkedin.pegasus2avro.post.PostContent.Builder clearLink() { - link = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'media' field */ - public com.linkedin.pegasus2avro.common.Media getMedia() { - return media; - } - - /** Sets the value of the 'media' field */ - public com.linkedin.pegasus2avro.post.PostContent.Builder setMedia(com.linkedin.pegasus2avro.common.Media value) { - validate(fields()[4], value); - this.media = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'media' field has been set */ - public boolean hasMedia() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'media' field */ - public com.linkedin.pegasus2avro.post.PostContent.Builder clearMedia() { - media = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public PostContent build() { - try { - PostContent record = new PostContent(); - record.title = fieldSetFlags()[0] ? this.title : (java.lang.String) defaultValue(fields()[0]); - record.type = fieldSetFlags()[1] ? this.type : (com.linkedin.pegasus2avro.post.PostContentType) defaultValue(fields()[1]); - record.description = fieldSetFlags()[2] ? this.description : (java.lang.String) defaultValue(fields()[2]); - record.link = fieldSetFlags()[3] ? this.link : (java.lang.String) defaultValue(fields()[3]); - record.media = fieldSetFlags()[4] ? this.media : (com.linkedin.pegasus2avro.common.Media) 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/post/PostContentType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/post/PostContentType.java deleted file mode 100644 index 8705d5b72f5ec..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/post/PostContentType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.post; -@SuppressWarnings("all") -/** Enum defining the type of content held in a Post. */ -@org.apache.avro.specific.AvroGenerated -public enum PostContentType { - TEXT, LINK ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"PostContentType\",\"namespace\":\"com.linkedin.pegasus2avro.post\",\"doc\":\"Enum defining the type of content held in a Post.\",\"symbols\":[\"TEXT\",\"LINK\"],\"symbolDocs\":{\"LINK\":\"Link content\",\"TEXT\":\"Text content\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/post/PostInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/post/PostInfo.java deleted file mode 100644 index b78f18ca5af48..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/post/PostInfo.java +++ /dev/null @@ -1,307 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.post; -@SuppressWarnings("all") -/** Information about a DataHub Post. */ -@org.apache.avro.specific.AvroGenerated -public class PostInfo 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\":\"PostInfo\",\"namespace\":\"com.linkedin.pegasus2avro.post\",\"doc\":\"Information about a DataHub Post.\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"PostType\",\"doc\":\"Enum defining types of Posts.\",\"symbols\":[\"HOME_PAGE_ANNOUNCEMENT\"],\"symbolDocs\":{\"HOME_PAGE_ANNOUNCEMENT\":\"The Post is an Home Page announcement.\"}},\"doc\":\"Type of the Post.\"},{\"name\":\"content\",\"type\":{\"type\":\"record\",\"name\":\"PostContent\",\"doc\":\"Content stored inside a Post.\",\"fields\":[{\"name\":\"title\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Title of the post.\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"PostContentType\",\"doc\":\"Enum defining the type of content held in a Post.\",\"symbols\":[\"TEXT\",\"LINK\"],\"symbolDocs\":{\"LINK\":\"Link content\",\"TEXT\":\"Text content\"}},\"doc\":\"Type of content held in the post.\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional description of the post.\",\"default\":null},{\"name\":\"link\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional link that the post is associated with.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}},{\"name\":\"media\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Media\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Carries information about which roles a user is assigned to.\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"MediaType\",\"doc\":\"Enum defining the type of content a Media object holds.\",\"symbols\":[\"IMAGE\"],\"symbolDocs\":{\"IMAGE\":\"The Media holds an image.\"}},\"doc\":\"Type of content the Media is storing, e.g. image, video, etc.\"},{\"name\":\"location\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Where the media content is stored.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.url.Url\",\"coercerClass\":\"com.linkedin.pegasus2avro.common.url.UrlCoercer\"}}]}],\"doc\":\"Optional media that the post is storing\",\"default\":null}]},\"doc\":\"Content stored in the post.\"},{\"name\":\"created\",\"type\":\"long\",\"doc\":\"The time at which the post was initially created\",\"Searchable\":{\"fieldType\":\"COUNT\"}},{\"name\":\"lastModified\",\"type\":\"long\",\"doc\":\"The time at which the post was last modified\",\"Searchable\":{\"fieldType\":\"COUNT\"}}],\"Aspect\":{\"name\":\"postInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Type of the Post. */ - @Deprecated public com.linkedin.pegasus2avro.post.PostType type; - /** Content stored in the post. */ - @Deprecated public com.linkedin.pegasus2avro.post.PostContent content; - /** The time at which the post was initially created */ - @Deprecated public long created; - /** The time at which the post was last modified */ - @Deprecated public long lastModified; - - /** - * 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 PostInfo() {} - - /** - * All-args constructor. - */ - public PostInfo(com.linkedin.pegasus2avro.post.PostType type, com.linkedin.pegasus2avro.post.PostContent content, java.lang.Long created, java.lang.Long lastModified) { - this.type = type; - this.content = content; - this.created = created; - this.lastModified = lastModified; - } - - 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 content; - case 2: return created; - case 3: return lastModified; - 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.post.PostType)value$; break; - case 1: content = (com.linkedin.pegasus2avro.post.PostContent)value$; break; - case 2: created = (java.lang.Long)value$; break; - case 3: lastModified = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * Type of the Post. */ - public com.linkedin.pegasus2avro.post.PostType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Type of the Post. * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.post.PostType value) { - this.type = value; - } - - /** - * Gets the value of the 'content' field. - * Content stored in the post. */ - public com.linkedin.pegasus2avro.post.PostContent getContent() { - return content; - } - - /** - * Sets the value of the 'content' field. - * Content stored in the post. * @param value the value to set. - */ - public void setContent(com.linkedin.pegasus2avro.post.PostContent value) { - this.content = value; - } - - /** - * Gets the value of the 'created' field. - * The time at which the post was initially created */ - public java.lang.Long getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * The time at which the post was initially created * @param value the value to set. - */ - public void setCreated(java.lang.Long value) { - this.created = value; - } - - /** - * Gets the value of the 'lastModified' field. - * The time at which the post was last modified */ - public java.lang.Long getLastModified() { - return lastModified; - } - - /** - * Sets the value of the 'lastModified' field. - * The time at which the post was last modified * @param value the value to set. - */ - public void setLastModified(java.lang.Long value) { - this.lastModified = value; - } - - /** Creates a new PostInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.post.PostInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.post.PostInfo.Builder(); - } - - /** Creates a new PostInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.post.PostInfo.Builder newBuilder(com.linkedin.pegasus2avro.post.PostInfo.Builder other) { - return new com.linkedin.pegasus2avro.post.PostInfo.Builder(other); - } - - /** Creates a new PostInfo RecordBuilder by copying an existing PostInfo instance */ - public static com.linkedin.pegasus2avro.post.PostInfo.Builder newBuilder(com.linkedin.pegasus2avro.post.PostInfo other) { - return new com.linkedin.pegasus2avro.post.PostInfo.Builder(other); - } - - /** - * RecordBuilder for PostInfo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.post.PostType type; - private com.linkedin.pegasus2avro.post.PostContent content; - private long created; - private long lastModified; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.post.PostInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.post.PostInfo.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.content)) { - this.content = data().deepCopy(fields()[1].schema(), other.content); - 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; - } - } - - /** Creates a Builder by copying an existing PostInfo instance */ - private Builder(com.linkedin.pegasus2avro.post.PostInfo other) { - super(com.linkedin.pegasus2avro.post.PostInfo.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.content)) { - this.content = data().deepCopy(fields()[1].schema(), other.content); - 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; - } - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.post.PostType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.post.PostInfo.Builder setType(com.linkedin.pegasus2avro.post.PostType 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.post.PostInfo.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'content' field */ - public com.linkedin.pegasus2avro.post.PostContent getContent() { - return content; - } - - /** Sets the value of the 'content' field */ - public com.linkedin.pegasus2avro.post.PostInfo.Builder setContent(com.linkedin.pegasus2avro.post.PostContent value) { - validate(fields()[1], value); - this.content = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'content' field has been set */ - public boolean hasContent() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'content' field */ - public com.linkedin.pegasus2avro.post.PostInfo.Builder clearContent() { - content = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'created' field */ - public java.lang.Long getCreated() { - return created; - } - - /** Sets the value of the 'created' field */ - public com.linkedin.pegasus2avro.post.PostInfo.Builder setCreated(long 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.post.PostInfo.Builder clearCreated() { - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'lastModified' field */ - public java.lang.Long getLastModified() { - return lastModified; - } - - /** Sets the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.post.PostInfo.Builder setLastModified(long 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.post.PostInfo.Builder clearLastModified() { - fieldSetFlags()[3] = false; - return this; - } - - @Override - public PostInfo build() { - try { - PostInfo record = new PostInfo(); - record.type = fieldSetFlags()[0] ? this.type : (com.linkedin.pegasus2avro.post.PostType) defaultValue(fields()[0]); - record.content = fieldSetFlags()[1] ? this.content : (com.linkedin.pegasus2avro.post.PostContent) defaultValue(fields()[1]); - record.created = fieldSetFlags()[2] ? this.created : (java.lang.Long) defaultValue(fields()[2]); - record.lastModified = fieldSetFlags()[3] ? this.lastModified : (java.lang.Long) 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/post/PostType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/post/PostType.java deleted file mode 100644 index f3fbad4f8cacb..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/post/PostType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.post; -@SuppressWarnings("all") -/** Enum defining types of Posts. */ -@org.apache.avro.specific.AvroGenerated -public enum PostType { - HOME_PAGE_ANNOUNCEMENT ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"PostType\",\"namespace\":\"com.linkedin.pegasus2avro.post\",\"doc\":\"Enum defining types of Posts.\",\"symbols\":[\"HOME_PAGE_ANNOUNCEMENT\"],\"symbolDocs\":{\"HOME_PAGE_ANNOUNCEMENT\":\"The Post is an Home Page announcement.\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QueryLanguage.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QueryLanguage.java deleted file mode 100644 index 650c34f6b1ec8..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QueryLanguage.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.query; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum QueryLanguage { - SQL ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"QueryLanguage\",\"namespace\":\"com.linkedin.pegasus2avro.query\",\"symbols\":[\"SQL\"],\"symbolDocs\":{\"SQL\":\"A SQL Query\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QueryProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QueryProperties.java deleted file mode 100644 index 1b42b0a91b06f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QueryProperties.java +++ /dev/null @@ -1,419 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.query; -@SuppressWarnings("all") -/** Information about a Query against one or more data assets (e.g. Tables or Views). */ -@org.apache.avro.specific.AvroGenerated -public class QueryProperties 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\":\"QueryProperties\",\"namespace\":\"com.linkedin.pegasus2avro.query\",\"doc\":\"Information about a Query against one or more data assets (e.g. Tables or Views).\",\"fields\":[{\"name\":\"statement\",\"type\":{\"type\":\"record\",\"name\":\"QueryStatement\",\"doc\":\"A query statement against one or more data assets.\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The query text\"},{\"name\":\"language\",\"type\":{\"type\":\"enum\",\"name\":\"QueryLanguage\",\"symbols\":[\"SQL\"],\"symbolDocs\":{\"SQL\":\"A SQL Query\"}},\"doc\":\"The language of the Query, e.g. SQL.\",\"default\":\"SQL\"}]},\"doc\":\"The Query Statement.\"},{\"name\":\"source\",\"type\":{\"type\":\"enum\",\"name\":\"QuerySource\",\"symbols\":[\"MANUAL\"],\"symbolDocs\":{\"MANUAL\":\"The query was entered manually by a user (via the UI).\"}},\"doc\":\"The source of the Query\",\"Searchable\":{}},{\"name\":\"name\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Optional display name to identify the query.\",\"default\":null,\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The Query description.\",\"default\":null},{\"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\":\"Audit stamp capturing the time and actor who created the Query.\",\"Searchable\":{\"/actor\":{\"fieldName\":\"createdBy\",\"fieldType\":\"URN\"},\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit stamp capturing the time and actor who last modified the Query.\",\"Searchable\":{\"/actor\":{\"fieldName\":\"lastModifiedBy\",\"fieldType\":\"URN\"},\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"name\":\"queryProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The Query Statement. */ - @Deprecated public com.linkedin.pegasus2avro.query.QueryStatement statement; - /** The source of the Query */ - @Deprecated public com.linkedin.pegasus2avro.query.QuerySource source; - /** Optional display name to identify the query. */ - @Deprecated public java.lang.String name; - /** The Query description. */ - @Deprecated public java.lang.String description; - /** Audit stamp capturing the time and actor who created the Query. */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created; - /** Audit stamp capturing the time and actor who last modified the Query. */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp lastModified; - - /** - * 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 QueryProperties() {} - - /** - * All-args constructor. - */ - public QueryProperties(com.linkedin.pegasus2avro.query.QueryStatement statement, com.linkedin.pegasus2avro.query.QuerySource source, java.lang.String name, java.lang.String description, com.linkedin.pegasus2avro.common.AuditStamp created, com.linkedin.pegasus2avro.common.AuditStamp lastModified) { - this.statement = statement; - this.source = source; - this.name = name; - this.description = description; - this.created = created; - this.lastModified = lastModified; - } - - 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 statement; - case 1: return source; - case 2: return name; - case 3: return description; - case 4: return created; - case 5: return lastModified; - 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: statement = (com.linkedin.pegasus2avro.query.QueryStatement)value$; break; - case 1: source = (com.linkedin.pegasus2avro.query.QuerySource)value$; break; - case 2: name = (java.lang.String)value$; break; - case 3: description = (java.lang.String)value$; break; - case 4: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 5: lastModified = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'statement' field. - * The Query Statement. */ - public com.linkedin.pegasus2avro.query.QueryStatement getStatement() { - return statement; - } - - /** - * Sets the value of the 'statement' field. - * The Query Statement. * @param value the value to set. - */ - public void setStatement(com.linkedin.pegasus2avro.query.QueryStatement value) { - this.statement = value; - } - - /** - * Gets the value of the 'source' field. - * The source of the Query */ - public com.linkedin.pegasus2avro.query.QuerySource getSource() { - return source; - } - - /** - * Sets the value of the 'source' field. - * The source of the Query * @param value the value to set. - */ - public void setSource(com.linkedin.pegasus2avro.query.QuerySource value) { - this.source = value; - } - - /** - * Gets the value of the 'name' field. - * Optional display name to identify the query. */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Optional display name to identify the query. * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'description' field. - * The Query description. */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * The Query description. * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'created' field. - * Audit stamp capturing the time and actor who created the Query. */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * Audit stamp capturing the time and actor who created the Query. * @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 capturing the time and actor who last modified the Query. */ - public com.linkedin.pegasus2avro.common.AuditStamp getLastModified() { - return lastModified; - } - - /** - * Sets the value of the 'lastModified' field. - * Audit stamp capturing the time and actor who last modified the Query. * @param value the value to set. - */ - public void setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.lastModified = value; - } - - /** Creates a new QueryProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.query.QueryProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.query.QueryProperties.Builder(); - } - - /** Creates a new QueryProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.query.QueryProperties.Builder newBuilder(com.linkedin.pegasus2avro.query.QueryProperties.Builder other) { - return new com.linkedin.pegasus2avro.query.QueryProperties.Builder(other); - } - - /** Creates a new QueryProperties RecordBuilder by copying an existing QueryProperties instance */ - public static com.linkedin.pegasus2avro.query.QueryProperties.Builder newBuilder(com.linkedin.pegasus2avro.query.QueryProperties other) { - return new com.linkedin.pegasus2avro.query.QueryProperties.Builder(other); - } - - /** - * RecordBuilder for QueryProperties instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.query.QueryStatement statement; - private com.linkedin.pegasus2avro.query.QuerySource source; - private java.lang.String name; - private java.lang.String description; - private com.linkedin.pegasus2avro.common.AuditStamp created; - private com.linkedin.pegasus2avro.common.AuditStamp lastModified; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.query.QueryProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.query.QueryProperties.Builder other) { - super(other); - if (isValidValue(fields()[0], other.statement)) { - this.statement = data().deepCopy(fields()[0].schema(), other.statement); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.source)) { - this.source = data().deepCopy(fields()[1].schema(), other.source); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - 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.created)) { - this.created = data().deepCopy(fields()[4].schema(), other.created); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[5].schema(), other.lastModified); - fieldSetFlags()[5] = true; - } - } - - /** Creates a Builder by copying an existing QueryProperties instance */ - private Builder(com.linkedin.pegasus2avro.query.QueryProperties other) { - super(com.linkedin.pegasus2avro.query.QueryProperties.SCHEMA$); - if (isValidValue(fields()[0], other.statement)) { - this.statement = data().deepCopy(fields()[0].schema(), other.statement); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.source)) { - this.source = data().deepCopy(fields()[1].schema(), other.source); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.name)) { - this.name = data().deepCopy(fields()[2].schema(), other.name); - 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.created)) { - this.created = data().deepCopy(fields()[4].schema(), other.created); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[5].schema(), other.lastModified); - fieldSetFlags()[5] = true; - } - } - - /** Gets the value of the 'statement' field */ - public com.linkedin.pegasus2avro.query.QueryStatement getStatement() { - return statement; - } - - /** Sets the value of the 'statement' field */ - public com.linkedin.pegasus2avro.query.QueryProperties.Builder setStatement(com.linkedin.pegasus2avro.query.QueryStatement value) { - validate(fields()[0], value); - this.statement = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'statement' field has been set */ - public boolean hasStatement() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'statement' field */ - public com.linkedin.pegasus2avro.query.QueryProperties.Builder clearStatement() { - statement = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'source' field */ - public com.linkedin.pegasus2avro.query.QuerySource getSource() { - return source; - } - - /** Sets the value of the 'source' field */ - public com.linkedin.pegasus2avro.query.QueryProperties.Builder setSource(com.linkedin.pegasus2avro.query.QuerySource value) { - validate(fields()[1], value); - this.source = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'source' field has been set */ - public boolean hasSource() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'source' field */ - public com.linkedin.pegasus2avro.query.QueryProperties.Builder clearSource() { - source = null; - fieldSetFlags()[1] = false; - return this; - } - - /** 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.query.QueryProperties.Builder setName(java.lang.String value) { - validate(fields()[2], value); - this.name = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'name' field */ - public com.linkedin.pegasus2avro.query.QueryProperties.Builder clearName() { - name = 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.query.QueryProperties.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.query.QueryProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[3] = 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.query.QueryProperties.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[4], value); - this.created = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.query.QueryProperties.Builder clearCreated() { - created = null; - fieldSetFlags()[4] = 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.query.QueryProperties.Builder setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[5], value); - this.lastModified = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'lastModified' field has been set */ - public boolean hasLastModified() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.query.QueryProperties.Builder clearLastModified() { - lastModified = null; - fieldSetFlags()[5] = false; - return this; - } - - @Override - public QueryProperties build() { - try { - QueryProperties record = new QueryProperties(); - record.statement = fieldSetFlags()[0] ? this.statement : (com.linkedin.pegasus2avro.query.QueryStatement) defaultValue(fields()[0]); - record.source = fieldSetFlags()[1] ? this.source : (com.linkedin.pegasus2avro.query.QuerySource) defaultValue(fields()[1]); - record.name = fieldSetFlags()[2] ? this.name : (java.lang.String) defaultValue(fields()[2]); - record.description = fieldSetFlags()[3] ? this.description : (java.lang.String) defaultValue(fields()[3]); - record.created = fieldSetFlags()[4] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[4]); - record.lastModified = fieldSetFlags()[5] ? this.lastModified : (com.linkedin.pegasus2avro.common.AuditStamp) 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/query/QuerySource.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QuerySource.java deleted file mode 100644 index 5fe2032bc577e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QuerySource.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.query; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum QuerySource { - MANUAL ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"QuerySource\",\"namespace\":\"com.linkedin.pegasus2avro.query\",\"symbols\":[\"MANUAL\"],\"symbolDocs\":{\"MANUAL\":\"The query was entered manually by a user (via the UI).\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QueryStatement.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QueryStatement.java deleted file mode 100644 index 52281cee26d41..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QueryStatement.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.query; -@SuppressWarnings("all") -/** A query statement against one or more data assets. */ -@org.apache.avro.specific.AvroGenerated -public class QueryStatement 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\":\"QueryStatement\",\"namespace\":\"com.linkedin.pegasus2avro.query\",\"doc\":\"A query statement against one or more data assets.\",\"fields\":[{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The query text\"},{\"name\":\"language\",\"type\":{\"type\":\"enum\",\"name\":\"QueryLanguage\",\"symbols\":[\"SQL\"],\"symbolDocs\":{\"SQL\":\"A SQL Query\"}},\"doc\":\"The language of the Query, e.g. SQL.\",\"default\":\"SQL\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The query text */ - @Deprecated public java.lang.String value; - /** The language of the Query, e.g. SQL. */ - @Deprecated public com.linkedin.pegasus2avro.query.QueryLanguage language; - - /** - * 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 QueryStatement() {} - - /** - * All-args constructor. - */ - public QueryStatement(java.lang.String value, com.linkedin.pegasus2avro.query.QueryLanguage language) { - this.value = value; - this.language = language; - } - - 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 language; - 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: language = (com.linkedin.pegasus2avro.query.QueryLanguage)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'value' field. - * The query text */ - public java.lang.String getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * The query text * @param value the value to set. - */ - public void setValue(java.lang.String value) { - this.value = value; - } - - /** - * Gets the value of the 'language' field. - * The language of the Query, e.g. SQL. */ - public com.linkedin.pegasus2avro.query.QueryLanguage getLanguage() { - return language; - } - - /** - * Sets the value of the 'language' field. - * The language of the Query, e.g. SQL. * @param value the value to set. - */ - public void setLanguage(com.linkedin.pegasus2avro.query.QueryLanguage value) { - this.language = value; - } - - /** Creates a new QueryStatement RecordBuilder */ - public static com.linkedin.pegasus2avro.query.QueryStatement.Builder newBuilder() { - return new com.linkedin.pegasus2avro.query.QueryStatement.Builder(); - } - - /** Creates a new QueryStatement RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.query.QueryStatement.Builder newBuilder(com.linkedin.pegasus2avro.query.QueryStatement.Builder other) { - return new com.linkedin.pegasus2avro.query.QueryStatement.Builder(other); - } - - /** Creates a new QueryStatement RecordBuilder by copying an existing QueryStatement instance */ - public static com.linkedin.pegasus2avro.query.QueryStatement.Builder newBuilder(com.linkedin.pegasus2avro.query.QueryStatement other) { - return new com.linkedin.pegasus2avro.query.QueryStatement.Builder(other); - } - - /** - * RecordBuilder for QueryStatement 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.query.QueryLanguage language; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.query.QueryStatement.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.query.QueryStatement.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.language)) { - this.language = data().deepCopy(fields()[1].schema(), other.language); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing QueryStatement instance */ - private Builder(com.linkedin.pegasus2avro.query.QueryStatement other) { - super(com.linkedin.pegasus2avro.query.QueryStatement.SCHEMA$); - if (isValidValue(fields()[0], other.value)) { - this.value = data().deepCopy(fields()[0].schema(), other.value); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.language)) { - this.language = data().deepCopy(fields()[1].schema(), other.language); - 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.query.QueryStatement.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.query.QueryStatement.Builder clearValue() { - value = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'language' field */ - public com.linkedin.pegasus2avro.query.QueryLanguage getLanguage() { - return language; - } - - /** Sets the value of the 'language' field */ - public com.linkedin.pegasus2avro.query.QueryStatement.Builder setLanguage(com.linkedin.pegasus2avro.query.QueryLanguage value) { - validate(fields()[1], value); - this.language = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'language' field has been set */ - public boolean hasLanguage() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'language' field */ - public com.linkedin.pegasus2avro.query.QueryStatement.Builder clearLanguage() { - language = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public QueryStatement build() { - try { - QueryStatement record = new QueryStatement(); - record.value = fieldSetFlags()[0] ? this.value : (java.lang.String) defaultValue(fields()[0]); - record.language = fieldSetFlags()[1] ? this.language : (com.linkedin.pegasus2avro.query.QueryLanguage) 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/query/QuerySubject.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QuerySubject.java deleted file mode 100644 index a07b84dbe13f9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QuerySubject.java +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.query; -@SuppressWarnings("all") -/** A single subject of a particular query. -In the future, we may evolve this model to include richer details -about the Query Subject in relation to the query. */ -@org.apache.avro.specific.AvroGenerated -public class QuerySubject 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\":\"QuerySubject\",\"namespace\":\"com.linkedin.pegasus2avro.query\",\"doc\":\"A single subject of a particular query.\\nIn the future, we may evolve this model to include richer details\\nabout the Query Subject in relation to the query.\",\"fields\":[{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"An entity which is the subject of a query.\",\"Relationship\":{\"entityTypes\":[\"dataset\",\"schemaField\"],\"name\":\"IsAssociatedWith\"},\"Searchable\":{\"fieldName\":\"entities\",\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** An entity which is the subject of a query. */ - @Deprecated public java.lang.String entity; - - /** - * 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 QuerySubject() {} - - /** - * All-args constructor. - */ - public QuerySubject(java.lang.String entity) { - this.entity = entity; - } - - 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 entity; - 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: entity = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entity' field. - * An entity which is the subject of a query. */ - public java.lang.String getEntity() { - return entity; - } - - /** - * Sets the value of the 'entity' field. - * An entity which is the subject of a query. * @param value the value to set. - */ - public void setEntity(java.lang.String value) { - this.entity = value; - } - - /** Creates a new QuerySubject RecordBuilder */ - public static com.linkedin.pegasus2avro.query.QuerySubject.Builder newBuilder() { - return new com.linkedin.pegasus2avro.query.QuerySubject.Builder(); - } - - /** Creates a new QuerySubject RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.query.QuerySubject.Builder newBuilder(com.linkedin.pegasus2avro.query.QuerySubject.Builder other) { - return new com.linkedin.pegasus2avro.query.QuerySubject.Builder(other); - } - - /** Creates a new QuerySubject RecordBuilder by copying an existing QuerySubject instance */ - public static com.linkedin.pegasus2avro.query.QuerySubject.Builder newBuilder(com.linkedin.pegasus2avro.query.QuerySubject other) { - return new com.linkedin.pegasus2avro.query.QuerySubject.Builder(other); - } - - /** - * RecordBuilder for QuerySubject instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String entity; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.query.QuerySubject.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.query.QuerySubject.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entity)) { - this.entity = data().deepCopy(fields()[0].schema(), other.entity); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing QuerySubject instance */ - private Builder(com.linkedin.pegasus2avro.query.QuerySubject other) { - super(com.linkedin.pegasus2avro.query.QuerySubject.SCHEMA$); - if (isValidValue(fields()[0], other.entity)) { - this.entity = data().deepCopy(fields()[0].schema(), other.entity); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'entity' field */ - public java.lang.String getEntity() { - return entity; - } - - /** Sets the value of the 'entity' field */ - public com.linkedin.pegasus2avro.query.QuerySubject.Builder setEntity(java.lang.String value) { - validate(fields()[0], value); - this.entity = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entity' field has been set */ - public boolean hasEntity() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entity' field */ - public com.linkedin.pegasus2avro.query.QuerySubject.Builder clearEntity() { - entity = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public QuerySubject build() { - try { - QuerySubject record = new QuerySubject(); - record.entity = fieldSetFlags()[0] ? this.entity : (java.lang.String) 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/query/QuerySubjects.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QuerySubjects.java deleted file mode 100644 index 9d7e3e9c24b3c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/query/QuerySubjects.java +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.query; -@SuppressWarnings("all") -/** Information about the subjects of a particular Query, i.e. the assets -being queried. */ -@org.apache.avro.specific.AvroGenerated -public class QuerySubjects 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\":\"QuerySubjects\",\"namespace\":\"com.linkedin.pegasus2avro.query\",\"doc\":\"Information about the subjects of a particular Query, i.e. the assets\\nbeing queried.\",\"fields\":[{\"name\":\"subjects\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"QuerySubject\",\"doc\":\"A single subject of a particular query.\\nIn the future, we may evolve this model to include richer details\\nabout the Query Subject in relation to the query.\",\"fields\":[{\"name\":\"entity\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"An entity which is the subject of a query.\",\"Relationship\":{\"entityTypes\":[\"dataset\",\"schemaField\"],\"name\":\"IsAssociatedWith\"},\"Searchable\":{\"fieldName\":\"entities\",\"fieldType\":\"URN\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}},\"doc\":\"One or more subjects of the query.\\n\\nIn single-asset queries (e.g. table select), this will contain the Table reference\\nand optionally schema field references.\\n\\nIn multi-asset queries (e.g. table joins), this may contain multiple Table references\\nand optionally schema field references.\"}],\"Aspect\":{\"name\":\"querySubjects\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** One or more subjects of the query. - -In single-asset queries (e.g. table select), this will contain the Table reference -and optionally schema field references. - -In multi-asset queries (e.g. table joins), this may contain multiple Table references -and optionally schema field references. */ - @Deprecated public java.util.List subjects; - - /** - * 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 QuerySubjects() {} - - /** - * All-args constructor. - */ - public QuerySubjects(java.util.List subjects) { - this.subjects = subjects; - } - - 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 subjects; - 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: subjects = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'subjects' field. - * One or more subjects of the query. - -In single-asset queries (e.g. table select), this will contain the Table reference -and optionally schema field references. - -In multi-asset queries (e.g. table joins), this may contain multiple Table references -and optionally schema field references. */ - public java.util.List getSubjects() { - return subjects; - } - - /** - * Sets the value of the 'subjects' field. - * One or more subjects of the query. - -In single-asset queries (e.g. table select), this will contain the Table reference -and optionally schema field references. - -In multi-asset queries (e.g. table joins), this may contain multiple Table references -and optionally schema field references. * @param value the value to set. - */ - public void setSubjects(java.util.List value) { - this.subjects = value; - } - - /** Creates a new QuerySubjects RecordBuilder */ - public static com.linkedin.pegasus2avro.query.QuerySubjects.Builder newBuilder() { - return new com.linkedin.pegasus2avro.query.QuerySubjects.Builder(); - } - - /** Creates a new QuerySubjects RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.query.QuerySubjects.Builder newBuilder(com.linkedin.pegasus2avro.query.QuerySubjects.Builder other) { - return new com.linkedin.pegasus2avro.query.QuerySubjects.Builder(other); - } - - /** Creates a new QuerySubjects RecordBuilder by copying an existing QuerySubjects instance */ - public static com.linkedin.pegasus2avro.query.QuerySubjects.Builder newBuilder(com.linkedin.pegasus2avro.query.QuerySubjects other) { - return new com.linkedin.pegasus2avro.query.QuerySubjects.Builder(other); - } - - /** - * RecordBuilder for QuerySubjects instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List subjects; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.query.QuerySubjects.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.query.QuerySubjects.Builder other) { - super(other); - if (isValidValue(fields()[0], other.subjects)) { - this.subjects = data().deepCopy(fields()[0].schema(), other.subjects); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing QuerySubjects instance */ - private Builder(com.linkedin.pegasus2avro.query.QuerySubjects other) { - super(com.linkedin.pegasus2avro.query.QuerySubjects.SCHEMA$); - if (isValidValue(fields()[0], other.subjects)) { - this.subjects = data().deepCopy(fields()[0].schema(), other.subjects); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'subjects' field */ - public java.util.List getSubjects() { - return subjects; - } - - /** Sets the value of the 'subjects' field */ - public com.linkedin.pegasus2avro.query.QuerySubjects.Builder setSubjects(java.util.List value) { - validate(fields()[0], value); - this.subjects = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'subjects' field has been set */ - public boolean hasSubjects() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'subjects' field */ - public com.linkedin.pegasus2avro.query.QuerySubjects.Builder clearSubjects() { - subjects = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public QuerySubjects build() { - try { - QuerySubjects record = new QuerySubjects(); - record.subjects = fieldSetFlags()[0] ? this.subjects : (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/retention/DataHubRetentionConfig.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/retention/DataHubRetentionConfig.java deleted file mode 100644 index 2cac82477d008..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/retention/DataHubRetentionConfig.java +++ /dev/null @@ -1,142 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.retention; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class DataHubRetentionConfig 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\":\"DataHubRetentionConfig\",\"namespace\":\"com.linkedin.pegasus2avro.retention\",\"fields\":[{\"name\":\"retention\",\"type\":{\"type\":\"record\",\"name\":\"Retention\",\"doc\":\"Base class that encapsulates different retention policies.\\nOnly one of the fields should be set\",\"fields\":[{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionBasedRetention\",\"doc\":\"Keep max N latest records\",\"fields\":[{\"name\":\"maxVersions\",\"type\":\"int\"}]}],\"default\":null},{\"name\":\"time\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeBasedRetention\",\"doc\":\"Keep records that are less than X seconds old\",\"fields\":[{\"name\":\"maxAgeInSeconds\",\"type\":\"int\"}]}],\"default\":null}]}}],\"Aspect\":{\"name\":\"dataHubRetentionConfig\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public com.linkedin.pegasus2avro.retention.Retention retention; - - /** - * 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 DataHubRetentionConfig() {} - - /** - * All-args constructor. - */ - public DataHubRetentionConfig(com.linkedin.pegasus2avro.retention.Retention retention) { - this.retention = retention; - } - - 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 retention; - 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: retention = (com.linkedin.pegasus2avro.retention.Retention)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'retention' field. - */ - public com.linkedin.pegasus2avro.retention.Retention getRetention() { - return retention; - } - - /** - * Sets the value of the 'retention' field. - * @param value the value to set. - */ - public void setRetention(com.linkedin.pegasus2avro.retention.Retention value) { - this.retention = value; - } - - /** Creates a new DataHubRetentionConfig RecordBuilder */ - public static com.linkedin.pegasus2avro.retention.DataHubRetentionConfig.Builder newBuilder() { - return new com.linkedin.pegasus2avro.retention.DataHubRetentionConfig.Builder(); - } - - /** Creates a new DataHubRetentionConfig RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.retention.DataHubRetentionConfig.Builder newBuilder(com.linkedin.pegasus2avro.retention.DataHubRetentionConfig.Builder other) { - return new com.linkedin.pegasus2avro.retention.DataHubRetentionConfig.Builder(other); - } - - /** Creates a new DataHubRetentionConfig RecordBuilder by copying an existing DataHubRetentionConfig instance */ - public static com.linkedin.pegasus2avro.retention.DataHubRetentionConfig.Builder newBuilder(com.linkedin.pegasus2avro.retention.DataHubRetentionConfig other) { - return new com.linkedin.pegasus2avro.retention.DataHubRetentionConfig.Builder(other); - } - - /** - * RecordBuilder for DataHubRetentionConfig instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.retention.Retention retention; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.retention.DataHubRetentionConfig.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.retention.DataHubRetentionConfig.Builder other) { - super(other); - if (isValidValue(fields()[0], other.retention)) { - this.retention = data().deepCopy(fields()[0].schema(), other.retention); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DataHubRetentionConfig instance */ - private Builder(com.linkedin.pegasus2avro.retention.DataHubRetentionConfig other) { - super(com.linkedin.pegasus2avro.retention.DataHubRetentionConfig.SCHEMA$); - if (isValidValue(fields()[0], other.retention)) { - this.retention = data().deepCopy(fields()[0].schema(), other.retention); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'retention' field */ - public com.linkedin.pegasus2avro.retention.Retention getRetention() { - return retention; - } - - /** Sets the value of the 'retention' field */ - public com.linkedin.pegasus2avro.retention.DataHubRetentionConfig.Builder setRetention(com.linkedin.pegasus2avro.retention.Retention value) { - validate(fields()[0], value); - this.retention = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'retention' field has been set */ - public boolean hasRetention() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'retention' field */ - public com.linkedin.pegasus2avro.retention.DataHubRetentionConfig.Builder clearRetention() { - retention = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DataHubRetentionConfig build() { - try { - DataHubRetentionConfig record = new DataHubRetentionConfig(); - record.retention = fieldSetFlags()[0] ? this.retention : (com.linkedin.pegasus2avro.retention.Retention) 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/retention/Retention.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/retention/Retention.java deleted file mode 100644 index 318daef10222a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/retention/Retention.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.retention; -@SuppressWarnings("all") -/** Base class that encapsulates different retention policies. -Only one of the fields should be set */ -@org.apache.avro.specific.AvroGenerated -public class Retention 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\":\"Retention\",\"namespace\":\"com.linkedin.pegasus2avro.retention\",\"doc\":\"Base class that encapsulates different retention policies.\\nOnly one of the fields should be set\",\"fields\":[{\"name\":\"version\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"VersionBasedRetention\",\"doc\":\"Keep max N latest records\",\"fields\":[{\"name\":\"maxVersions\",\"type\":\"int\"}]}],\"default\":null},{\"name\":\"time\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeBasedRetention\",\"doc\":\"Keep records that are less than X seconds old\",\"fields\":[{\"name\":\"maxAgeInSeconds\",\"type\":\"int\"}]}],\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public com.linkedin.pegasus2avro.retention.VersionBasedRetention version; - @Deprecated public com.linkedin.pegasus2avro.retention.TimeBasedRetention time; - - /** - * 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 Retention() {} - - /** - * All-args constructor. - */ - public Retention(com.linkedin.pegasus2avro.retention.VersionBasedRetention version, com.linkedin.pegasus2avro.retention.TimeBasedRetention time) { - this.version = version; - this.time = time; - } - - 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 version; - case 1: return time; - 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: version = (com.linkedin.pegasus2avro.retention.VersionBasedRetention)value$; break; - case 1: time = (com.linkedin.pegasus2avro.retention.TimeBasedRetention)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'version' field. - */ - public com.linkedin.pegasus2avro.retention.VersionBasedRetention getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * @param value the value to set. - */ - public void setVersion(com.linkedin.pegasus2avro.retention.VersionBasedRetention value) { - this.version = value; - } - - /** - * Gets the value of the 'time' field. - */ - public com.linkedin.pegasus2avro.retention.TimeBasedRetention getTime() { - return time; - } - - /** - * Sets the value of the 'time' field. - * @param value the value to set. - */ - public void setTime(com.linkedin.pegasus2avro.retention.TimeBasedRetention value) { - this.time = value; - } - - /** Creates a new Retention RecordBuilder */ - public static com.linkedin.pegasus2avro.retention.Retention.Builder newBuilder() { - return new com.linkedin.pegasus2avro.retention.Retention.Builder(); - } - - /** Creates a new Retention RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.retention.Retention.Builder newBuilder(com.linkedin.pegasus2avro.retention.Retention.Builder other) { - return new com.linkedin.pegasus2avro.retention.Retention.Builder(other); - } - - /** Creates a new Retention RecordBuilder by copying an existing Retention instance */ - public static com.linkedin.pegasus2avro.retention.Retention.Builder newBuilder(com.linkedin.pegasus2avro.retention.Retention other) { - return new com.linkedin.pegasus2avro.retention.Retention.Builder(other); - } - - /** - * RecordBuilder for Retention instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.retention.VersionBasedRetention version; - private com.linkedin.pegasus2avro.retention.TimeBasedRetention time; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.retention.Retention.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.retention.Retention.Builder other) { - super(other); - if (isValidValue(fields()[0], other.version)) { - this.version = data().deepCopy(fields()[0].schema(), other.version); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.time)) { - this.time = data().deepCopy(fields()[1].schema(), other.time); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing Retention instance */ - private Builder(com.linkedin.pegasus2avro.retention.Retention other) { - super(com.linkedin.pegasus2avro.retention.Retention.SCHEMA$); - if (isValidValue(fields()[0], other.version)) { - this.version = data().deepCopy(fields()[0].schema(), other.version); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.time)) { - this.time = data().deepCopy(fields()[1].schema(), other.time); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'version' field */ - public com.linkedin.pegasus2avro.retention.VersionBasedRetention getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.retention.Retention.Builder setVersion(com.linkedin.pegasus2avro.retention.VersionBasedRetention value) { - validate(fields()[0], value); - this.version = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.retention.Retention.Builder clearVersion() { - version = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'time' field */ - public com.linkedin.pegasus2avro.retention.TimeBasedRetention getTime() { - return time; - } - - /** Sets the value of the 'time' field */ - public com.linkedin.pegasus2avro.retention.Retention.Builder setTime(com.linkedin.pegasus2avro.retention.TimeBasedRetention value) { - validate(fields()[1], value); - this.time = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'time' field has been set */ - public boolean hasTime() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'time' field */ - public com.linkedin.pegasus2avro.retention.Retention.Builder clearTime() { - time = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public Retention build() { - try { - Retention record = new Retention(); - record.version = fieldSetFlags()[0] ? this.version : (com.linkedin.pegasus2avro.retention.VersionBasedRetention) defaultValue(fields()[0]); - record.time = fieldSetFlags()[1] ? this.time : (com.linkedin.pegasus2avro.retention.TimeBasedRetention) 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/retention/TimeBasedRetention.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/retention/TimeBasedRetention.java deleted file mode 100644 index b7a9daa4ca33a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/retention/TimeBasedRetention.java +++ /dev/null @@ -1,142 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.retention; -@SuppressWarnings("all") -/** Keep records that are less than X seconds old */ -@org.apache.avro.specific.AvroGenerated -public class TimeBasedRetention 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\":\"TimeBasedRetention\",\"namespace\":\"com.linkedin.pegasus2avro.retention\",\"doc\":\"Keep records that are less than X seconds old\",\"fields\":[{\"name\":\"maxAgeInSeconds\",\"type\":\"int\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public int maxAgeInSeconds; - - /** - * 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 TimeBasedRetention() {} - - /** - * All-args constructor. - */ - public TimeBasedRetention(java.lang.Integer maxAgeInSeconds) { - this.maxAgeInSeconds = maxAgeInSeconds; - } - - 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 maxAgeInSeconds; - 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: maxAgeInSeconds = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'maxAgeInSeconds' field. - */ - public java.lang.Integer getMaxAgeInSeconds() { - return maxAgeInSeconds; - } - - /** - * Sets the value of the 'maxAgeInSeconds' field. - * @param value the value to set. - */ - public void setMaxAgeInSeconds(java.lang.Integer value) { - this.maxAgeInSeconds = value; - } - - /** Creates a new TimeBasedRetention RecordBuilder */ - public static com.linkedin.pegasus2avro.retention.TimeBasedRetention.Builder newBuilder() { - return new com.linkedin.pegasus2avro.retention.TimeBasedRetention.Builder(); - } - - /** Creates a new TimeBasedRetention RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.retention.TimeBasedRetention.Builder newBuilder(com.linkedin.pegasus2avro.retention.TimeBasedRetention.Builder other) { - return new com.linkedin.pegasus2avro.retention.TimeBasedRetention.Builder(other); - } - - /** Creates a new TimeBasedRetention RecordBuilder by copying an existing TimeBasedRetention instance */ - public static com.linkedin.pegasus2avro.retention.TimeBasedRetention.Builder newBuilder(com.linkedin.pegasus2avro.retention.TimeBasedRetention other) { - return new com.linkedin.pegasus2avro.retention.TimeBasedRetention.Builder(other); - } - - /** - * RecordBuilder for TimeBasedRetention instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private int maxAgeInSeconds; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.retention.TimeBasedRetention.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.retention.TimeBasedRetention.Builder other) { - super(other); - if (isValidValue(fields()[0], other.maxAgeInSeconds)) { - this.maxAgeInSeconds = data().deepCopy(fields()[0].schema(), other.maxAgeInSeconds); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing TimeBasedRetention instance */ - private Builder(com.linkedin.pegasus2avro.retention.TimeBasedRetention other) { - super(com.linkedin.pegasus2avro.retention.TimeBasedRetention.SCHEMA$); - if (isValidValue(fields()[0], other.maxAgeInSeconds)) { - this.maxAgeInSeconds = data().deepCopy(fields()[0].schema(), other.maxAgeInSeconds); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'maxAgeInSeconds' field */ - public java.lang.Integer getMaxAgeInSeconds() { - return maxAgeInSeconds; - } - - /** Sets the value of the 'maxAgeInSeconds' field */ - public com.linkedin.pegasus2avro.retention.TimeBasedRetention.Builder setMaxAgeInSeconds(int value) { - validate(fields()[0], value); - this.maxAgeInSeconds = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'maxAgeInSeconds' field has been set */ - public boolean hasMaxAgeInSeconds() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'maxAgeInSeconds' field */ - public com.linkedin.pegasus2avro.retention.TimeBasedRetention.Builder clearMaxAgeInSeconds() { - fieldSetFlags()[0] = false; - return this; - } - - @Override - public TimeBasedRetention build() { - try { - TimeBasedRetention record = new TimeBasedRetention(); - record.maxAgeInSeconds = fieldSetFlags()[0] ? this.maxAgeInSeconds : (java.lang.Integer) 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/retention/VersionBasedRetention.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/retention/VersionBasedRetention.java deleted file mode 100644 index d7a5fe8e99360..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/retention/VersionBasedRetention.java +++ /dev/null @@ -1,142 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.retention; -@SuppressWarnings("all") -/** Keep max N latest records */ -@org.apache.avro.specific.AvroGenerated -public class VersionBasedRetention 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\":\"VersionBasedRetention\",\"namespace\":\"com.linkedin.pegasus2avro.retention\",\"doc\":\"Keep max N latest records\",\"fields\":[{\"name\":\"maxVersions\",\"type\":\"int\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public int maxVersions; - - /** - * 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 VersionBasedRetention() {} - - /** - * All-args constructor. - */ - public VersionBasedRetention(java.lang.Integer maxVersions) { - this.maxVersions = maxVersions; - } - - 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 maxVersions; - 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: maxVersions = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'maxVersions' field. - */ - public java.lang.Integer getMaxVersions() { - return maxVersions; - } - - /** - * Sets the value of the 'maxVersions' field. - * @param value the value to set. - */ - public void setMaxVersions(java.lang.Integer value) { - this.maxVersions = value; - } - - /** Creates a new VersionBasedRetention RecordBuilder */ - public static com.linkedin.pegasus2avro.retention.VersionBasedRetention.Builder newBuilder() { - return new com.linkedin.pegasus2avro.retention.VersionBasedRetention.Builder(); - } - - /** Creates a new VersionBasedRetention RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.retention.VersionBasedRetention.Builder newBuilder(com.linkedin.pegasus2avro.retention.VersionBasedRetention.Builder other) { - return new com.linkedin.pegasus2avro.retention.VersionBasedRetention.Builder(other); - } - - /** Creates a new VersionBasedRetention RecordBuilder by copying an existing VersionBasedRetention instance */ - public static com.linkedin.pegasus2avro.retention.VersionBasedRetention.Builder newBuilder(com.linkedin.pegasus2avro.retention.VersionBasedRetention other) { - return new com.linkedin.pegasus2avro.retention.VersionBasedRetention.Builder(other); - } - - /** - * RecordBuilder for VersionBasedRetention instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private int maxVersions; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.retention.VersionBasedRetention.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.retention.VersionBasedRetention.Builder other) { - super(other); - if (isValidValue(fields()[0], other.maxVersions)) { - this.maxVersions = data().deepCopy(fields()[0].schema(), other.maxVersions); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing VersionBasedRetention instance */ - private Builder(com.linkedin.pegasus2avro.retention.VersionBasedRetention other) { - super(com.linkedin.pegasus2avro.retention.VersionBasedRetention.SCHEMA$); - if (isValidValue(fields()[0], other.maxVersions)) { - this.maxVersions = data().deepCopy(fields()[0].schema(), other.maxVersions); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'maxVersions' field */ - public java.lang.Integer getMaxVersions() { - return maxVersions; - } - - /** Sets the value of the 'maxVersions' field */ - public com.linkedin.pegasus2avro.retention.VersionBasedRetention.Builder setMaxVersions(int value) { - validate(fields()[0], value); - this.maxVersions = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'maxVersions' field has been set */ - public boolean hasMaxVersions() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'maxVersions' field */ - public com.linkedin.pegasus2avro.retention.VersionBasedRetention.Builder clearMaxVersions() { - fieldSetFlags()[0] = false; - return this; - } - - @Override - public VersionBasedRetention build() { - try { - VersionBasedRetention record = new VersionBasedRetention(); - record.maxVersions = fieldSetFlags()[0] ? this.maxVersions : (java.lang.Integer) 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/schema/ArrayType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/ArrayType.java deleted file mode 100644 index 46bd33334824e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/ArrayType.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Array field type. */ -@org.apache.avro.specific.AvroGenerated -public class ArrayType 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\":\"ArrayType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Array field type.\",\"fields\":[{\"name\":\"nestedType\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types this array holds.\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** List of types this array holds. */ - @Deprecated public java.util.List nestedType; - - /** - * 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 ArrayType() {} - - /** - * All-args constructor. - */ - public ArrayType(java.util.List nestedType) { - this.nestedType = nestedType; - } - - 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 nestedType; - 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: nestedType = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'nestedType' field. - * List of types this array holds. */ - public java.util.List getNestedType() { - return nestedType; - } - - /** - * Sets the value of the 'nestedType' field. - * List of types this array holds. * @param value the value to set. - */ - public void setNestedType(java.util.List value) { - this.nestedType = value; - } - - /** Creates a new ArrayType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.ArrayType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.ArrayType.Builder(); - } - - /** Creates a new ArrayType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.ArrayType.Builder newBuilder(com.linkedin.pegasus2avro.schema.ArrayType.Builder other) { - return new com.linkedin.pegasus2avro.schema.ArrayType.Builder(other); - } - - /** Creates a new ArrayType RecordBuilder by copying an existing ArrayType instance */ - public static com.linkedin.pegasus2avro.schema.ArrayType.Builder newBuilder(com.linkedin.pegasus2avro.schema.ArrayType other) { - return new com.linkedin.pegasus2avro.schema.ArrayType.Builder(other); - } - - /** - * RecordBuilder for ArrayType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List nestedType; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.ArrayType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.ArrayType.Builder other) { - super(other); - if (isValidValue(fields()[0], other.nestedType)) { - this.nestedType = data().deepCopy(fields()[0].schema(), other.nestedType); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing ArrayType instance */ - private Builder(com.linkedin.pegasus2avro.schema.ArrayType other) { - super(com.linkedin.pegasus2avro.schema.ArrayType.SCHEMA$); - if (isValidValue(fields()[0], other.nestedType)) { - this.nestedType = data().deepCopy(fields()[0].schema(), other.nestedType); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'nestedType' field */ - public java.util.List getNestedType() { - return nestedType; - } - - /** Sets the value of the 'nestedType' field */ - public com.linkedin.pegasus2avro.schema.ArrayType.Builder setNestedType(java.util.List value) { - validate(fields()[0], value); - this.nestedType = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'nestedType' field has been set */ - public boolean hasNestedType() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'nestedType' field */ - public com.linkedin.pegasus2avro.schema.ArrayType.Builder clearNestedType() { - nestedType = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public ArrayType build() { - try { - ArrayType record = new ArrayType(); - record.nestedType = fieldSetFlags()[0] ? this.nestedType : (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/schema/AvroSchema.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/AvroSchema.java deleted file mode 100644 index 34e82abc95026..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/AvroSchema.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema text for avro schema. */ -@org.apache.avro.specific.AvroGenerated -public class AvroSchema 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\":\"AvroSchema\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema text for avro schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native Avro schema text.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The native Avro schema text. */ - @Deprecated public java.lang.String schema; - - /** - * 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 AvroSchema() {} - - /** - * All-args constructor. - */ - public AvroSchema(java.lang.String schema) { - this.schema = schema; - } - - 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 schema; - 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: schema = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'schema' field. - * The native Avro schema text. */ - public java.lang.String getSchema$() { - return schema; - } - - /** - * Sets the value of the 'schema' field. - * The native Avro schema text. * @param value the value to set. - */ - public void setSchema$(java.lang.String value) { - this.schema = value; - } - - /** Creates a new AvroSchema RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.AvroSchema.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.AvroSchema.Builder(); - } - - /** Creates a new AvroSchema RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.AvroSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.AvroSchema.Builder other) { - return new com.linkedin.pegasus2avro.schema.AvroSchema.Builder(other); - } - - /** Creates a new AvroSchema RecordBuilder by copying an existing AvroSchema instance */ - public static com.linkedin.pegasus2avro.schema.AvroSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.AvroSchema other) { - return new com.linkedin.pegasus2avro.schema.AvroSchema.Builder(other); - } - - /** - * RecordBuilder for AvroSchema instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String schema; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.AvroSchema.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.AvroSchema.Builder other) { - super(other); - if (isValidValue(fields()[0], other.schema)) { - this.schema = data().deepCopy(fields()[0].schema(), other.schema); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing AvroSchema instance */ - private Builder(com.linkedin.pegasus2avro.schema.AvroSchema other) { - super(com.linkedin.pegasus2avro.schema.AvroSchema.SCHEMA$); - if (isValidValue(fields()[0], other.schema)) { - this.schema = data().deepCopy(fields()[0].schema(), other.schema); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'schema' field */ - public java.lang.String getSchema$() { - return schema; - } - - /** Sets the value of the 'schema' field */ - public com.linkedin.pegasus2avro.schema.AvroSchema.Builder setSchema$(java.lang.String value) { - validate(fields()[0], value); - this.schema = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'schema' field has been set */ - public boolean hasSchema$() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'schema' field */ - public com.linkedin.pegasus2avro.schema.AvroSchema.Builder clearSchema$() { - schema = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public AvroSchema build() { - try { - AvroSchema record = new AvroSchema(); - record.schema = fieldSetFlags()[0] ? this.schema : (java.lang.String) 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/schema/BinaryJsonSchema.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/BinaryJsonSchema.java deleted file mode 100644 index 9513b40b4cf0a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/BinaryJsonSchema.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema text of binary JSON schema. */ -@org.apache.avro.specific.AvroGenerated -public class BinaryJsonSchema 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\":\"BinaryJsonSchema\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema text of binary JSON schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema text for binary JSON file format.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The native schema text for binary JSON file format. */ - @Deprecated public java.lang.String schema; - - /** - * 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 BinaryJsonSchema() {} - - /** - * All-args constructor. - */ - public BinaryJsonSchema(java.lang.String schema) { - this.schema = schema; - } - - 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 schema; - 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: schema = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'schema' field. - * The native schema text for binary JSON file format. */ - public java.lang.String getSchema$() { - return schema; - } - - /** - * Sets the value of the 'schema' field. - * The native schema text for binary JSON file format. * @param value the value to set. - */ - public void setSchema$(java.lang.String value) { - this.schema = value; - } - - /** Creates a new BinaryJsonSchema RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.BinaryJsonSchema.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.BinaryJsonSchema.Builder(); - } - - /** Creates a new BinaryJsonSchema RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.BinaryJsonSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.BinaryJsonSchema.Builder other) { - return new com.linkedin.pegasus2avro.schema.BinaryJsonSchema.Builder(other); - } - - /** Creates a new BinaryJsonSchema RecordBuilder by copying an existing BinaryJsonSchema instance */ - public static com.linkedin.pegasus2avro.schema.BinaryJsonSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.BinaryJsonSchema other) { - return new com.linkedin.pegasus2avro.schema.BinaryJsonSchema.Builder(other); - } - - /** - * RecordBuilder for BinaryJsonSchema instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String schema; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.BinaryJsonSchema.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.BinaryJsonSchema.Builder other) { - super(other); - if (isValidValue(fields()[0], other.schema)) { - this.schema = data().deepCopy(fields()[0].schema(), other.schema); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing BinaryJsonSchema instance */ - private Builder(com.linkedin.pegasus2avro.schema.BinaryJsonSchema other) { - super(com.linkedin.pegasus2avro.schema.BinaryJsonSchema.SCHEMA$); - if (isValidValue(fields()[0], other.schema)) { - this.schema = data().deepCopy(fields()[0].schema(), other.schema); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'schema' field */ - public java.lang.String getSchema$() { - return schema; - } - - /** Sets the value of the 'schema' field */ - public com.linkedin.pegasus2avro.schema.BinaryJsonSchema.Builder setSchema$(java.lang.String value) { - validate(fields()[0], value); - this.schema = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'schema' field has been set */ - public boolean hasSchema$() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'schema' field */ - public com.linkedin.pegasus2avro.schema.BinaryJsonSchema.Builder clearSchema$() { - schema = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public BinaryJsonSchema build() { - try { - BinaryJsonSchema record = new BinaryJsonSchema(); - record.schema = fieldSetFlags()[0] ? this.schema : (java.lang.String) 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/schema/BooleanType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/BooleanType.java deleted file mode 100644 index 6b0891ee28c2e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/BooleanType.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Boolean field type. */ -@org.apache.avro.specific.AvroGenerated -public class BooleanType 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\":\"BooleanType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Boolean field type.\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new BooleanType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.BooleanType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.BooleanType.Builder(); - } - - /** Creates a new BooleanType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.BooleanType.Builder newBuilder(com.linkedin.pegasus2avro.schema.BooleanType.Builder other) { - return new com.linkedin.pegasus2avro.schema.BooleanType.Builder(other); - } - - /** Creates a new BooleanType RecordBuilder by copying an existing BooleanType instance */ - public static com.linkedin.pegasus2avro.schema.BooleanType.Builder newBuilder(com.linkedin.pegasus2avro.schema.BooleanType other) { - return new com.linkedin.pegasus2avro.schema.BooleanType.Builder(other); - } - - /** - * RecordBuilder for BooleanType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.BooleanType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.BooleanType.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing BooleanType instance */ - private Builder(com.linkedin.pegasus2avro.schema.BooleanType other) { - super(com.linkedin.pegasus2avro.schema.BooleanType.SCHEMA$); - } - - @Override - public BooleanType build() { - try { - BooleanType record = new BooleanType(); - 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/schema/BytesType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/BytesType.java deleted file mode 100644 index 371575de87626..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/BytesType.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Bytes field type. */ -@org.apache.avro.specific.AvroGenerated -public class BytesType 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\":\"BytesType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Bytes field type.\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new BytesType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.BytesType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.BytesType.Builder(); - } - - /** Creates a new BytesType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.BytesType.Builder newBuilder(com.linkedin.pegasus2avro.schema.BytesType.Builder other) { - return new com.linkedin.pegasus2avro.schema.BytesType.Builder(other); - } - - /** Creates a new BytesType RecordBuilder by copying an existing BytesType instance */ - public static com.linkedin.pegasus2avro.schema.BytesType.Builder newBuilder(com.linkedin.pegasus2avro.schema.BytesType other) { - return new com.linkedin.pegasus2avro.schema.BytesType.Builder(other); - } - - /** - * RecordBuilder for BytesType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.BytesType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.BytesType.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing BytesType instance */ - private Builder(com.linkedin.pegasus2avro.schema.BytesType other) { - super(com.linkedin.pegasus2avro.schema.BytesType.SCHEMA$); - } - - @Override - public BytesType build() { - try { - BytesType record = new BytesType(); - 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/schema/DDL.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/DDL.java deleted file mode 100644 index f19a683405968..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/DDL.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema text for the data definition language that describes an Relational DBMS table. */ -@org.apache.avro.specific.AvroGenerated -public class DDL 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\":\"DDL\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema text for the data definition language that describes an Relational DBMS table.\",\"fields\":[{\"name\":\"tableDDL\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native SQL DDL that describe an Relational DBMS table.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The native SQL DDL that describe an Relational DBMS table. */ - @Deprecated public java.lang.String tableDDL; - - /** - * 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 DDL() {} - - /** - * All-args constructor. - */ - public DDL(java.lang.String tableDDL) { - this.tableDDL = tableDDL; - } - - 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 tableDDL; - 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: tableDDL = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'tableDDL' field. - * The native SQL DDL that describe an Relational DBMS table. */ - public java.lang.String getTableDDL() { - return tableDDL; - } - - /** - * Sets the value of the 'tableDDL' field. - * The native SQL DDL that describe an Relational DBMS table. * @param value the value to set. - */ - public void setTableDDL(java.lang.String value) { - this.tableDDL = value; - } - - /** Creates a new DDL RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.DDL.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.DDL.Builder(); - } - - /** Creates a new DDL RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.DDL.Builder newBuilder(com.linkedin.pegasus2avro.schema.DDL.Builder other) { - return new com.linkedin.pegasus2avro.schema.DDL.Builder(other); - } - - /** Creates a new DDL RecordBuilder by copying an existing DDL instance */ - public static com.linkedin.pegasus2avro.schema.DDL.Builder newBuilder(com.linkedin.pegasus2avro.schema.DDL other) { - return new com.linkedin.pegasus2avro.schema.DDL.Builder(other); - } - - /** - * RecordBuilder for DDL instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String tableDDL; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.DDL.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.DDL.Builder other) { - super(other); - if (isValidValue(fields()[0], other.tableDDL)) { - this.tableDDL = data().deepCopy(fields()[0].schema(), other.tableDDL); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DDL instance */ - private Builder(com.linkedin.pegasus2avro.schema.DDL other) { - super(com.linkedin.pegasus2avro.schema.DDL.SCHEMA$); - if (isValidValue(fields()[0], other.tableDDL)) { - this.tableDDL = data().deepCopy(fields()[0].schema(), other.tableDDL); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'tableDDL' field */ - public java.lang.String getTableDDL() { - return tableDDL; - } - - /** Sets the value of the 'tableDDL' field */ - public com.linkedin.pegasus2avro.schema.DDL.Builder setTableDDL(java.lang.String value) { - validate(fields()[0], value); - this.tableDDL = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'tableDDL' field has been set */ - public boolean hasTableDDL() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'tableDDL' field */ - public com.linkedin.pegasus2avro.schema.DDL.Builder clearTableDDL() { - tableDDL = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DDL build() { - try { - DDL record = new DDL(); - record.tableDDL = fieldSetFlags()[0] ? this.tableDDL : (java.lang.String) 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/schema/DatasetFieldForeignKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/DatasetFieldForeignKey.java deleted file mode 100644 index ae63107e72869..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/DatasetFieldForeignKey.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** For non-urn based foregin keys. */ -@org.apache.avro.specific.AvroGenerated -public class DatasetFieldForeignKey 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\":\"DatasetFieldForeignKey\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"For non-urn based foregin keys.\",\"fields\":[{\"name\":\"parentDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"dataset that stores the resource.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"currentFieldPaths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset.\"},{\"name\":\"parentField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"SchemaField@fieldPath that uniquely identify field in parent dataset that this field references.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** dataset that stores the resource. */ - @Deprecated public java.lang.String parentDataset; - /** List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset. */ - @Deprecated public java.util.List currentFieldPaths; - /** SchemaField@fieldPath that uniquely identify field in parent dataset that this field references. */ - @Deprecated public java.lang.String parentField; - - /** - * 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 DatasetFieldForeignKey() {} - - /** - * All-args constructor. - */ - public DatasetFieldForeignKey(java.lang.String parentDataset, java.util.List currentFieldPaths, java.lang.String parentField) { - this.parentDataset = parentDataset; - this.currentFieldPaths = currentFieldPaths; - this.parentField = parentField; - } - - 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 parentDataset; - case 1: return currentFieldPaths; - case 2: return parentField; - 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: parentDataset = (java.lang.String)value$; break; - case 1: currentFieldPaths = (java.util.List)value$; break; - case 2: parentField = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'parentDataset' field. - * dataset that stores the resource. */ - public java.lang.String getParentDataset() { - return parentDataset; - } - - /** - * Sets the value of the 'parentDataset' field. - * dataset that stores the resource. * @param value the value to set. - */ - public void setParentDataset(java.lang.String value) { - this.parentDataset = value; - } - - /** - * Gets the value of the 'currentFieldPaths' field. - * List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset. */ - public java.util.List getCurrentFieldPaths() { - return currentFieldPaths; - } - - /** - * Sets the value of the 'currentFieldPaths' field. - * List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset. * @param value the value to set. - */ - public void setCurrentFieldPaths(java.util.List value) { - this.currentFieldPaths = value; - } - - /** - * Gets the value of the 'parentField' field. - * SchemaField@fieldPath that uniquely identify field in parent dataset that this field references. */ - public java.lang.String getParentField() { - return parentField; - } - - /** - * Sets the value of the 'parentField' field. - * SchemaField@fieldPath that uniquely identify field in parent dataset that this field references. * @param value the value to set. - */ - public void setParentField(java.lang.String value) { - this.parentField = value; - } - - /** Creates a new DatasetFieldForeignKey RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder(); - } - - /** Creates a new DatasetFieldForeignKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder newBuilder(com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder other) { - return new com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder(other); - } - - /** Creates a new DatasetFieldForeignKey RecordBuilder by copying an existing DatasetFieldForeignKey instance */ - public static com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder newBuilder(com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey other) { - return new com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder(other); - } - - /** - * RecordBuilder for DatasetFieldForeignKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String parentDataset; - private java.util.List currentFieldPaths; - private java.lang.String parentField; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.parentDataset)) { - this.parentDataset = data().deepCopy(fields()[0].schema(), other.parentDataset); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.currentFieldPaths)) { - this.currentFieldPaths = data().deepCopy(fields()[1].schema(), other.currentFieldPaths); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.parentField)) { - this.parentField = data().deepCopy(fields()[2].schema(), other.parentField); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing DatasetFieldForeignKey instance */ - private Builder(com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey other) { - super(com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.SCHEMA$); - if (isValidValue(fields()[0], other.parentDataset)) { - this.parentDataset = data().deepCopy(fields()[0].schema(), other.parentDataset); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.currentFieldPaths)) { - this.currentFieldPaths = data().deepCopy(fields()[1].schema(), other.currentFieldPaths); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.parentField)) { - this.parentField = data().deepCopy(fields()[2].schema(), other.parentField); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'parentDataset' field */ - public java.lang.String getParentDataset() { - return parentDataset; - } - - /** Sets the value of the 'parentDataset' field */ - public com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder setParentDataset(java.lang.String value) { - validate(fields()[0], value); - this.parentDataset = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'parentDataset' field has been set */ - public boolean hasParentDataset() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'parentDataset' field */ - public com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder clearParentDataset() { - parentDataset = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'currentFieldPaths' field */ - public java.util.List getCurrentFieldPaths() { - return currentFieldPaths; - } - - /** Sets the value of the 'currentFieldPaths' field */ - public com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder setCurrentFieldPaths(java.util.List value) { - validate(fields()[1], value); - this.currentFieldPaths = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'currentFieldPaths' field has been set */ - public boolean hasCurrentFieldPaths() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'currentFieldPaths' field */ - public com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder clearCurrentFieldPaths() { - currentFieldPaths = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'parentField' field */ - public java.lang.String getParentField() { - return parentField; - } - - /** Sets the value of the 'parentField' field */ - public com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder setParentField(java.lang.String value) { - validate(fields()[2], value); - this.parentField = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'parentField' field has been set */ - public boolean hasParentField() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'parentField' field */ - public com.linkedin.pegasus2avro.schema.DatasetFieldForeignKey.Builder clearParentField() { - parentField = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public DatasetFieldForeignKey build() { - try { - DatasetFieldForeignKey record = new DatasetFieldForeignKey(); - record.parentDataset = fieldSetFlags()[0] ? this.parentDataset : (java.lang.String) defaultValue(fields()[0]); - record.currentFieldPaths = fieldSetFlags()[1] ? this.currentFieldPaths : (java.util.List) defaultValue(fields()[1]); - record.parentField = fieldSetFlags()[2] ? this.parentField : (java.lang.String) 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/schema/DateType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/DateType.java deleted file mode 100644 index 1c0841ff24149..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/DateType.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Date field type. */ -@org.apache.avro.specific.AvroGenerated -public class DateType 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\":\"DateType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Date field type.\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new DateType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.DateType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.DateType.Builder(); - } - - /** Creates a new DateType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.DateType.Builder newBuilder(com.linkedin.pegasus2avro.schema.DateType.Builder other) { - return new com.linkedin.pegasus2avro.schema.DateType.Builder(other); - } - - /** Creates a new DateType RecordBuilder by copying an existing DateType instance */ - public static com.linkedin.pegasus2avro.schema.DateType.Builder newBuilder(com.linkedin.pegasus2avro.schema.DateType other) { - return new com.linkedin.pegasus2avro.schema.DateType.Builder(other); - } - - /** - * RecordBuilder for DateType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.DateType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.DateType.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing DateType instance */ - private Builder(com.linkedin.pegasus2avro.schema.DateType other) { - super(com.linkedin.pegasus2avro.schema.DateType.SCHEMA$); - } - - @Override - public DateType build() { - try { - DateType record = new DateType(); - 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/schema/EditableSchemaFieldInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/EditableSchemaFieldInfo.java deleted file mode 100644 index 3f61478053790..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/EditableSchemaFieldInfo.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** SchemaField to describe metadata related to dataset schema. */ -@org.apache.avro.specific.AvroGenerated -public class EditableSchemaFieldInfo 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\":\"EditableSchemaFieldInfo\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"FieldPath uniquely identifying the SchemaField this metadata is associated with\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"editedFieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"globalTags\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}}],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"EditableSchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"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 related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}}],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"EditableSchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldGlossaryTerms\",\"fieldType\":\"URN\"}}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** FieldPath uniquely identifying the SchemaField this metadata is associated with */ - @Deprecated public java.lang.String fieldPath; - /** Description */ - @Deprecated public java.lang.String description; - /** Tags associated with the field */ - @Deprecated public com.linkedin.pegasus2avro.common.GlobalTags globalTags; - /** Glossary terms associated with the field */ - @Deprecated public com.linkedin.pegasus2avro.common.GlossaryTerms glossaryTerms; - - /** - * 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 EditableSchemaFieldInfo() {} - - /** - * All-args constructor. - */ - public EditableSchemaFieldInfo(java.lang.String fieldPath, java.lang.String description, com.linkedin.pegasus2avro.common.GlobalTags globalTags, com.linkedin.pegasus2avro.common.GlossaryTerms glossaryTerms) { - this.fieldPath = fieldPath; - this.description = description; - this.globalTags = globalTags; - this.glossaryTerms = glossaryTerms; - } - - 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 fieldPath; - case 1: return description; - case 2: return globalTags; - case 3: return glossaryTerms; - 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: fieldPath = (java.lang.String)value$; break; - case 1: description = (java.lang.String)value$; break; - case 2: globalTags = (com.linkedin.pegasus2avro.common.GlobalTags)value$; break; - case 3: glossaryTerms = (com.linkedin.pegasus2avro.common.GlossaryTerms)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'fieldPath' field. - * FieldPath uniquely identifying the SchemaField this metadata is associated with */ - public java.lang.String getFieldPath() { - return fieldPath; - } - - /** - * Sets the value of the 'fieldPath' field. - * FieldPath uniquely identifying the SchemaField this metadata is associated with * @param value the value to set. - */ - public void setFieldPath(java.lang.String value) { - this.fieldPath = value; - } - - /** - * Gets the value of the 'description' field. - * Description */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Description * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'globalTags' field. - * Tags associated with the field */ - public com.linkedin.pegasus2avro.common.GlobalTags getGlobalTags() { - return globalTags; - } - - /** - * Sets the value of the 'globalTags' field. - * Tags associated with the field * @param value the value to set. - */ - public void setGlobalTags(com.linkedin.pegasus2avro.common.GlobalTags value) { - this.globalTags = value; - } - - /** - * Gets the value of the 'glossaryTerms' field. - * Glossary terms associated with the field */ - public com.linkedin.pegasus2avro.common.GlossaryTerms getGlossaryTerms() { - return glossaryTerms; - } - - /** - * Sets the value of the 'glossaryTerms' field. - * Glossary terms associated with the field * @param value the value to set. - */ - public void setGlossaryTerms(com.linkedin.pegasus2avro.common.GlossaryTerms value) { - this.glossaryTerms = value; - } - - /** Creates a new EditableSchemaFieldInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder(); - } - - /** Creates a new EditableSchemaFieldInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder newBuilder(com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder other) { - return new com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder(other); - } - - /** Creates a new EditableSchemaFieldInfo RecordBuilder by copying an existing EditableSchemaFieldInfo instance */ - public static com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder newBuilder(com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo other) { - return new com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder(other); - } - - /** - * RecordBuilder for EditableSchemaFieldInfo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String fieldPath; - private java.lang.String description; - private com.linkedin.pegasus2avro.common.GlobalTags globalTags; - private com.linkedin.pegasus2avro.common.GlossaryTerms glossaryTerms; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder other) { - super(other); - if (isValidValue(fields()[0], other.fieldPath)) { - this.fieldPath = data().deepCopy(fields()[0].schema(), other.fieldPath); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.globalTags)) { - this.globalTags = data().deepCopy(fields()[2].schema(), other.globalTags); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.glossaryTerms)) { - this.glossaryTerms = data().deepCopy(fields()[3].schema(), other.glossaryTerms); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing EditableSchemaFieldInfo instance */ - private Builder(com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo other) { - super(com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.SCHEMA$); - if (isValidValue(fields()[0], other.fieldPath)) { - this.fieldPath = data().deepCopy(fields()[0].schema(), other.fieldPath); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.globalTags)) { - this.globalTags = data().deepCopy(fields()[2].schema(), other.globalTags); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.glossaryTerms)) { - this.glossaryTerms = data().deepCopy(fields()[3].schema(), other.glossaryTerms); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'fieldPath' field */ - public java.lang.String getFieldPath() { - return fieldPath; - } - - /** Sets the value of the 'fieldPath' field */ - public com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder setFieldPath(java.lang.String value) { - validate(fields()[0], value); - this.fieldPath = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'fieldPath' field has been set */ - public boolean hasFieldPath() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'fieldPath' field */ - public com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder clearFieldPath() { - fieldPath = null; - fieldSetFlags()[0] = 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.schema.EditableSchemaFieldInfo.Builder setDescription(java.lang.String value) { - validate(fields()[1], value); - this.description = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder clearDescription() { - description = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'globalTags' field */ - public com.linkedin.pegasus2avro.common.GlobalTags getGlobalTags() { - return globalTags; - } - - /** Sets the value of the 'globalTags' field */ - public com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder setGlobalTags(com.linkedin.pegasus2avro.common.GlobalTags value) { - validate(fields()[2], value); - this.globalTags = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'globalTags' field has been set */ - public boolean hasGlobalTags() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'globalTags' field */ - public com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder clearGlobalTags() { - globalTags = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'glossaryTerms' field */ - public com.linkedin.pegasus2avro.common.GlossaryTerms getGlossaryTerms() { - return glossaryTerms; - } - - /** Sets the value of the 'glossaryTerms' field */ - public com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder setGlossaryTerms(com.linkedin.pegasus2avro.common.GlossaryTerms value) { - validate(fields()[3], value); - this.glossaryTerms = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'glossaryTerms' field has been set */ - public boolean hasGlossaryTerms() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'glossaryTerms' field */ - public com.linkedin.pegasus2avro.schema.EditableSchemaFieldInfo.Builder clearGlossaryTerms() { - glossaryTerms = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public EditableSchemaFieldInfo build() { - try { - EditableSchemaFieldInfo record = new EditableSchemaFieldInfo(); - record.fieldPath = fieldSetFlags()[0] ? this.fieldPath : (java.lang.String) defaultValue(fields()[0]); - record.description = fieldSetFlags()[1] ? this.description : (java.lang.String) defaultValue(fields()[1]); - record.globalTags = fieldSetFlags()[2] ? this.globalTags : (com.linkedin.pegasus2avro.common.GlobalTags) defaultValue(fields()[2]); - record.glossaryTerms = fieldSetFlags()[3] ? this.glossaryTerms : (com.linkedin.pegasus2avro.common.GlossaryTerms) 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/schema/EditableSchemaMetadata.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/EditableSchemaMetadata.java deleted file mode 100644 index d4aa3d3e61787..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/EditableSchemaMetadata.java +++ /dev/null @@ -1,310 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** EditableSchemaMetadata stores editable changes made to schema metadata. 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 EditableSchemaMetadata 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\":\"EditableSchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"EditableSchemaMetadata stores editable changes made to schema metadata. 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\":\"editableSchemaFieldInfo\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"EditableSchemaFieldInfo\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"FieldPath uniquely identifying the SchemaField this metadata is associated with\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"editedFieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"globalTags\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}}],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"EditableSchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}}],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"EditableSchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"editedFieldGlossaryTerms\",\"fieldType\":\"URN\"}}}]}},\"doc\":\"Client provided a list of fields from document schema.\"}],\"Aspect\":{\"name\":\"editableSchemaMetadata\"}}"); - 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; - /** Client provided a list of fields from document schema. */ - @Deprecated public java.util.List editableSchemaFieldInfo; - - /** - * 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 EditableSchemaMetadata() {} - - /** - * All-args constructor. - */ - public EditableSchemaMetadata(com.linkedin.pegasus2avro.common.AuditStamp created, com.linkedin.pegasus2avro.common.AuditStamp lastModified, com.linkedin.pegasus2avro.common.AuditStamp deleted, java.util.List editableSchemaFieldInfo) { - this.created = created; - this.lastModified = lastModified; - this.deleted = deleted; - this.editableSchemaFieldInfo = editableSchemaFieldInfo; - } - - 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 editableSchemaFieldInfo; - 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: editableSchemaFieldInfo = (java.util.List)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 'editableSchemaFieldInfo' field. - * Client provided a list of fields from document schema. */ - public java.util.List getEditableSchemaFieldInfo() { - return editableSchemaFieldInfo; - } - - /** - * Sets the value of the 'editableSchemaFieldInfo' field. - * Client provided a list of fields from document schema. * @param value the value to set. - */ - public void setEditableSchemaFieldInfo(java.util.List value) { - this.editableSchemaFieldInfo = value; - } - - /** Creates a new EditableSchemaMetadata RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.EditableSchemaMetadata.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.EditableSchemaMetadata.Builder(); - } - - /** Creates a new EditableSchemaMetadata RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.EditableSchemaMetadata.Builder newBuilder(com.linkedin.pegasus2avro.schema.EditableSchemaMetadata.Builder other) { - return new com.linkedin.pegasus2avro.schema.EditableSchemaMetadata.Builder(other); - } - - /** Creates a new EditableSchemaMetadata RecordBuilder by copying an existing EditableSchemaMetadata instance */ - public static com.linkedin.pegasus2avro.schema.EditableSchemaMetadata.Builder newBuilder(com.linkedin.pegasus2avro.schema.EditableSchemaMetadata other) { - return new com.linkedin.pegasus2avro.schema.EditableSchemaMetadata.Builder(other); - } - - /** - * RecordBuilder for EditableSchemaMetadata 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.util.List editableSchemaFieldInfo; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.EditableSchemaMetadata.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.EditableSchemaMetadata.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.editableSchemaFieldInfo)) { - this.editableSchemaFieldInfo = data().deepCopy(fields()[3].schema(), other.editableSchemaFieldInfo); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing EditableSchemaMetadata instance */ - private Builder(com.linkedin.pegasus2avro.schema.EditableSchemaMetadata other) { - super(com.linkedin.pegasus2avro.schema.EditableSchemaMetadata.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.editableSchemaFieldInfo)) { - this.editableSchemaFieldInfo = data().deepCopy(fields()[3].schema(), other.editableSchemaFieldInfo); - 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.schema.EditableSchemaMetadata.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.schema.EditableSchemaMetadata.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.schema.EditableSchemaMetadata.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.schema.EditableSchemaMetadata.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.schema.EditableSchemaMetadata.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.schema.EditableSchemaMetadata.Builder clearDeleted() { - deleted = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'editableSchemaFieldInfo' field */ - public java.util.List getEditableSchemaFieldInfo() { - return editableSchemaFieldInfo; - } - - /** Sets the value of the 'editableSchemaFieldInfo' field */ - public com.linkedin.pegasus2avro.schema.EditableSchemaMetadata.Builder setEditableSchemaFieldInfo(java.util.List value) { - validate(fields()[3], value); - this.editableSchemaFieldInfo = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'editableSchemaFieldInfo' field has been set */ - public boolean hasEditableSchemaFieldInfo() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'editableSchemaFieldInfo' field */ - public com.linkedin.pegasus2avro.schema.EditableSchemaMetadata.Builder clearEditableSchemaFieldInfo() { - editableSchemaFieldInfo = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public EditableSchemaMetadata build() { - try { - EditableSchemaMetadata record = new EditableSchemaMetadata(); - 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.editableSchemaFieldInfo = fieldSetFlags()[3] ? this.editableSchemaFieldInfo : (java.util.List) 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/schema/EnumType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/EnumType.java deleted file mode 100644 index 713fb9f0970df..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/EnumType.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Enum field type. */ -@org.apache.avro.specific.AvroGenerated -public class EnumType 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\":\"EnumType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Enum field type.\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new EnumType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.EnumType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.EnumType.Builder(); - } - - /** Creates a new EnumType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.EnumType.Builder newBuilder(com.linkedin.pegasus2avro.schema.EnumType.Builder other) { - return new com.linkedin.pegasus2avro.schema.EnumType.Builder(other); - } - - /** Creates a new EnumType RecordBuilder by copying an existing EnumType instance */ - public static com.linkedin.pegasus2avro.schema.EnumType.Builder newBuilder(com.linkedin.pegasus2avro.schema.EnumType other) { - return new com.linkedin.pegasus2avro.schema.EnumType.Builder(other); - } - - /** - * RecordBuilder for EnumType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.EnumType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.EnumType.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing EnumType instance */ - private Builder(com.linkedin.pegasus2avro.schema.EnumType other) { - super(com.linkedin.pegasus2avro.schema.EnumType.SCHEMA$); - } - - @Override - public EnumType build() { - try { - EnumType record = new EnumType(); - 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/schema/EspressoSchema.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/EspressoSchema.java deleted file mode 100644 index d305abe266bb1..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/EspressoSchema.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema text of an espresso table schema. */ -@org.apache.avro.specific.AvroGenerated -public class EspressoSchema 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\":\"EspressoSchema\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema text of an espresso table schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native espresso document schema.\"},{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The espresso table schema definition.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The native espresso document schema. */ - @Deprecated public java.lang.String documentSchema; - /** The espresso table schema definition. */ - @Deprecated public java.lang.String tableSchema; - - /** - * 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 EspressoSchema() {} - - /** - * All-args constructor. - */ - public EspressoSchema(java.lang.String documentSchema, java.lang.String tableSchema) { - this.documentSchema = documentSchema; - this.tableSchema = tableSchema; - } - - 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 documentSchema; - case 1: return tableSchema; - 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: documentSchema = (java.lang.String)value$; break; - case 1: tableSchema = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'documentSchema' field. - * The native espresso document schema. */ - public java.lang.String getDocumentSchema() { - return documentSchema; - } - - /** - * Sets the value of the 'documentSchema' field. - * The native espresso document schema. * @param value the value to set. - */ - public void setDocumentSchema(java.lang.String value) { - this.documentSchema = value; - } - - /** - * Gets the value of the 'tableSchema' field. - * The espresso table schema definition. */ - public java.lang.String getTableSchema() { - return tableSchema; - } - - /** - * Sets the value of the 'tableSchema' field. - * The espresso table schema definition. * @param value the value to set. - */ - public void setTableSchema(java.lang.String value) { - this.tableSchema = value; - } - - /** Creates a new EspressoSchema RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.EspressoSchema.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.EspressoSchema.Builder(); - } - - /** Creates a new EspressoSchema RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.EspressoSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.EspressoSchema.Builder other) { - return new com.linkedin.pegasus2avro.schema.EspressoSchema.Builder(other); - } - - /** Creates a new EspressoSchema RecordBuilder by copying an existing EspressoSchema instance */ - public static com.linkedin.pegasus2avro.schema.EspressoSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.EspressoSchema other) { - return new com.linkedin.pegasus2avro.schema.EspressoSchema.Builder(other); - } - - /** - * RecordBuilder for EspressoSchema instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String documentSchema; - private java.lang.String tableSchema; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.EspressoSchema.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.EspressoSchema.Builder other) { - super(other); - if (isValidValue(fields()[0], other.documentSchema)) { - this.documentSchema = data().deepCopy(fields()[0].schema(), other.documentSchema); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.tableSchema)) { - this.tableSchema = data().deepCopy(fields()[1].schema(), other.tableSchema); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing EspressoSchema instance */ - private Builder(com.linkedin.pegasus2avro.schema.EspressoSchema other) { - super(com.linkedin.pegasus2avro.schema.EspressoSchema.SCHEMA$); - if (isValidValue(fields()[0], other.documentSchema)) { - this.documentSchema = data().deepCopy(fields()[0].schema(), other.documentSchema); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.tableSchema)) { - this.tableSchema = data().deepCopy(fields()[1].schema(), other.tableSchema); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'documentSchema' field */ - public java.lang.String getDocumentSchema() { - return documentSchema; - } - - /** Sets the value of the 'documentSchema' field */ - public com.linkedin.pegasus2avro.schema.EspressoSchema.Builder setDocumentSchema(java.lang.String value) { - validate(fields()[0], value); - this.documentSchema = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'documentSchema' field has been set */ - public boolean hasDocumentSchema() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'documentSchema' field */ - public com.linkedin.pegasus2avro.schema.EspressoSchema.Builder clearDocumentSchema() { - documentSchema = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'tableSchema' field */ - public java.lang.String getTableSchema() { - return tableSchema; - } - - /** Sets the value of the 'tableSchema' field */ - public com.linkedin.pegasus2avro.schema.EspressoSchema.Builder setTableSchema(java.lang.String value) { - validate(fields()[1], value); - this.tableSchema = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'tableSchema' field has been set */ - public boolean hasTableSchema() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'tableSchema' field */ - public com.linkedin.pegasus2avro.schema.EspressoSchema.Builder clearTableSchema() { - tableSchema = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public EspressoSchema build() { - try { - EspressoSchema record = new EspressoSchema(); - record.documentSchema = fieldSetFlags()[0] ? this.documentSchema : (java.lang.String) defaultValue(fields()[0]); - record.tableSchema = fieldSetFlags()[1] ? this.tableSchema : (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/schema/FixedType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/FixedType.java deleted file mode 100644 index f86990394ace4..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/FixedType.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Fixed field type. */ -@org.apache.avro.specific.AvroGenerated -public class FixedType 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\":\"FixedType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Fixed field type.\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new FixedType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.FixedType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.FixedType.Builder(); - } - - /** Creates a new FixedType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.FixedType.Builder newBuilder(com.linkedin.pegasus2avro.schema.FixedType.Builder other) { - return new com.linkedin.pegasus2avro.schema.FixedType.Builder(other); - } - - /** Creates a new FixedType RecordBuilder by copying an existing FixedType instance */ - public static com.linkedin.pegasus2avro.schema.FixedType.Builder newBuilder(com.linkedin.pegasus2avro.schema.FixedType other) { - return new com.linkedin.pegasus2avro.schema.FixedType.Builder(other); - } - - /** - * RecordBuilder for FixedType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.FixedType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.FixedType.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing FixedType instance */ - private Builder(com.linkedin.pegasus2avro.schema.FixedType other) { - super(com.linkedin.pegasus2avro.schema.FixedType.SCHEMA$); - } - - @Override - public FixedType build() { - try { - FixedType record = new FixedType(); - 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/schema/ForeignKeyConstraint.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/ForeignKeyConstraint.java deleted file mode 100644 index e072a629f6704..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/ForeignKeyConstraint.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Description of a foreign key constraint in a schema. */ -@org.apache.avro.specific.AvroGenerated -public class ForeignKeyConstraint 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\":\"ForeignKeyConstraint\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Description of a foreign key constraint in a schema.\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the constraint, likely provided from the source\"},{\"name\":\"foreignFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the foreign dataset\",\"Relationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"ForeignKeyTo\"}}},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the source dataset\"},{\"name\":\"foreignDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Reference to the foreign dataset for ease of lookup\",\"Relationship\":{\"entityTypes\":[\"dataset\"],\"name\":\"ForeignKeyToDataset\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Name of the constraint, likely provided from the source */ - @Deprecated public java.lang.String name; - /** Fields the constraint maps to on the foreign dataset */ - @Deprecated public java.util.List foreignFields; - /** Fields the constraint maps to on the source dataset */ - @Deprecated public java.util.List sourceFields; - /** Reference to the foreign dataset for ease of lookup */ - @Deprecated public java.lang.String foreignDataset; - - /** - * 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 ForeignKeyConstraint() {} - - /** - * All-args constructor. - */ - public ForeignKeyConstraint(java.lang.String name, java.util.List foreignFields, java.util.List sourceFields, java.lang.String foreignDataset) { - this.name = name; - this.foreignFields = foreignFields; - this.sourceFields = sourceFields; - this.foreignDataset = foreignDataset; - } - - 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 foreignFields; - case 2: return sourceFields; - case 3: return foreignDataset; - 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: foreignFields = (java.util.List)value$; break; - case 2: sourceFields = (java.util.List)value$; break; - case 3: foreignDataset = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Name of the constraint, likely provided from the source */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Name of the constraint, likely provided from the source * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'foreignFields' field. - * Fields the constraint maps to on the foreign dataset */ - public java.util.List getForeignFields() { - return foreignFields; - } - - /** - * Sets the value of the 'foreignFields' field. - * Fields the constraint maps to on the foreign dataset * @param value the value to set. - */ - public void setForeignFields(java.util.List value) { - this.foreignFields = value; - } - - /** - * Gets the value of the 'sourceFields' field. - * Fields the constraint maps to on the source dataset */ - public java.util.List getSourceFields() { - return sourceFields; - } - - /** - * Sets the value of the 'sourceFields' field. - * Fields the constraint maps to on the source dataset * @param value the value to set. - */ - public void setSourceFields(java.util.List value) { - this.sourceFields = value; - } - - /** - * Gets the value of the 'foreignDataset' field. - * Reference to the foreign dataset for ease of lookup */ - public java.lang.String getForeignDataset() { - return foreignDataset; - } - - /** - * Sets the value of the 'foreignDataset' field. - * Reference to the foreign dataset for ease of lookup * @param value the value to set. - */ - public void setForeignDataset(java.lang.String value) { - this.foreignDataset = value; - } - - /** Creates a new ForeignKeyConstraint RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder(); - } - - /** Creates a new ForeignKeyConstraint RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder newBuilder(com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder other) { - return new com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder(other); - } - - /** Creates a new ForeignKeyConstraint RecordBuilder by copying an existing ForeignKeyConstraint instance */ - public static com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder newBuilder(com.linkedin.pegasus2avro.schema.ForeignKeyConstraint other) { - return new com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder(other); - } - - /** - * RecordBuilder for ForeignKeyConstraint instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String name; - private java.util.List foreignFields; - private java.util.List sourceFields; - private java.lang.String foreignDataset; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.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.foreignFields)) { - this.foreignFields = data().deepCopy(fields()[1].schema(), other.foreignFields); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.sourceFields)) { - this.sourceFields = data().deepCopy(fields()[2].schema(), other.sourceFields); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.foreignDataset)) { - this.foreignDataset = data().deepCopy(fields()[3].schema(), other.foreignDataset); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing ForeignKeyConstraint instance */ - private Builder(com.linkedin.pegasus2avro.schema.ForeignKeyConstraint other) { - super(com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.foreignFields)) { - this.foreignFields = data().deepCopy(fields()[1].schema(), other.foreignFields); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.sourceFields)) { - this.sourceFields = data().deepCopy(fields()[2].schema(), other.sourceFields); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.foreignDataset)) { - this.foreignDataset = data().deepCopy(fields()[3].schema(), other.foreignDataset); - fieldSetFlags()[3] = 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.schema.ForeignKeyConstraint.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.schema.ForeignKeyConstraint.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'foreignFields' field */ - public java.util.List getForeignFields() { - return foreignFields; - } - - /** Sets the value of the 'foreignFields' field */ - public com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder setForeignFields(java.util.List value) { - validate(fields()[1], value); - this.foreignFields = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'foreignFields' field has been set */ - public boolean hasForeignFields() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'foreignFields' field */ - public com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder clearForeignFields() { - foreignFields = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'sourceFields' field */ - public java.util.List getSourceFields() { - return sourceFields; - } - - /** Sets the value of the 'sourceFields' field */ - public com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder setSourceFields(java.util.List value) { - validate(fields()[2], value); - this.sourceFields = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'sourceFields' field has been set */ - public boolean hasSourceFields() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'sourceFields' field */ - public com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder clearSourceFields() { - sourceFields = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'foreignDataset' field */ - public java.lang.String getForeignDataset() { - return foreignDataset; - } - - /** Sets the value of the 'foreignDataset' field */ - public com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder setForeignDataset(java.lang.String value) { - validate(fields()[3], value); - this.foreignDataset = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'foreignDataset' field has been set */ - public boolean hasForeignDataset() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'foreignDataset' field */ - public com.linkedin.pegasus2avro.schema.ForeignKeyConstraint.Builder clearForeignDataset() { - foreignDataset = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public ForeignKeyConstraint build() { - try { - ForeignKeyConstraint record = new ForeignKeyConstraint(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.foreignFields = fieldSetFlags()[1] ? this.foreignFields : (java.util.List) defaultValue(fields()[1]); - record.sourceFields = fieldSetFlags()[2] ? this.sourceFields : (java.util.List) defaultValue(fields()[2]); - record.foreignDataset = fieldSetFlags()[3] ? this.foreignDataset : (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/schema/ForeignKeySpec.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/ForeignKeySpec.java deleted file mode 100644 index 5adb6e2eb7b71..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/ForeignKeySpec.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Description of a foreign key in a schema. */ -@org.apache.avro.specific.AvroGenerated -public class ForeignKeySpec 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\":\"ForeignKeySpec\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Description of a foreign key in a schema.\",\"fields\":[{\"name\":\"foreignKey\",\"type\":[{\"type\":\"record\",\"name\":\"DatasetFieldForeignKey\",\"doc\":\"For non-urn based foregin keys.\",\"fields\":[{\"name\":\"parentDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"dataset that stores the resource.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"currentFieldPaths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset.\"},{\"name\":\"parentField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"SchemaField@fieldPath that uniquely identify field in parent dataset that this field references.\"}]},{\"type\":\"record\",\"name\":\"UrnForeignKey\",\"doc\":\"If SchemaMetadata fields make any external references and references are of type com.linkedin.pegasus2avro.common.Urn or any children, this models can be used to mark it.\",\"fields\":[{\"name\":\"currentFieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Field in hosting(current) SchemaMetadata.\"}]}],\"doc\":\"Foreign key definition in metadata schema.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Foreign key definition in metadata schema. */ - @Deprecated public java.lang.Object foreignKey; - - /** - * 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 ForeignKeySpec() {} - - /** - * All-args constructor. - */ - public ForeignKeySpec(java.lang.Object foreignKey) { - this.foreignKey = foreignKey; - } - - 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 foreignKey; - 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: foreignKey = (java.lang.Object)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'foreignKey' field. - * Foreign key definition in metadata schema. */ - public java.lang.Object getForeignKey() { - return foreignKey; - } - - /** - * Sets the value of the 'foreignKey' field. - * Foreign key definition in metadata schema. * @param value the value to set. - */ - public void setForeignKey(java.lang.Object value) { - this.foreignKey = value; - } - - /** Creates a new ForeignKeySpec RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.ForeignKeySpec.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.ForeignKeySpec.Builder(); - } - - /** Creates a new ForeignKeySpec RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.ForeignKeySpec.Builder newBuilder(com.linkedin.pegasus2avro.schema.ForeignKeySpec.Builder other) { - return new com.linkedin.pegasus2avro.schema.ForeignKeySpec.Builder(other); - } - - /** Creates a new ForeignKeySpec RecordBuilder by copying an existing ForeignKeySpec instance */ - public static com.linkedin.pegasus2avro.schema.ForeignKeySpec.Builder newBuilder(com.linkedin.pegasus2avro.schema.ForeignKeySpec other) { - return new com.linkedin.pegasus2avro.schema.ForeignKeySpec.Builder(other); - } - - /** - * RecordBuilder for ForeignKeySpec instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Object foreignKey; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.ForeignKeySpec.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.ForeignKeySpec.Builder other) { - super(other); - if (isValidValue(fields()[0], other.foreignKey)) { - this.foreignKey = data().deepCopy(fields()[0].schema(), other.foreignKey); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing ForeignKeySpec instance */ - private Builder(com.linkedin.pegasus2avro.schema.ForeignKeySpec other) { - super(com.linkedin.pegasus2avro.schema.ForeignKeySpec.SCHEMA$); - if (isValidValue(fields()[0], other.foreignKey)) { - this.foreignKey = data().deepCopy(fields()[0].schema(), other.foreignKey); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'foreignKey' field */ - public java.lang.Object getForeignKey() { - return foreignKey; - } - - /** Sets the value of the 'foreignKey' field */ - public com.linkedin.pegasus2avro.schema.ForeignKeySpec.Builder setForeignKey(java.lang.Object value) { - validate(fields()[0], value); - this.foreignKey = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'foreignKey' field has been set */ - public boolean hasForeignKey() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'foreignKey' field */ - public com.linkedin.pegasus2avro.schema.ForeignKeySpec.Builder clearForeignKey() { - foreignKey = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public ForeignKeySpec build() { - try { - ForeignKeySpec record = new ForeignKeySpec(); - record.foreignKey = fieldSetFlags()[0] ? this.foreignKey : (java.lang.Object) 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/schema/KafkaSchema.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/KafkaSchema.java deleted file mode 100644 index b45a38e0ea84e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/KafkaSchema.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema holder for kafka schema. */ -@org.apache.avro.specific.AvroGenerated -public class KafkaSchema 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\":\"KafkaSchema\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema holder for kafka schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native kafka document schema. This is a human readable avro document schema.\"},{\"name\":\"keySchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The native kafka key schema as retrieved from Schema Registry\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The native kafka document schema. This is a human readable avro document schema. */ - @Deprecated public java.lang.String documentSchema; - /** The native kafka key schema as retrieved from Schema Registry */ - @Deprecated public java.lang.String keySchema; - - /** - * 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 KafkaSchema() {} - - /** - * All-args constructor. - */ - public KafkaSchema(java.lang.String documentSchema, java.lang.String keySchema) { - this.documentSchema = documentSchema; - this.keySchema = keySchema; - } - - 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 documentSchema; - case 1: return keySchema; - 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: documentSchema = (java.lang.String)value$; break; - case 1: keySchema = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'documentSchema' field. - * The native kafka document schema. This is a human readable avro document schema. */ - public java.lang.String getDocumentSchema() { - return documentSchema; - } - - /** - * Sets the value of the 'documentSchema' field. - * The native kafka document schema. This is a human readable avro document schema. * @param value the value to set. - */ - public void setDocumentSchema(java.lang.String value) { - this.documentSchema = value; - } - - /** - * Gets the value of the 'keySchema' field. - * The native kafka key schema as retrieved from Schema Registry */ - public java.lang.String getKeySchema() { - return keySchema; - } - - /** - * Sets the value of the 'keySchema' field. - * The native kafka key schema as retrieved from Schema Registry * @param value the value to set. - */ - public void setKeySchema(java.lang.String value) { - this.keySchema = value; - } - - /** Creates a new KafkaSchema RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.KafkaSchema.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.KafkaSchema.Builder(); - } - - /** Creates a new KafkaSchema RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.KafkaSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.KafkaSchema.Builder other) { - return new com.linkedin.pegasus2avro.schema.KafkaSchema.Builder(other); - } - - /** Creates a new KafkaSchema RecordBuilder by copying an existing KafkaSchema instance */ - public static com.linkedin.pegasus2avro.schema.KafkaSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.KafkaSchema other) { - return new com.linkedin.pegasus2avro.schema.KafkaSchema.Builder(other); - } - - /** - * RecordBuilder for KafkaSchema instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String documentSchema; - private java.lang.String keySchema; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.KafkaSchema.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.KafkaSchema.Builder other) { - super(other); - if (isValidValue(fields()[0], other.documentSchema)) { - this.documentSchema = data().deepCopy(fields()[0].schema(), other.documentSchema); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.keySchema)) { - this.keySchema = data().deepCopy(fields()[1].schema(), other.keySchema); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing KafkaSchema instance */ - private Builder(com.linkedin.pegasus2avro.schema.KafkaSchema other) { - super(com.linkedin.pegasus2avro.schema.KafkaSchema.SCHEMA$); - if (isValidValue(fields()[0], other.documentSchema)) { - this.documentSchema = data().deepCopy(fields()[0].schema(), other.documentSchema); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.keySchema)) { - this.keySchema = data().deepCopy(fields()[1].schema(), other.keySchema); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'documentSchema' field */ - public java.lang.String getDocumentSchema() { - return documentSchema; - } - - /** Sets the value of the 'documentSchema' field */ - public com.linkedin.pegasus2avro.schema.KafkaSchema.Builder setDocumentSchema(java.lang.String value) { - validate(fields()[0], value); - this.documentSchema = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'documentSchema' field has been set */ - public boolean hasDocumentSchema() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'documentSchema' field */ - public com.linkedin.pegasus2avro.schema.KafkaSchema.Builder clearDocumentSchema() { - documentSchema = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'keySchema' field */ - public java.lang.String getKeySchema() { - return keySchema; - } - - /** Sets the value of the 'keySchema' field */ - public com.linkedin.pegasus2avro.schema.KafkaSchema.Builder setKeySchema(java.lang.String value) { - validate(fields()[1], value); - this.keySchema = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'keySchema' field has been set */ - public boolean hasKeySchema() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'keySchema' field */ - public com.linkedin.pegasus2avro.schema.KafkaSchema.Builder clearKeySchema() { - keySchema = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public KafkaSchema build() { - try { - KafkaSchema record = new KafkaSchema(); - record.documentSchema = fieldSetFlags()[0] ? this.documentSchema : (java.lang.String) defaultValue(fields()[0]); - record.keySchema = fieldSetFlags()[1] ? this.keySchema : (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/schema/KeyValueSchema.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/KeyValueSchema.java deleted file mode 100644 index d058c1124ce84..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/KeyValueSchema.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema text of a key-value store schema. */ -@org.apache.avro.specific.AvroGenerated -public class KeyValueSchema 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\":\"KeyValueSchema\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema text of a key-value store schema.\",\"fields\":[{\"name\":\"keySchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the key in the key-value store.\"},{\"name\":\"valueSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the value in the key-value store.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The raw schema for the key in the key-value store. */ - @Deprecated public java.lang.String keySchema; - /** The raw schema for the value in the key-value store. */ - @Deprecated public java.lang.String valueSchema; - - /** - * 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 KeyValueSchema() {} - - /** - * All-args constructor. - */ - public KeyValueSchema(java.lang.String keySchema, java.lang.String valueSchema) { - this.keySchema = keySchema; - this.valueSchema = valueSchema; - } - - 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 keySchema; - case 1: return valueSchema; - 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: keySchema = (java.lang.String)value$; break; - case 1: valueSchema = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'keySchema' field. - * The raw schema for the key in the key-value store. */ - public java.lang.String getKeySchema() { - return keySchema; - } - - /** - * Sets the value of the 'keySchema' field. - * The raw schema for the key in the key-value store. * @param value the value to set. - */ - public void setKeySchema(java.lang.String value) { - this.keySchema = value; - } - - /** - * Gets the value of the 'valueSchema' field. - * The raw schema for the value in the key-value store. */ - public java.lang.String getValueSchema() { - return valueSchema; - } - - /** - * Sets the value of the 'valueSchema' field. - * The raw schema for the value in the key-value store. * @param value the value to set. - */ - public void setValueSchema(java.lang.String value) { - this.valueSchema = value; - } - - /** Creates a new KeyValueSchema RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.KeyValueSchema.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.KeyValueSchema.Builder(); - } - - /** Creates a new KeyValueSchema RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.KeyValueSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.KeyValueSchema.Builder other) { - return new com.linkedin.pegasus2avro.schema.KeyValueSchema.Builder(other); - } - - /** Creates a new KeyValueSchema RecordBuilder by copying an existing KeyValueSchema instance */ - public static com.linkedin.pegasus2avro.schema.KeyValueSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.KeyValueSchema other) { - return new com.linkedin.pegasus2avro.schema.KeyValueSchema.Builder(other); - } - - /** - * RecordBuilder for KeyValueSchema instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String keySchema; - private java.lang.String valueSchema; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.KeyValueSchema.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.KeyValueSchema.Builder other) { - super(other); - if (isValidValue(fields()[0], other.keySchema)) { - this.keySchema = data().deepCopy(fields()[0].schema(), other.keySchema); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.valueSchema)) { - this.valueSchema = data().deepCopy(fields()[1].schema(), other.valueSchema); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing KeyValueSchema instance */ - private Builder(com.linkedin.pegasus2avro.schema.KeyValueSchema other) { - super(com.linkedin.pegasus2avro.schema.KeyValueSchema.SCHEMA$); - if (isValidValue(fields()[0], other.keySchema)) { - this.keySchema = data().deepCopy(fields()[0].schema(), other.keySchema); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.valueSchema)) { - this.valueSchema = data().deepCopy(fields()[1].schema(), other.valueSchema); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'keySchema' field */ - public java.lang.String getKeySchema() { - return keySchema; - } - - /** Sets the value of the 'keySchema' field */ - public com.linkedin.pegasus2avro.schema.KeyValueSchema.Builder setKeySchema(java.lang.String value) { - validate(fields()[0], value); - this.keySchema = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'keySchema' field has been set */ - public boolean hasKeySchema() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'keySchema' field */ - public com.linkedin.pegasus2avro.schema.KeyValueSchema.Builder clearKeySchema() { - keySchema = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'valueSchema' field */ - public java.lang.String getValueSchema() { - return valueSchema; - } - - /** Sets the value of the 'valueSchema' field */ - public com.linkedin.pegasus2avro.schema.KeyValueSchema.Builder setValueSchema(java.lang.String value) { - validate(fields()[1], value); - this.valueSchema = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'valueSchema' field has been set */ - public boolean hasValueSchema() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'valueSchema' field */ - public com.linkedin.pegasus2avro.schema.KeyValueSchema.Builder clearValueSchema() { - valueSchema = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public KeyValueSchema build() { - try { - KeyValueSchema record = new KeyValueSchema(); - record.keySchema = fieldSetFlags()[0] ? this.keySchema : (java.lang.String) defaultValue(fields()[0]); - record.valueSchema = fieldSetFlags()[1] ? this.valueSchema : (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/schema/MapType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/MapType.java deleted file mode 100644 index 30e782f6c3de2..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/MapType.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Map field type. */ -@org.apache.avro.specific.AvroGenerated -public class MapType 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\":\"MapType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Map field type.\",\"fields\":[{\"name\":\"keyType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Key type in a map\",\"default\":null},{\"name\":\"valueType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of the value in a map\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Key type in a map */ - @Deprecated public java.lang.String keyType; - /** Type of the value in a map */ - @Deprecated public java.lang.String valueType; - - /** - * 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 MapType() {} - - /** - * All-args constructor. - */ - public MapType(java.lang.String keyType, java.lang.String valueType) { - this.keyType = keyType; - this.valueType = valueType; - } - - 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 keyType; - case 1: return valueType; - 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: keyType = (java.lang.String)value$; break; - case 1: valueType = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'keyType' field. - * Key type in a map */ - public java.lang.String getKeyType() { - return keyType; - } - - /** - * Sets the value of the 'keyType' field. - * Key type in a map * @param value the value to set. - */ - public void setKeyType(java.lang.String value) { - this.keyType = value; - } - - /** - * Gets the value of the 'valueType' field. - * Type of the value in a map */ - public java.lang.String getValueType() { - return valueType; - } - - /** - * Sets the value of the 'valueType' field. - * Type of the value in a map * @param value the value to set. - */ - public void setValueType(java.lang.String value) { - this.valueType = value; - } - - /** Creates a new MapType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.MapType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.MapType.Builder(); - } - - /** Creates a new MapType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.MapType.Builder newBuilder(com.linkedin.pegasus2avro.schema.MapType.Builder other) { - return new com.linkedin.pegasus2avro.schema.MapType.Builder(other); - } - - /** Creates a new MapType RecordBuilder by copying an existing MapType instance */ - public static com.linkedin.pegasus2avro.schema.MapType.Builder newBuilder(com.linkedin.pegasus2avro.schema.MapType other) { - return new com.linkedin.pegasus2avro.schema.MapType.Builder(other); - } - - /** - * RecordBuilder for MapType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String keyType; - private java.lang.String valueType; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.MapType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.MapType.Builder other) { - super(other); - if (isValidValue(fields()[0], other.keyType)) { - this.keyType = data().deepCopy(fields()[0].schema(), other.keyType); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.valueType)) { - this.valueType = data().deepCopy(fields()[1].schema(), other.valueType); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing MapType instance */ - private Builder(com.linkedin.pegasus2avro.schema.MapType other) { - super(com.linkedin.pegasus2avro.schema.MapType.SCHEMA$); - if (isValidValue(fields()[0], other.keyType)) { - this.keyType = data().deepCopy(fields()[0].schema(), other.keyType); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.valueType)) { - this.valueType = data().deepCopy(fields()[1].schema(), other.valueType); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'keyType' field */ - public java.lang.String getKeyType() { - return keyType; - } - - /** Sets the value of the 'keyType' field */ - public com.linkedin.pegasus2avro.schema.MapType.Builder setKeyType(java.lang.String value) { - validate(fields()[0], value); - this.keyType = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'keyType' field has been set */ - public boolean hasKeyType() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'keyType' field */ - public com.linkedin.pegasus2avro.schema.MapType.Builder clearKeyType() { - keyType = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'valueType' field */ - public java.lang.String getValueType() { - return valueType; - } - - /** Sets the value of the 'valueType' field */ - public com.linkedin.pegasus2avro.schema.MapType.Builder setValueType(java.lang.String value) { - validate(fields()[1], value); - this.valueType = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'valueType' field has been set */ - public boolean hasValueType() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'valueType' field */ - public com.linkedin.pegasus2avro.schema.MapType.Builder clearValueType() { - valueType = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public MapType build() { - try { - MapType record = new MapType(); - record.keyType = fieldSetFlags()[0] ? this.keyType : (java.lang.String) defaultValue(fields()[0]); - record.valueType = fieldSetFlags()[1] ? this.valueType : (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/schema/MySqlDDL.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/MySqlDDL.java deleted file mode 100644 index 57cd31028cee9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/MySqlDDL.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema holder for MySql data definition language that describes an MySql table. */ -@org.apache.avro.specific.AvroGenerated -public class MySqlDDL 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\":\"MySqlDDL\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema holder for MySql data definition language that describes an MySql table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The native schema in the dataset's platform. This is a human readable (json blob) table schema. */ - @Deprecated public java.lang.String tableSchema; - - /** - * 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 MySqlDDL() {} - - /** - * All-args constructor. - */ - public MySqlDDL(java.lang.String tableSchema) { - this.tableSchema = tableSchema; - } - - 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 tableSchema; - 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: tableSchema = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'tableSchema' field. - * The native schema in the dataset's platform. This is a human readable (json blob) table schema. */ - public java.lang.String getTableSchema() { - return tableSchema; - } - - /** - * Sets the value of the 'tableSchema' field. - * The native schema in the dataset's platform. This is a human readable (json blob) table schema. * @param value the value to set. - */ - public void setTableSchema(java.lang.String value) { - this.tableSchema = value; - } - - /** Creates a new MySqlDDL RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.MySqlDDL.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.MySqlDDL.Builder(); - } - - /** Creates a new MySqlDDL RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.MySqlDDL.Builder newBuilder(com.linkedin.pegasus2avro.schema.MySqlDDL.Builder other) { - return new com.linkedin.pegasus2avro.schema.MySqlDDL.Builder(other); - } - - /** Creates a new MySqlDDL RecordBuilder by copying an existing MySqlDDL instance */ - public static com.linkedin.pegasus2avro.schema.MySqlDDL.Builder newBuilder(com.linkedin.pegasus2avro.schema.MySqlDDL other) { - return new com.linkedin.pegasus2avro.schema.MySqlDDL.Builder(other); - } - - /** - * RecordBuilder for MySqlDDL instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String tableSchema; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.MySqlDDL.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.MySqlDDL.Builder other) { - super(other); - if (isValidValue(fields()[0], other.tableSchema)) { - this.tableSchema = data().deepCopy(fields()[0].schema(), other.tableSchema); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing MySqlDDL instance */ - private Builder(com.linkedin.pegasus2avro.schema.MySqlDDL other) { - super(com.linkedin.pegasus2avro.schema.MySqlDDL.SCHEMA$); - if (isValidValue(fields()[0], other.tableSchema)) { - this.tableSchema = data().deepCopy(fields()[0].schema(), other.tableSchema); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'tableSchema' field */ - public java.lang.String getTableSchema() { - return tableSchema; - } - - /** Sets the value of the 'tableSchema' field */ - public com.linkedin.pegasus2avro.schema.MySqlDDL.Builder setTableSchema(java.lang.String value) { - validate(fields()[0], value); - this.tableSchema = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'tableSchema' field has been set */ - public boolean hasTableSchema() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'tableSchema' field */ - public com.linkedin.pegasus2avro.schema.MySqlDDL.Builder clearTableSchema() { - tableSchema = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public MySqlDDL build() { - try { - MySqlDDL record = new MySqlDDL(); - record.tableSchema = fieldSetFlags()[0] ? this.tableSchema : (java.lang.String) 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/schema/NullType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/NullType.java deleted file mode 100644 index f6d5a6ee230e5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/NullType.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Null field type. */ -@org.apache.avro.specific.AvroGenerated -public class NullType 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\":\"NullType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Null field type.\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new NullType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.NullType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.NullType.Builder(); - } - - /** Creates a new NullType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.NullType.Builder newBuilder(com.linkedin.pegasus2avro.schema.NullType.Builder other) { - return new com.linkedin.pegasus2avro.schema.NullType.Builder(other); - } - - /** Creates a new NullType RecordBuilder by copying an existing NullType instance */ - public static com.linkedin.pegasus2avro.schema.NullType.Builder newBuilder(com.linkedin.pegasus2avro.schema.NullType other) { - return new com.linkedin.pegasus2avro.schema.NullType.Builder(other); - } - - /** - * RecordBuilder for NullType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.NullType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.NullType.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing NullType instance */ - private Builder(com.linkedin.pegasus2avro.schema.NullType other) { - super(com.linkedin.pegasus2avro.schema.NullType.SCHEMA$); - } - - @Override - public NullType build() { - try { - NullType record = new NullType(); - 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/schema/NumberType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/NumberType.java deleted file mode 100644 index 8be963f153bfb..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/NumberType.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Number data type: long, integer, short, etc.. */ -@org.apache.avro.specific.AvroGenerated -public class NumberType 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\":\"NumberType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Number data type: long, integer, short, etc..\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new NumberType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.NumberType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.NumberType.Builder(); - } - - /** Creates a new NumberType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.NumberType.Builder newBuilder(com.linkedin.pegasus2avro.schema.NumberType.Builder other) { - return new com.linkedin.pegasus2avro.schema.NumberType.Builder(other); - } - - /** Creates a new NumberType RecordBuilder by copying an existing NumberType instance */ - public static com.linkedin.pegasus2avro.schema.NumberType.Builder newBuilder(com.linkedin.pegasus2avro.schema.NumberType other) { - return new com.linkedin.pegasus2avro.schema.NumberType.Builder(other); - } - - /** - * RecordBuilder for NumberType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.NumberType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.NumberType.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing NumberType instance */ - private Builder(com.linkedin.pegasus2avro.schema.NumberType other) { - super(com.linkedin.pegasus2avro.schema.NumberType.SCHEMA$); - } - - @Override - public NumberType build() { - try { - NumberType record = new NumberType(); - 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/schema/OracleDDL.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/OracleDDL.java deleted file mode 100644 index 238aa6e00d925..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/OracleDDL.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema holder for oracle data definition language that describes an oracle table. */ -@org.apache.avro.specific.AvroGenerated -public class OracleDDL 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\":\"OracleDDL\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema holder for oracle data definition language that describes an oracle table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The native schema in the dataset's platform. This is a human readable (json blob) table schema. */ - @Deprecated public java.lang.String tableSchema; - - /** - * 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 OracleDDL() {} - - /** - * All-args constructor. - */ - public OracleDDL(java.lang.String tableSchema) { - this.tableSchema = tableSchema; - } - - 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 tableSchema; - 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: tableSchema = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'tableSchema' field. - * The native schema in the dataset's platform. This is a human readable (json blob) table schema. */ - public java.lang.String getTableSchema() { - return tableSchema; - } - - /** - * Sets the value of the 'tableSchema' field. - * The native schema in the dataset's platform. This is a human readable (json blob) table schema. * @param value the value to set. - */ - public void setTableSchema(java.lang.String value) { - this.tableSchema = value; - } - - /** Creates a new OracleDDL RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.OracleDDL.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.OracleDDL.Builder(); - } - - /** Creates a new OracleDDL RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.OracleDDL.Builder newBuilder(com.linkedin.pegasus2avro.schema.OracleDDL.Builder other) { - return new com.linkedin.pegasus2avro.schema.OracleDDL.Builder(other); - } - - /** Creates a new OracleDDL RecordBuilder by copying an existing OracleDDL instance */ - public static com.linkedin.pegasus2avro.schema.OracleDDL.Builder newBuilder(com.linkedin.pegasus2avro.schema.OracleDDL other) { - return new com.linkedin.pegasus2avro.schema.OracleDDL.Builder(other); - } - - /** - * RecordBuilder for OracleDDL instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String tableSchema; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.OracleDDL.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.OracleDDL.Builder other) { - super(other); - if (isValidValue(fields()[0], other.tableSchema)) { - this.tableSchema = data().deepCopy(fields()[0].schema(), other.tableSchema); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing OracleDDL instance */ - private Builder(com.linkedin.pegasus2avro.schema.OracleDDL other) { - super(com.linkedin.pegasus2avro.schema.OracleDDL.SCHEMA$); - if (isValidValue(fields()[0], other.tableSchema)) { - this.tableSchema = data().deepCopy(fields()[0].schema(), other.tableSchema); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'tableSchema' field */ - public java.lang.String getTableSchema() { - return tableSchema; - } - - /** Sets the value of the 'tableSchema' field */ - public com.linkedin.pegasus2avro.schema.OracleDDL.Builder setTableSchema(java.lang.String value) { - validate(fields()[0], value); - this.tableSchema = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'tableSchema' field has been set */ - public boolean hasTableSchema() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'tableSchema' field */ - public com.linkedin.pegasus2avro.schema.OracleDDL.Builder clearTableSchema() { - tableSchema = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public OracleDDL build() { - try { - OracleDDL record = new OracleDDL(); - record.tableSchema = fieldSetFlags()[0] ? this.tableSchema : (java.lang.String) 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/schema/OrcSchema.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/OrcSchema.java deleted file mode 100644 index 03b3947088dda..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/OrcSchema.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema text of an ORC schema. */ -@org.apache.avro.specific.AvroGenerated -public class OrcSchema 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\":\"OrcSchema\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema text of an ORC schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema for ORC file format.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The native schema for ORC file format. */ - @Deprecated public java.lang.String schema; - - /** - * 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 OrcSchema() {} - - /** - * All-args constructor. - */ - public OrcSchema(java.lang.String schema) { - this.schema = schema; - } - - 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 schema; - 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: schema = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'schema' field. - * The native schema for ORC file format. */ - public java.lang.String getSchema$() { - return schema; - } - - /** - * Sets the value of the 'schema' field. - * The native schema for ORC file format. * @param value the value to set. - */ - public void setSchema$(java.lang.String value) { - this.schema = value; - } - - /** Creates a new OrcSchema RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.OrcSchema.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.OrcSchema.Builder(); - } - - /** Creates a new OrcSchema RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.OrcSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.OrcSchema.Builder other) { - return new com.linkedin.pegasus2avro.schema.OrcSchema.Builder(other); - } - - /** Creates a new OrcSchema RecordBuilder by copying an existing OrcSchema instance */ - public static com.linkedin.pegasus2avro.schema.OrcSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.OrcSchema other) { - return new com.linkedin.pegasus2avro.schema.OrcSchema.Builder(other); - } - - /** - * RecordBuilder for OrcSchema instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String schema; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.OrcSchema.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.OrcSchema.Builder other) { - super(other); - if (isValidValue(fields()[0], other.schema)) { - this.schema = data().deepCopy(fields()[0].schema(), other.schema); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing OrcSchema instance */ - private Builder(com.linkedin.pegasus2avro.schema.OrcSchema other) { - super(com.linkedin.pegasus2avro.schema.OrcSchema.SCHEMA$); - if (isValidValue(fields()[0], other.schema)) { - this.schema = data().deepCopy(fields()[0].schema(), other.schema); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'schema' field */ - public java.lang.String getSchema$() { - return schema; - } - - /** Sets the value of the 'schema' field */ - public com.linkedin.pegasus2avro.schema.OrcSchema.Builder setSchema$(java.lang.String value) { - validate(fields()[0], value); - this.schema = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'schema' field has been set */ - public boolean hasSchema$() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'schema' field */ - public com.linkedin.pegasus2avro.schema.OrcSchema.Builder clearSchema$() { - schema = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public OrcSchema build() { - try { - OrcSchema record = new OrcSchema(); - record.schema = fieldSetFlags()[0] ? this.schema : (java.lang.String) 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/schema/OtherSchema.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/OtherSchema.java deleted file mode 100644 index 878128f2b2672..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/OtherSchema.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema holder for undefined schema types. */ -@org.apache.avro.specific.AvroGenerated -public class OtherSchema 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\":\"OtherSchema\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema holder for undefined schema types.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The native schema in the dataset's platform. */ - @Deprecated public java.lang.String rawSchema; - - /** - * 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 OtherSchema() {} - - /** - * All-args constructor. - */ - public OtherSchema(java.lang.String rawSchema) { - this.rawSchema = rawSchema; - } - - 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 rawSchema; - 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: rawSchema = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'rawSchema' field. - * The native schema in the dataset's platform. */ - public java.lang.String getRawSchema() { - return rawSchema; - } - - /** - * Sets the value of the 'rawSchema' field. - * The native schema in the dataset's platform. * @param value the value to set. - */ - public void setRawSchema(java.lang.String value) { - this.rawSchema = value; - } - - /** Creates a new OtherSchema RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.OtherSchema.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.OtherSchema.Builder(); - } - - /** Creates a new OtherSchema RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.OtherSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.OtherSchema.Builder other) { - return new com.linkedin.pegasus2avro.schema.OtherSchema.Builder(other); - } - - /** Creates a new OtherSchema RecordBuilder by copying an existing OtherSchema instance */ - public static com.linkedin.pegasus2avro.schema.OtherSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.OtherSchema other) { - return new com.linkedin.pegasus2avro.schema.OtherSchema.Builder(other); - } - - /** - * RecordBuilder for OtherSchema instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String rawSchema; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.OtherSchema.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.OtherSchema.Builder other) { - super(other); - if (isValidValue(fields()[0], other.rawSchema)) { - this.rawSchema = data().deepCopy(fields()[0].schema(), other.rawSchema); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing OtherSchema instance */ - private Builder(com.linkedin.pegasus2avro.schema.OtherSchema other) { - super(com.linkedin.pegasus2avro.schema.OtherSchema.SCHEMA$); - if (isValidValue(fields()[0], other.rawSchema)) { - this.rawSchema = data().deepCopy(fields()[0].schema(), other.rawSchema); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'rawSchema' field */ - public java.lang.String getRawSchema() { - return rawSchema; - } - - /** Sets the value of the 'rawSchema' field */ - public com.linkedin.pegasus2avro.schema.OtherSchema.Builder setRawSchema(java.lang.String value) { - validate(fields()[0], value); - this.rawSchema = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'rawSchema' field has been set */ - public boolean hasRawSchema() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'rawSchema' field */ - public com.linkedin.pegasus2avro.schema.OtherSchema.Builder clearRawSchema() { - rawSchema = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public OtherSchema build() { - try { - OtherSchema record = new OtherSchema(); - record.rawSchema = fieldSetFlags()[0] ? this.rawSchema : (java.lang.String) 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/schema/ParquetSchema.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/ParquetSchema.java deleted file mode 100644 index ca692dba7787d..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/ParquetSchema.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema text for Parquet schema. */ -@org.apache.avro.specific.AvroGenerated -public class ParquetSchema 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\":\"ParquetSchema\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema text for Parquet schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native Parquet schema text.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The native Parquet schema text. */ - @Deprecated public java.lang.String schema; - - /** - * 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 ParquetSchema() {} - - /** - * All-args constructor. - */ - public ParquetSchema(java.lang.String schema) { - this.schema = schema; - } - - 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 schema; - 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: schema = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'schema' field. - * The native Parquet schema text. */ - public java.lang.String getSchema$() { - return schema; - } - - /** - * Sets the value of the 'schema' field. - * The native Parquet schema text. * @param value the value to set. - */ - public void setSchema$(java.lang.String value) { - this.schema = value; - } - - /** Creates a new ParquetSchema RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.ParquetSchema.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.ParquetSchema.Builder(); - } - - /** Creates a new ParquetSchema RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.ParquetSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.ParquetSchema.Builder other) { - return new com.linkedin.pegasus2avro.schema.ParquetSchema.Builder(other); - } - - /** Creates a new ParquetSchema RecordBuilder by copying an existing ParquetSchema instance */ - public static com.linkedin.pegasus2avro.schema.ParquetSchema.Builder newBuilder(com.linkedin.pegasus2avro.schema.ParquetSchema other) { - return new com.linkedin.pegasus2avro.schema.ParquetSchema.Builder(other); - } - - /** - * RecordBuilder for ParquetSchema instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String schema; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.ParquetSchema.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.ParquetSchema.Builder other) { - super(other); - if (isValidValue(fields()[0], other.schema)) { - this.schema = data().deepCopy(fields()[0].schema(), other.schema); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing ParquetSchema instance */ - private Builder(com.linkedin.pegasus2avro.schema.ParquetSchema other) { - super(com.linkedin.pegasus2avro.schema.ParquetSchema.SCHEMA$); - if (isValidValue(fields()[0], other.schema)) { - this.schema = data().deepCopy(fields()[0].schema(), other.schema); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'schema' field */ - public java.lang.String getSchema$() { - return schema; - } - - /** Sets the value of the 'schema' field */ - public com.linkedin.pegasus2avro.schema.ParquetSchema.Builder setSchema$(java.lang.String value) { - validate(fields()[0], value); - this.schema = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'schema' field has been set */ - public boolean hasSchema$() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'schema' field */ - public com.linkedin.pegasus2avro.schema.ParquetSchema.Builder clearSchema$() { - schema = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public ParquetSchema build() { - try { - ParquetSchema record = new ParquetSchema(); - record.schema = fieldSetFlags()[0] ? this.schema : (java.lang.String) 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/schema/PrestoDDL.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/PrestoDDL.java deleted file mode 100644 index 48ef15efe682c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/PrestoDDL.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema holder for presto data definition language that describes a presto view. */ -@org.apache.avro.specific.AvroGenerated -public class PrestoDDL 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\":\"PrestoDDL\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema holder for presto data definition language that describes a presto view.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL. */ - @Deprecated public java.lang.String rawSchema; - - /** - * 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 PrestoDDL() {} - - /** - * All-args constructor. - */ - public PrestoDDL(java.lang.String rawSchema) { - this.rawSchema = rawSchema; - } - - 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 rawSchema; - 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: rawSchema = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'rawSchema' field. - * The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL. */ - public java.lang.String getRawSchema() { - return rawSchema; - } - - /** - * Sets the value of the 'rawSchema' field. - * The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL. * @param value the value to set. - */ - public void setRawSchema(java.lang.String value) { - this.rawSchema = value; - } - - /** Creates a new PrestoDDL RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.PrestoDDL.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.PrestoDDL.Builder(); - } - - /** Creates a new PrestoDDL RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.PrestoDDL.Builder newBuilder(com.linkedin.pegasus2avro.schema.PrestoDDL.Builder other) { - return new com.linkedin.pegasus2avro.schema.PrestoDDL.Builder(other); - } - - /** Creates a new PrestoDDL RecordBuilder by copying an existing PrestoDDL instance */ - public static com.linkedin.pegasus2avro.schema.PrestoDDL.Builder newBuilder(com.linkedin.pegasus2avro.schema.PrestoDDL other) { - return new com.linkedin.pegasus2avro.schema.PrestoDDL.Builder(other); - } - - /** - * RecordBuilder for PrestoDDL instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String rawSchema; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.PrestoDDL.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.PrestoDDL.Builder other) { - super(other); - if (isValidValue(fields()[0], other.rawSchema)) { - this.rawSchema = data().deepCopy(fields()[0].schema(), other.rawSchema); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing PrestoDDL instance */ - private Builder(com.linkedin.pegasus2avro.schema.PrestoDDL other) { - super(com.linkedin.pegasus2avro.schema.PrestoDDL.SCHEMA$); - if (isValidValue(fields()[0], other.rawSchema)) { - this.rawSchema = data().deepCopy(fields()[0].schema(), other.rawSchema); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'rawSchema' field */ - public java.lang.String getRawSchema() { - return rawSchema; - } - - /** Sets the value of the 'rawSchema' field */ - public com.linkedin.pegasus2avro.schema.PrestoDDL.Builder setRawSchema(java.lang.String value) { - validate(fields()[0], value); - this.rawSchema = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'rawSchema' field has been set */ - public boolean hasRawSchema() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'rawSchema' field */ - public com.linkedin.pegasus2avro.schema.PrestoDDL.Builder clearRawSchema() { - rawSchema = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public PrestoDDL build() { - try { - PrestoDDL record = new PrestoDDL(); - record.rawSchema = fieldSetFlags()[0] ? this.rawSchema : (java.lang.String) 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/schema/RecordType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/RecordType.java deleted file mode 100644 index 5c4cae4d702aa..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/RecordType.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Record field type. */ -@org.apache.avro.specific.AvroGenerated -public class RecordType 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\":\"RecordType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Record field type.\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new RecordType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.RecordType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.RecordType.Builder(); - } - - /** Creates a new RecordType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.RecordType.Builder newBuilder(com.linkedin.pegasus2avro.schema.RecordType.Builder other) { - return new com.linkedin.pegasus2avro.schema.RecordType.Builder(other); - } - - /** Creates a new RecordType RecordBuilder by copying an existing RecordType instance */ - public static com.linkedin.pegasus2avro.schema.RecordType.Builder newBuilder(com.linkedin.pegasus2avro.schema.RecordType other) { - return new com.linkedin.pegasus2avro.schema.RecordType.Builder(other); - } - - /** - * RecordBuilder for RecordType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.RecordType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.RecordType.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing RecordType instance */ - private Builder(com.linkedin.pegasus2avro.schema.RecordType other) { - super(com.linkedin.pegasus2avro.schema.RecordType.SCHEMA$); - } - - @Override - public RecordType build() { - try { - RecordType record = new RecordType(); - 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/schema/SchemaField.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/SchemaField.java deleted file mode 100644 index da7d0e38c6af1..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/SchemaField.java +++ /dev/null @@ -1,923 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** SchemaField to describe metadata related to dataset schema. */ -@org.apache.avro.specific.AvroGenerated -public class SchemaField 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\":\"SchemaField\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flattened name of the field. Field is computed from jsonPath field.\",\"Searchable\":{\"fieldName\":\"fieldPaths\",\"fieldType\":\"TEXT\"}},{\"name\":\"jsonPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flattened name of a field in JSON Path notation.\",\"default\":null,\"Deprecated\":true},{\"name\":\"nullable\",\"type\":\"boolean\",\"doc\":\"Indicates if this field is optional or nullable\",\"default\":false},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"fieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"label\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Label of the field. Provides a more human-readable name for the field than field path. Some sources will\\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\\na field in a source, that is most likely a description.\",\"default\":null,\"Searchable\":{\"boostScore\":0.2,\"fieldName\":\"fieldLabels\",\"fieldType\":\"TEXT\"}},{\"name\":\"created\",\"type\":[\"null\",{\"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 schema field.\",\"default\":null},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the last modification of this schema field.\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"record\",\"name\":\"SchemaFieldDataType\",\"doc\":\"Schema field data types\",\"fields\":[{\"name\":\"type\",\"type\":[{\"type\":\"record\",\"name\":\"BooleanType\",\"doc\":\"Boolean field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"FixedType\",\"doc\":\"Fixed field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"StringType\",\"doc\":\"String field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"BytesType\",\"doc\":\"Bytes field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NumberType\",\"doc\":\"Number data type: long, integer, short, etc..\",\"fields\":[]},{\"type\":\"record\",\"name\":\"DateType\",\"doc\":\"Date field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"TimeType\",\"doc\":\"Time field type. This should also be used for datetimes.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"EnumType\",\"doc\":\"Enum field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NullType\",\"doc\":\"Null field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"MapType\",\"doc\":\"Map field type.\",\"fields\":[{\"name\":\"keyType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Key type in a map\",\"default\":null},{\"name\":\"valueType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of the value in a map\",\"default\":null}]},{\"type\":\"record\",\"name\":\"ArrayType\",\"doc\":\"Array field type.\",\"fields\":[{\"name\":\"nestedType\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types this array holds.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"UnionType\",\"doc\":\"Union field type.\",\"fields\":[{\"name\":\"nestedTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types in union type.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"RecordType\",\"doc\":\"Record field type.\",\"fields\":[]}],\"doc\":\"Data platform specific types\"}]},\"doc\":\"Platform independent field type of the field.\"},{\"name\":\"nativeDataType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native type of the field in the dataset's platform as declared by platform schema.\"},{\"name\":\"recursive\",\"type\":\"boolean\",\"doc\":\"There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.\",\"default\":false},{\"name\":\"globalTags\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}}],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"SchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"fieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}}],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"SchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"fieldGlossaryTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"isPartOfKey\",\"type\":\"boolean\",\"doc\":\"For schema fields that are part of complex keys, set this field to true\\nWe do this to easily distinguish between value and key fields\",\"default\":false},{\"name\":\"isPartitioningKey\",\"type\":[\"null\",\"boolean\"],\"doc\":\"For Datasets w","hich are partitioned, this determines the partitioning key.\",\"default\":null},{\"name\":\"jsonProps\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"For schema fields that have other properties that are not modeled explicitly,\\nuse this field to serialize those properties into a JSON string\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Flattened name of the field. Field is computed from jsonPath field. */ - @Deprecated public java.lang.String fieldPath; - /** Flattened name of a field in JSON Path notation. */ - @Deprecated public java.lang.String jsonPath; - /** Indicates if this field is optional or nullable */ - @Deprecated public boolean nullable; - /** Description */ - @Deprecated public java.lang.String description; - /** Label of the field. Provides a more human-readable name for the field than field path. Some sources will -provide this metadata but not all sources have the concept of a label. If just one string is associated with -a field in a source, that is most likely a description. */ - @Deprecated public java.lang.String label; - /** An AuditStamp corresponding to the creation of this schema field. */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created; - /** An AuditStamp corresponding to the last modification of this schema field. */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp lastModified; - /** Platform independent field type of the field. */ - @Deprecated public com.linkedin.pegasus2avro.schema.SchemaFieldDataType type; - /** The native type of the field in the dataset's platform as declared by platform schema. */ - @Deprecated public java.lang.String nativeDataType; - /** There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive. */ - @Deprecated public boolean recursive; - /** Tags associated with the field */ - @Deprecated public com.linkedin.pegasus2avro.common.GlobalTags globalTags; - /** Glossary terms associated with the field */ - @Deprecated public com.linkedin.pegasus2avro.common.GlossaryTerms glossaryTerms; - /** For schema fields that are part of complex keys, set this field to true -We do this to easily distinguish between value and key fields */ - @Deprecated public boolean isPartOfKey; - /** For Datasets which are partitioned, this determines the partitioning key. */ - @Deprecated public java.lang.Boolean isPartitioningKey; - /** For schema fields that have other properties that are not modeled explicitly, -use this field to serialize those properties into a JSON string */ - @Deprecated public java.lang.String jsonProps; - - /** - * 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 SchemaField() {} - - /** - * All-args constructor. - */ - public SchemaField(java.lang.String fieldPath, java.lang.String jsonPath, java.lang.Boolean nullable, java.lang.String description, java.lang.String label, com.linkedin.pegasus2avro.common.AuditStamp created, com.linkedin.pegasus2avro.common.AuditStamp lastModified, com.linkedin.pegasus2avro.schema.SchemaFieldDataType type, java.lang.String nativeDataType, java.lang.Boolean recursive, com.linkedin.pegasus2avro.common.GlobalTags globalTags, com.linkedin.pegasus2avro.common.GlossaryTerms glossaryTerms, java.lang.Boolean isPartOfKey, java.lang.Boolean isPartitioningKey, java.lang.String jsonProps) { - this.fieldPath = fieldPath; - this.jsonPath = jsonPath; - this.nullable = nullable; - this.description = description; - this.label = label; - this.created = created; - this.lastModified = lastModified; - this.type = type; - this.nativeDataType = nativeDataType; - this.recursive = recursive; - this.globalTags = globalTags; - this.glossaryTerms = glossaryTerms; - this.isPartOfKey = isPartOfKey; - this.isPartitioningKey = isPartitioningKey; - this.jsonProps = jsonProps; - } - - 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 fieldPath; - case 1: return jsonPath; - case 2: return nullable; - case 3: return description; - case 4: return label; - case 5: return created; - case 6: return lastModified; - case 7: return type; - case 8: return nativeDataType; - case 9: return recursive; - case 10: return globalTags; - case 11: return glossaryTerms; - case 12: return isPartOfKey; - case 13: return isPartitioningKey; - case 14: return jsonProps; - 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: fieldPath = (java.lang.String)value$; break; - case 1: jsonPath = (java.lang.String)value$; break; - case 2: nullable = (java.lang.Boolean)value$; break; - case 3: description = (java.lang.String)value$; break; - case 4: label = (java.lang.String)value$; break; - case 5: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 6: lastModified = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 7: type = (com.linkedin.pegasus2avro.schema.SchemaFieldDataType)value$; break; - case 8: nativeDataType = (java.lang.String)value$; break; - case 9: recursive = (java.lang.Boolean)value$; break; - case 10: globalTags = (com.linkedin.pegasus2avro.common.GlobalTags)value$; break; - case 11: glossaryTerms = (com.linkedin.pegasus2avro.common.GlossaryTerms)value$; break; - case 12: isPartOfKey = (java.lang.Boolean)value$; break; - case 13: isPartitioningKey = (java.lang.Boolean)value$; break; - case 14: jsonProps = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'fieldPath' field. - * Flattened name of the field. Field is computed from jsonPath field. */ - public java.lang.String getFieldPath() { - return fieldPath; - } - - /** - * Sets the value of the 'fieldPath' field. - * Flattened name of the field. Field is computed from jsonPath field. * @param value the value to set. - */ - public void setFieldPath(java.lang.String value) { - this.fieldPath = value; - } - - /** - * Gets the value of the 'jsonPath' field. - * Flattened name of a field in JSON Path notation. */ - public java.lang.String getJsonPath() { - return jsonPath; - } - - /** - * Sets the value of the 'jsonPath' field. - * Flattened name of a field in JSON Path notation. * @param value the value to set. - */ - public void setJsonPath(java.lang.String value) { - this.jsonPath = value; - } - - /** - * Gets the value of the 'nullable' field. - * Indicates if this field is optional or nullable */ - public java.lang.Boolean getNullable() { - return nullable; - } - - /** - * Sets the value of the 'nullable' field. - * Indicates if this field is optional or nullable * @param value the value to set. - */ - public void setNullable(java.lang.Boolean value) { - this.nullable = value; - } - - /** - * Gets the value of the 'description' field. - * Description */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Description * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'label' field. - * Label of the field. Provides a more human-readable name for the field than field path. Some sources will -provide this metadata but not all sources have the concept of a label. If just one string is associated with -a field in a source, that is most likely a description. */ - public java.lang.String getLabel() { - return label; - } - - /** - * Sets the value of the 'label' field. - * Label of the field. Provides a more human-readable name for the field than field path. Some sources will -provide this metadata but not all sources have the concept of a label. If just one string is associated with -a field in a source, that is most likely a description. * @param value the value to set. - */ - public void setLabel(java.lang.String value) { - this.label = value; - } - - /** - * Gets the value of the 'created' field. - * An AuditStamp corresponding to the creation of this schema field. */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * An AuditStamp corresponding to the creation of this schema field. * @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 schema field. */ - 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 schema field. * @param value the value to set. - */ - public void setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.lastModified = value; - } - - /** - * Gets the value of the 'type' field. - * Platform independent field type of the field. */ - public com.linkedin.pegasus2avro.schema.SchemaFieldDataType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Platform independent field type of the field. * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.schema.SchemaFieldDataType value) { - this.type = value; - } - - /** - * Gets the value of the 'nativeDataType' field. - * The native type of the field in the dataset's platform as declared by platform schema. */ - public java.lang.String getNativeDataType() { - return nativeDataType; - } - - /** - * Sets the value of the 'nativeDataType' field. - * The native type of the field in the dataset's platform as declared by platform schema. * @param value the value to set. - */ - public void setNativeDataType(java.lang.String value) { - this.nativeDataType = value; - } - - /** - * Gets the value of the 'recursive' field. - * There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive. */ - public java.lang.Boolean getRecursive() { - return recursive; - } - - /** - * Sets the value of the 'recursive' field. - * There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive. * @param value the value to set. - */ - public void setRecursive(java.lang.Boolean value) { - this.recursive = value; - } - - /** - * Gets the value of the 'globalTags' field. - * Tags associated with the field */ - public com.linkedin.pegasus2avro.common.GlobalTags getGlobalTags() { - return globalTags; - } - - /** - * Sets the value of the 'globalTags' field. - * Tags associated with the field * @param value the value to set. - */ - public void setGlobalTags(com.linkedin.pegasus2avro.common.GlobalTags value) { - this.globalTags = value; - } - - /** - * Gets the value of the 'glossaryTerms' field. - * Glossary terms associated with the field */ - public com.linkedin.pegasus2avro.common.GlossaryTerms getGlossaryTerms() { - return glossaryTerms; - } - - /** - * Sets the value of the 'glossaryTerms' field. - * Glossary terms associated with the field * @param value the value to set. - */ - public void setGlossaryTerms(com.linkedin.pegasus2avro.common.GlossaryTerms value) { - this.glossaryTerms = value; - } - - /** - * Gets the value of the 'isPartOfKey' field. - * For schema fields that are part of complex keys, set this field to true -We do this to easily distinguish between value and key fields */ - public java.lang.Boolean getIsPartOfKey() { - return isPartOfKey; - } - - /** - * Sets the value of the 'isPartOfKey' field. - * For schema fields that are part of complex keys, set this field to true -We do this to easily distinguish between value and key fields * @param value the value to set. - */ - public void setIsPartOfKey(java.lang.Boolean value) { - this.isPartOfKey = value; - } - - /** - * Gets the value of the 'isPartitioningKey' field. - * For Datasets which are partitioned, this determines the partitioning key. */ - public java.lang.Boolean getIsPartitioningKey() { - return isPartitioningKey; - } - - /** - * Sets the value of the 'isPartitioningKey' field. - * For Datasets which are partitioned, this determines the partitioning key. * @param value the value to set. - */ - public void setIsPartitioningKey(java.lang.Boolean value) { - this.isPartitioningKey = value; - } - - /** - * Gets the value of the 'jsonProps' field. - * For schema fields that have other properties that are not modeled explicitly, -use this field to serialize those properties into a JSON string */ - public java.lang.String getJsonProps() { - return jsonProps; - } - - /** - * Sets the value of the 'jsonProps' field. - * For schema fields that have other properties that are not modeled explicitly, -use this field to serialize those properties into a JSON string * @param value the value to set. - */ - public void setJsonProps(java.lang.String value) { - this.jsonProps = value; - } - - /** Creates a new SchemaField RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.SchemaField.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.SchemaField.Builder(); - } - - /** Creates a new SchemaField RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.SchemaField.Builder newBuilder(com.linkedin.pegasus2avro.schema.SchemaField.Builder other) { - return new com.linkedin.pegasus2avro.schema.SchemaField.Builder(other); - } - - /** Creates a new SchemaField RecordBuilder by copying an existing SchemaField instance */ - public static com.linkedin.pegasus2avro.schema.SchemaField.Builder newBuilder(com.linkedin.pegasus2avro.schema.SchemaField other) { - return new com.linkedin.pegasus2avro.schema.SchemaField.Builder(other); - } - - /** - * RecordBuilder for SchemaField instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String fieldPath; - private java.lang.String jsonPath; - private boolean nullable; - private java.lang.String description; - private java.lang.String label; - private com.linkedin.pegasus2avro.common.AuditStamp created; - private com.linkedin.pegasus2avro.common.AuditStamp lastModified; - private com.linkedin.pegasus2avro.schema.SchemaFieldDataType type; - private java.lang.String nativeDataType; - private boolean recursive; - private com.linkedin.pegasus2avro.common.GlobalTags globalTags; - private com.linkedin.pegasus2avro.common.GlossaryTerms glossaryTerms; - private boolean isPartOfKey; - private java.lang.Boolean isPartitioningKey; - private java.lang.String jsonProps; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.SchemaField.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.SchemaField.Builder other) { - super(other); - if (isValidValue(fields()[0], other.fieldPath)) { - this.fieldPath = data().deepCopy(fields()[0].schema(), other.fieldPath); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.jsonPath)) { - this.jsonPath = data().deepCopy(fields()[1].schema(), other.jsonPath); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.nullable)) { - this.nullable = data().deepCopy(fields()[2].schema(), other.nullable); - 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.label)) { - this.label = data().deepCopy(fields()[4].schema(), other.label); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.created)) { - this.created = data().deepCopy(fields()[5].schema(), other.created); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[6].schema(), other.lastModified); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.type)) { - this.type = data().deepCopy(fields()[7].schema(), other.type); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.nativeDataType)) { - this.nativeDataType = data().deepCopy(fields()[8].schema(), other.nativeDataType); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.recursive)) { - this.recursive = data().deepCopy(fields()[9].schema(), other.recursive); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.globalTags)) { - this.globalTags = data().deepCopy(fields()[10].schema(), other.globalTags); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.glossaryTerms)) { - this.glossaryTerms = data().deepCopy(fields()[11].schema(), other.glossaryTerms); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.isPartOfKey)) { - this.isPartOfKey = data().deepCopy(fields()[12].schema(), other.isPartOfKey); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.isPartitioningKey)) { - this.isPartitioningKey = data().deepCopy(fields()[13].schema(), other.isPartitioningKey); - fieldSetFlags()[13] = true; - } - if (isValidValue(fields()[14], other.jsonProps)) { - this.jsonProps = data().deepCopy(fields()[14].schema(), other.jsonProps); - fieldSetFlags()[14] = true; - } - } - - /** Creates a Builder by copying an existing SchemaField instance */ - private Builder(com.linkedin.pegasus2avro.schema.SchemaField other) { - super(com.linkedin.pegasus2avro.schema.SchemaField.SCHEMA$); - if (isValidValue(fields()[0], other.fieldPath)) { - this.fieldPath = data().deepCopy(fields()[0].schema(), other.fieldPath); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.jsonPath)) { - this.jsonPath = data().deepCopy(fields()[1].schema(), other.jsonPath); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.nullable)) { - this.nullable = data().deepCopy(fields()[2].schema(), other.nullable); - 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.label)) { - this.label = data().deepCopy(fields()[4].schema(), other.label); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.created)) { - this.created = data().deepCopy(fields()[5].schema(), other.created); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[6].schema(), other.lastModified); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.type)) { - this.type = data().deepCopy(fields()[7].schema(), other.type); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.nativeDataType)) { - this.nativeDataType = data().deepCopy(fields()[8].schema(), other.nativeDataType); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.recursive)) { - this.recursive = data().deepCopy(fields()[9].schema(), other.recursive); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.globalTags)) { - this.globalTags = data().deepCopy(fields()[10].schema(), other.globalTags); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.glossaryTerms)) { - this.glossaryTerms = data().deepCopy(fields()[11].schema(), other.glossaryTerms); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.isPartOfKey)) { - this.isPartOfKey = data().deepCopy(fields()[12].schema(), other.isPartOfKey); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.isPartitioningKey)) { - this.isPartitioningKey = data().deepCopy(fields()[13].schema(), other.isPartitioningKey); - fieldSetFlags()[13] = true; - } - if (isValidValue(fields()[14], other.jsonProps)) { - this.jsonProps = data().deepCopy(fields()[14].schema(), other.jsonProps); - fieldSetFlags()[14] = true; - } - } - - /** Gets the value of the 'fieldPath' field */ - public java.lang.String getFieldPath() { - return fieldPath; - } - - /** Sets the value of the 'fieldPath' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder setFieldPath(java.lang.String value) { - validate(fields()[0], value); - this.fieldPath = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'fieldPath' field has been set */ - public boolean hasFieldPath() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'fieldPath' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearFieldPath() { - fieldPath = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'jsonPath' field */ - public java.lang.String getJsonPath() { - return jsonPath; - } - - /** Sets the value of the 'jsonPath' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder setJsonPath(java.lang.String value) { - validate(fields()[1], value); - this.jsonPath = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'jsonPath' field has been set */ - public boolean hasJsonPath() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'jsonPath' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearJsonPath() { - jsonPath = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'nullable' field */ - public java.lang.Boolean getNullable() { - return nullable; - } - - /** Sets the value of the 'nullable' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder setNullable(boolean value) { - validate(fields()[2], value); - this.nullable = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'nullable' field has been set */ - public boolean hasNullable() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'nullable' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearNullable() { - 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.schema.SchemaField.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.schema.SchemaField.Builder clearDescription() { - description = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'label' field */ - public java.lang.String getLabel() { - return label; - } - - /** Sets the value of the 'label' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder setLabel(java.lang.String value) { - validate(fields()[4], value); - this.label = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'label' field has been set */ - public boolean hasLabel() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'label' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearLabel() { - label = null; - fieldSetFlags()[4] = 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.schema.SchemaField.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[5], value); - this.created = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearCreated() { - created = null; - fieldSetFlags()[5] = 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.schema.SchemaField.Builder setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[6], value); - this.lastModified = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'lastModified' field has been set */ - public boolean hasLastModified() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearLastModified() { - lastModified = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.schema.SchemaFieldDataType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder setType(com.linkedin.pegasus2avro.schema.SchemaFieldDataType value) { - validate(fields()[7], value); - this.type = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'type' field has been set */ - public boolean hasType() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'type' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearType() { - type = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'nativeDataType' field */ - public java.lang.String getNativeDataType() { - return nativeDataType; - } - - /** Sets the value of the 'nativeDataType' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder setNativeDataType(java.lang.String value) { - validate(fields()[8], value); - this.nativeDataType = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'nativeDataType' field has been set */ - public boolean hasNativeDataType() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'nativeDataType' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearNativeDataType() { - nativeDataType = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'recursive' field */ - public java.lang.Boolean getRecursive() { - return recursive; - } - - /** Sets the value of the 'recursive' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder setRecursive(boolean value) { - validate(fields()[9], value); - this.recursive = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'recursive' field has been set */ - public boolean hasRecursive() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'recursive' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearRecursive() { - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'globalTags' field */ - public com.linkedin.pegasus2avro.common.GlobalTags getGlobalTags() { - return globalTags; - } - - /** Sets the value of the 'globalTags' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder setGlobalTags(com.linkedin.pegasus2avro.common.GlobalTags value) { - validate(fields()[10], value); - this.globalTags = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'globalTags' field has been set */ - public boolean hasGlobalTags() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'globalTags' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearGlobalTags() { - globalTags = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'glossaryTerms' field */ - public com.linkedin.pegasus2avro.common.GlossaryTerms getGlossaryTerms() { - return glossaryTerms; - } - - /** Sets the value of the 'glossaryTerms' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder setGlossaryTerms(com.linkedin.pegasus2avro.common.GlossaryTerms value) { - validate(fields()[11], value); - this.glossaryTerms = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'glossaryTerms' field has been set */ - public boolean hasGlossaryTerms() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'glossaryTerms' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearGlossaryTerms() { - glossaryTerms = null; - fieldSetFlags()[11] = false; - return this; - } - - /** Gets the value of the 'isPartOfKey' field */ - public java.lang.Boolean getIsPartOfKey() { - return isPartOfKey; - } - - /** Sets the value of the 'isPartOfKey' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder setIsPartOfKey(boolean value) { - validate(fields()[12], value); - this.isPartOfKey = value; - fieldSetFlags()[12] = true; - return this; - } - - /** Checks whether the 'isPartOfKey' field has been set */ - public boolean hasIsPartOfKey() { - return fieldSetFlags()[12]; - } - - /** Clears the value of the 'isPartOfKey' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearIsPartOfKey() { - fieldSetFlags()[12] = false; - return this; - } - - /** Gets the value of the 'isPartitioningKey' field */ - public java.lang.Boolean getIsPartitioningKey() { - return isPartitioningKey; - } - - /** Sets the value of the 'isPartitioningKey' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder setIsPartitioningKey(java.lang.Boolean value) { - validate(fields()[13], value); - this.isPartitioningKey = value; - fieldSetFlags()[13] = true; - return this; - } - - /** Checks whether the 'isPartitioningKey' field has been set */ - public boolean hasIsPartitioningKey() { - return fieldSetFlags()[13]; - } - - /** Clears the value of the 'isPartitioningKey' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearIsPartitioningKey() { - isPartitioningKey = null; - fieldSetFlags()[13] = false; - return this; - } - - /** Gets the value of the 'jsonProps' field */ - public java.lang.String getJsonProps() { - return jsonProps; - } - - /** Sets the value of the 'jsonProps' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder setJsonProps(java.lang.String value) { - validate(fields()[14], value); - this.jsonProps = value; - fieldSetFlags()[14] = true; - return this; - } - - /** Checks whether the 'jsonProps' field has been set */ - public boolean hasJsonProps() { - return fieldSetFlags()[14]; - } - - /** Clears the value of the 'jsonProps' field */ - public com.linkedin.pegasus2avro.schema.SchemaField.Builder clearJsonProps() { - jsonProps = null; - fieldSetFlags()[14] = false; - return this; - } - - @Override - public SchemaField build() { - try { - SchemaField record = new SchemaField(); - record.fieldPath = fieldSetFlags()[0] ? this.fieldPath : (java.lang.String) defaultValue(fields()[0]); - record.jsonPath = fieldSetFlags()[1] ? this.jsonPath : (java.lang.String) defaultValue(fields()[1]); - record.nullable = fieldSetFlags()[2] ? this.nullable : (java.lang.Boolean) defaultValue(fields()[2]); - record.description = fieldSetFlags()[3] ? this.description : (java.lang.String) defaultValue(fields()[3]); - record.label = fieldSetFlags()[4] ? this.label : (java.lang.String) defaultValue(fields()[4]); - record.created = fieldSetFlags()[5] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[5]); - record.lastModified = fieldSetFlags()[6] ? this.lastModified : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[6]); - record.type = fieldSetFlags()[7] ? this.type : (com.linkedin.pegasus2avro.schema.SchemaFieldDataType) defaultValue(fields()[7]); - record.nativeDataType = fieldSetFlags()[8] ? this.nativeDataType : (java.lang.String) defaultValue(fields()[8]); - record.recursive = fieldSetFlags()[9] ? this.recursive : (java.lang.Boolean) defaultValue(fields()[9]); - record.globalTags = fieldSetFlags()[10] ? this.globalTags : (com.linkedin.pegasus2avro.common.GlobalTags) defaultValue(fields()[10]); - record.glossaryTerms = fieldSetFlags()[11] ? this.glossaryTerms : (com.linkedin.pegasus2avro.common.GlossaryTerms) defaultValue(fields()[11]); - record.isPartOfKey = fieldSetFlags()[12] ? this.isPartOfKey : (java.lang.Boolean) defaultValue(fields()[12]); - record.isPartitioningKey = fieldSetFlags()[13] ? this.isPartitioningKey : (java.lang.Boolean) defaultValue(fields()[13]); - record.jsonProps = fieldSetFlags()[14] ? this.jsonProps : (java.lang.String) defaultValue(fields()[14]); - 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/schema/SchemaFieldDataType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/SchemaFieldDataType.java deleted file mode 100644 index cbd9af924bc07..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/SchemaFieldDataType.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Schema field data types */ -@org.apache.avro.specific.AvroGenerated -public class SchemaFieldDataType 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\":\"SchemaFieldDataType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Schema field data types\",\"fields\":[{\"name\":\"type\",\"type\":[{\"type\":\"record\",\"name\":\"BooleanType\",\"doc\":\"Boolean field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"FixedType\",\"doc\":\"Fixed field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"StringType\",\"doc\":\"String field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"BytesType\",\"doc\":\"Bytes field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NumberType\",\"doc\":\"Number data type: long, integer, short, etc..\",\"fields\":[]},{\"type\":\"record\",\"name\":\"DateType\",\"doc\":\"Date field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"TimeType\",\"doc\":\"Time field type. This should also be used for datetimes.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"EnumType\",\"doc\":\"Enum field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NullType\",\"doc\":\"Null field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"MapType\",\"doc\":\"Map field type.\",\"fields\":[{\"name\":\"keyType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Key type in a map\",\"default\":null},{\"name\":\"valueType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of the value in a map\",\"default\":null}]},{\"type\":\"record\",\"name\":\"ArrayType\",\"doc\":\"Array field type.\",\"fields\":[{\"name\":\"nestedType\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types this array holds.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"UnionType\",\"doc\":\"Union field type.\",\"fields\":[{\"name\":\"nestedTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types in union type.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"RecordType\",\"doc\":\"Record field type.\",\"fields\":[]}],\"doc\":\"Data platform specific types\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Data platform specific types */ - @Deprecated public java.lang.Object 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 SchemaFieldDataType() {} - - /** - * All-args constructor. - */ - public SchemaFieldDataType(java.lang.Object type) { - 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 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: type = (java.lang.Object)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * Data platform specific types */ - public java.lang.Object getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Data platform specific types * @param value the value to set. - */ - public void setType(java.lang.Object value) { - this.type = value; - } - - /** Creates a new SchemaFieldDataType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.SchemaFieldDataType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.SchemaFieldDataType.Builder(); - } - - /** Creates a new SchemaFieldDataType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.SchemaFieldDataType.Builder newBuilder(com.linkedin.pegasus2avro.schema.SchemaFieldDataType.Builder other) { - return new com.linkedin.pegasus2avro.schema.SchemaFieldDataType.Builder(other); - } - - /** Creates a new SchemaFieldDataType RecordBuilder by copying an existing SchemaFieldDataType instance */ - public static com.linkedin.pegasus2avro.schema.SchemaFieldDataType.Builder newBuilder(com.linkedin.pegasus2avro.schema.SchemaFieldDataType other) { - return new com.linkedin.pegasus2avro.schema.SchemaFieldDataType.Builder(other); - } - - /** - * RecordBuilder for SchemaFieldDataType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Object type; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.SchemaFieldDataType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.SchemaFieldDataType.Builder other) { - super(other); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing SchemaFieldDataType instance */ - private Builder(com.linkedin.pegasus2avro.schema.SchemaFieldDataType other) { - super(com.linkedin.pegasus2avro.schema.SchemaFieldDataType.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'type' field */ - public java.lang.Object getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.schema.SchemaFieldDataType.Builder setType(java.lang.Object 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.schema.SchemaFieldDataType.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public SchemaFieldDataType build() { - try { - SchemaFieldDataType record = new SchemaFieldDataType(); - record.type = fieldSetFlags()[0] ? this.type : (java.lang.Object) 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/schema/SchemaMetadata.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/SchemaMetadata.java deleted file mode 100644 index 172e8afa04cf4..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/SchemaMetadata.java +++ /dev/null @@ -1,858 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** SchemaMetadata to describe metadata related to store schema */ -@org.apache.avro.specific.AvroGenerated -public class SchemaMetadata 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\":\"SchemaMetadata\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"SchemaMetadata to describe metadata related to store schema\",\"fields\":[{\"name\":\"schemaName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking\",\"validate\":{\"strlen\":{\"max\":500,\"min\":1}}},{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name})\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"version\",\"type\":\"long\",\"doc\":\"Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version.\"},{\"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\":\"dataset\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Dataset this schema metadata is associated with.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"cluster\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The cluster this schema metadata resides from\",\"default\":null},{\"name\":\"hash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"the SHA1 hash of the schema content\"},{\"name\":\"platformSchema\",\"type\":[{\"type\":\"record\",\"name\":\"EspressoSchema\",\"doc\":\"Schema text of an espresso table schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native espresso document schema.\"},{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The espresso table schema definition.\"}]},{\"type\":\"record\",\"name\":\"OracleDDL\",\"doc\":\"Schema holder for oracle data definition language that describes an oracle table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"MySqlDDL\",\"doc\":\"Schema holder for MySql data definition language that describes an MySql table.\",\"fields\":[{\"name\":\"tableSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform. This is a human readable (json blob) table schema.\"}]},{\"type\":\"record\",\"name\":\"PrestoDDL\",\"doc\":\"Schema holder for presto data definition language that describes a presto view.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL.\"}]},{\"type\":\"record\",\"name\":\"KafkaSchema\",\"doc\":\"Schema holder for kafka schema.\",\"fields\":[{\"name\":\"documentSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native kafka document schema. This is a human readable avro document schema.\"},{\"name\":\"keySchema\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The native kafka key schema as retrieved from Schema Registry\",\"default\":null}]},{\"type\":\"record\",\"name\":\"BinaryJsonSchema\",\"doc\":\"Schema text of binary JSON schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema text for binary JSON file format.\"}]},{\"type\":\"record\",\"name\":\"OrcSchema\",\"doc\":\"Schema text of an ORC schema.\",\"fields\":[{\"name\":\"schema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema for ORC file format.\"}]},{\"type\":\"record\",\"name\":\"Schemaless\",\"doc\":\"The dataset has no specific schema associated with it\",\"fields\":[]},{\"type\":\"record\",\"name\":\"KeyValueSchema\",\"doc\":\"Schema text of a key-value store schema.\",\"fields\":[{\"name\":\"keySchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the key in the key-value store.\"},{\"name\":\"valueSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The raw schema for the value in the key-value store.\"}]},{\"type\":\"record\",\"name\":\"OtherSchema\",\"doc\":\"Schema holder for undefined schema types.\",\"fields\":[{\"name\":\"rawSchema\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native schema in the dataset's platform.\"}]}],\"doc\":\"The native schema in the dataset's platform.\"},{\"name\":\"fields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SchemaField\",\"doc\":\"SchemaField to describe metadata related to dataset schema.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Flattened name of the field. Field is computed from jsonPath field.\",\"Searchable\":{\"fieldName\":\"fieldPaths\",\"fieldType\":\"TEXT\"}},{\"name\":\"jsonPath\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Flattened name of a field in JSON Path notation.\",\"default\":null,\"Deprecated\":true},{\"name\":\"nullable\",\"type\":\"boolean\",\"doc\":\"Indicates if this field is optional or nullable\",\"default\":false},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description\",\"default\":null,\"Searchable\":{\"boostScore\":0.1,\"fieldName\":\"fieldDescriptions\",\"fieldType\":\"TEXT\"}},{\"name\":\"label\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Label of the field. Provides a more human-readable name for the field than field path. Some sources will\\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\\na field in a source, that is most likely a description.\",\"default\":null,\"Searchable\":{\"boostScore\":0.2,\"fieldName\":\"fieldLabels\",\"fieldType\":\"TEXT\"}},{\"name\":\"created\",\"type\":[\"null\",\"com.linkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the creation of this schema field.\",\"default\":null},{\"name\":\"lastModified\",\"type\":[\"null\",\"com.l","inkedin.pegasus2avro.common.AuditStamp\"],\"doc\":\"An AuditStamp corresponding to the last modification of this schema field.\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"record\",\"name\":\"SchemaFieldDataType\",\"doc\":\"Schema field data types\",\"fields\":[{\"name\":\"type\",\"type\":[{\"type\":\"record\",\"name\":\"BooleanType\",\"doc\":\"Boolean field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"FixedType\",\"doc\":\"Fixed field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"StringType\",\"doc\":\"String field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"BytesType\",\"doc\":\"Bytes field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NumberType\",\"doc\":\"Number data type: long, integer, short, etc..\",\"fields\":[]},{\"type\":\"record\",\"name\":\"DateType\",\"doc\":\"Date field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"TimeType\",\"doc\":\"Time field type. This should also be used for datetimes.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"EnumType\",\"doc\":\"Enum field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"NullType\",\"doc\":\"Null field type.\",\"fields\":[]},{\"type\":\"record\",\"name\":\"MapType\",\"doc\":\"Map field type.\",\"fields\":[{\"name\":\"keyType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Key type in a map\",\"default\":null},{\"name\":\"valueType\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Type of the value in a map\",\"default\":null}]},{\"type\":\"record\",\"name\":\"ArrayType\",\"doc\":\"Array field type.\",\"fields\":[{\"name\":\"nestedType\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types this array holds.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"UnionType\",\"doc\":\"Union field type.\",\"fields\":[{\"name\":\"nestedTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types in union type.\",\"default\":null}]},{\"type\":\"record\",\"name\":\"RecordType\",\"doc\":\"Record field type.\",\"fields\":[]}],\"doc\":\"Data platform specific types\"}]},\"doc\":\"Platform independent field type of the field.\"},{\"name\":\"nativeDataType\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The native type of the field in the dataset's platform as declared by platform schema.\"},{\"name\":\"recursive\",\"type\":\"boolean\",\"doc\":\"There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.\",\"default\":false},{\"name\":\"globalTags\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlobalTags\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Tag aspect used for applying tags to an entity\",\"fields\":[{\"name\":\"tags\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TagAssociation\",\"doc\":\"Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\\npropagation parameters.\",\"fields\":[{\"name\":\"tag\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied tag\",\"Relationship\":{\"entityTypes\":[\"tag\"],\"name\":\"TaggedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Tag\",\"hasValuesFieldName\":\"hasTags\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.TagUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"Tags associated with a given entity\",\"Searchable\":{\"/*/tag\":{\"addToFilters\":true,\"boostScore\":0.5,\"fieldName\":\"tags\",\"fieldType\":\"URN\",\"queryByDefault\":true}}}],\"Aspect\":{\"name\":\"globalTags\"}}],\"doc\":\"Tags associated with the field\",\"default\":null,\"Relationship\":{\"/tags/*/tag\":{\"entityTypes\":[\"tag\"],\"name\":\"SchemaFieldTaggedWith\"}},\"Searchable\":{\"/tags/*/tag\":{\"boostScore\":0.5,\"fieldName\":\"fieldTags\",\"fieldType\":\"URN\"}}},{\"name\":\"glossaryTerms\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlossaryTerms\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Related business terms information\",\"fields\":[{\"name\":\"terms\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"GlossaryTermAssociation\",\"doc\":\"Properties of an applied glossary term.\",\"fields\":[{\"name\":\"urn\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Urn of the applied glossary term\",\"Relationship\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"TermedWith\"},\"Searchable\":{\"addToFilters\":true,\"fieldName\":\"glossaryTerms\",\"fieldType\":\"URN\",\"filterNameOverride\":\"Glossary Term\",\"hasValuesFieldName\":\"hasGlossaryTerms\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.GlossaryTermUrn\"}},{\"name\":\"context\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Additional context about the association\",\"default\":null}]}},\"doc\":\"The related business terms\"},{\"name\":\"auditStamp\",\"type\":\"AuditStamp\",\"doc\":\"Audit stamp containing who reported the related business term\"}],\"Aspect\":{\"name\":\"glossaryTerms\"}}],\"doc\":\"Glossary terms associated with the field\",\"default\":null,\"Relationship\":{\"/terms/*/urn\":{\"entityTypes\":[\"glossaryTerm\"],\"name\":\"SchemaFieldWithGlossaryTerm\"}},\"Searchable\":{\"/terms/*/urn\":{\"boostScore\":0.5,\"fieldName\":\"fieldGlossaryTerms\",\"fieldType\":\"URN\"}}},{\"name\":\"isPartOfKey\",\"type\":\"boolean\",\"doc\":\"For schema fields that are part of complex keys, set this field to true\\nWe do this to easily distinguish between value and key fields\",\"default\":false},{\"name\":\"isPartitioningKey\",\"type\":[\"null\",\"boolean\"],\"doc\":\"For Datasets which are partitioned, this determines the partitioning key.\",\"default\":null},{\"name\":\"jsonProps\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"For schema fields that have other properties that are not modeled explicitly,\\nuse this field to serialize those properties into a JSON string\",\"default\":null}]}},\"doc\":\"Client provided a list of fields from document schema.\"},{\"name\":\"primaryKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath.\",\"default\":null},{\"name\":\"foreignKeysSpecs\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"ForeignKeySpec\",\"doc\":\"Description of a foreign key in a schema.\",\"fields\":[{\"name\":\"foreignKey\",\"type\":[{\"type\":\"record\",\"name\":\"DatasetFieldForeignKey\",\"doc\":\"For non-urn based foregin keys.\",\"fields\":[{\"name\":\"parentDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"dataset that stores the resource.\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DatasetUrn\"}},{\"name\":\"currentFieldPaths\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset.\"},{\"name\":\"parentField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"SchemaField@fieldPath that uniquely identify field in parent dataset that this field references.\"}]},{\"type\":\"record\",\"name\":\"UrnForeignKey\",\"doc\":\"If SchemaMetadata fields make any external references and references are of type com.linkedin.pegasus2avro.common.Urn or any children, this models can be used to mark it.\",\"fields\":[{\"name\":\"currentFieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Field in hosting(current) SchemaMetadata.\"}]}],\"doc\":\"Foreign key definition in metadata schema.\"}]},\"avro.java.string\":\"String\"}],\"doc\":\"Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref.\",\"default\":null,\"deprecated\":\"Use foreignKeys instead.\"},{\"name\":\"foreignKeys\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ForeignKeyConstraint\",\"doc\":\"Description of a foreign key constraint in a schema.\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the constraint, likely provided from the source\"},{\"name\":\"foreignFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the foreign dataset\",\"Rel","ationship\":{\"/*\":{\"entityTypes\":[\"schemaField\"],\"name\":\"ForeignKeyTo\"}}},{\"name\":\"sourceFields\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Fields the constraint maps to on the source dataset\"},{\"name\":\"foreignDataset\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Reference to the foreign dataset for ease of lookup\",\"Relationship\":{\"entityTypes\":[\"dataset\"],\"name\":\"ForeignKeyToDataset\"},\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}}],\"doc\":\"List of foreign key constraints for the schema\",\"default\":null}],\"Aspect\":{\"name\":\"schemaMetadata\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking */ - @Deprecated public java.lang.String schemaName; - /** Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name}) */ - @Deprecated public java.lang.String platform; - /** Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version. */ - @Deprecated public long version; - /** 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; - /** Dataset this schema metadata is associated with. */ - @Deprecated public java.lang.String dataset; - /** The cluster this schema metadata resides from */ - @Deprecated public java.lang.String cluster; - /** the SHA1 hash of the schema content */ - @Deprecated public java.lang.String hash; - /** The native schema in the dataset's platform. */ - @Deprecated public java.lang.Object platformSchema; - /** Client provided a list of fields from document schema. */ - @Deprecated public java.util.List fields; - /** Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath. */ - @Deprecated public java.util.List primaryKeys; - /** Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref. */ - @Deprecated public java.util.Map foreignKeysSpecs; - /** List of foreign key constraints for the schema */ - @Deprecated public java.util.List foreignKeys; - - /** - * 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 SchemaMetadata() {} - - /** - * All-args constructor. - */ - public SchemaMetadata(java.lang.String schemaName, java.lang.String platform, java.lang.Long version, com.linkedin.pegasus2avro.common.AuditStamp created, com.linkedin.pegasus2avro.common.AuditStamp lastModified, com.linkedin.pegasus2avro.common.AuditStamp deleted, java.lang.String dataset, java.lang.String cluster, java.lang.String hash, java.lang.Object platformSchema, java.util.List fields, java.util.List primaryKeys, java.util.Map foreignKeysSpecs, java.util.List foreignKeys) { - this.schemaName = schemaName; - this.platform = platform; - this.version = version; - this.created = created; - this.lastModified = lastModified; - this.deleted = deleted; - this.dataset = dataset; - this.cluster = cluster; - this.hash = hash; - this.platformSchema = platformSchema; - this.fields = fields; - this.primaryKeys = primaryKeys; - this.foreignKeysSpecs = foreignKeysSpecs; - this.foreignKeys = foreignKeys; - } - - 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 schemaName; - case 1: return platform; - case 2: return version; - case 3: return created; - case 4: return lastModified; - case 5: return deleted; - case 6: return dataset; - case 7: return cluster; - case 8: return hash; - case 9: return platformSchema; - case 10: return fields; - case 11: return primaryKeys; - case 12: return foreignKeysSpecs; - case 13: return foreignKeys; - 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: schemaName = (java.lang.String)value$; break; - case 1: platform = (java.lang.String)value$; break; - case 2: version = (java.lang.Long)value$; break; - case 3: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 4: lastModified = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 5: deleted = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 6: dataset = (java.lang.String)value$; break; - case 7: cluster = (java.lang.String)value$; break; - case 8: hash = (java.lang.String)value$; break; - case 9: platformSchema = (java.lang.Object)value$; break; - case 10: fields = (java.util.List)value$; break; - case 11: primaryKeys = (java.util.List)value$; break; - case 12: foreignKeysSpecs = (java.util.Map)value$; break; - case 13: foreignKeys = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'schemaName' field. - * Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking */ - public java.lang.String getSchemaName() { - return schemaName; - } - - /** - * Sets the value of the 'schemaName' field. - * Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking * @param value the value to set. - */ - public void setSchemaName(java.lang.String value) { - this.schemaName = value; - } - - /** - * Gets the value of the 'platform' field. - * Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name}) */ - public java.lang.String getPlatform() { - return platform; - } - - /** - * Sets the value of the 'platform' field. - * Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name}) * @param value the value to set. - */ - public void setPlatform(java.lang.String value) { - this.platform = value; - } - - /** - * Gets the value of the 'version' field. - * Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version. */ - public java.lang.Long getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version. * @param value the value to set. - */ - public void setVersion(java.lang.Long value) { - this.version = value; - } - - /** - * 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 'dataset' field. - * Dataset this schema metadata is associated with. */ - public java.lang.String getDataset() { - return dataset; - } - - /** - * Sets the value of the 'dataset' field. - * Dataset this schema metadata is associated with. * @param value the value to set. - */ - public void setDataset(java.lang.String value) { - this.dataset = value; - } - - /** - * Gets the value of the 'cluster' field. - * The cluster this schema metadata resides from */ - public java.lang.String getCluster() { - return cluster; - } - - /** - * Sets the value of the 'cluster' field. - * The cluster this schema metadata resides from * @param value the value to set. - */ - public void setCluster(java.lang.String value) { - this.cluster = value; - } - - /** - * Gets the value of the 'hash' field. - * the SHA1 hash of the schema content */ - public java.lang.String getHash() { - return hash; - } - - /** - * Sets the value of the 'hash' field. - * the SHA1 hash of the schema content * @param value the value to set. - */ - public void setHash(java.lang.String value) { - this.hash = value; - } - - /** - * Gets the value of the 'platformSchema' field. - * The native schema in the dataset's platform. */ - public java.lang.Object getPlatformSchema() { - return platformSchema; - } - - /** - * Sets the value of the 'platformSchema' field. - * The native schema in the dataset's platform. * @param value the value to set. - */ - public void setPlatformSchema(java.lang.Object value) { - this.platformSchema = value; - } - - /** - * Gets the value of the 'fields' field. - * Client provided a list of fields from document schema. */ - public java.util.List getFields() { - return fields; - } - - /** - * Sets the value of the 'fields' field. - * Client provided a list of fields from document schema. * @param value the value to set. - */ - public void setFields(java.util.List value) { - this.fields = value; - } - - /** - * Gets the value of the 'primaryKeys' field. - * Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath. */ - public java.util.List getPrimaryKeys() { - return primaryKeys; - } - - /** - * Sets the value of the 'primaryKeys' field. - * Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath. * @param value the value to set. - */ - public void setPrimaryKeys(java.util.List value) { - this.primaryKeys = value; - } - - /** - * Gets the value of the 'foreignKeysSpecs' field. - * Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref. */ - public java.util.Map getForeignKeysSpecs() { - return foreignKeysSpecs; - } - - /** - * Sets the value of the 'foreignKeysSpecs' field. - * Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref. * @param value the value to set. - */ - public void setForeignKeysSpecs(java.util.Map value) { - this.foreignKeysSpecs = value; - } - - /** - * Gets the value of the 'foreignKeys' field. - * List of foreign key constraints for the schema */ - public java.util.List getForeignKeys() { - return foreignKeys; - } - - /** - * Sets the value of the 'foreignKeys' field. - * List of foreign key constraints for the schema * @param value the value to set. - */ - public void setForeignKeys(java.util.List value) { - this.foreignKeys = value; - } - - /** Creates a new SchemaMetadata RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder(); - } - - /** Creates a new SchemaMetadata RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder newBuilder(com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder other) { - return new com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder(other); - } - - /** Creates a new SchemaMetadata RecordBuilder by copying an existing SchemaMetadata instance */ - public static com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder newBuilder(com.linkedin.pegasus2avro.schema.SchemaMetadata other) { - return new com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder(other); - } - - /** - * RecordBuilder for SchemaMetadata instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String schemaName; - private java.lang.String platform; - private long version; - 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 dataset; - private java.lang.String cluster; - private java.lang.String hash; - private java.lang.Object platformSchema; - private java.util.List fields; - private java.util.List primaryKeys; - private java.util.Map foreignKeysSpecs; - private java.util.List foreignKeys; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.SchemaMetadata.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder other) { - super(other); - if (isValidValue(fields()[0], other.schemaName)) { - this.schemaName = data().deepCopy(fields()[0].schema(), other.schemaName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.platform)) { - this.platform = data().deepCopy(fields()[1].schema(), other.platform); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.version)) { - this.version = data().deepCopy(fields()[2].schema(), other.version); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.created)) { - this.created = data().deepCopy(fields()[3].schema(), other.created); - 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.deleted)) { - this.deleted = data().deepCopy(fields()[5].schema(), other.deleted); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.dataset)) { - this.dataset = data().deepCopy(fields()[6].schema(), other.dataset); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.cluster)) { - this.cluster = data().deepCopy(fields()[7].schema(), other.cluster); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.hash)) { - this.hash = data().deepCopy(fields()[8].schema(), other.hash); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.platformSchema)) { - this.platformSchema = data().deepCopy(fields()[9].schema(), other.platformSchema); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.fields)) { - this.fields = data().deepCopy(fields()[10].schema(), other.fields); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.primaryKeys)) { - this.primaryKeys = data().deepCopy(fields()[11].schema(), other.primaryKeys); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.foreignKeysSpecs)) { - this.foreignKeysSpecs = data().deepCopy(fields()[12].schema(), other.foreignKeysSpecs); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.foreignKeys)) { - this.foreignKeys = data().deepCopy(fields()[13].schema(), other.foreignKeys); - fieldSetFlags()[13] = true; - } - } - - /** Creates a Builder by copying an existing SchemaMetadata instance */ - private Builder(com.linkedin.pegasus2avro.schema.SchemaMetadata other) { - super(com.linkedin.pegasus2avro.schema.SchemaMetadata.SCHEMA$); - if (isValidValue(fields()[0], other.schemaName)) { - this.schemaName = data().deepCopy(fields()[0].schema(), other.schemaName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.platform)) { - this.platform = data().deepCopy(fields()[1].schema(), other.platform); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.version)) { - this.version = data().deepCopy(fields()[2].schema(), other.version); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.created)) { - this.created = data().deepCopy(fields()[3].schema(), other.created); - 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.deleted)) { - this.deleted = data().deepCopy(fields()[5].schema(), other.deleted); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.dataset)) { - this.dataset = data().deepCopy(fields()[6].schema(), other.dataset); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.cluster)) { - this.cluster = data().deepCopy(fields()[7].schema(), other.cluster); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.hash)) { - this.hash = data().deepCopy(fields()[8].schema(), other.hash); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.platformSchema)) { - this.platformSchema = data().deepCopy(fields()[9].schema(), other.platformSchema); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.fields)) { - this.fields = data().deepCopy(fields()[10].schema(), other.fields); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.primaryKeys)) { - this.primaryKeys = data().deepCopy(fields()[11].schema(), other.primaryKeys); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.foreignKeysSpecs)) { - this.foreignKeysSpecs = data().deepCopy(fields()[12].schema(), other.foreignKeysSpecs); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.foreignKeys)) { - this.foreignKeys = data().deepCopy(fields()[13].schema(), other.foreignKeys); - fieldSetFlags()[13] = true; - } - } - - /** Gets the value of the 'schemaName' field */ - public java.lang.String getSchemaName() { - return schemaName; - } - - /** Sets the value of the 'schemaName' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder setSchemaName(java.lang.String value) { - validate(fields()[0], value); - this.schemaName = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'schemaName' field has been set */ - public boolean hasSchemaName() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'schemaName' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearSchemaName() { - schemaName = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.schema.SchemaMetadata.Builder setPlatform(java.lang.String value) { - validate(fields()[1], value); - this.platform = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'platform' field has been set */ - public boolean hasPlatform() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'platform' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearPlatform() { - platform = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public java.lang.Long getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder setVersion(long value) { - validate(fields()[2], value); - this.version = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearVersion() { - fieldSetFlags()[2] = 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.schema.SchemaMetadata.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[3], value); - this.created = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearCreated() { - created = null; - fieldSetFlags()[3] = 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.schema.SchemaMetadata.Builder setLastModified(com.linkedin.pegasus2avro.common.AuditStamp 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.schema.SchemaMetadata.Builder clearLastModified() { - lastModified = null; - fieldSetFlags()[4] = 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.schema.SchemaMetadata.Builder setDeleted(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[5], value); - this.deleted = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'deleted' field has been set */ - public boolean hasDeleted() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'deleted' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearDeleted() { - deleted = null; - fieldSetFlags()[5] = false; - return this; - } - - /** 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.schema.SchemaMetadata.Builder setDataset(java.lang.String value) { - validate(fields()[6], value); - this.dataset = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'dataset' field has been set */ - public boolean hasDataset() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'dataset' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearDataset() { - dataset = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'cluster' field */ - public java.lang.String getCluster() { - return cluster; - } - - /** Sets the value of the 'cluster' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder setCluster(java.lang.String value) { - validate(fields()[7], value); - this.cluster = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'cluster' field has been set */ - public boolean hasCluster() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'cluster' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearCluster() { - cluster = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'hash' field */ - public java.lang.String getHash() { - return hash; - } - - /** Sets the value of the 'hash' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder setHash(java.lang.String value) { - validate(fields()[8], value); - this.hash = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'hash' field has been set */ - public boolean hasHash() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'hash' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearHash() { - hash = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'platformSchema' field */ - public java.lang.Object getPlatformSchema() { - return platformSchema; - } - - /** Sets the value of the 'platformSchema' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder setPlatformSchema(java.lang.Object value) { - validate(fields()[9], value); - this.platformSchema = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'platformSchema' field has been set */ - public boolean hasPlatformSchema() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'platformSchema' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearPlatformSchema() { - platformSchema = null; - fieldSetFlags()[9] = 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.schema.SchemaMetadata.Builder setFields(java.util.List value) { - validate(fields()[10], value); - this.fields = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'fields' field has been set */ - public boolean hasFields() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'fields' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearFields() { - fields = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'primaryKeys' field */ - public java.util.List getPrimaryKeys() { - return primaryKeys; - } - - /** Sets the value of the 'primaryKeys' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder setPrimaryKeys(java.util.List value) { - validate(fields()[11], value); - this.primaryKeys = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'primaryKeys' field has been set */ - public boolean hasPrimaryKeys() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'primaryKeys' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearPrimaryKeys() { - primaryKeys = null; - fieldSetFlags()[11] = false; - return this; - } - - /** Gets the value of the 'foreignKeysSpecs' field */ - public java.util.Map getForeignKeysSpecs() { - return foreignKeysSpecs; - } - - /** Sets the value of the 'foreignKeysSpecs' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder setForeignKeysSpecs(java.util.Map value) { - validate(fields()[12], value); - this.foreignKeysSpecs = value; - fieldSetFlags()[12] = true; - return this; - } - - /** Checks whether the 'foreignKeysSpecs' field has been set */ - public boolean hasForeignKeysSpecs() { - return fieldSetFlags()[12]; - } - - /** Clears the value of the 'foreignKeysSpecs' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearForeignKeysSpecs() { - foreignKeysSpecs = null; - fieldSetFlags()[12] = false; - return this; - } - - /** Gets the value of the 'foreignKeys' field */ - public java.util.List getForeignKeys() { - return foreignKeys; - } - - /** Sets the value of the 'foreignKeys' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder setForeignKeys(java.util.List value) { - validate(fields()[13], value); - this.foreignKeys = value; - fieldSetFlags()[13] = true; - return this; - } - - /** Checks whether the 'foreignKeys' field has been set */ - public boolean hasForeignKeys() { - return fieldSetFlags()[13]; - } - - /** Clears the value of the 'foreignKeys' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadata.Builder clearForeignKeys() { - foreignKeys = null; - fieldSetFlags()[13] = false; - return this; - } - - @Override - public SchemaMetadata build() { - try { - SchemaMetadata record = new SchemaMetadata(); - record.schemaName = fieldSetFlags()[0] ? this.schemaName : (java.lang.String) defaultValue(fields()[0]); - record.platform = fieldSetFlags()[1] ? this.platform : (java.lang.String) defaultValue(fields()[1]); - record.version = fieldSetFlags()[2] ? this.version : (java.lang.Long) defaultValue(fields()[2]); - record.created = fieldSetFlags()[3] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[3]); - record.lastModified = fieldSetFlags()[4] ? this.lastModified : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[4]); - record.deleted = fieldSetFlags()[5] ? this.deleted : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[5]); - record.dataset = fieldSetFlags()[6] ? this.dataset : (java.lang.String) defaultValue(fields()[6]); - record.cluster = fieldSetFlags()[7] ? this.cluster : (java.lang.String) defaultValue(fields()[7]); - record.hash = fieldSetFlags()[8] ? this.hash : (java.lang.String) defaultValue(fields()[8]); - record.platformSchema = fieldSetFlags()[9] ? this.platformSchema : (java.lang.Object) defaultValue(fields()[9]); - record.fields = fieldSetFlags()[10] ? this.fields : (java.util.List) defaultValue(fields()[10]); - record.primaryKeys = fieldSetFlags()[11] ? this.primaryKeys : (java.util.List) defaultValue(fields()[11]); - record.foreignKeysSpecs = fieldSetFlags()[12] ? this.foreignKeysSpecs : (java.util.Map) defaultValue(fields()[12]); - record.foreignKeys = fieldSetFlags()[13] ? this.foreignKeys : (java.util.List) defaultValue(fields()[13]); - 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/schema/SchemaMetadataKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/SchemaMetadataKey.java deleted file mode 100644 index e21f11db115d6..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/SchemaMetadataKey.java +++ /dev/null @@ -1,253 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Key to retrieve schema metadata. */ -@org.apache.avro.specific.AvroGenerated -public class SchemaMetadataKey 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\":\"SchemaMetadataKey\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Key to retrieve schema metadata.\",\"fields\":[{\"name\":\"schemaName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking\",\"validate\":{\"strlen\":{\"max\":500,\"min\":1}}},{\"name\":\"platform\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name})\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.DataPlatformUrn\"}},{\"name\":\"version\",\"type\":\"long\",\"doc\":\"Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking */ - @Deprecated public java.lang.String schemaName; - /** Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name}) */ - @Deprecated public java.lang.String platform; - /** Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version. */ - @Deprecated public long version; - - /** - * 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 SchemaMetadataKey() {} - - /** - * All-args constructor. - */ - public SchemaMetadataKey(java.lang.String schemaName, java.lang.String platform, java.lang.Long version) { - this.schemaName = schemaName; - this.platform = platform; - this.version = version; - } - - 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 schemaName; - case 1: return platform; - case 2: return version; - 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: schemaName = (java.lang.String)value$; break; - case 1: platform = (java.lang.String)value$; break; - case 2: version = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'schemaName' field. - * Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking */ - public java.lang.String getSchemaName() { - return schemaName; - } - - /** - * Sets the value of the 'schemaName' field. - * Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking * @param value the value to set. - */ - public void setSchemaName(java.lang.String value) { - this.schemaName = value; - } - - /** - * Gets the value of the 'platform' field. - * Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name}) */ - public java.lang.String getPlatform() { - return platform; - } - - /** - * Sets the value of the 'platform' field. - * Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name}) * @param value the value to set. - */ - public void setPlatform(java.lang.String value) { - this.platform = value; - } - - /** - * Gets the value of the 'version' field. - * Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version. */ - public java.lang.Long getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version. * @param value the value to set. - */ - public void setVersion(java.lang.Long value) { - this.version = value; - } - - /** Creates a new SchemaMetadataKey RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder(); - } - - /** Creates a new SchemaMetadataKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder newBuilder(com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder other) { - return new com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder(other); - } - - /** Creates a new SchemaMetadataKey RecordBuilder by copying an existing SchemaMetadataKey instance */ - public static com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder newBuilder(com.linkedin.pegasus2avro.schema.SchemaMetadataKey other) { - return new com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder(other); - } - - /** - * RecordBuilder for SchemaMetadataKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String schemaName; - private java.lang.String platform; - private long version; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.SchemaMetadataKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.schemaName)) { - this.schemaName = data().deepCopy(fields()[0].schema(), other.schemaName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.platform)) { - this.platform = data().deepCopy(fields()[1].schema(), other.platform); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.version)) { - this.version = data().deepCopy(fields()[2].schema(), other.version); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing SchemaMetadataKey instance */ - private Builder(com.linkedin.pegasus2avro.schema.SchemaMetadataKey other) { - super(com.linkedin.pegasus2avro.schema.SchemaMetadataKey.SCHEMA$); - if (isValidValue(fields()[0], other.schemaName)) { - this.schemaName = data().deepCopy(fields()[0].schema(), other.schemaName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.platform)) { - this.platform = data().deepCopy(fields()[1].schema(), other.platform); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.version)) { - this.version = data().deepCopy(fields()[2].schema(), other.version); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'schemaName' field */ - public java.lang.String getSchemaName() { - return schemaName; - } - - /** Sets the value of the 'schemaName' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder setSchemaName(java.lang.String value) { - validate(fields()[0], value); - this.schemaName = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'schemaName' field has been set */ - public boolean hasSchemaName() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'schemaName' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder clearSchemaName() { - schemaName = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.schema.SchemaMetadataKey.Builder setPlatform(java.lang.String value) { - validate(fields()[1], value); - this.platform = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'platform' field has been set */ - public boolean hasPlatform() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'platform' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder clearPlatform() { - platform = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public java.lang.Long getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder setVersion(long value) { - validate(fields()[2], value); - this.version = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.schema.SchemaMetadataKey.Builder clearVersion() { - fieldSetFlags()[2] = false; - return this; - } - - @Override - public SchemaMetadataKey build() { - try { - SchemaMetadataKey record = new SchemaMetadataKey(); - record.schemaName = fieldSetFlags()[0] ? this.schemaName : (java.lang.String) defaultValue(fields()[0]); - record.platform = fieldSetFlags()[1] ? this.platform : (java.lang.String) defaultValue(fields()[1]); - record.version = fieldSetFlags()[2] ? this.version : (java.lang.Long) 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/schema/Schemaless.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/Schemaless.java deleted file mode 100644 index b6d47e04994de..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/Schemaless.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** The dataset has no specific schema associated with it */ -@org.apache.avro.specific.AvroGenerated -public class Schemaless 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\":\"Schemaless\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"The dataset has no specific schema associated with it\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new Schemaless RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.Schemaless.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.Schemaless.Builder(); - } - - /** Creates a new Schemaless RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.Schemaless.Builder newBuilder(com.linkedin.pegasus2avro.schema.Schemaless.Builder other) { - return new com.linkedin.pegasus2avro.schema.Schemaless.Builder(other); - } - - /** Creates a new Schemaless RecordBuilder by copying an existing Schemaless instance */ - public static com.linkedin.pegasus2avro.schema.Schemaless.Builder newBuilder(com.linkedin.pegasus2avro.schema.Schemaless other) { - return new com.linkedin.pegasus2avro.schema.Schemaless.Builder(other); - } - - /** - * RecordBuilder for Schemaless instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.Schemaless.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.Schemaless.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Schemaless instance */ - private Builder(com.linkedin.pegasus2avro.schema.Schemaless other) { - super(com.linkedin.pegasus2avro.schema.Schemaless.SCHEMA$); - } - - @Override - public Schemaless build() { - try { - Schemaless record = new Schemaless(); - 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/schema/StringType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/StringType.java deleted file mode 100644 index fa594c91696c5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/StringType.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** String field type. */ -@org.apache.avro.specific.AvroGenerated -public class StringType 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\":\"StringType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"String field type.\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new StringType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.StringType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.StringType.Builder(); - } - - /** Creates a new StringType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.StringType.Builder newBuilder(com.linkedin.pegasus2avro.schema.StringType.Builder other) { - return new com.linkedin.pegasus2avro.schema.StringType.Builder(other); - } - - /** Creates a new StringType RecordBuilder by copying an existing StringType instance */ - public static com.linkedin.pegasus2avro.schema.StringType.Builder newBuilder(com.linkedin.pegasus2avro.schema.StringType other) { - return new com.linkedin.pegasus2avro.schema.StringType.Builder(other); - } - - /** - * RecordBuilder for StringType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.StringType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.StringType.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing StringType instance */ - private Builder(com.linkedin.pegasus2avro.schema.StringType other) { - super(com.linkedin.pegasus2avro.schema.StringType.SCHEMA$); - } - - @Override - public StringType build() { - try { - StringType record = new StringType(); - 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/schema/TimeType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/TimeType.java deleted file mode 100644 index d0ff78de5c6bd..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/TimeType.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Time field type. This should also be used for datetimes. */ -@org.apache.avro.specific.AvroGenerated -public class TimeType 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\":\"TimeType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Time field type. This should also be used for datetimes.\",\"fields\":[]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - 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$) { - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** Creates a new TimeType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.TimeType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.TimeType.Builder(); - } - - /** Creates a new TimeType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.TimeType.Builder newBuilder(com.linkedin.pegasus2avro.schema.TimeType.Builder other) { - return new com.linkedin.pegasus2avro.schema.TimeType.Builder(other); - } - - /** Creates a new TimeType RecordBuilder by copying an existing TimeType instance */ - public static com.linkedin.pegasus2avro.schema.TimeType.Builder newBuilder(com.linkedin.pegasus2avro.schema.TimeType other) { - return new com.linkedin.pegasus2avro.schema.TimeType.Builder(other); - } - - /** - * RecordBuilder for TimeType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.TimeType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.TimeType.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing TimeType instance */ - private Builder(com.linkedin.pegasus2avro.schema.TimeType other) { - super(com.linkedin.pegasus2avro.schema.TimeType.SCHEMA$); - } - - @Override - public TimeType build() { - try { - TimeType record = new TimeType(); - 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/schema/UnionType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/UnionType.java deleted file mode 100644 index d2f2a21c1d19f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/UnionType.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** Union field type. */ -@org.apache.avro.specific.AvroGenerated -public class UnionType 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\":\"UnionType\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"Union field type.\",\"fields\":[{\"name\":\"nestedTypes\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\"List of types in union type.\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** List of types in union type. */ - @Deprecated public java.util.List nestedTypes; - - /** - * 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 UnionType() {} - - /** - * All-args constructor. - */ - public UnionType(java.util.List nestedTypes) { - this.nestedTypes = nestedTypes; - } - - 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 nestedTypes; - 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: nestedTypes = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'nestedTypes' field. - * List of types in union type. */ - public java.util.List getNestedTypes() { - return nestedTypes; - } - - /** - * Sets the value of the 'nestedTypes' field. - * List of types in union type. * @param value the value to set. - */ - public void setNestedTypes(java.util.List value) { - this.nestedTypes = value; - } - - /** Creates a new UnionType RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.UnionType.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.UnionType.Builder(); - } - - /** Creates a new UnionType RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.UnionType.Builder newBuilder(com.linkedin.pegasus2avro.schema.UnionType.Builder other) { - return new com.linkedin.pegasus2avro.schema.UnionType.Builder(other); - } - - /** Creates a new UnionType RecordBuilder by copying an existing UnionType instance */ - public static com.linkedin.pegasus2avro.schema.UnionType.Builder newBuilder(com.linkedin.pegasus2avro.schema.UnionType other) { - return new com.linkedin.pegasus2avro.schema.UnionType.Builder(other); - } - - /** - * RecordBuilder for UnionType instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List nestedTypes; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.UnionType.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.UnionType.Builder other) { - super(other); - if (isValidValue(fields()[0], other.nestedTypes)) { - this.nestedTypes = data().deepCopy(fields()[0].schema(), other.nestedTypes); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing UnionType instance */ - private Builder(com.linkedin.pegasus2avro.schema.UnionType other) { - super(com.linkedin.pegasus2avro.schema.UnionType.SCHEMA$); - if (isValidValue(fields()[0], other.nestedTypes)) { - this.nestedTypes = data().deepCopy(fields()[0].schema(), other.nestedTypes); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'nestedTypes' field */ - public java.util.List getNestedTypes() { - return nestedTypes; - } - - /** Sets the value of the 'nestedTypes' field */ - public com.linkedin.pegasus2avro.schema.UnionType.Builder setNestedTypes(java.util.List value) { - validate(fields()[0], value); - this.nestedTypes = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'nestedTypes' field has been set */ - public boolean hasNestedTypes() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'nestedTypes' field */ - public com.linkedin.pegasus2avro.schema.UnionType.Builder clearNestedTypes() { - nestedTypes = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public UnionType build() { - try { - UnionType record = new UnionType(); - record.nestedTypes = fieldSetFlags()[0] ? this.nestedTypes : (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/schema/UrnForeignKey.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/UrnForeignKey.java deleted file mode 100644 index 9f5a5535ef286..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/schema/UrnForeignKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.schema; -@SuppressWarnings("all") -/** If SchemaMetadata fields make any external references and references are of type com.linkedin.pegasus2avro.common.Urn or any children, this models can be used to mark it. */ -@org.apache.avro.specific.AvroGenerated -public class UrnForeignKey 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\":\"UrnForeignKey\",\"namespace\":\"com.linkedin.pegasus2avro.schema\",\"doc\":\"If SchemaMetadata fields make any external references and references are of type com.linkedin.pegasus2avro.common.Urn or any children, this models can be used to mark it.\",\"fields\":[{\"name\":\"currentFieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Field in hosting(current) SchemaMetadata.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Field in hosting(current) SchemaMetadata. */ - @Deprecated public java.lang.String currentFieldPath; - - /** - * 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 UrnForeignKey() {} - - /** - * All-args constructor. - */ - public UrnForeignKey(java.lang.String currentFieldPath) { - this.currentFieldPath = currentFieldPath; - } - - 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 currentFieldPath; - 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: currentFieldPath = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'currentFieldPath' field. - * Field in hosting(current) SchemaMetadata. */ - public java.lang.String getCurrentFieldPath() { - return currentFieldPath; - } - - /** - * Sets the value of the 'currentFieldPath' field. - * Field in hosting(current) SchemaMetadata. * @param value the value to set. - */ - public void setCurrentFieldPath(java.lang.String value) { - this.currentFieldPath = value; - } - - /** Creates a new UrnForeignKey RecordBuilder */ - public static com.linkedin.pegasus2avro.schema.UrnForeignKey.Builder newBuilder() { - return new com.linkedin.pegasus2avro.schema.UrnForeignKey.Builder(); - } - - /** Creates a new UrnForeignKey RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.schema.UrnForeignKey.Builder newBuilder(com.linkedin.pegasus2avro.schema.UrnForeignKey.Builder other) { - return new com.linkedin.pegasus2avro.schema.UrnForeignKey.Builder(other); - } - - /** Creates a new UrnForeignKey RecordBuilder by copying an existing UrnForeignKey instance */ - public static com.linkedin.pegasus2avro.schema.UrnForeignKey.Builder newBuilder(com.linkedin.pegasus2avro.schema.UrnForeignKey other) { - return new com.linkedin.pegasus2avro.schema.UrnForeignKey.Builder(other); - } - - /** - * RecordBuilder for UrnForeignKey instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String currentFieldPath; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.schema.UrnForeignKey.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.schema.UrnForeignKey.Builder other) { - super(other); - if (isValidValue(fields()[0], other.currentFieldPath)) { - this.currentFieldPath = data().deepCopy(fields()[0].schema(), other.currentFieldPath); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing UrnForeignKey instance */ - private Builder(com.linkedin.pegasus2avro.schema.UrnForeignKey other) { - super(com.linkedin.pegasus2avro.schema.UrnForeignKey.SCHEMA$); - if (isValidValue(fields()[0], other.currentFieldPath)) { - this.currentFieldPath = data().deepCopy(fields()[0].schema(), other.currentFieldPath); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'currentFieldPath' field */ - public java.lang.String getCurrentFieldPath() { - return currentFieldPath; - } - - /** Sets the value of the 'currentFieldPath' field */ - public com.linkedin.pegasus2avro.schema.UrnForeignKey.Builder setCurrentFieldPath(java.lang.String value) { - validate(fields()[0], value); - this.currentFieldPath = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'currentFieldPath' field has been set */ - public boolean hasCurrentFieldPath() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'currentFieldPath' field */ - public com.linkedin.pegasus2avro.schema.UrnForeignKey.Builder clearCurrentFieldPath() { - currentFieldPath = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public UrnForeignKey build() { - try { - UrnForeignKey record = new UrnForeignKey(); - record.currentFieldPath = fieldSetFlags()[0] ? this.currentFieldPath : (java.lang.String) 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/secret/DataHubSecretValue.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/secret/DataHubSecretValue.java deleted file mode 100644 index 18c4120f6e867..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/secret/DataHubSecretValue.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.secret; -@SuppressWarnings("all") -/** The value of a DataHub Secret */ -@org.apache.avro.specific.AvroGenerated -public class DataHubSecretValue 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\":\"DataHubSecretValue\",\"namespace\":\"com.linkedin.pegasus2avro.secret\",\"doc\":\"The value of a DataHub Secret\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The display name for the secret\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The AES-encrypted value of the DataHub secret.\"},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description of the secret\",\"default\":null},{\"name\":\"created\",\"type\":[\"null\",{\"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\":\"Created Audit stamp\",\"default\":null,\"Searchable\":{\"/time\":{\"fieldName\":\"createdTime\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"name\":\"dataHubSecretValue\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The display name for the secret */ - @Deprecated public java.lang.String name; - /** The AES-encrypted value of the DataHub secret. */ - @Deprecated public java.lang.String value; - /** Description of the secret */ - @Deprecated public java.lang.String description; - /** Created Audit stamp */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created; - - /** - * 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 DataHubSecretValue() {} - - /** - * All-args constructor. - */ - public DataHubSecretValue(java.lang.String name, java.lang.String value, java.lang.String description, com.linkedin.pegasus2avro.common.AuditStamp created) { - this.name = name; - this.value = value; - this.description = description; - this.created = created; - } - - 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 value; - case 2: return description; - case 3: return created; - 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: value = (java.lang.String)value$; break; - case 2: description = (java.lang.String)value$; break; - case 3: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * The display name for the secret */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * The display name for the secret * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'value' field. - * The AES-encrypted value of the DataHub secret. */ - public java.lang.String getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * The AES-encrypted value of the DataHub secret. * @param value the value to set. - */ - public void setValue(java.lang.String value) { - this.value = value; - } - - /** - * Gets the value of the 'description' field. - * Description of the secret */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Description of the secret * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'created' field. - * Created Audit stamp */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * Created Audit stamp * @param value the value to set. - */ - public void setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.created = value; - } - - /** Creates a new DataHubSecretValue RecordBuilder */ - public static com.linkedin.pegasus2avro.secret.DataHubSecretValue.Builder newBuilder() { - return new com.linkedin.pegasus2avro.secret.DataHubSecretValue.Builder(); - } - - /** Creates a new DataHubSecretValue RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.secret.DataHubSecretValue.Builder newBuilder(com.linkedin.pegasus2avro.secret.DataHubSecretValue.Builder other) { - return new com.linkedin.pegasus2avro.secret.DataHubSecretValue.Builder(other); - } - - /** Creates a new DataHubSecretValue RecordBuilder by copying an existing DataHubSecretValue instance */ - public static com.linkedin.pegasus2avro.secret.DataHubSecretValue.Builder newBuilder(com.linkedin.pegasus2avro.secret.DataHubSecretValue other) { - return new com.linkedin.pegasus2avro.secret.DataHubSecretValue.Builder(other); - } - - /** - * RecordBuilder for DataHubSecretValue 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 value; - private java.lang.String description; - private com.linkedin.pegasus2avro.common.AuditStamp created; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.secret.DataHubSecretValue.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.secret.DataHubSecretValue.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.value)) { - this.value = data().deepCopy(fields()[1].schema(), other.value); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.description)) { - this.description = data().deepCopy(fields()[2].schema(), other.description); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.created)) { - this.created = data().deepCopy(fields()[3].schema(), other.created); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing DataHubSecretValue instance */ - private Builder(com.linkedin.pegasus2avro.secret.DataHubSecretValue other) { - super(com.linkedin.pegasus2avro.secret.DataHubSecretValue.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.value)) { - this.value = data().deepCopy(fields()[1].schema(), other.value); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.description)) { - this.description = data().deepCopy(fields()[2].schema(), other.description); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.created)) { - this.created = data().deepCopy(fields()[3].schema(), other.created); - fieldSetFlags()[3] = 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.secret.DataHubSecretValue.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.secret.DataHubSecretValue.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** 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.secret.DataHubSecretValue.Builder setValue(java.lang.String value) { - validate(fields()[1], value); - this.value = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'value' field has been set */ - public boolean hasValue() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'value' field */ - public com.linkedin.pegasus2avro.secret.DataHubSecretValue.Builder clearValue() { - value = null; - fieldSetFlags()[1] = 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.secret.DataHubSecretValue.Builder setDescription(java.lang.String value) { - validate(fields()[2], value); - this.description = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.secret.DataHubSecretValue.Builder clearDescription() { - description = null; - fieldSetFlags()[2] = 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.secret.DataHubSecretValue.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[3], value); - this.created = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.secret.DataHubSecretValue.Builder clearCreated() { - created = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public DataHubSecretValue build() { - try { - DataHubSecretValue record = new DataHubSecretValue(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.value = fieldSetFlags()[1] ? this.value : (java.lang.String) defaultValue(fields()[1]); - record.description = fieldSetFlags()[2] ? this.description : (java.lang.String) defaultValue(fields()[2]); - record.created = fieldSetFlags()[3] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) 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/settings/global/GlobalSettingsInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/settings/global/GlobalSettingsInfo.java deleted file mode 100644 index cc2b322eef19f..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/settings/global/GlobalSettingsInfo.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.settings.global; -@SuppressWarnings("all") -/** DataHub Global platform settings. Careful - these should not be modified by the outside world! */ -@org.apache.avro.specific.AvroGenerated -public class GlobalSettingsInfo 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\":\"GlobalSettingsInfo\",\"namespace\":\"com.linkedin.pegasus2avro.settings.global\",\"doc\":\"DataHub Global platform settings. Careful - these should not be modified by the outside world!\",\"fields\":[{\"name\":\"views\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"GlobalViewsSettings\",\"doc\":\"Settings for DataHub Views feature.\",\"fields\":[{\"name\":\"defaultView\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The default View for the instance, or organization.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}],\"doc\":\"Settings related to the Views Feature\",\"default\":null}],\"Aspect\":{\"name\":\"globalSettingsInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Settings related to the Views Feature */ - @Deprecated public com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings views; - - /** - * 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 GlobalSettingsInfo() {} - - /** - * All-args constructor. - */ - public GlobalSettingsInfo(com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings views) { - this.views = views; - } - - 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 views; - 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: views = (com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'views' field. - * Settings related to the Views Feature */ - public com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings getViews() { - return views; - } - - /** - * Sets the value of the 'views' field. - * Settings related to the Views Feature * @param value the value to set. - */ - public void setViews(com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings value) { - this.views = value; - } - - /** Creates a new GlobalSettingsInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo.Builder(); - } - - /** Creates a new GlobalSettingsInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo.Builder newBuilder(com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo.Builder other) { - return new com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo.Builder(other); - } - - /** Creates a new GlobalSettingsInfo RecordBuilder by copying an existing GlobalSettingsInfo instance */ - public static com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo.Builder newBuilder(com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo other) { - return new com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo.Builder(other); - } - - /** - * RecordBuilder for GlobalSettingsInfo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings views; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo.Builder other) { - super(other); - if (isValidValue(fields()[0], other.views)) { - this.views = data().deepCopy(fields()[0].schema(), other.views); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing GlobalSettingsInfo instance */ - private Builder(com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo other) { - super(com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo.SCHEMA$); - if (isValidValue(fields()[0], other.views)) { - this.views = data().deepCopy(fields()[0].schema(), other.views); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'views' field */ - public com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings getViews() { - return views; - } - - /** Sets the value of the 'views' field */ - public com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo.Builder setViews(com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings value) { - validate(fields()[0], value); - this.views = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'views' field has been set */ - public boolean hasViews() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'views' field */ - public com.linkedin.pegasus2avro.settings.global.GlobalSettingsInfo.Builder clearViews() { - views = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public GlobalSettingsInfo build() { - try { - GlobalSettingsInfo record = new GlobalSettingsInfo(); - record.views = fieldSetFlags()[0] ? this.views : (com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings) 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/settings/global/GlobalViewsSettings.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/settings/global/GlobalViewsSettings.java deleted file mode 100644 index 97cb3a1633454..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/settings/global/GlobalViewsSettings.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.settings.global; -@SuppressWarnings("all") -/** Settings for DataHub Views feature. */ -@org.apache.avro.specific.AvroGenerated -public class GlobalViewsSettings 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\":\"GlobalViewsSettings\",\"namespace\":\"com.linkedin.pegasus2avro.settings.global\",\"doc\":\"Settings for DataHub Views feature.\",\"fields\":[{\"name\":\"defaultView\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The default View for the instance, or organization.\",\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The default View for the instance, or organization. */ - @Deprecated public java.lang.String defaultView; - - /** - * 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 GlobalViewsSettings() {} - - /** - * All-args constructor. - */ - public GlobalViewsSettings(java.lang.String defaultView) { - this.defaultView = defaultView; - } - - 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 defaultView; - 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: defaultView = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'defaultView' field. - * The default View for the instance, or organization. */ - public java.lang.String getDefaultView() { - return defaultView; - } - - /** - * Sets the value of the 'defaultView' field. - * The default View for the instance, or organization. * @param value the value to set. - */ - public void setDefaultView(java.lang.String value) { - this.defaultView = value; - } - - /** Creates a new GlobalViewsSettings RecordBuilder */ - public static com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings.Builder newBuilder() { - return new com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings.Builder(); - } - - /** Creates a new GlobalViewsSettings RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings.Builder newBuilder(com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings.Builder other) { - return new com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings.Builder(other); - } - - /** Creates a new GlobalViewsSettings RecordBuilder by copying an existing GlobalViewsSettings instance */ - public static com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings.Builder newBuilder(com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings other) { - return new com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings.Builder(other); - } - - /** - * RecordBuilder for GlobalViewsSettings instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String defaultView; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings.Builder other) { - super(other); - if (isValidValue(fields()[0], other.defaultView)) { - this.defaultView = data().deepCopy(fields()[0].schema(), other.defaultView); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing GlobalViewsSettings instance */ - private Builder(com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings other) { - super(com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings.SCHEMA$); - if (isValidValue(fields()[0], other.defaultView)) { - this.defaultView = data().deepCopy(fields()[0].schema(), other.defaultView); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'defaultView' field */ - public java.lang.String getDefaultView() { - return defaultView; - } - - /** Sets the value of the 'defaultView' field */ - public com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings.Builder setDefaultView(java.lang.String value) { - validate(fields()[0], value); - this.defaultView = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'defaultView' field has been set */ - public boolean hasDefaultView() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'defaultView' field */ - public com.linkedin.pegasus2avro.settings.global.GlobalViewsSettings.Builder clearDefaultView() { - defaultView = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public GlobalViewsSettings build() { - try { - GlobalViewsSettings record = new GlobalViewsSettings(); - record.defaultView = fieldSetFlags()[0] ? this.defaultView : (java.lang.String) 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/step/DataHubStepStateProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/step/DataHubStepStateProperties.java deleted file mode 100644 index 726892a1a5a58..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/step/DataHubStepStateProperties.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.step; -@SuppressWarnings("all") -/** The properties associated with a DataHub step state */ -@org.apache.avro.specific.AvroGenerated -public class DataHubStepStateProperties 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\":\"DataHubStepStateProperties\",\"namespace\":\"com.linkedin.pegasus2avro.step\",\"doc\":\"The properties associated with a DataHub step state\",\"fields\":[{\"name\":\"properties\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"},\"doc\":\"Description of the secret\",\"default\":{}},{\"name\":\"lastModified\",\"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\":\"Audit stamp describing the last person to update it.\"}],\"Aspect\":{\"name\":\"dataHubStepStateProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Description of the secret */ - @Deprecated public java.util.Map properties; - /** Audit stamp describing the last person to update it. */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp lastModified; - - /** - * 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 DataHubStepStateProperties() {} - - /** - * All-args constructor. - */ - public DataHubStepStateProperties(java.util.Map properties, com.linkedin.pegasus2avro.common.AuditStamp lastModified) { - this.properties = properties; - this.lastModified = lastModified; - } - - 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 properties; - case 1: return lastModified; - 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: properties = (java.util.Map)value$; break; - case 1: lastModified = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'properties' field. - * Description of the secret */ - public java.util.Map getProperties() { - return properties; - } - - /** - * Sets the value of the 'properties' field. - * Description of the secret * @param value the value to set. - */ - public void setProperties(java.util.Map value) { - this.properties = value; - } - - /** - * Gets the value of the 'lastModified' field. - * Audit stamp describing the last person to update it. */ - public com.linkedin.pegasus2avro.common.AuditStamp getLastModified() { - return lastModified; - } - - /** - * Sets the value of the 'lastModified' field. - * Audit stamp describing the last person to update it. * @param value the value to set. - */ - public void setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.lastModified = value; - } - - /** Creates a new DataHubStepStateProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.step.DataHubStepStateProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.step.DataHubStepStateProperties.Builder(); - } - - /** Creates a new DataHubStepStateProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.step.DataHubStepStateProperties.Builder newBuilder(com.linkedin.pegasus2avro.step.DataHubStepStateProperties.Builder other) { - return new com.linkedin.pegasus2avro.step.DataHubStepStateProperties.Builder(other); - } - - /** Creates a new DataHubStepStateProperties RecordBuilder by copying an existing DataHubStepStateProperties instance */ - public static com.linkedin.pegasus2avro.step.DataHubStepStateProperties.Builder newBuilder(com.linkedin.pegasus2avro.step.DataHubStepStateProperties other) { - return new com.linkedin.pegasus2avro.step.DataHubStepStateProperties.Builder(other); - } - - /** - * RecordBuilder for DataHubStepStateProperties instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.Map properties; - private com.linkedin.pegasus2avro.common.AuditStamp lastModified; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.step.DataHubStepStateProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.step.DataHubStepStateProperties.Builder other) { - super(other); - if (isValidValue(fields()[0], other.properties)) { - this.properties = data().deepCopy(fields()[0].schema(), other.properties); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[1].schema(), other.lastModified); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataHubStepStateProperties instance */ - private Builder(com.linkedin.pegasus2avro.step.DataHubStepStateProperties other) { - super(com.linkedin.pegasus2avro.step.DataHubStepStateProperties.SCHEMA$); - if (isValidValue(fields()[0], other.properties)) { - this.properties = data().deepCopy(fields()[0].schema(), other.properties); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[1].schema(), other.lastModified); - fieldSetFlags()[1] = true; - } - } - - /** 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.step.DataHubStepStateProperties.Builder setProperties(java.util.Map value) { - validate(fields()[0], value); - this.properties = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'properties' field has been set */ - public boolean hasProperties() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'properties' field */ - public com.linkedin.pegasus2avro.step.DataHubStepStateProperties.Builder clearProperties() { - properties = 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.step.DataHubStepStateProperties.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.step.DataHubStepStateProperties.Builder clearLastModified() { - lastModified = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataHubStepStateProperties build() { - try { - DataHubStepStateProperties record = new DataHubStepStateProperties(); - record.properties = fieldSetFlags()[0] ? this.properties : (java.util.Map) defaultValue(fields()[0]); - record.lastModified = fieldSetFlags()[1] ? this.lastModified : (com.linkedin.pegasus2avro.common.AuditStamp) 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/tag/TagProperties.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/tag/TagProperties.java deleted file mode 100644 index 7b525dca5da2b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/tag/TagProperties.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.tag; -@SuppressWarnings("all") -/** Properties associated with a Tag */ -@org.apache.avro.specific.AvroGenerated -public class TagProperties 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\":\"TagProperties\",\"namespace\":\"com.linkedin.pegasus2avro.tag\",\"doc\":\"Properties associated with a Tag\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Display name of the tag\",\"Searchable\":{\"boostScore\":10.0,\"enableAutocomplete\":true,\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Documentation of the tag\",\"default\":null,\"Searchable\":{}},{\"name\":\"colorHex\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"The color associated with the Tag in Hex. For example #FFFFFF.\",\"default\":null}],\"Aspect\":{\"name\":\"tagProperties\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Display name of the tag */ - @Deprecated public java.lang.String name; - /** Documentation of the tag */ - @Deprecated public java.lang.String description; - /** The color associated with the Tag in Hex. For example #FFFFFF. */ - @Deprecated public java.lang.String colorHex; - - /** - * 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 TagProperties() {} - - /** - * All-args constructor. - */ - public TagProperties(java.lang.String name, java.lang.String description, java.lang.String colorHex) { - this.name = name; - this.description = description; - this.colorHex = colorHex; - } - - 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 description; - case 2: return colorHex; - 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: description = (java.lang.String)value$; break; - case 2: colorHex = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * Display name of the tag */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * Display name of the tag * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'description' field. - * Documentation of the tag */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Documentation of the tag * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'colorHex' field. - * The color associated with the Tag in Hex. For example #FFFFFF. */ - public java.lang.String getColorHex() { - return colorHex; - } - - /** - * Sets the value of the 'colorHex' field. - * The color associated with the Tag in Hex. For example #FFFFFF. * @param value the value to set. - */ - public void setColorHex(java.lang.String value) { - this.colorHex = value; - } - - /** Creates a new TagProperties RecordBuilder */ - public static com.linkedin.pegasus2avro.tag.TagProperties.Builder newBuilder() { - return new com.linkedin.pegasus2avro.tag.TagProperties.Builder(); - } - - /** Creates a new TagProperties RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.tag.TagProperties.Builder newBuilder(com.linkedin.pegasus2avro.tag.TagProperties.Builder other) { - return new com.linkedin.pegasus2avro.tag.TagProperties.Builder(other); - } - - /** Creates a new TagProperties RecordBuilder by copying an existing TagProperties instance */ - public static com.linkedin.pegasus2avro.tag.TagProperties.Builder newBuilder(com.linkedin.pegasus2avro.tag.TagProperties other) { - return new com.linkedin.pegasus2avro.tag.TagProperties.Builder(other); - } - - /** - * RecordBuilder for TagProperties 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 description; - private java.lang.String colorHex; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.tag.TagProperties.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.tag.TagProperties.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.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.colorHex)) { - this.colorHex = data().deepCopy(fields()[2].schema(), other.colorHex); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing TagProperties instance */ - private Builder(com.linkedin.pegasus2avro.tag.TagProperties other) { - super(com.linkedin.pegasus2avro.tag.TagProperties.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.colorHex)) { - this.colorHex = data().deepCopy(fields()[2].schema(), other.colorHex); - fieldSetFlags()[2] = 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.tag.TagProperties.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.tag.TagProperties.Builder clearName() { - name = null; - fieldSetFlags()[0] = 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.tag.TagProperties.Builder setDescription(java.lang.String value) { - validate(fields()[1], value); - this.description = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.tag.TagProperties.Builder clearDescription() { - description = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'colorHex' field */ - public java.lang.String getColorHex() { - return colorHex; - } - - /** Sets the value of the 'colorHex' field */ - public com.linkedin.pegasus2avro.tag.TagProperties.Builder setColorHex(java.lang.String value) { - validate(fields()[2], value); - this.colorHex = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'colorHex' field has been set */ - public boolean hasColorHex() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'colorHex' field */ - public com.linkedin.pegasus2avro.tag.TagProperties.Builder clearColorHex() { - colorHex = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public TagProperties build() { - try { - TagProperties record = new TagProperties(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.description = fieldSetFlags()[1] ? this.description : (java.lang.String) defaultValue(fields()[1]); - record.colorHex = fieldSetFlags()[2] ? this.colorHex : (java.lang.String) 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/telemetry/TelemetryClientId.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/telemetry/TelemetryClientId.java deleted file mode 100644 index ae1fd5c6dc9e9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/telemetry/TelemetryClientId.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.telemetry; -@SuppressWarnings("all") -/** A simple wrapper around a String to persist the client ID for telemetry in DataHub's backend DB */ -@org.apache.avro.specific.AvroGenerated -public class TelemetryClientId 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\":\"TelemetryClientId\",\"namespace\":\"com.linkedin.pegasus2avro.telemetry\",\"doc\":\"A simple wrapper around a String to persist the client ID for telemetry in DataHub's backend DB\",\"fields\":[{\"name\":\"clientId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"A string representing the telemetry client ID\"}],\"Aspect\":{\"name\":\"telemetryClientId\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** A string representing the telemetry client ID */ - @Deprecated public java.lang.String clientId; - - /** - * 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 TelemetryClientId() {} - - /** - * All-args constructor. - */ - public TelemetryClientId(java.lang.String clientId) { - this.clientId = clientId; - } - - 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 clientId; - 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: clientId = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'clientId' field. - * A string representing the telemetry client ID */ - public java.lang.String getClientId() { - return clientId; - } - - /** - * Sets the value of the 'clientId' field. - * A string representing the telemetry client ID * @param value the value to set. - */ - public void setClientId(java.lang.String value) { - this.clientId = value; - } - - /** Creates a new TelemetryClientId RecordBuilder */ - public static com.linkedin.pegasus2avro.telemetry.TelemetryClientId.Builder newBuilder() { - return new com.linkedin.pegasus2avro.telemetry.TelemetryClientId.Builder(); - } - - /** Creates a new TelemetryClientId RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.telemetry.TelemetryClientId.Builder newBuilder(com.linkedin.pegasus2avro.telemetry.TelemetryClientId.Builder other) { - return new com.linkedin.pegasus2avro.telemetry.TelemetryClientId.Builder(other); - } - - /** Creates a new TelemetryClientId RecordBuilder by copying an existing TelemetryClientId instance */ - public static com.linkedin.pegasus2avro.telemetry.TelemetryClientId.Builder newBuilder(com.linkedin.pegasus2avro.telemetry.TelemetryClientId other) { - return new com.linkedin.pegasus2avro.telemetry.TelemetryClientId.Builder(other); - } - - /** - * RecordBuilder for TelemetryClientId instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String clientId; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.telemetry.TelemetryClientId.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.telemetry.TelemetryClientId.Builder other) { - super(other); - if (isValidValue(fields()[0], other.clientId)) { - this.clientId = data().deepCopy(fields()[0].schema(), other.clientId); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing TelemetryClientId instance */ - private Builder(com.linkedin.pegasus2avro.telemetry.TelemetryClientId other) { - super(com.linkedin.pegasus2avro.telemetry.TelemetryClientId.SCHEMA$); - if (isValidValue(fields()[0], other.clientId)) { - this.clientId = data().deepCopy(fields()[0].schema(), other.clientId); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'clientId' field */ - public java.lang.String getClientId() { - return clientId; - } - - /** Sets the value of the 'clientId' field */ - public com.linkedin.pegasus2avro.telemetry.TelemetryClientId.Builder setClientId(java.lang.String value) { - validate(fields()[0], value); - this.clientId = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'clientId' field has been set */ - public boolean hasClientId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'clientId' field */ - public com.linkedin.pegasus2avro.telemetry.TelemetryClientId.Builder clearClientId() { - clientId = null; - fieldSetFlags()[0] = false; - return this; - } - - @Override - public TelemetryClientId build() { - try { - TelemetryClientId record = new TelemetryClientId(); - record.clientId = fieldSetFlags()[0] ? this.clientId : (java.lang.String) 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/test/TestDefinition.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestDefinition.java deleted file mode 100644 index 5b4964df9f92b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestDefinition.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.test; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class TestDefinition 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\":\"TestDefinition\",\"namespace\":\"com.linkedin.pegasus2avro.test\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"TestDefinitionType\",\"symbols\":[\"JSON\"],\"symbolDocs\":{\"JSON\":\"JSON / YAML test def\"}},\"doc\":\"The Test Definition Type\"},{\"name\":\"json\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"JSON format configuration for the test\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The Test Definition Type */ - @Deprecated public com.linkedin.pegasus2avro.test.TestDefinitionType type; - /** JSON format configuration for the test */ - @Deprecated public java.lang.String json; - - /** - * 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 TestDefinition() {} - - /** - * All-args constructor. - */ - public TestDefinition(com.linkedin.pegasus2avro.test.TestDefinitionType type, java.lang.String json) { - this.type = type; - this.json = json; - } - - 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 json; - 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.test.TestDefinitionType)value$; break; - case 1: json = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * The Test Definition Type */ - public com.linkedin.pegasus2avro.test.TestDefinitionType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The Test Definition Type * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.test.TestDefinitionType value) { - this.type = value; - } - - /** - * Gets the value of the 'json' field. - * JSON format configuration for the test */ - public java.lang.String getJson() { - return json; - } - - /** - * Sets the value of the 'json' field. - * JSON format configuration for the test * @param value the value to set. - */ - public void setJson(java.lang.String value) { - this.json = value; - } - - /** Creates a new TestDefinition RecordBuilder */ - public static com.linkedin.pegasus2avro.test.TestDefinition.Builder newBuilder() { - return new com.linkedin.pegasus2avro.test.TestDefinition.Builder(); - } - - /** Creates a new TestDefinition RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.test.TestDefinition.Builder newBuilder(com.linkedin.pegasus2avro.test.TestDefinition.Builder other) { - return new com.linkedin.pegasus2avro.test.TestDefinition.Builder(other); - } - - /** Creates a new TestDefinition RecordBuilder by copying an existing TestDefinition instance */ - public static com.linkedin.pegasus2avro.test.TestDefinition.Builder newBuilder(com.linkedin.pegasus2avro.test.TestDefinition other) { - return new com.linkedin.pegasus2avro.test.TestDefinition.Builder(other); - } - - /** - * RecordBuilder for TestDefinition instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.test.TestDefinitionType type; - private java.lang.String json; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.test.TestDefinition.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.test.TestDefinition.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.json)) { - this.json = data().deepCopy(fields()[1].schema(), other.json); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing TestDefinition instance */ - private Builder(com.linkedin.pegasus2avro.test.TestDefinition other) { - super(com.linkedin.pegasus2avro.test.TestDefinition.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.json)) { - this.json = data().deepCopy(fields()[1].schema(), other.json); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.test.TestDefinitionType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.test.TestDefinition.Builder setType(com.linkedin.pegasus2avro.test.TestDefinitionType 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.test.TestDefinition.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'json' field */ - public java.lang.String getJson() { - return json; - } - - /** Sets the value of the 'json' field */ - public com.linkedin.pegasus2avro.test.TestDefinition.Builder setJson(java.lang.String value) { - validate(fields()[1], value); - this.json = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'json' field has been set */ - public boolean hasJson() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'json' field */ - public com.linkedin.pegasus2avro.test.TestDefinition.Builder clearJson() { - json = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public TestDefinition build() { - try { - TestDefinition record = new TestDefinition(); - record.type = fieldSetFlags()[0] ? this.type : (com.linkedin.pegasus2avro.test.TestDefinitionType) defaultValue(fields()[0]); - record.json = fieldSetFlags()[1] ? this.json : (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/test/TestDefinitionType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestDefinitionType.java deleted file mode 100644 index dc0df750c7d9d..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestDefinitionType.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.test; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum TestDefinitionType { - JSON ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"TestDefinitionType\",\"namespace\":\"com.linkedin.pegasus2avro.test\",\"symbols\":[\"JSON\"],\"symbolDocs\":{\"JSON\":\"JSON / YAML test def\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestInfo.java deleted file mode 100644 index 2e8aaad180459..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestInfo.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.test; -@SuppressWarnings("all") -/** Information about a DataHub Test */ -@org.apache.avro.specific.AvroGenerated -public class TestInfo 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\":\"TestInfo\",\"namespace\":\"com.linkedin.pegasus2avro.test\",\"doc\":\"Information about a DataHub Test\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the test\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"category\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Category of the test\",\"Searchable\":{\"fieldType\":\"KEYWORD\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description of the test\",\"default\":null,\"Searchable\":{\"fieldType\":\"TEXT\"}},{\"name\":\"definition\",\"type\":{\"type\":\"record\",\"name\":\"TestDefinition\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"TestDefinitionType\",\"symbols\":[\"JSON\"],\"symbolDocs\":{\"JSON\":\"JSON / YAML test def\"}},\"doc\":\"The Test Definition Type\"},{\"name\":\"json\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"JSON format configuration for the test\",\"default\":null}]},\"doc\":\"Configuration for the Test\"}],\"Aspect\":{\"name\":\"testInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the test */ - @Deprecated public java.lang.String name; - /** Category of the test */ - @Deprecated public java.lang.String category; - /** Description of the test */ - @Deprecated public java.lang.String description; - /** Configuration for the Test */ - @Deprecated public com.linkedin.pegasus2avro.test.TestDefinition definition; - - /** - * 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 TestInfo() {} - - /** - * All-args constructor. - */ - public TestInfo(java.lang.String name, java.lang.String category, java.lang.String description, com.linkedin.pegasus2avro.test.TestDefinition definition) { - this.name = name; - this.category = category; - this.description = description; - this.definition = definition; - } - - 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 category; - case 2: return description; - case 3: return definition; - 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: category = (java.lang.String)value$; break; - case 2: description = (java.lang.String)value$; break; - case 3: definition = (com.linkedin.pegasus2avro.test.TestDefinition)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * The name of the test */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * The name of the test * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'category' field. - * Category of the test */ - public java.lang.String getCategory() { - return category; - } - - /** - * Sets the value of the 'category' field. - * Category of the test * @param value the value to set. - */ - public void setCategory(java.lang.String value) { - this.category = value; - } - - /** - * Gets the value of the 'description' field. - * Description of the test */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Description of the test * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'definition' field. - * Configuration for the Test */ - public com.linkedin.pegasus2avro.test.TestDefinition getDefinition() { - return definition; - } - - /** - * Sets the value of the 'definition' field. - * Configuration for the Test * @param value the value to set. - */ - public void setDefinition(com.linkedin.pegasus2avro.test.TestDefinition value) { - this.definition = value; - } - - /** Creates a new TestInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.test.TestInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.test.TestInfo.Builder(); - } - - /** Creates a new TestInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.test.TestInfo.Builder newBuilder(com.linkedin.pegasus2avro.test.TestInfo.Builder other) { - return new com.linkedin.pegasus2avro.test.TestInfo.Builder(other); - } - - /** Creates a new TestInfo RecordBuilder by copying an existing TestInfo instance */ - public static com.linkedin.pegasus2avro.test.TestInfo.Builder newBuilder(com.linkedin.pegasus2avro.test.TestInfo other) { - return new com.linkedin.pegasus2avro.test.TestInfo.Builder(other); - } - - /** - * RecordBuilder for TestInfo 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 category; - private java.lang.String description; - private com.linkedin.pegasus2avro.test.TestDefinition definition; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.test.TestInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.test.TestInfo.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.category)) { - this.category = data().deepCopy(fields()[1].schema(), other.category); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.description)) { - this.description = data().deepCopy(fields()[2].schema(), other.description); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.definition)) { - this.definition = data().deepCopy(fields()[3].schema(), other.definition); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing TestInfo instance */ - private Builder(com.linkedin.pegasus2avro.test.TestInfo other) { - super(com.linkedin.pegasus2avro.test.TestInfo.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.category)) { - this.category = data().deepCopy(fields()[1].schema(), other.category); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.description)) { - this.description = data().deepCopy(fields()[2].schema(), other.description); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.definition)) { - this.definition = data().deepCopy(fields()[3].schema(), other.definition); - fieldSetFlags()[3] = 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.test.TestInfo.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.test.TestInfo.Builder clearName() { - name = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'category' field */ - public java.lang.String getCategory() { - return category; - } - - /** Sets the value of the 'category' field */ - public com.linkedin.pegasus2avro.test.TestInfo.Builder setCategory(java.lang.String value) { - validate(fields()[1], value); - this.category = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'category' field has been set */ - public boolean hasCategory() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'category' field */ - public com.linkedin.pegasus2avro.test.TestInfo.Builder clearCategory() { - category = null; - fieldSetFlags()[1] = 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.test.TestInfo.Builder setDescription(java.lang.String value) { - validate(fields()[2], value); - this.description = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.test.TestInfo.Builder clearDescription() { - description = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'definition' field */ - public com.linkedin.pegasus2avro.test.TestDefinition getDefinition() { - return definition; - } - - /** Sets the value of the 'definition' field */ - public com.linkedin.pegasus2avro.test.TestInfo.Builder setDefinition(com.linkedin.pegasus2avro.test.TestDefinition value) { - validate(fields()[3], value); - this.definition = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'definition' field has been set */ - public boolean hasDefinition() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'definition' field */ - public com.linkedin.pegasus2avro.test.TestInfo.Builder clearDefinition() { - definition = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public TestInfo build() { - try { - TestInfo record = new TestInfo(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.category = fieldSetFlags()[1] ? this.category : (java.lang.String) defaultValue(fields()[1]); - record.description = fieldSetFlags()[2] ? this.description : (java.lang.String) defaultValue(fields()[2]); - record.definition = fieldSetFlags()[3] ? this.definition : (com.linkedin.pegasus2avro.test.TestDefinition) 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/test/TestResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestResult.java deleted file mode 100644 index 93cd79353964d..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestResult.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.test; -@SuppressWarnings("all") -/** Information about a Test Result */ -@org.apache.avro.specific.AvroGenerated -public class TestResult 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\":\"TestResult\",\"namespace\":\"com.linkedin.pegasus2avro.test\",\"doc\":\"Information about a Test Result\",\"fields\":[{\"name\":\"test\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The urn of the test\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"TestResultType\",\"symbols\":[\"SUCCESS\",\"FAILURE\"],\"symbolDocs\":{\"FAILURE\":\" The Test Failed\",\"SUCCESS\":\" The Test Succeeded\"}},\"doc\":\"The type of the result\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The urn of the test */ - @Deprecated public java.lang.String test; - /** The type of the result */ - @Deprecated public com.linkedin.pegasus2avro.test.TestResultType 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 TestResult() {} - - /** - * All-args constructor. - */ - public TestResult(java.lang.String test, com.linkedin.pegasus2avro.test.TestResultType type) { - this.test = test; - 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 test; - 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: test = (java.lang.String)value$; break; - case 1: type = (com.linkedin.pegasus2avro.test.TestResultType)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'test' field. - * The urn of the test */ - public java.lang.String getTest() { - return test; - } - - /** - * Sets the value of the 'test' field. - * The urn of the test * @param value the value to set. - */ - public void setTest(java.lang.String value) { - this.test = value; - } - - /** - * Gets the value of the 'type' field. - * The type of the result */ - public com.linkedin.pegasus2avro.test.TestResultType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of the result * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.test.TestResultType value) { - this.type = value; - } - - /** Creates a new TestResult RecordBuilder */ - public static com.linkedin.pegasus2avro.test.TestResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.test.TestResult.Builder(); - } - - /** Creates a new TestResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.test.TestResult.Builder newBuilder(com.linkedin.pegasus2avro.test.TestResult.Builder other) { - return new com.linkedin.pegasus2avro.test.TestResult.Builder(other); - } - - /** Creates a new TestResult RecordBuilder by copying an existing TestResult instance */ - public static com.linkedin.pegasus2avro.test.TestResult.Builder newBuilder(com.linkedin.pegasus2avro.test.TestResult other) { - return new com.linkedin.pegasus2avro.test.TestResult.Builder(other); - } - - /** - * RecordBuilder for TestResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String test; - private com.linkedin.pegasus2avro.test.TestResultType type; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.test.TestResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.test.TestResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.test)) { - this.test = data().deepCopy(fields()[0].schema(), other.test); - 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 TestResult instance */ - private Builder(com.linkedin.pegasus2avro.test.TestResult other) { - super(com.linkedin.pegasus2avro.test.TestResult.SCHEMA$); - if (isValidValue(fields()[0], other.test)) { - this.test = data().deepCopy(fields()[0].schema(), other.test); - 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 'test' field */ - public java.lang.String getTest() { - return test; - } - - /** Sets the value of the 'test' field */ - public com.linkedin.pegasus2avro.test.TestResult.Builder setTest(java.lang.String value) { - validate(fields()[0], value); - this.test = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'test' field has been set */ - public boolean hasTest() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'test' field */ - public com.linkedin.pegasus2avro.test.TestResult.Builder clearTest() { - test = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.test.TestResultType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.test.TestResult.Builder setType(com.linkedin.pegasus2avro.test.TestResultType 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.test.TestResult.Builder clearType() { - type = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public TestResult build() { - try { - TestResult record = new TestResult(); - record.test = fieldSetFlags()[0] ? this.test : (java.lang.String) defaultValue(fields()[0]); - record.type = fieldSetFlags()[1] ? this.type : (com.linkedin.pegasus2avro.test.TestResultType) 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/test/TestResultType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestResultType.java deleted file mode 100644 index 1d9884ae1465a..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestResultType.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.test; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum TestResultType { - SUCCESS, FAILURE ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"TestResultType\",\"namespace\":\"com.linkedin.pegasus2avro.test\",\"symbols\":[\"SUCCESS\",\"FAILURE\"],\"symbolDocs\":{\"FAILURE\":\" The Test Failed\",\"SUCCESS\":\" The Test 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/test/TestResults.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestResults.java deleted file mode 100644 index ce01d81fdc038..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/test/TestResults.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.test; -@SuppressWarnings("all") -/** Information about a Test Result */ -@org.apache.avro.specific.AvroGenerated -public class TestResults 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\":\"TestResults\",\"namespace\":\"com.linkedin.pegasus2avro.test\",\"doc\":\"Information about a Test Result\",\"fields\":[{\"name\":\"failing\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"TestResult\",\"doc\":\"Information about a Test Result\",\"fields\":[{\"name\":\"test\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The urn of the test\",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"TestResultType\",\"symbols\":[\"SUCCESS\",\"FAILURE\"],\"symbolDocs\":{\"FAILURE\":\" The Test Failed\",\"SUCCESS\":\" The Test Succeeded\"}},\"doc\":\"The type of the result\"}]}},\"doc\":\"Results that are failing\",\"Relationship\":{\"/*/test\":{\"entityTypes\":[\"test\"],\"name\":\"IsFailing\"}},\"Searchable\":{\"/*/test\":{\"fieldName\":\"failingTests\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasFailingTests\"}}},{\"name\":\"passing\",\"type\":{\"type\":\"array\",\"items\":\"TestResult\"},\"doc\":\"Results that are passing\",\"Relationship\":{\"/*/test\":{\"entityTypes\":[\"test\"],\"name\":\"IsPassing\"}},\"Searchable\":{\"/*/test\":{\"fieldName\":\"passingTests\",\"fieldType\":\"URN\",\"hasValuesFieldName\":\"hasPassingTests\"}}}],\"Aspect\":{\"name\":\"testResults\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Results that are failing */ - @Deprecated public java.util.List failing; - /** Results that are passing */ - @Deprecated public java.util.List passing; - - /** - * 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 TestResults() {} - - /** - * All-args constructor. - */ - public TestResults(java.util.List failing, java.util.List passing) { - this.failing = failing; - this.passing = passing; - } - - 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 failing; - case 1: return passing; - 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: failing = (java.util.List)value$; break; - case 1: passing = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'failing' field. - * Results that are failing */ - public java.util.List getFailing() { - return failing; - } - - /** - * Sets the value of the 'failing' field. - * Results that are failing * @param value the value to set. - */ - public void setFailing(java.util.List value) { - this.failing = value; - } - - /** - * Gets the value of the 'passing' field. - * Results that are passing */ - public java.util.List getPassing() { - return passing; - } - - /** - * Sets the value of the 'passing' field. - * Results that are passing * @param value the value to set. - */ - public void setPassing(java.util.List value) { - this.passing = value; - } - - /** Creates a new TestResults RecordBuilder */ - public static com.linkedin.pegasus2avro.test.TestResults.Builder newBuilder() { - return new com.linkedin.pegasus2avro.test.TestResults.Builder(); - } - - /** Creates a new TestResults RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.test.TestResults.Builder newBuilder(com.linkedin.pegasus2avro.test.TestResults.Builder other) { - return new com.linkedin.pegasus2avro.test.TestResults.Builder(other); - } - - /** Creates a new TestResults RecordBuilder by copying an existing TestResults instance */ - public static com.linkedin.pegasus2avro.test.TestResults.Builder newBuilder(com.linkedin.pegasus2avro.test.TestResults other) { - return new com.linkedin.pegasus2avro.test.TestResults.Builder(other); - } - - /** - * RecordBuilder for TestResults instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List failing; - private java.util.List passing; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.test.TestResults.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.test.TestResults.Builder other) { - super(other); - if (isValidValue(fields()[0], other.failing)) { - this.failing = data().deepCopy(fields()[0].schema(), other.failing); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.passing)) { - this.passing = data().deepCopy(fields()[1].schema(), other.passing); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing TestResults instance */ - private Builder(com.linkedin.pegasus2avro.test.TestResults other) { - super(com.linkedin.pegasus2avro.test.TestResults.SCHEMA$); - if (isValidValue(fields()[0], other.failing)) { - this.failing = data().deepCopy(fields()[0].schema(), other.failing); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.passing)) { - this.passing = data().deepCopy(fields()[1].schema(), other.passing); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'failing' field */ - public java.util.List getFailing() { - return failing; - } - - /** Sets the value of the 'failing' field */ - public com.linkedin.pegasus2avro.test.TestResults.Builder setFailing(java.util.List value) { - validate(fields()[0], value); - this.failing = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'failing' field has been set */ - public boolean hasFailing() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'failing' field */ - public com.linkedin.pegasus2avro.test.TestResults.Builder clearFailing() { - failing = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'passing' field */ - public java.util.List getPassing() { - return passing; - } - - /** Sets the value of the 'passing' field */ - public com.linkedin.pegasus2avro.test.TestResults.Builder setPassing(java.util.List value) { - validate(fields()[1], value); - this.passing = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'passing' field has been set */ - public boolean hasPassing() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'passing' field */ - public com.linkedin.pegasus2avro.test.TestResults.Builder clearPassing() { - passing = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public TestResults build() { - try { - TestResults record = new TestResults(); - record.failing = fieldSetFlags()[0] ? this.failing : (java.util.List) defaultValue(fields()[0]); - record.passing = fieldSetFlags()[1] ? this.passing : (java.util.List) 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/timeseries/AggregationSpec.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/AggregationSpec.java deleted file mode 100644 index 55c530eaf7fcb..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/AggregationSpec.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.timeseries; -@SuppressWarnings("all") -/** Provides the aggregation specification on a member/field. */ -@org.apache.avro.specific.AvroGenerated -public class AggregationSpec 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\":\"AggregationSpec\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"doc\":\"Provides the aggregation specification on a member/field.\",\"fields\":[{\"name\":\"fieldPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Name of the member/field.\"},{\"name\":\"aggregationType\",\"type\":{\"type\":\"enum\",\"name\":\"AggregationType\",\"symbols\":[\"LATEST\",\"SUM\",\"CARDINALITY\"]},\"doc\":\"Aggregation type for the metric.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Name of the member/field. */ - @Deprecated public java.lang.String fieldPath; - /** Aggregation type for the metric. */ - @Deprecated public com.linkedin.pegasus2avro.timeseries.AggregationType aggregationType; - - /** - * 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 AggregationSpec() {} - - /** - * All-args constructor. - */ - public AggregationSpec(java.lang.String fieldPath, com.linkedin.pegasus2avro.timeseries.AggregationType aggregationType) { - this.fieldPath = fieldPath; - this.aggregationType = aggregationType; - } - - 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 fieldPath; - case 1: return aggregationType; - 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: fieldPath = (java.lang.String)value$; break; - case 1: aggregationType = (com.linkedin.pegasus2avro.timeseries.AggregationType)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'fieldPath' field. - * Name of the member/field. */ - public java.lang.String getFieldPath() { - return fieldPath; - } - - /** - * Sets the value of the 'fieldPath' field. - * Name of the member/field. * @param value the value to set. - */ - public void setFieldPath(java.lang.String value) { - this.fieldPath = value; - } - - /** - * Gets the value of the 'aggregationType' field. - * Aggregation type for the metric. */ - public com.linkedin.pegasus2avro.timeseries.AggregationType getAggregationType() { - return aggregationType; - } - - /** - * Sets the value of the 'aggregationType' field. - * Aggregation type for the metric. * @param value the value to set. - */ - public void setAggregationType(com.linkedin.pegasus2avro.timeseries.AggregationType value) { - this.aggregationType = value; - } - - /** Creates a new AggregationSpec RecordBuilder */ - public static com.linkedin.pegasus2avro.timeseries.AggregationSpec.Builder newBuilder() { - return new com.linkedin.pegasus2avro.timeseries.AggregationSpec.Builder(); - } - - /** Creates a new AggregationSpec RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.timeseries.AggregationSpec.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.AggregationSpec.Builder other) { - return new com.linkedin.pegasus2avro.timeseries.AggregationSpec.Builder(other); - } - - /** Creates a new AggregationSpec RecordBuilder by copying an existing AggregationSpec instance */ - public static com.linkedin.pegasus2avro.timeseries.AggregationSpec.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.AggregationSpec other) { - return new com.linkedin.pegasus2avro.timeseries.AggregationSpec.Builder(other); - } - - /** - * RecordBuilder for AggregationSpec instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String fieldPath; - private com.linkedin.pegasus2avro.timeseries.AggregationType aggregationType; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.timeseries.AggregationSpec.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.timeseries.AggregationSpec.Builder other) { - super(other); - if (isValidValue(fields()[0], other.fieldPath)) { - this.fieldPath = data().deepCopy(fields()[0].schema(), other.fieldPath); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aggregationType)) { - this.aggregationType = data().deepCopy(fields()[1].schema(), other.aggregationType); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing AggregationSpec instance */ - private Builder(com.linkedin.pegasus2avro.timeseries.AggregationSpec other) { - super(com.linkedin.pegasus2avro.timeseries.AggregationSpec.SCHEMA$); - if (isValidValue(fields()[0], other.fieldPath)) { - this.fieldPath = data().deepCopy(fields()[0].schema(), other.fieldPath); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aggregationType)) { - this.aggregationType = data().deepCopy(fields()[1].schema(), other.aggregationType); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'fieldPath' field */ - public java.lang.String getFieldPath() { - return fieldPath; - } - - /** Sets the value of the 'fieldPath' field */ - public com.linkedin.pegasus2avro.timeseries.AggregationSpec.Builder setFieldPath(java.lang.String value) { - validate(fields()[0], value); - this.fieldPath = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'fieldPath' field has been set */ - public boolean hasFieldPath() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'fieldPath' field */ - public com.linkedin.pegasus2avro.timeseries.AggregationSpec.Builder clearFieldPath() { - fieldPath = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aggregationType' field */ - public com.linkedin.pegasus2avro.timeseries.AggregationType getAggregationType() { - return aggregationType; - } - - /** Sets the value of the 'aggregationType' field */ - public com.linkedin.pegasus2avro.timeseries.AggregationSpec.Builder setAggregationType(com.linkedin.pegasus2avro.timeseries.AggregationType value) { - validate(fields()[1], value); - this.aggregationType = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aggregationType' field has been set */ - public boolean hasAggregationType() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aggregationType' field */ - public com.linkedin.pegasus2avro.timeseries.AggregationSpec.Builder clearAggregationType() { - aggregationType = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public AggregationSpec build() { - try { - AggregationSpec record = new AggregationSpec(); - record.fieldPath = fieldSetFlags()[0] ? this.fieldPath : (java.lang.String) defaultValue(fields()[0]); - record.aggregationType = fieldSetFlags()[1] ? this.aggregationType : (com.linkedin.pegasus2avro.timeseries.AggregationType) 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/timeseries/AggregationType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/AggregationType.java deleted file mode 100644 index 18e32e6160424..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/AggregationType.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.timeseries; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum AggregationType { - LATEST, SUM, CARDINALITY ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"AggregationType\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"symbols\":[\"LATEST\",\"SUM\",\"CARDINALITY\"]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/CalendarInterval.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/CalendarInterval.java deleted file mode 100644 index 417c94f761a7b..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/CalendarInterval.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.timeseries; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum CalendarInterval { - SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, QUARTER, YEAR ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"CalendarInterval\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"symbols\":[\"SECOND\",\"MINUTE\",\"HOUR\",\"DAY\",\"WEEK\",\"MONTH\",\"QUARTER\",\"YEAR\"]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/DeleteAspectValuesResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/DeleteAspectValuesResult.java deleted file mode 100644 index 0a5d9eb72dff9..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/DeleteAspectValuesResult.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.timeseries; -@SuppressWarnings("all") -/** Encapsulates the response of the deleteAspectValues API so that it can be extended -as required in future. */ -@org.apache.avro.specific.AvroGenerated -public class DeleteAspectValuesResult 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\":\"DeleteAspectValuesResult\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"doc\":\"Encapsulates the response of the deleteAspectValues API so that it can be extended\\nas required in future.\",\"fields\":[{\"name\":\"numDocsDeleted\",\"type\":\"long\",\"doc\":\"Number of documents deleted.\",\"default\":0}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Number of documents deleted. */ - @Deprecated public long numDocsDeleted; - - /** - * 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 DeleteAspectValuesResult() {} - - /** - * All-args constructor. - */ - public DeleteAspectValuesResult(java.lang.Long numDocsDeleted) { - this.numDocsDeleted = numDocsDeleted; - } - - 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 numDocsDeleted; - 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: numDocsDeleted = (java.lang.Long)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'numDocsDeleted' field. - * Number of documents deleted. */ - public java.lang.Long getNumDocsDeleted() { - return numDocsDeleted; - } - - /** - * Sets the value of the 'numDocsDeleted' field. - * Number of documents deleted. * @param value the value to set. - */ - public void setNumDocsDeleted(java.lang.Long value) { - this.numDocsDeleted = value; - } - - /** Creates a new DeleteAspectValuesResult RecordBuilder */ - public static com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult.Builder(); - } - - /** Creates a new DeleteAspectValuesResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult.Builder other) { - return new com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult.Builder(other); - } - - /** Creates a new DeleteAspectValuesResult RecordBuilder by copying an existing DeleteAspectValuesResult instance */ - public static com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult other) { - return new com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult.Builder(other); - } - - /** - * RecordBuilder for DeleteAspectValuesResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private long numDocsDeleted; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.numDocsDeleted)) { - this.numDocsDeleted = data().deepCopy(fields()[0].schema(), other.numDocsDeleted); - fieldSetFlags()[0] = true; - } - } - - /** Creates a Builder by copying an existing DeleteAspectValuesResult instance */ - private Builder(com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult other) { - super(com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult.SCHEMA$); - if (isValidValue(fields()[0], other.numDocsDeleted)) { - this.numDocsDeleted = data().deepCopy(fields()[0].schema(), other.numDocsDeleted); - fieldSetFlags()[0] = true; - } - } - - /** Gets the value of the 'numDocsDeleted' field */ - public java.lang.Long getNumDocsDeleted() { - return numDocsDeleted; - } - - /** Sets the value of the 'numDocsDeleted' field */ - public com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult.Builder setNumDocsDeleted(long value) { - validate(fields()[0], value); - this.numDocsDeleted = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'numDocsDeleted' field has been set */ - public boolean hasNumDocsDeleted() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'numDocsDeleted' field */ - public com.linkedin.pegasus2avro.timeseries.DeleteAspectValuesResult.Builder clearNumDocsDeleted() { - fieldSetFlags()[0] = false; - return this; - } - - @Override - public DeleteAspectValuesResult build() { - try { - DeleteAspectValuesResult record = new DeleteAspectValuesResult(); - record.numDocsDeleted = fieldSetFlags()[0] ? this.numDocsDeleted : (java.lang.Long) 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/timeseries/GenericTable.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/GenericTable.java deleted file mode 100644 index 05e6d358af4e2..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/GenericTable.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.timeseries; -@SuppressWarnings("all") -/** Defines a generic table. */ -@org.apache.avro.specific.AvroGenerated -public class GenericTable 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\":\"GenericTable\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"doc\":\"Defines a generic table.\",\"fields\":[{\"name\":\"columnNames\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"The names of the columns.\"},{\"name\":\"columnTypes\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"The types of the columns.\"},{\"name\":\"rows\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}}],\"doc\":\"The data rows.\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The names of the columns. */ - @Deprecated public java.util.List columnNames; - /** The types of the columns. */ - @Deprecated public java.util.List columnTypes; - /** The data rows. */ - @Deprecated public java.util.List> rows; - - /** - * 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 GenericTable() {} - - /** - * All-args constructor. - */ - public GenericTable(java.util.List columnNames, java.util.List columnTypes, java.util.List> rows) { - this.columnNames = columnNames; - this.columnTypes = columnTypes; - this.rows = rows; - } - - 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 columnNames; - case 1: return columnTypes; - case 2: return rows; - 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: columnNames = (java.util.List)value$; break; - case 1: columnTypes = (java.util.List)value$; break; - case 2: rows = (java.util.List>)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'columnNames' field. - * The names of the columns. */ - public java.util.List getColumnNames() { - return columnNames; - } - - /** - * Sets the value of the 'columnNames' field. - * The names of the columns. * @param value the value to set. - */ - public void setColumnNames(java.util.List value) { - this.columnNames = value; - } - - /** - * Gets the value of the 'columnTypes' field. - * The types of the columns. */ - public java.util.List getColumnTypes() { - return columnTypes; - } - - /** - * Sets the value of the 'columnTypes' field. - * The types of the columns. * @param value the value to set. - */ - public void setColumnTypes(java.util.List value) { - this.columnTypes = value; - } - - /** - * Gets the value of the 'rows' field. - * The data rows. */ - public java.util.List> getRows() { - return rows; - } - - /** - * Sets the value of the 'rows' field. - * The data rows. * @param value the value to set. - */ - public void setRows(java.util.List> value) { - this.rows = value; - } - - /** Creates a new GenericTable RecordBuilder */ - public static com.linkedin.pegasus2avro.timeseries.GenericTable.Builder newBuilder() { - return new com.linkedin.pegasus2avro.timeseries.GenericTable.Builder(); - } - - /** Creates a new GenericTable RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.timeseries.GenericTable.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.GenericTable.Builder other) { - return new com.linkedin.pegasus2avro.timeseries.GenericTable.Builder(other); - } - - /** Creates a new GenericTable RecordBuilder by copying an existing GenericTable instance */ - public static com.linkedin.pegasus2avro.timeseries.GenericTable.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.GenericTable other) { - return new com.linkedin.pegasus2avro.timeseries.GenericTable.Builder(other); - } - - /** - * RecordBuilder for GenericTable instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List columnNames; - private java.util.List columnTypes; - private java.util.List> rows; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.timeseries.GenericTable.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.timeseries.GenericTable.Builder other) { - super(other); - if (isValidValue(fields()[0], other.columnNames)) { - this.columnNames = data().deepCopy(fields()[0].schema(), other.columnNames); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.columnTypes)) { - this.columnTypes = data().deepCopy(fields()[1].schema(), other.columnTypes); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.rows)) { - this.rows = data().deepCopy(fields()[2].schema(), other.rows); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing GenericTable instance */ - private Builder(com.linkedin.pegasus2avro.timeseries.GenericTable other) { - super(com.linkedin.pegasus2avro.timeseries.GenericTable.SCHEMA$); - if (isValidValue(fields()[0], other.columnNames)) { - this.columnNames = data().deepCopy(fields()[0].schema(), other.columnNames); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.columnTypes)) { - this.columnTypes = data().deepCopy(fields()[1].schema(), other.columnTypes); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.rows)) { - this.rows = data().deepCopy(fields()[2].schema(), other.rows); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'columnNames' field */ - public java.util.List getColumnNames() { - return columnNames; - } - - /** Sets the value of the 'columnNames' field */ - public com.linkedin.pegasus2avro.timeseries.GenericTable.Builder setColumnNames(java.util.List value) { - validate(fields()[0], value); - this.columnNames = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'columnNames' field has been set */ - public boolean hasColumnNames() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'columnNames' field */ - public com.linkedin.pegasus2avro.timeseries.GenericTable.Builder clearColumnNames() { - columnNames = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'columnTypes' field */ - public java.util.List getColumnTypes() { - return columnTypes; - } - - /** Sets the value of the 'columnTypes' field */ - public com.linkedin.pegasus2avro.timeseries.GenericTable.Builder setColumnTypes(java.util.List value) { - validate(fields()[1], value); - this.columnTypes = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'columnTypes' field has been set */ - public boolean hasColumnTypes() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'columnTypes' field */ - public com.linkedin.pegasus2avro.timeseries.GenericTable.Builder clearColumnTypes() { - columnTypes = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'rows' field */ - public java.util.List> getRows() { - return rows; - } - - /** Sets the value of the 'rows' field */ - public com.linkedin.pegasus2avro.timeseries.GenericTable.Builder setRows(java.util.List> value) { - validate(fields()[2], value); - this.rows = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'rows' field has been set */ - public boolean hasRows() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'rows' field */ - public com.linkedin.pegasus2avro.timeseries.GenericTable.Builder clearRows() { - rows = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public GenericTable build() { - try { - GenericTable record = new GenericTable(); - record.columnNames = fieldSetFlags()[0] ? this.columnNames : (java.util.List) defaultValue(fields()[0]); - record.columnTypes = fieldSetFlags()[1] ? this.columnTypes : (java.util.List) defaultValue(fields()[1]); - record.rows = fieldSetFlags()[2] ? this.rows : (java.util.List>) 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/timeseries/GroupingBucket.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/GroupingBucket.java deleted file mode 100644 index d01b635706ca5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/GroupingBucket.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.timeseries; -@SuppressWarnings("all") -/** Defines the group by bucket definitions for time series requests. */ -@org.apache.avro.specific.AvroGenerated -public class GroupingBucket 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\":\"GroupingBucket\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"doc\":\"Defines the group by bucket definitions for time series requests.\",\"fields\":[{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"GroupingBucketType\",\"doc\":\"Defines a grouping bucket type.\",\"symbols\":[\"DATE_GROUPING_BUCKET\",\"STRING_GROUPING_BUCKET\"]},\"doc\":\"Type of the grouping bucket.\"},{\"name\":\"key\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Key that specifies the column name to be used as the timestamp field for bucketing.\"},{\"name\":\"timeWindowSize\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"TimeWindowSize\",\"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\":\"Bucket size (like a day/hour etc) for the date grouping buckets.\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Type of the grouping bucket. */ - @Deprecated public com.linkedin.pegasus2avro.timeseries.GroupingBucketType type; - /** Key that specifies the column name to be used as the timestamp field for bucketing. */ - @Deprecated public java.lang.String key; - /** Bucket size (like a day/hour etc) for the date grouping buckets. */ - @Deprecated public com.linkedin.pegasus2avro.timeseries.TimeWindowSize timeWindowSize; - - /** - * 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 GroupingBucket() {} - - /** - * All-args constructor. - */ - public GroupingBucket(com.linkedin.pegasus2avro.timeseries.GroupingBucketType type, java.lang.String key, com.linkedin.pegasus2avro.timeseries.TimeWindowSize timeWindowSize) { - this.type = type; - this.key = key; - this.timeWindowSize = timeWindowSize; - } - - 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 key; - case 2: return timeWindowSize; - 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.timeseries.GroupingBucketType)value$; break; - case 1: key = (java.lang.String)value$; break; - case 2: timeWindowSize = (com.linkedin.pegasus2avro.timeseries.TimeWindowSize)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - * Type of the grouping bucket. */ - public com.linkedin.pegasus2avro.timeseries.GroupingBucketType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * Type of the grouping bucket. * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.timeseries.GroupingBucketType value) { - this.type = value; - } - - /** - * Gets the value of the 'key' field. - * Key that specifies the column name to be used as the timestamp field for bucketing. */ - public java.lang.String getKey() { - return key; - } - - /** - * Sets the value of the 'key' field. - * Key that specifies the column name to be used as the timestamp field for bucketing. * @param value the value to set. - */ - public void setKey(java.lang.String value) { - this.key = value; - } - - /** - * Gets the value of the 'timeWindowSize' field. - * Bucket size (like a day/hour etc) for the date grouping buckets. */ - public com.linkedin.pegasus2avro.timeseries.TimeWindowSize getTimeWindowSize() { - return timeWindowSize; - } - - /** - * Sets the value of the 'timeWindowSize' field. - * Bucket size (like a day/hour etc) for the date grouping buckets. * @param value the value to set. - */ - public void setTimeWindowSize(com.linkedin.pegasus2avro.timeseries.TimeWindowSize value) { - this.timeWindowSize = value; - } - - /** Creates a new GroupingBucket RecordBuilder */ - public static com.linkedin.pegasus2avro.timeseries.GroupingBucket.Builder newBuilder() { - return new com.linkedin.pegasus2avro.timeseries.GroupingBucket.Builder(); - } - - /** Creates a new GroupingBucket RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.timeseries.GroupingBucket.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.GroupingBucket.Builder other) { - return new com.linkedin.pegasus2avro.timeseries.GroupingBucket.Builder(other); - } - - /** Creates a new GroupingBucket RecordBuilder by copying an existing GroupingBucket instance */ - public static com.linkedin.pegasus2avro.timeseries.GroupingBucket.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.GroupingBucket other) { - return new com.linkedin.pegasus2avro.timeseries.GroupingBucket.Builder(other); - } - - /** - * RecordBuilder for GroupingBucket instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.timeseries.GroupingBucketType type; - private java.lang.String key; - private com.linkedin.pegasus2avro.timeseries.TimeWindowSize timeWindowSize; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.timeseries.GroupingBucket.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.timeseries.GroupingBucket.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.key)) { - this.key = data().deepCopy(fields()[1].schema(), other.key); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.timeWindowSize)) { - this.timeWindowSize = data().deepCopy(fields()[2].schema(), other.timeWindowSize); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing GroupingBucket instance */ - private Builder(com.linkedin.pegasus2avro.timeseries.GroupingBucket other) { - super(com.linkedin.pegasus2avro.timeseries.GroupingBucket.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.key)) { - this.key = data().deepCopy(fields()[1].schema(), other.key); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.timeWindowSize)) { - this.timeWindowSize = data().deepCopy(fields()[2].schema(), other.timeWindowSize); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.timeseries.GroupingBucketType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.timeseries.GroupingBucket.Builder setType(com.linkedin.pegasus2avro.timeseries.GroupingBucketType 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.timeseries.GroupingBucket.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'key' field */ - public java.lang.String getKey() { - return key; - } - - /** Sets the value of the 'key' field */ - public com.linkedin.pegasus2avro.timeseries.GroupingBucket.Builder setKey(java.lang.String value) { - validate(fields()[1], value); - this.key = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'key' field has been set */ - public boolean hasKey() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'key' field */ - public com.linkedin.pegasus2avro.timeseries.GroupingBucket.Builder clearKey() { - key = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'timeWindowSize' field */ - public com.linkedin.pegasus2avro.timeseries.TimeWindowSize getTimeWindowSize() { - return timeWindowSize; - } - - /** Sets the value of the 'timeWindowSize' field */ - public com.linkedin.pegasus2avro.timeseries.GroupingBucket.Builder setTimeWindowSize(com.linkedin.pegasus2avro.timeseries.TimeWindowSize value) { - validate(fields()[2], value); - this.timeWindowSize = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'timeWindowSize' field has been set */ - public boolean hasTimeWindowSize() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'timeWindowSize' field */ - public com.linkedin.pegasus2avro.timeseries.GroupingBucket.Builder clearTimeWindowSize() { - timeWindowSize = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public GroupingBucket build() { - try { - GroupingBucket record = new GroupingBucket(); - record.type = fieldSetFlags()[0] ? this.type : (com.linkedin.pegasus2avro.timeseries.GroupingBucketType) defaultValue(fields()[0]); - record.key = fieldSetFlags()[1] ? this.key : (java.lang.String) defaultValue(fields()[1]); - record.timeWindowSize = fieldSetFlags()[2] ? this.timeWindowSize : (com.linkedin.pegasus2avro.timeseries.TimeWindowSize) 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/timeseries/GroupingBucketType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/GroupingBucketType.java deleted file mode 100644 index ecf817a587e20..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/GroupingBucketType.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.timeseries; -@SuppressWarnings("all") -/** Defines a grouping bucket type. */ -@org.apache.avro.specific.AvroGenerated -public enum GroupingBucketType { - DATE_GROUPING_BUCKET, STRING_GROUPING_BUCKET ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"GroupingBucketType\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"doc\":\"Defines a grouping bucket type.\",\"symbols\":[\"DATE_GROUPING_BUCKET\",\"STRING_GROUPING_BUCKET\"]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/PartitionSpec.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/PartitionSpec.java deleted file mode 100644 index c3f3778f387a3..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/PartitionSpec.java +++ /dev/null @@ -1,253 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.timeseries; -@SuppressWarnings("all") -/** Defines how the data is partitioned */ -@org.apache.avro.specific.AvroGenerated -public class PartitionSpec 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\":\"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\":{\"type\":\"record\",\"name\":\"TimeWindowSize\",\"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\":\"The length of the window.\"}]}],\"doc\":\"Time window of the partition if applicable\",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public com.linkedin.pegasus2avro.timeseries.PartitionType type; - /** String representation of the partition */ - @Deprecated public java.lang.String partition; - /** Time window of the partition if applicable */ - @Deprecated public com.linkedin.pegasus2avro.timeseries.TimeWindow timePartition; - - /** - * 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 PartitionSpec() {} - - /** - * All-args constructor. - */ - public PartitionSpec(com.linkedin.pegasus2avro.timeseries.PartitionType type, java.lang.String partition, com.linkedin.pegasus2avro.timeseries.TimeWindow timePartition) { - this.type = type; - this.partition = partition; - this.timePartition = timePartition; - } - - 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 partition; - case 2: return timePartition; - 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.timeseries.PartitionType)value$; break; - case 1: partition = (java.lang.String)value$; break; - case 2: timePartition = (com.linkedin.pegasus2avro.timeseries.TimeWindow)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'type' field. - */ - public com.linkedin.pegasus2avro.timeseries.PartitionType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.timeseries.PartitionType value) { - this.type = value; - } - - /** - * Gets the value of the 'partition' field. - * String representation of the partition */ - public java.lang.String getPartition() { - return partition; - } - - /** - * Sets the value of the 'partition' field. - * String representation of the partition * @param value the value to set. - */ - public void setPartition(java.lang.String value) { - this.partition = value; - } - - /** - * Gets the value of the 'timePartition' field. - * Time window of the partition if applicable */ - public com.linkedin.pegasus2avro.timeseries.TimeWindow getTimePartition() { - return timePartition; - } - - /** - * Sets the value of the 'timePartition' field. - * Time window of the partition if applicable * @param value the value to set. - */ - public void setTimePartition(com.linkedin.pegasus2avro.timeseries.TimeWindow value) { - this.timePartition = value; - } - - /** Creates a new PartitionSpec RecordBuilder */ - public static com.linkedin.pegasus2avro.timeseries.PartitionSpec.Builder newBuilder() { - return new com.linkedin.pegasus2avro.timeseries.PartitionSpec.Builder(); - } - - /** Creates a new PartitionSpec RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.timeseries.PartitionSpec.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.PartitionSpec.Builder other) { - return new com.linkedin.pegasus2avro.timeseries.PartitionSpec.Builder(other); - } - - /** Creates a new PartitionSpec RecordBuilder by copying an existing PartitionSpec instance */ - public static com.linkedin.pegasus2avro.timeseries.PartitionSpec.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.PartitionSpec other) { - return new com.linkedin.pegasus2avro.timeseries.PartitionSpec.Builder(other); - } - - /** - * RecordBuilder for PartitionSpec instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.timeseries.PartitionType type; - private java.lang.String partition; - private com.linkedin.pegasus2avro.timeseries.TimeWindow timePartition; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.timeseries.PartitionSpec.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.timeseries.PartitionSpec.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.partition)) { - this.partition = data().deepCopy(fields()[1].schema(), other.partition); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.timePartition)) { - this.timePartition = data().deepCopy(fields()[2].schema(), other.timePartition); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing PartitionSpec instance */ - private Builder(com.linkedin.pegasus2avro.timeseries.PartitionSpec other) { - super(com.linkedin.pegasus2avro.timeseries.PartitionSpec.SCHEMA$); - if (isValidValue(fields()[0], other.type)) { - this.type = data().deepCopy(fields()[0].schema(), other.type); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.partition)) { - this.partition = data().deepCopy(fields()[1].schema(), other.partition); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.timePartition)) { - this.timePartition = data().deepCopy(fields()[2].schema(), other.timePartition); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.timeseries.PartitionType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.timeseries.PartitionSpec.Builder setType(com.linkedin.pegasus2avro.timeseries.PartitionType 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.timeseries.PartitionSpec.Builder clearType() { - type = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'partition' field */ - public java.lang.String getPartition() { - return partition; - } - - /** Sets the value of the 'partition' field */ - public com.linkedin.pegasus2avro.timeseries.PartitionSpec.Builder setPartition(java.lang.String value) { - validate(fields()[1], value); - this.partition = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'partition' field has been set */ - public boolean hasPartition() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'partition' field */ - public com.linkedin.pegasus2avro.timeseries.PartitionSpec.Builder clearPartition() { - partition = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'timePartition' field */ - public com.linkedin.pegasus2avro.timeseries.TimeWindow getTimePartition() { - return timePartition; - } - - /** Sets the value of the 'timePartition' field */ - public com.linkedin.pegasus2avro.timeseries.PartitionSpec.Builder setTimePartition(com.linkedin.pegasus2avro.timeseries.TimeWindow value) { - validate(fields()[2], value); - this.timePartition = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'timePartition' field has been set */ - public boolean hasTimePartition() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'timePartition' field */ - public com.linkedin.pegasus2avro.timeseries.PartitionSpec.Builder clearTimePartition() { - timePartition = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public PartitionSpec build() { - try { - PartitionSpec record = new PartitionSpec(); - record.type = fieldSetFlags()[0] ? this.type : (com.linkedin.pegasus2avro.timeseries.PartitionType) defaultValue(fields()[0]); - record.partition = fieldSetFlags()[1] ? this.partition : (java.lang.String) defaultValue(fields()[1]); - record.timePartition = fieldSetFlags()[2] ? this.timePartition : (com.linkedin.pegasus2avro.timeseries.TimeWindow) 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/timeseries/PartitionType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/PartitionType.java deleted file mode 100644 index 9e003e1a2a259..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/PartitionType.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.timeseries; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum PartitionType { - FULL_TABLE, QUERY, PARTITION ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"PartitionType\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"symbols\":[\"FULL_TABLE\",\"QUERY\",\"PARTITION\"]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/TimeWindow.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/TimeWindow.java deleted file mode 100644 index 1d1f52d562c96..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/TimeWindow.java +++ /dev/null @@ -1,197 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.timeseries; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class TimeWindow 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\":\"TimeWindow\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"fields\":[{\"name\":\"startTimeMillis\",\"type\":\"long\",\"doc\":\"Start time as epoch at UTC.\"},{\"name\":\"length\",\"type\":{\"type\":\"record\",\"name\":\"TimeWindowSize\",\"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\":\"The length of the window.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Start time as epoch at UTC. */ - @Deprecated public long startTimeMillis; - /** The length of the window. */ - @Deprecated public com.linkedin.pegasus2avro.timeseries.TimeWindowSize length; - - /** - * 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 TimeWindow() {} - - /** - * All-args constructor. - */ - public TimeWindow(java.lang.Long startTimeMillis, com.linkedin.pegasus2avro.timeseries.TimeWindowSize length) { - this.startTimeMillis = startTimeMillis; - this.length = length; - } - - 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 startTimeMillis; - case 1: return length; - 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: startTimeMillis = (java.lang.Long)value$; break; - case 1: length = (com.linkedin.pegasus2avro.timeseries.TimeWindowSize)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'startTimeMillis' field. - * Start time as epoch at UTC. */ - public java.lang.Long getStartTimeMillis() { - return startTimeMillis; - } - - /** - * Sets the value of the 'startTimeMillis' field. - * Start time as epoch at UTC. * @param value the value to set. - */ - public void setStartTimeMillis(java.lang.Long value) { - this.startTimeMillis = value; - } - - /** - * Gets the value of the 'length' field. - * The length of the window. */ - public com.linkedin.pegasus2avro.timeseries.TimeWindowSize getLength() { - return length; - } - - /** - * Sets the value of the 'length' field. - * The length of the window. * @param value the value to set. - */ - public void setLength(com.linkedin.pegasus2avro.timeseries.TimeWindowSize value) { - this.length = value; - } - - /** Creates a new TimeWindow RecordBuilder */ - public static com.linkedin.pegasus2avro.timeseries.TimeWindow.Builder newBuilder() { - return new com.linkedin.pegasus2avro.timeseries.TimeWindow.Builder(); - } - - /** Creates a new TimeWindow RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.timeseries.TimeWindow.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.TimeWindow.Builder other) { - return new com.linkedin.pegasus2avro.timeseries.TimeWindow.Builder(other); - } - - /** Creates a new TimeWindow RecordBuilder by copying an existing TimeWindow instance */ - public static com.linkedin.pegasus2avro.timeseries.TimeWindow.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.TimeWindow other) { - return new com.linkedin.pegasus2avro.timeseries.TimeWindow.Builder(other); - } - - /** - * RecordBuilder for TimeWindow instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private long startTimeMillis; - private com.linkedin.pegasus2avro.timeseries.TimeWindowSize length; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.timeseries.TimeWindow.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.timeseries.TimeWindow.Builder other) { - super(other); - if (isValidValue(fields()[0], other.startTimeMillis)) { - this.startTimeMillis = data().deepCopy(fields()[0].schema(), other.startTimeMillis); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.length)) { - this.length = data().deepCopy(fields()[1].schema(), other.length); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing TimeWindow instance */ - private Builder(com.linkedin.pegasus2avro.timeseries.TimeWindow other) { - super(com.linkedin.pegasus2avro.timeseries.TimeWindow.SCHEMA$); - if (isValidValue(fields()[0], other.startTimeMillis)) { - this.startTimeMillis = data().deepCopy(fields()[0].schema(), other.startTimeMillis); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.length)) { - this.length = data().deepCopy(fields()[1].schema(), other.length); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'startTimeMillis' field */ - public java.lang.Long getStartTimeMillis() { - return startTimeMillis; - } - - /** Sets the value of the 'startTimeMillis' field */ - public com.linkedin.pegasus2avro.timeseries.TimeWindow.Builder setStartTimeMillis(long value) { - validate(fields()[0], value); - this.startTimeMillis = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'startTimeMillis' field has been set */ - public boolean hasStartTimeMillis() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'startTimeMillis' field */ - public com.linkedin.pegasus2avro.timeseries.TimeWindow.Builder clearStartTimeMillis() { - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'length' field */ - public com.linkedin.pegasus2avro.timeseries.TimeWindowSize getLength() { - return length; - } - - /** Sets the value of the 'length' field */ - public com.linkedin.pegasus2avro.timeseries.TimeWindow.Builder setLength(com.linkedin.pegasus2avro.timeseries.TimeWindowSize value) { - validate(fields()[1], value); - this.length = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'length' field has been set */ - public boolean hasLength() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'length' field */ - public com.linkedin.pegasus2avro.timeseries.TimeWindow.Builder clearLength() { - length = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public TimeWindow build() { - try { - TimeWindow record = new TimeWindow(); - record.startTimeMillis = fieldSetFlags()[0] ? this.startTimeMillis : (java.lang.Long) defaultValue(fields()[0]); - record.length = fieldSetFlags()[1] ? this.length : (com.linkedin.pegasus2avro.timeseries.TimeWindowSize) 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/timeseries/TimeWindowSize.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/TimeWindowSize.java deleted file mode 100644 index 7ad6d36c9028c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/TimeWindowSize.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.timeseries; -@SuppressWarnings("all") -/** Defines the size of a time window. */ -@org.apache.avro.specific.AvroGenerated -public class TimeWindowSize 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\":\"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}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Interval unit such as minute/hour/day etc. */ - @Deprecated public com.linkedin.pegasus2avro.timeseries.CalendarInterval unit; - /** How many units. Defaults to 1. */ - @Deprecated public int multiple; - - /** - * 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 TimeWindowSize() {} - - /** - * All-args constructor. - */ - public TimeWindowSize(com.linkedin.pegasus2avro.timeseries.CalendarInterval unit, java.lang.Integer multiple) { - this.unit = unit; - this.multiple = multiple; - } - - 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 unit; - case 1: return multiple; - 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: unit = (com.linkedin.pegasus2avro.timeseries.CalendarInterval)value$; break; - case 1: multiple = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'unit' field. - * Interval unit such as minute/hour/day etc. */ - public com.linkedin.pegasus2avro.timeseries.CalendarInterval getUnit() { - return unit; - } - - /** - * Sets the value of the 'unit' field. - * Interval unit such as minute/hour/day etc. * @param value the value to set. - */ - public void setUnit(com.linkedin.pegasus2avro.timeseries.CalendarInterval value) { - this.unit = value; - } - - /** - * Gets the value of the 'multiple' field. - * How many units. Defaults to 1. */ - public java.lang.Integer getMultiple() { - return multiple; - } - - /** - * Sets the value of the 'multiple' field. - * How many units. Defaults to 1. * @param value the value to set. - */ - public void setMultiple(java.lang.Integer value) { - this.multiple = value; - } - - /** Creates a new TimeWindowSize RecordBuilder */ - public static com.linkedin.pegasus2avro.timeseries.TimeWindowSize.Builder newBuilder() { - return new com.linkedin.pegasus2avro.timeseries.TimeWindowSize.Builder(); - } - - /** Creates a new TimeWindowSize RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.timeseries.TimeWindowSize.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.TimeWindowSize.Builder other) { - return new com.linkedin.pegasus2avro.timeseries.TimeWindowSize.Builder(other); - } - - /** Creates a new TimeWindowSize RecordBuilder by copying an existing TimeWindowSize instance */ - public static com.linkedin.pegasus2avro.timeseries.TimeWindowSize.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.TimeWindowSize other) { - return new com.linkedin.pegasus2avro.timeseries.TimeWindowSize.Builder(other); - } - - /** - * RecordBuilder for TimeWindowSize instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private com.linkedin.pegasus2avro.timeseries.CalendarInterval unit; - private int multiple; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.timeseries.TimeWindowSize.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.timeseries.TimeWindowSize.Builder other) { - super(other); - if (isValidValue(fields()[0], other.unit)) { - this.unit = data().deepCopy(fields()[0].schema(), other.unit); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.multiple)) { - this.multiple = data().deepCopy(fields()[1].schema(), other.multiple); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing TimeWindowSize instance */ - private Builder(com.linkedin.pegasus2avro.timeseries.TimeWindowSize other) { - super(com.linkedin.pegasus2avro.timeseries.TimeWindowSize.SCHEMA$); - if (isValidValue(fields()[0], other.unit)) { - this.unit = data().deepCopy(fields()[0].schema(), other.unit); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.multiple)) { - this.multiple = data().deepCopy(fields()[1].schema(), other.multiple); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'unit' field */ - public com.linkedin.pegasus2avro.timeseries.CalendarInterval getUnit() { - return unit; - } - - /** Sets the value of the 'unit' field */ - public com.linkedin.pegasus2avro.timeseries.TimeWindowSize.Builder setUnit(com.linkedin.pegasus2avro.timeseries.CalendarInterval value) { - validate(fields()[0], value); - this.unit = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'unit' field has been set */ - public boolean hasUnit() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'unit' field */ - public com.linkedin.pegasus2avro.timeseries.TimeWindowSize.Builder clearUnit() { - unit = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'multiple' field */ - public java.lang.Integer getMultiple() { - return multiple; - } - - /** Sets the value of the 'multiple' field */ - public com.linkedin.pegasus2avro.timeseries.TimeWindowSize.Builder setMultiple(int value) { - validate(fields()[1], value); - this.multiple = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'multiple' field has been set */ - public boolean hasMultiple() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'multiple' field */ - public com.linkedin.pegasus2avro.timeseries.TimeWindowSize.Builder clearMultiple() { - fieldSetFlags()[1] = false; - return this; - } - - @Override - public TimeWindowSize build() { - try { - TimeWindowSize record = new TimeWindowSize(); - record.unit = fieldSetFlags()[0] ? this.unit : (com.linkedin.pegasus2avro.timeseries.CalendarInterval) defaultValue(fields()[0]); - record.multiple = fieldSetFlags()[1] ? this.multiple : (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/timeseries/TimeseriesAspectBase.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/TimeseriesAspectBase.java deleted file mode 100644 index 0de3caff91a15..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/timeseries/TimeseriesAspectBase.java +++ /dev/null @@ -1,307 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.timeseries; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class TimeseriesAspectBase 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\":\"TimeseriesAspectBase\",\"namespace\":\"com.linkedin.pegasus2avro.timeseries\",\"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\",\"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\",\"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}]}"); - 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; - - /** - * 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 TimeseriesAspectBase() {} - - /** - * All-args constructor. - */ - public TimeseriesAspectBase(java.lang.Long timestampMillis, com.linkedin.pegasus2avro.timeseries.TimeWindowSize eventGranularity, com.linkedin.pegasus2avro.timeseries.PartitionSpec partitionSpec, java.lang.String messageId) { - this.timestampMillis = timestampMillis; - this.eventGranularity = eventGranularity; - this.partitionSpec = partitionSpec; - this.messageId = messageId; - } - - 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; - 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; - 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; - } - - /** Creates a new TimeseriesAspectBase RecordBuilder */ - public static com.linkedin.pegasus2avro.timeseries.TimeseriesAspectBase.Builder newBuilder() { - return new com.linkedin.pegasus2avro.timeseries.TimeseriesAspectBase.Builder(); - } - - /** Creates a new TimeseriesAspectBase RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.timeseries.TimeseriesAspectBase.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.TimeseriesAspectBase.Builder other) { - return new com.linkedin.pegasus2avro.timeseries.TimeseriesAspectBase.Builder(other); - } - - /** Creates a new TimeseriesAspectBase RecordBuilder by copying an existing TimeseriesAspectBase instance */ - public static com.linkedin.pegasus2avro.timeseries.TimeseriesAspectBase.Builder newBuilder(com.linkedin.pegasus2avro.timeseries.TimeseriesAspectBase other) { - return new com.linkedin.pegasus2avro.timeseries.TimeseriesAspectBase.Builder(other); - } - - /** - * RecordBuilder for TimeseriesAspectBase 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; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.timeseries.TimeseriesAspectBase.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.timeseries.TimeseriesAspectBase.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; - } - } - - /** Creates a Builder by copying an existing TimeseriesAspectBase instance */ - private Builder(com.linkedin.pegasus2avro.timeseries.TimeseriesAspectBase other) { - super(com.linkedin.pegasus2avro.timeseries.TimeseriesAspectBase.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; - } - } - - /** 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.timeseries.TimeseriesAspectBase.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.timeseries.TimeseriesAspectBase.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.timeseries.TimeseriesAspectBase.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.timeseries.TimeseriesAspectBase.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.timeseries.TimeseriesAspectBase.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.timeseries.TimeseriesAspectBase.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.timeseries.TimeseriesAspectBase.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.timeseries.TimeseriesAspectBase.Builder clearMessageId() { - messageId = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public TimeseriesAspectBase build() { - try { - TimeseriesAspectBase record = new TimeseriesAspectBase(); - 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]); - 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/upgrade/DataHubUpgradeRequest.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/upgrade/DataHubUpgradeRequest.java deleted file mode 100644 index 6f1761552d0f0..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/upgrade/DataHubUpgradeRequest.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.upgrade; -@SuppressWarnings("all") -/** Information collected when kicking off a DataHubUpgrade */ -@org.apache.avro.specific.AvroGenerated -public class DataHubUpgradeRequest 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\":\"DataHubUpgradeRequest\",\"namespace\":\"com.linkedin.pegasus2avro.upgrade\",\"doc\":\"Information collected when kicking off a DataHubUpgrade\",\"fields\":[{\"name\":\"timestampMs\",\"type\":\"long\",\"doc\":\"Timestamp when we started this DataHubUpgrade\"},{\"name\":\"version\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"Version of this upgrade\"}],\"Aspect\":{\"name\":\"dataHubUpgradeRequest\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Timestamp when we started this DataHubUpgrade */ - @Deprecated public long timestampMs; - /** Version of this upgrade */ - @Deprecated public java.lang.String version; - - /** - * 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 DataHubUpgradeRequest() {} - - /** - * All-args constructor. - */ - public DataHubUpgradeRequest(java.lang.Long timestampMs, java.lang.String version) { - this.timestampMs = timestampMs; - this.version = version; - } - - 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 timestampMs; - case 1: return version; - 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: timestampMs = (java.lang.Long)value$; break; - case 1: version = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'timestampMs' field. - * Timestamp when we started this DataHubUpgrade */ - public java.lang.Long getTimestampMs() { - return timestampMs; - } - - /** - * Sets the value of the 'timestampMs' field. - * Timestamp when we started this DataHubUpgrade * @param value the value to set. - */ - public void setTimestampMs(java.lang.Long value) { - this.timestampMs = value; - } - - /** - * Gets the value of the 'version' field. - * Version of this upgrade */ - public java.lang.String getVersion() { - return version; - } - - /** - * Sets the value of the 'version' field. - * Version of this upgrade * @param value the value to set. - */ - public void setVersion(java.lang.String value) { - this.version = value; - } - - /** Creates a new DataHubUpgradeRequest RecordBuilder */ - public static com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.Builder newBuilder() { - return new com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.Builder(); - } - - /** Creates a new DataHubUpgradeRequest RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.Builder newBuilder(com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.Builder other) { - return new com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.Builder(other); - } - - /** Creates a new DataHubUpgradeRequest RecordBuilder by copying an existing DataHubUpgradeRequest instance */ - public static com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.Builder newBuilder(com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest other) { - return new com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.Builder(other); - } - - /** - * RecordBuilder for DataHubUpgradeRequest instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private long timestampMs; - private java.lang.String version; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.Builder other) { - super(other); - if (isValidValue(fields()[0], other.timestampMs)) { - this.timestampMs = data().deepCopy(fields()[0].schema(), other.timestampMs); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.version)) { - this.version = data().deepCopy(fields()[1].schema(), other.version); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataHubUpgradeRequest instance */ - private Builder(com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest other) { - super(com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.SCHEMA$); - if (isValidValue(fields()[0], other.timestampMs)) { - this.timestampMs = data().deepCopy(fields()[0].schema(), other.timestampMs); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.version)) { - this.version = data().deepCopy(fields()[1].schema(), other.version); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'timestampMs' field */ - public java.lang.Long getTimestampMs() { - return timestampMs; - } - - /** Sets the value of the 'timestampMs' field */ - public com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.Builder setTimestampMs(long value) { - validate(fields()[0], value); - this.timestampMs = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'timestampMs' field has been set */ - public boolean hasTimestampMs() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'timestampMs' field */ - public com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.Builder clearTimestampMs() { - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'version' field */ - public java.lang.String getVersion() { - return version; - } - - /** Sets the value of the 'version' field */ - public com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.Builder setVersion(java.lang.String value) { - validate(fields()[1], value); - this.version = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'version' field has been set */ - public boolean hasVersion() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'version' field */ - public com.linkedin.pegasus2avro.upgrade.DataHubUpgradeRequest.Builder clearVersion() { - version = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataHubUpgradeRequest build() { - try { - DataHubUpgradeRequest record = new DataHubUpgradeRequest(); - record.timestampMs = fieldSetFlags()[0] ? this.timestampMs : (java.lang.Long) defaultValue(fields()[0]); - record.version = fieldSetFlags()[1] ? this.version : (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/upgrade/DataHubUpgradeResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/upgrade/DataHubUpgradeResult.java deleted file mode 100644 index 69dca0c8f8690..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/upgrade/DataHubUpgradeResult.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.upgrade; -@SuppressWarnings("all") -/** Information collected when a DataHubUpgrade successfully finishes */ -@org.apache.avro.specific.AvroGenerated -public class DataHubUpgradeResult 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\":\"DataHubUpgradeResult\",\"namespace\":\"com.linkedin.pegasus2avro.upgrade\",\"doc\":\"Information collected when a DataHubUpgrade successfully finishes\",\"fields\":[{\"name\":\"timestampMs\",\"type\":\"long\",\"doc\":\"Timestamp when we started this DataHubUpgrade\"},{\"name\":\"result\",\"type\":[\"null\",{\"type\":\"map\",\"values\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"avro.java.string\":\"String\"}],\"doc\":\"Result map to place helpful information about this upgrade job\",\"default\":null}],\"Aspect\":{\"name\":\"dataHubUpgradeResult\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Timestamp when we started this DataHubUpgrade */ - @Deprecated public long timestampMs; - /** Result map to place helpful information about this upgrade job */ - @Deprecated public java.util.Map result; - - /** - * 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 DataHubUpgradeResult() {} - - /** - * All-args constructor. - */ - public DataHubUpgradeResult(java.lang.Long timestampMs, java.util.Map result) { - this.timestampMs = timestampMs; - this.result = result; - } - - 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 timestampMs; - case 1: return result; - 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: timestampMs = (java.lang.Long)value$; break; - case 1: result = (java.util.Map)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'timestampMs' field. - * Timestamp when we started this DataHubUpgrade */ - public java.lang.Long getTimestampMs() { - return timestampMs; - } - - /** - * Sets the value of the 'timestampMs' field. - * Timestamp when we started this DataHubUpgrade * @param value the value to set. - */ - public void setTimestampMs(java.lang.Long value) { - this.timestampMs = value; - } - - /** - * Gets the value of the 'result' field. - * Result map to place helpful information about this upgrade job */ - public java.util.Map getResult() { - return result; - } - - /** - * Sets the value of the 'result' field. - * Result map to place helpful information about this upgrade job * @param value the value to set. - */ - public void setResult(java.util.Map value) { - this.result = value; - } - - /** Creates a new DataHubUpgradeResult RecordBuilder */ - public static com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.Builder(); - } - - /** Creates a new DataHubUpgradeResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.Builder newBuilder(com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.Builder other) { - return new com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.Builder(other); - } - - /** Creates a new DataHubUpgradeResult RecordBuilder by copying an existing DataHubUpgradeResult instance */ - public static com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.Builder newBuilder(com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult other) { - return new com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.Builder(other); - } - - /** - * RecordBuilder for DataHubUpgradeResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private long timestampMs; - private java.util.Map result; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.timestampMs)) { - this.timestampMs = data().deepCopy(fields()[0].schema(), other.timestampMs); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.result)) { - this.result = data().deepCopy(fields()[1].schema(), other.result); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataHubUpgradeResult instance */ - private Builder(com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult other) { - super(com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.SCHEMA$); - if (isValidValue(fields()[0], other.timestampMs)) { - this.timestampMs = data().deepCopy(fields()[0].schema(), other.timestampMs); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.result)) { - this.result = data().deepCopy(fields()[1].schema(), other.result); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'timestampMs' field */ - public java.lang.Long getTimestampMs() { - return timestampMs; - } - - /** Sets the value of the 'timestampMs' field */ - public com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.Builder setTimestampMs(long value) { - validate(fields()[0], value); - this.timestampMs = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'timestampMs' field has been set */ - public boolean hasTimestampMs() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'timestampMs' field */ - public com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.Builder clearTimestampMs() { - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'result' field */ - public java.util.Map getResult() { - return result; - } - - /** Sets the value of the 'result' field */ - public com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.Builder setResult(java.util.Map value) { - validate(fields()[1], value); - this.result = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'result' field has been set */ - public boolean hasResult() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'result' field */ - public com.linkedin.pegasus2avro.upgrade.DataHubUpgradeResult.Builder clearResult() { - result = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataHubUpgradeResult build() { - try { - DataHubUpgradeResult record = new DataHubUpgradeResult(); - record.timestampMs = fieldSetFlags()[0] ? this.timestampMs : (java.lang.Long) defaultValue(fields()[0]); - record.result = fieldSetFlags()[1] ? this.result : (java.util.Map) 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/usage/FieldUsageCounts.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/usage/FieldUsageCounts.java deleted file mode 100644 index 9098a891a48b2..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/usage/FieldUsageCounts.java +++ /dev/null @@ -1,196 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.usage; -@SuppressWarnings("all") -/** Records field-level usage counts for a given resource */ -@org.apache.avro.specific.AvroGenerated -public class FieldUsageCounts 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\":\"FieldUsageCounts\",\"namespace\":\"com.linkedin.pegasus2avro.usage\",\"doc\":\" Records field-level usage counts for a given resource \",\"fields\":[{\"name\":\"fieldName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"count\",\"type\":\"int\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.String fieldName; - @Deprecated public int count; - - /** - * 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 FieldUsageCounts() {} - - /** - * All-args constructor. - */ - public FieldUsageCounts(java.lang.String fieldName, java.lang.Integer count) { - this.fieldName = fieldName; - this.count = count; - } - - 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 fieldName; - case 1: return count; - 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: fieldName = (java.lang.String)value$; break; - case 1: count = (java.lang.Integer)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'fieldName' field. - */ - public java.lang.String getFieldName() { - return fieldName; - } - - /** - * Sets the value of the 'fieldName' field. - * @param value the value to set. - */ - public void setFieldName(java.lang.String value) { - this.fieldName = value; - } - - /** - * Gets the value of the 'count' field. - */ - public java.lang.Integer getCount() { - return count; - } - - /** - * Sets the value of the 'count' field. - * @param value the value to set. - */ - public void setCount(java.lang.Integer value) { - this.count = value; - } - - /** Creates a new FieldUsageCounts RecordBuilder */ - public static com.linkedin.pegasus2avro.usage.FieldUsageCounts.Builder newBuilder() { - return new com.linkedin.pegasus2avro.usage.FieldUsageCounts.Builder(); - } - - /** Creates a new FieldUsageCounts RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.usage.FieldUsageCounts.Builder newBuilder(com.linkedin.pegasus2avro.usage.FieldUsageCounts.Builder other) { - return new com.linkedin.pegasus2avro.usage.FieldUsageCounts.Builder(other); - } - - /** Creates a new FieldUsageCounts RecordBuilder by copying an existing FieldUsageCounts instance */ - public static com.linkedin.pegasus2avro.usage.FieldUsageCounts.Builder newBuilder(com.linkedin.pegasus2avro.usage.FieldUsageCounts other) { - return new com.linkedin.pegasus2avro.usage.FieldUsageCounts.Builder(other); - } - - /** - * RecordBuilder for FieldUsageCounts instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String fieldName; - private int count; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.usage.FieldUsageCounts.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.usage.FieldUsageCounts.Builder other) { - super(other); - if (isValidValue(fields()[0], other.fieldName)) { - this.fieldName = data().deepCopy(fields()[0].schema(), other.fieldName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing FieldUsageCounts instance */ - private Builder(com.linkedin.pegasus2avro.usage.FieldUsageCounts other) { - super(com.linkedin.pegasus2avro.usage.FieldUsageCounts.SCHEMA$); - if (isValidValue(fields()[0], other.fieldName)) { - this.fieldName = data().deepCopy(fields()[0].schema(), other.fieldName); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'fieldName' field */ - public java.lang.String getFieldName() { - return fieldName; - } - - /** Sets the value of the 'fieldName' field */ - public com.linkedin.pegasus2avro.usage.FieldUsageCounts.Builder setFieldName(java.lang.String value) { - validate(fields()[0], value); - this.fieldName = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'fieldName' field has been set */ - public boolean hasFieldName() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'fieldName' field */ - public com.linkedin.pegasus2avro.usage.FieldUsageCounts.Builder clearFieldName() { - fieldName = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'count' field */ - public java.lang.Integer getCount() { - return count; - } - - /** Sets the value of the 'count' field */ - public com.linkedin.pegasus2avro.usage.FieldUsageCounts.Builder setCount(int value) { - validate(fields()[1], value); - this.count = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'count' field has been set */ - public boolean hasCount() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'count' field */ - public com.linkedin.pegasus2avro.usage.FieldUsageCounts.Builder clearCount() { - fieldSetFlags()[1] = false; - return this; - } - - @Override - public FieldUsageCounts build() { - try { - FieldUsageCounts record = new FieldUsageCounts(); - record.fieldName = fieldSetFlags()[0] ? this.fieldName : (java.lang.String) defaultValue(fields()[0]); - record.count = fieldSetFlags()[1] ? this.count : (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/usage/UsageAggregation.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/usage/UsageAggregation.java deleted file mode 100644 index 0180f0b66f07e..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/usage/UsageAggregation.java +++ /dev/null @@ -1,308 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.usage; -@SuppressWarnings("all") -/** Usage data for a given resource, rolled up into a bucket. */ -@org.apache.avro.specific.AvroGenerated -public class UsageAggregation 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\":\"UsageAggregation\",\"namespace\":\"com.linkedin.pegasus2avro.usage\",\"doc\":\"Usage data for a given resource, rolled up into a bucket.\",\"fields\":[{\"name\":\"bucket\",\"type\":\"long\",\"doc\":\" Bucket start time in milliseconds \"},{\"name\":\"duration\",\"type\":{\"type\":\"enum\",\"name\":\"WindowDuration\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Enum to define the length of a bucket when doing aggregations\",\"symbols\":[\"YEAR\",\"MONTH\",\"WEEK\",\"DAY\",\"HOUR\"]},\"doc\":\" Bucket duration \"},{\"name\":\"resource\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\" Resource associated with these usage stats \",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"metrics\",\"type\":{\"type\":\"record\",\"name\":\"UsageAggregationMetrics\",\"doc\":\"Metrics for usage data for a given resource and bucket. Not all fields\\nmake sense for all buckets, so every field is optional.\",\"fields\":[{\"name\":\"uniqueUserCount\",\"type\":[\"null\",\"int\"],\"doc\":\" Unique user count \",\"default\":null},{\"name\":\"users\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"UserUsageCounts\",\"doc\":\" Records a single user's usage counts for a given resource \",\"fields\":[{\"name\":\"user\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"count\",\"type\":\"int\"},{\"name\":\"userEmail\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\" If user_email is set, we attempt to resolve the user's urn upon ingest \",\"default\":null}]}}],\"doc\":\" Users within this bucket, with frequency counts \",\"default\":null},{\"name\":\"totalSqlQueries\",\"type\":[\"null\",\"int\"],\"doc\":\" Total SQL query count \",\"default\":null},{\"name\":\"topSqlQueries\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\" Frequent SQL queries; mostly makes sense for datasets in SQL databases \",\"default\":null},{\"name\":\"fields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FieldUsageCounts\",\"doc\":\" Records field-level usage counts for a given resource \",\"fields\":[{\"name\":\"fieldName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"count\",\"type\":\"int\"}]}}],\"doc\":\" Field-level usage stats \",\"default\":null}]},\"doc\":\" Metrics associated with this bucket \"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Bucket start time in milliseconds */ - @Deprecated public long bucket; - /** Bucket duration */ - @Deprecated public com.linkedin.pegasus2avro.common.WindowDuration duration; - /** Resource associated with these usage stats */ - @Deprecated public java.lang.String resource; - /** Metrics associated with this bucket */ - @Deprecated public com.linkedin.pegasus2avro.usage.UsageAggregationMetrics metrics; - - /** - * 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 UsageAggregation() {} - - /** - * All-args constructor. - */ - public UsageAggregation(java.lang.Long bucket, com.linkedin.pegasus2avro.common.WindowDuration duration, java.lang.String resource, com.linkedin.pegasus2avro.usage.UsageAggregationMetrics metrics) { - this.bucket = bucket; - this.duration = duration; - this.resource = resource; - this.metrics = metrics; - } - - 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 bucket; - case 1: return duration; - case 2: return resource; - case 3: return metrics; - 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: bucket = (java.lang.Long)value$; break; - case 1: duration = (com.linkedin.pegasus2avro.common.WindowDuration)value$; break; - case 2: resource = (java.lang.String)value$; break; - case 3: metrics = (com.linkedin.pegasus2avro.usage.UsageAggregationMetrics)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'bucket' field. - * Bucket start time in milliseconds */ - public java.lang.Long getBucket() { - return bucket; - } - - /** - * Sets the value of the 'bucket' field. - * Bucket start time in milliseconds * @param value the value to set. - */ - public void setBucket(java.lang.Long value) { - this.bucket = value; - } - - /** - * Gets the value of the 'duration' field. - * Bucket duration */ - public com.linkedin.pegasus2avro.common.WindowDuration getDuration() { - return duration; - } - - /** - * Sets the value of the 'duration' field. - * Bucket duration * @param value the value to set. - */ - public void setDuration(com.linkedin.pegasus2avro.common.WindowDuration value) { - this.duration = value; - } - - /** - * Gets the value of the 'resource' field. - * Resource associated with these usage stats */ - public java.lang.String getResource() { - return resource; - } - - /** - * Sets the value of the 'resource' field. - * Resource associated with these usage stats * @param value the value to set. - */ - public void setResource(java.lang.String value) { - this.resource = value; - } - - /** - * Gets the value of the 'metrics' field. - * Metrics associated with this bucket */ - public com.linkedin.pegasus2avro.usage.UsageAggregationMetrics getMetrics() { - return metrics; - } - - /** - * Sets the value of the 'metrics' field. - * Metrics associated with this bucket * @param value the value to set. - */ - public void setMetrics(com.linkedin.pegasus2avro.usage.UsageAggregationMetrics value) { - this.metrics = value; - } - - /** Creates a new UsageAggregation RecordBuilder */ - public static com.linkedin.pegasus2avro.usage.UsageAggregation.Builder newBuilder() { - return new com.linkedin.pegasus2avro.usage.UsageAggregation.Builder(); - } - - /** Creates a new UsageAggregation RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.usage.UsageAggregation.Builder newBuilder(com.linkedin.pegasus2avro.usage.UsageAggregation.Builder other) { - return new com.linkedin.pegasus2avro.usage.UsageAggregation.Builder(other); - } - - /** Creates a new UsageAggregation RecordBuilder by copying an existing UsageAggregation instance */ - public static com.linkedin.pegasus2avro.usage.UsageAggregation.Builder newBuilder(com.linkedin.pegasus2avro.usage.UsageAggregation other) { - return new com.linkedin.pegasus2avro.usage.UsageAggregation.Builder(other); - } - - /** - * RecordBuilder for UsageAggregation instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private long bucket; - private com.linkedin.pegasus2avro.common.WindowDuration duration; - private java.lang.String resource; - private com.linkedin.pegasus2avro.usage.UsageAggregationMetrics metrics; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.usage.UsageAggregation.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.usage.UsageAggregation.Builder other) { - super(other); - if (isValidValue(fields()[0], other.bucket)) { - this.bucket = data().deepCopy(fields()[0].schema(), other.bucket); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.duration)) { - this.duration = data().deepCopy(fields()[1].schema(), other.duration); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.resource)) { - this.resource = data().deepCopy(fields()[2].schema(), other.resource); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.metrics)) { - this.metrics = data().deepCopy(fields()[3].schema(), other.metrics); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing UsageAggregation instance */ - private Builder(com.linkedin.pegasus2avro.usage.UsageAggregation other) { - super(com.linkedin.pegasus2avro.usage.UsageAggregation.SCHEMA$); - if (isValidValue(fields()[0], other.bucket)) { - this.bucket = data().deepCopy(fields()[0].schema(), other.bucket); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.duration)) { - this.duration = data().deepCopy(fields()[1].schema(), other.duration); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.resource)) { - this.resource = data().deepCopy(fields()[2].schema(), other.resource); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.metrics)) { - this.metrics = data().deepCopy(fields()[3].schema(), other.metrics); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'bucket' field */ - public java.lang.Long getBucket() { - return bucket; - } - - /** Sets the value of the 'bucket' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregation.Builder setBucket(long value) { - validate(fields()[0], value); - this.bucket = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'bucket' field has been set */ - public boolean hasBucket() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'bucket' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregation.Builder clearBucket() { - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'duration' field */ - public com.linkedin.pegasus2avro.common.WindowDuration getDuration() { - return duration; - } - - /** Sets the value of the 'duration' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregation.Builder setDuration(com.linkedin.pegasus2avro.common.WindowDuration value) { - validate(fields()[1], value); - this.duration = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'duration' field has been set */ - public boolean hasDuration() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'duration' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregation.Builder clearDuration() { - duration = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'resource' field */ - public java.lang.String getResource() { - return resource; - } - - /** Sets the value of the 'resource' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregation.Builder setResource(java.lang.String value) { - validate(fields()[2], value); - this.resource = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'resource' field has been set */ - public boolean hasResource() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'resource' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregation.Builder clearResource() { - resource = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'metrics' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregationMetrics getMetrics() { - return metrics; - } - - /** Sets the value of the 'metrics' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregation.Builder setMetrics(com.linkedin.pegasus2avro.usage.UsageAggregationMetrics value) { - validate(fields()[3], value); - this.metrics = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'metrics' field has been set */ - public boolean hasMetrics() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'metrics' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregation.Builder clearMetrics() { - metrics = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public UsageAggregation build() { - try { - UsageAggregation record = new UsageAggregation(); - record.bucket = fieldSetFlags()[0] ? this.bucket : (java.lang.Long) defaultValue(fields()[0]); - record.duration = fieldSetFlags()[1] ? this.duration : (com.linkedin.pegasus2avro.common.WindowDuration) defaultValue(fields()[1]); - record.resource = fieldSetFlags()[2] ? this.resource : (java.lang.String) defaultValue(fields()[2]); - record.metrics = fieldSetFlags()[3] ? this.metrics : (com.linkedin.pegasus2avro.usage.UsageAggregationMetrics) 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/usage/UsageAggregationMetrics.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/usage/UsageAggregationMetrics.java deleted file mode 100644 index fbe6b98e771f7..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/usage/UsageAggregationMetrics.java +++ /dev/null @@ -1,365 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.usage; -@SuppressWarnings("all") -/** Metrics for usage data for a given resource and bucket. Not all fields -make sense for all buckets, so every field is optional. */ -@org.apache.avro.specific.AvroGenerated -public class UsageAggregationMetrics 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\":\"UsageAggregationMetrics\",\"namespace\":\"com.linkedin.pegasus2avro.usage\",\"doc\":\"Metrics for usage data for a given resource and bucket. Not all fields\\nmake sense for all buckets, so every field is optional.\",\"fields\":[{\"name\":\"uniqueUserCount\",\"type\":[\"null\",\"int\"],\"doc\":\" Unique user count \",\"default\":null},{\"name\":\"users\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"UserUsageCounts\",\"doc\":\" Records a single user's usage counts for a given resource \",\"fields\":[{\"name\":\"user\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"count\",\"type\":\"int\"},{\"name\":\"userEmail\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\" If user_email is set, we attempt to resolve the user's urn upon ingest \",\"default\":null}]}}],\"doc\":\" Users within this bucket, with frequency counts \",\"default\":null},{\"name\":\"totalSqlQueries\",\"type\":[\"null\",\"int\"],\"doc\":\" Total SQL query count \",\"default\":null},{\"name\":\"topSqlQueries\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\" Frequent SQL queries; mostly makes sense for datasets in SQL databases \",\"default\":null},{\"name\":\"fields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FieldUsageCounts\",\"doc\":\" Records field-level usage counts for a given resource \",\"fields\":[{\"name\":\"fieldName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"count\",\"type\":\"int\"}]}}],\"doc\":\" Field-level usage stats \",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Unique user count */ - @Deprecated public java.lang.Integer uniqueUserCount; - /** Users within this bucket, with frequency counts */ - @Deprecated public java.util.List users; - /** Total SQL query count */ - @Deprecated public java.lang.Integer totalSqlQueries; - /** Frequent SQL queries; mostly makes sense for datasets in SQL databases */ - @Deprecated public java.util.List topSqlQueries; - /** Field-level usage stats */ - @Deprecated public java.util.List fields; - - /** - * 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 UsageAggregationMetrics() {} - - /** - * All-args constructor. - */ - public UsageAggregationMetrics(java.lang.Integer uniqueUserCount, java.util.List users, java.lang.Integer totalSqlQueries, java.util.List topSqlQueries, java.util.List fields) { - this.uniqueUserCount = uniqueUserCount; - this.users = users; - this.totalSqlQueries = totalSqlQueries; - this.topSqlQueries = topSqlQueries; - this.fields = fields; - } - - 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 uniqueUserCount; - case 1: return users; - case 2: return totalSqlQueries; - case 3: return topSqlQueries; - case 4: return fields; - 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: uniqueUserCount = (java.lang.Integer)value$; break; - case 1: users = (java.util.List)value$; break; - case 2: totalSqlQueries = (java.lang.Integer)value$; break; - case 3: topSqlQueries = (java.util.List)value$; break; - case 4: fields = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * 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 'users' field. - * Users within this bucket, with frequency counts */ - public java.util.List getUsers() { - return users; - } - - /** - * Sets the value of the 'users' field. - * Users within this bucket, with frequency counts * @param value the value to set. - */ - public void setUsers(java.util.List value) { - this.users = value; - } - - /** - * Gets the value of the 'totalSqlQueries' field. - * Total SQL query count */ - public java.lang.Integer getTotalSqlQueries() { - return totalSqlQueries; - } - - /** - * Sets the value of the 'totalSqlQueries' field. - * Total SQL query count * @param value the value to set. - */ - public void setTotalSqlQueries(java.lang.Integer value) { - this.totalSqlQueries = value; - } - - /** - * Gets the value of the 'topSqlQueries' field. - * Frequent SQL queries; mostly makes sense for datasets in SQL databases */ - public java.util.List getTopSqlQueries() { - return topSqlQueries; - } - - /** - * Sets the value of the 'topSqlQueries' field. - * Frequent SQL queries; mostly makes sense for datasets in SQL databases * @param value the value to set. - */ - public void setTopSqlQueries(java.util.List value) { - this.topSqlQueries = value; - } - - /** - * Gets the value of the 'fields' field. - * Field-level usage stats */ - public java.util.List getFields() { - return fields; - } - - /** - * Sets the value of the 'fields' field. - * Field-level usage stats * @param value the value to set. - */ - public void setFields(java.util.List value) { - this.fields = value; - } - - /** Creates a new UsageAggregationMetrics RecordBuilder */ - public static com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder newBuilder() { - return new com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder(); - } - - /** Creates a new UsageAggregationMetrics RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder newBuilder(com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder other) { - return new com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder(other); - } - - /** Creates a new UsageAggregationMetrics RecordBuilder by copying an existing UsageAggregationMetrics instance */ - public static com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder newBuilder(com.linkedin.pegasus2avro.usage.UsageAggregationMetrics other) { - return new com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder(other); - } - - /** - * RecordBuilder for UsageAggregationMetrics instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Integer uniqueUserCount; - private java.util.List users; - private java.lang.Integer totalSqlQueries; - private java.util.List topSqlQueries; - private java.util.List fields; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder other) { - super(other); - if (isValidValue(fields()[0], other.uniqueUserCount)) { - this.uniqueUserCount = data().deepCopy(fields()[0].schema(), other.uniqueUserCount); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.users)) { - this.users = data().deepCopy(fields()[1].schema(), other.users); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.totalSqlQueries)) { - this.totalSqlQueries = data().deepCopy(fields()[2].schema(), other.totalSqlQueries); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.topSqlQueries)) { - this.topSqlQueries = data().deepCopy(fields()[3].schema(), other.topSqlQueries); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.fields)) { - this.fields = data().deepCopy(fields()[4].schema(), other.fields); - fieldSetFlags()[4] = true; - } - } - - /** Creates a Builder by copying an existing UsageAggregationMetrics instance */ - private Builder(com.linkedin.pegasus2avro.usage.UsageAggregationMetrics other) { - super(com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.SCHEMA$); - if (isValidValue(fields()[0], other.uniqueUserCount)) { - this.uniqueUserCount = data().deepCopy(fields()[0].schema(), other.uniqueUserCount); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.users)) { - this.users = data().deepCopy(fields()[1].schema(), other.users); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.totalSqlQueries)) { - this.totalSqlQueries = data().deepCopy(fields()[2].schema(), other.totalSqlQueries); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.topSqlQueries)) { - this.topSqlQueries = data().deepCopy(fields()[3].schema(), other.topSqlQueries); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.fields)) { - this.fields = data().deepCopy(fields()[4].schema(), other.fields); - fieldSetFlags()[4] = true; - } - } - - /** 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.usage.UsageAggregationMetrics.Builder setUniqueUserCount(java.lang.Integer value) { - validate(fields()[0], value); - this.uniqueUserCount = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'uniqueUserCount' field has been set */ - public boolean hasUniqueUserCount() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'uniqueUserCount' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder clearUniqueUserCount() { - uniqueUserCount = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'users' field */ - public java.util.List getUsers() { - return users; - } - - /** Sets the value of the 'users' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder setUsers(java.util.List value) { - validate(fields()[1], value); - this.users = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'users' field has been set */ - public boolean hasUsers() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'users' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder clearUsers() { - users = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'totalSqlQueries' field */ - public java.lang.Integer getTotalSqlQueries() { - return totalSqlQueries; - } - - /** Sets the value of the 'totalSqlQueries' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder setTotalSqlQueries(java.lang.Integer value) { - validate(fields()[2], value); - this.totalSqlQueries = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'totalSqlQueries' field has been set */ - public boolean hasTotalSqlQueries() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'totalSqlQueries' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder clearTotalSqlQueries() { - totalSqlQueries = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'topSqlQueries' field */ - public java.util.List getTopSqlQueries() { - return topSqlQueries; - } - - /** Sets the value of the 'topSqlQueries' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder setTopSqlQueries(java.util.List value) { - validate(fields()[3], value); - this.topSqlQueries = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'topSqlQueries' field has been set */ - public boolean hasTopSqlQueries() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'topSqlQueries' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder clearTopSqlQueries() { - topSqlQueries = null; - fieldSetFlags()[3] = 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.usage.UsageAggregationMetrics.Builder setFields(java.util.List value) { - validate(fields()[4], value); - this.fields = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'fields' field has been set */ - public boolean hasFields() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'fields' field */ - public com.linkedin.pegasus2avro.usage.UsageAggregationMetrics.Builder clearFields() { - fields = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public UsageAggregationMetrics build() { - try { - UsageAggregationMetrics record = new UsageAggregationMetrics(); - record.uniqueUserCount = fieldSetFlags()[0] ? this.uniqueUserCount : (java.lang.Integer) defaultValue(fields()[0]); - record.users = fieldSetFlags()[1] ? this.users : (java.util.List) defaultValue(fields()[1]); - record.totalSqlQueries = fieldSetFlags()[2] ? this.totalSqlQueries : (java.lang.Integer) defaultValue(fields()[2]); - record.topSqlQueries = fieldSetFlags()[3] ? this.topSqlQueries : (java.util.List) defaultValue(fields()[3]); - record.fields = fieldSetFlags()[4] ? this.fields : (java.util.List) 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/usage/UsageQueryResult.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/usage/UsageQueryResult.java deleted file mode 100644 index d01aa90a4dd70..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/usage/UsageQueryResult.java +++ /dev/null @@ -1,202 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.usage; -@SuppressWarnings("all") -/** Results of a query for usage data. */ -@org.apache.avro.specific.AvroGenerated -public class UsageQueryResult 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\":\"UsageQueryResult\",\"namespace\":\"com.linkedin.pegasus2avro.usage\",\"doc\":\"Results of a query for usage data.\",\"fields\":[{\"name\":\"buckets\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"UsageAggregation\",\"doc\":\"Usage data for a given resource, rolled up into a bucket.\",\"fields\":[{\"name\":\"bucket\",\"type\":\"long\",\"doc\":\" Bucket start time in milliseconds \"},{\"name\":\"duration\",\"type\":{\"type\":\"enum\",\"name\":\"WindowDuration\",\"namespace\":\"com.linkedin.pegasus2avro.common\",\"doc\":\"Enum to define the length of a bucket when doing aggregations\",\"symbols\":[\"YEAR\",\"MONTH\",\"WEEK\",\"DAY\",\"HOUR\"]},\"doc\":\" Bucket duration \"},{\"name\":\"resource\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\" Resource associated with these usage stats \",\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"metrics\",\"type\":{\"type\":\"record\",\"name\":\"UsageAggregationMetrics\",\"doc\":\"Metrics for usage data for a given resource and bucket. Not all fields\\nmake sense for all buckets, so every field is optional.\",\"fields\":[{\"name\":\"uniqueUserCount\",\"type\":[\"null\",\"int\"],\"doc\":\" Unique user count \",\"default\":null},{\"name\":\"users\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"UserUsageCounts\",\"doc\":\" Records a single user's usage counts for a given resource \",\"fields\":[{\"name\":\"user\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"count\",\"type\":\"int\"},{\"name\":\"userEmail\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\" If user_email is set, we attempt to resolve the user's urn upon ingest \",\"default\":null}]}}],\"doc\":\" Users within this bucket, with frequency counts \",\"default\":null},{\"name\":\"totalSqlQueries\",\"type\":[\"null\",\"int\"],\"doc\":\" Total SQL query count \",\"default\":null},{\"name\":\"topSqlQueries\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}],\"doc\":\" Frequent SQL queries; mostly makes sense for datasets in SQL databases \",\"default\":null},{\"name\":\"fields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FieldUsageCounts\",\"doc\":\" Records field-level usage counts for a given resource \",\"fields\":[{\"name\":\"fieldName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"count\",\"type\":\"int\"}]}}],\"doc\":\" Field-level usage stats \",\"default\":null}]},\"doc\":\" Metrics associated with this bucket \"}]}}],\"doc\":\" Raw buckets \",\"default\":null},{\"name\":\"aggregations\",\"type\":{\"type\":\"record\",\"name\":\"UsageQueryResultAggregations\",\"fields\":[{\"name\":\"uniqueUserCount\",\"type\":[\"null\",\"int\"],\"default\":null},{\"name\":\"totalSqlQueries\",\"type\":[\"null\",\"int\"],\"default\":null},{\"name\":\"users\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"UserUsageCounts\"}],\"default\":null},{\"name\":\"fields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"FieldUsageCounts\"}],\"default\":null}]},\"doc\":\"Aggregated metrics. All fields are optional here, since they will be populated\\nonly if the underlying buckets contain the data required to generate that aggregation.\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** Raw buckets */ - @Deprecated public java.util.List buckets; - /** Aggregated metrics. All fields are optional here, since they will be populated -only if the underlying buckets contain the data required to generate that aggregation. */ - @Deprecated public com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations aggregations; - - /** - * 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 UsageQueryResult() {} - - /** - * All-args constructor. - */ - public UsageQueryResult(java.util.List buckets, com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations aggregations) { - this.buckets = buckets; - this.aggregations = aggregations; - } - - 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 buckets; - case 1: return aggregations; - 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: buckets = (java.util.List)value$; break; - case 1: aggregations = (com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'buckets' field. - * Raw buckets */ - public java.util.List getBuckets() { - return buckets; - } - - /** - * Sets the value of the 'buckets' field. - * Raw buckets * @param value the value to set. - */ - public void setBuckets(java.util.List value) { - this.buckets = value; - } - - /** - * Gets the value of the 'aggregations' field. - * Aggregated metrics. All fields are optional here, since they will be populated -only if the underlying buckets contain the data required to generate that aggregation. */ - public com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations getAggregations() { - return aggregations; - } - - /** - * Sets the value of the 'aggregations' field. - * Aggregated metrics. All fields are optional here, since they will be populated -only if the underlying buckets contain the data required to generate that aggregation. * @param value the value to set. - */ - public void setAggregations(com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations value) { - this.aggregations = value; - } - - /** Creates a new UsageQueryResult RecordBuilder */ - public static com.linkedin.pegasus2avro.usage.UsageQueryResult.Builder newBuilder() { - return new com.linkedin.pegasus2avro.usage.UsageQueryResult.Builder(); - } - - /** Creates a new UsageQueryResult RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.usage.UsageQueryResult.Builder newBuilder(com.linkedin.pegasus2avro.usage.UsageQueryResult.Builder other) { - return new com.linkedin.pegasus2avro.usage.UsageQueryResult.Builder(other); - } - - /** Creates a new UsageQueryResult RecordBuilder by copying an existing UsageQueryResult instance */ - public static com.linkedin.pegasus2avro.usage.UsageQueryResult.Builder newBuilder(com.linkedin.pegasus2avro.usage.UsageQueryResult other) { - return new com.linkedin.pegasus2avro.usage.UsageQueryResult.Builder(other); - } - - /** - * RecordBuilder for UsageQueryResult instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List buckets; - private com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations aggregations; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.usage.UsageQueryResult.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.usage.UsageQueryResult.Builder other) { - super(other); - if (isValidValue(fields()[0], other.buckets)) { - this.buckets = data().deepCopy(fields()[0].schema(), other.buckets); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aggregations)) { - this.aggregations = data().deepCopy(fields()[1].schema(), other.aggregations); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing UsageQueryResult instance */ - private Builder(com.linkedin.pegasus2avro.usage.UsageQueryResult other) { - super(com.linkedin.pegasus2avro.usage.UsageQueryResult.SCHEMA$); - if (isValidValue(fields()[0], other.buckets)) { - this.buckets = data().deepCopy(fields()[0].schema(), other.buckets); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.aggregations)) { - this.aggregations = data().deepCopy(fields()[1].schema(), other.aggregations); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'buckets' field */ - public java.util.List getBuckets() { - return buckets; - } - - /** Sets the value of the 'buckets' field */ - public com.linkedin.pegasus2avro.usage.UsageQueryResult.Builder setBuckets(java.util.List value) { - validate(fields()[0], value); - this.buckets = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'buckets' field has been set */ - public boolean hasBuckets() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'buckets' field */ - public com.linkedin.pegasus2avro.usage.UsageQueryResult.Builder clearBuckets() { - buckets = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'aggregations' field */ - public com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations getAggregations() { - return aggregations; - } - - /** Sets the value of the 'aggregations' field */ - public com.linkedin.pegasus2avro.usage.UsageQueryResult.Builder setAggregations(com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations value) { - validate(fields()[1], value); - this.aggregations = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'aggregations' field has been set */ - public boolean hasAggregations() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'aggregations' field */ - public com.linkedin.pegasus2avro.usage.UsageQueryResult.Builder clearAggregations() { - aggregations = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public UsageQueryResult build() { - try { - UsageQueryResult record = new UsageQueryResult(); - record.buckets = fieldSetFlags()[0] ? this.buckets : (java.util.List) defaultValue(fields()[0]); - record.aggregations = fieldSetFlags()[1] ? this.aggregations : (com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations) 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/usage/UsageQueryResultAggregations.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/usage/UsageQueryResultAggregations.java deleted file mode 100644 index 72cfd5f3989c5..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/usage/UsageQueryResultAggregations.java +++ /dev/null @@ -1,304 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.usage; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class UsageQueryResultAggregations 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\":\"UsageQueryResultAggregations\",\"namespace\":\"com.linkedin.pegasus2avro.usage\",\"fields\":[{\"name\":\"uniqueUserCount\",\"type\":[\"null\",\"int\"],\"default\":null},{\"name\":\"totalSqlQueries\",\"type\":[\"null\",\"int\"],\"default\":null},{\"name\":\"users\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"UserUsageCounts\",\"doc\":\" Records a single user's usage counts for a given resource \",\"fields\":[{\"name\":\"user\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"count\",\"type\":\"int\"},{\"name\":\"userEmail\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\" If user_email is set, we attempt to resolve the user's urn upon ingest \",\"default\":null}]}}],\"default\":null},{\"name\":\"fields\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"FieldUsageCounts\",\"doc\":\" Records field-level usage counts for a given resource \",\"fields\":[{\"name\":\"fieldName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"count\",\"type\":\"int\"}]}}],\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.Integer uniqueUserCount; - @Deprecated public java.lang.Integer totalSqlQueries; - @Deprecated public java.util.List users; - @Deprecated public java.util.List fields; - - /** - * 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 UsageQueryResultAggregations() {} - - /** - * All-args constructor. - */ - public UsageQueryResultAggregations(java.lang.Integer uniqueUserCount, java.lang.Integer totalSqlQueries, java.util.List users, java.util.List fields) { - this.uniqueUserCount = uniqueUserCount; - this.totalSqlQueries = totalSqlQueries; - this.users = users; - this.fields = fields; - } - - 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 uniqueUserCount; - case 1: return totalSqlQueries; - case 2: return users; - case 3: return fields; - 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: uniqueUserCount = (java.lang.Integer)value$; break; - case 1: totalSqlQueries = (java.lang.Integer)value$; break; - case 2: users = (java.util.List)value$; break; - case 3: fields = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'uniqueUserCount' field. - */ - public java.lang.Integer getUniqueUserCount() { - return uniqueUserCount; - } - - /** - * Sets the value of the 'uniqueUserCount' field. - * @param value the value to set. - */ - public void setUniqueUserCount(java.lang.Integer value) { - this.uniqueUserCount = value; - } - - /** - * Gets the value of the 'totalSqlQueries' field. - */ - public java.lang.Integer getTotalSqlQueries() { - return totalSqlQueries; - } - - /** - * Sets the value of the 'totalSqlQueries' field. - * @param value the value to set. - */ - public void setTotalSqlQueries(java.lang.Integer value) { - this.totalSqlQueries = value; - } - - /** - * Gets the value of the 'users' field. - */ - public java.util.List getUsers() { - return users; - } - - /** - * Sets the value of the 'users' field. - * @param value the value to set. - */ - public void setUsers(java.util.List value) { - this.users = value; - } - - /** - * Gets the value of the 'fields' field. - */ - public java.util.List getFields() { - return fields; - } - - /** - * Sets the value of the 'fields' field. - * @param value the value to set. - */ - public void setFields(java.util.List value) { - this.fields = value; - } - - /** Creates a new UsageQueryResultAggregations RecordBuilder */ - public static com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder newBuilder() { - return new com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder(); - } - - /** Creates a new UsageQueryResultAggregations RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder newBuilder(com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder other) { - return new com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder(other); - } - - /** Creates a new UsageQueryResultAggregations RecordBuilder by copying an existing UsageQueryResultAggregations instance */ - public static com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder newBuilder(com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations other) { - return new com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder(other); - } - - /** - * RecordBuilder for UsageQueryResultAggregations instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Integer uniqueUserCount; - private java.lang.Integer totalSqlQueries; - private java.util.List users; - private java.util.List fields; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder other) { - super(other); - if (isValidValue(fields()[0], other.uniqueUserCount)) { - this.uniqueUserCount = data().deepCopy(fields()[0].schema(), other.uniqueUserCount); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.totalSqlQueries)) { - this.totalSqlQueries = data().deepCopy(fields()[1].schema(), other.totalSqlQueries); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.users)) { - this.users = data().deepCopy(fields()[2].schema(), other.users); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.fields)) { - this.fields = data().deepCopy(fields()[3].schema(), other.fields); - fieldSetFlags()[3] = true; - } - } - - /** Creates a Builder by copying an existing UsageQueryResultAggregations instance */ - private Builder(com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations other) { - super(com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.SCHEMA$); - if (isValidValue(fields()[0], other.uniqueUserCount)) { - this.uniqueUserCount = data().deepCopy(fields()[0].schema(), other.uniqueUserCount); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.totalSqlQueries)) { - this.totalSqlQueries = data().deepCopy(fields()[1].schema(), other.totalSqlQueries); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.users)) { - this.users = data().deepCopy(fields()[2].schema(), other.users); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.fields)) { - this.fields = data().deepCopy(fields()[3].schema(), other.fields); - fieldSetFlags()[3] = true; - } - } - - /** 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.usage.UsageQueryResultAggregations.Builder setUniqueUserCount(java.lang.Integer value) { - validate(fields()[0], value); - this.uniqueUserCount = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'uniqueUserCount' field has been set */ - public boolean hasUniqueUserCount() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'uniqueUserCount' field */ - public com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder clearUniqueUserCount() { - uniqueUserCount = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'totalSqlQueries' field */ - public java.lang.Integer getTotalSqlQueries() { - return totalSqlQueries; - } - - /** Sets the value of the 'totalSqlQueries' field */ - public com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder setTotalSqlQueries(java.lang.Integer value) { - validate(fields()[1], value); - this.totalSqlQueries = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'totalSqlQueries' field has been set */ - public boolean hasTotalSqlQueries() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'totalSqlQueries' field */ - public com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder clearTotalSqlQueries() { - totalSqlQueries = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'users' field */ - public java.util.List getUsers() { - return users; - } - - /** Sets the value of the 'users' field */ - public com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder setUsers(java.util.List value) { - validate(fields()[2], value); - this.users = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'users' field has been set */ - public boolean hasUsers() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'users' field */ - public com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder clearUsers() { - users = null; - fieldSetFlags()[2] = 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.usage.UsageQueryResultAggregations.Builder setFields(java.util.List value) { - validate(fields()[3], value); - this.fields = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'fields' field has been set */ - public boolean hasFields() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'fields' field */ - public com.linkedin.pegasus2avro.usage.UsageQueryResultAggregations.Builder clearFields() { - fields = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public UsageQueryResultAggregations build() { - try { - UsageQueryResultAggregations record = new UsageQueryResultAggregations(); - record.uniqueUserCount = fieldSetFlags()[0] ? this.uniqueUserCount : (java.lang.Integer) defaultValue(fields()[0]); - record.totalSqlQueries = fieldSetFlags()[1] ? this.totalSqlQueries : (java.lang.Integer) defaultValue(fields()[1]); - record.users = fieldSetFlags()[2] ? this.users : (java.util.List) defaultValue(fields()[2]); - record.fields = fieldSetFlags()[3] ? this.fields : (java.util.List) 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/usage/UserUsageCounts.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/usage/UserUsageCounts.java deleted file mode 100644 index efb511eca846c..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/usage/UserUsageCounts.java +++ /dev/null @@ -1,251 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.usage; -@SuppressWarnings("all") -/** Records a single user's usage counts for a given resource */ -@org.apache.avro.specific.AvroGenerated -public class UserUsageCounts 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\":\"UserUsageCounts\",\"namespace\":\"com.linkedin.pegasus2avro.usage\",\"doc\":\" Records a single user's usage counts for a given resource \",\"fields\":[{\"name\":\"user\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"default\":null,\"java\":{\"class\":\"com.linkedin.pegasus2avro.common.urn.Urn\"}},{\"name\":\"count\",\"type\":\"int\"},{\"name\":\"userEmail\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\" If user_email is set, we attempt to resolve the user's urn upon ingest \",\"default\":null}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - @Deprecated public java.lang.String user; - @Deprecated public int count; - /** If user_email is set, we attempt to resolve the user's urn upon ingest */ - @Deprecated public java.lang.String userEmail; - - /** - * 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 UserUsageCounts() {} - - /** - * All-args constructor. - */ - public UserUsageCounts(java.lang.String user, java.lang.Integer count, java.lang.String userEmail) { - this.user = user; - this.count = count; - this.userEmail = userEmail; - } - - 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 count; - case 2: return userEmail; - 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: count = (java.lang.Integer)value$; break; - case 2: userEmail = (java.lang.String)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'user' field. - */ - public java.lang.String getUser() { - return user; - } - - /** - * Sets the value of the 'user' field. - * @param value the value to set. - */ - public void setUser(java.lang.String value) { - this.user = value; - } - - /** - * Gets the value of the 'count' field. - */ - public java.lang.Integer getCount() { - return count; - } - - /** - * Sets the value of the 'count' field. - * @param value the value to set. - */ - public void setCount(java.lang.Integer value) { - this.count = value; - } - - /** - * Gets the value of the 'userEmail' field. - * If user_email is set, we attempt to resolve the user's urn upon ingest */ - public java.lang.String getUserEmail() { - return userEmail; - } - - /** - * Sets the value of the 'userEmail' field. - * If user_email is set, we attempt to resolve the user's urn upon ingest * @param value the value to set. - */ - public void setUserEmail(java.lang.String value) { - this.userEmail = value; - } - - /** Creates a new UserUsageCounts RecordBuilder */ - public static com.linkedin.pegasus2avro.usage.UserUsageCounts.Builder newBuilder() { - return new com.linkedin.pegasus2avro.usage.UserUsageCounts.Builder(); - } - - /** Creates a new UserUsageCounts RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.usage.UserUsageCounts.Builder newBuilder(com.linkedin.pegasus2avro.usage.UserUsageCounts.Builder other) { - return new com.linkedin.pegasus2avro.usage.UserUsageCounts.Builder(other); - } - - /** Creates a new UserUsageCounts RecordBuilder by copying an existing UserUsageCounts instance */ - public static com.linkedin.pegasus2avro.usage.UserUsageCounts.Builder newBuilder(com.linkedin.pegasus2avro.usage.UserUsageCounts other) { - return new com.linkedin.pegasus2avro.usage.UserUsageCounts.Builder(other); - } - - /** - * RecordBuilder for UserUsageCounts instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.String user; - private int count; - private java.lang.String userEmail; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.usage.UserUsageCounts.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.usage.UserUsageCounts.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.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.userEmail)) { - this.userEmail = data().deepCopy(fields()[2].schema(), other.userEmail); - fieldSetFlags()[2] = true; - } - } - - /** Creates a Builder by copying an existing UserUsageCounts instance */ - private Builder(com.linkedin.pegasus2avro.usage.UserUsageCounts other) { - super(com.linkedin.pegasus2avro.usage.UserUsageCounts.SCHEMA$); - if (isValidValue(fields()[0], other.user)) { - this.user = data().deepCopy(fields()[0].schema(), other.user); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.count)) { - this.count = data().deepCopy(fields()[1].schema(), other.count); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.userEmail)) { - this.userEmail = data().deepCopy(fields()[2].schema(), other.userEmail); - fieldSetFlags()[2] = 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.usage.UserUsageCounts.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.usage.UserUsageCounts.Builder clearUser() { - user = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'count' field */ - public java.lang.Integer getCount() { - return count; - } - - /** Sets the value of the 'count' field */ - public com.linkedin.pegasus2avro.usage.UserUsageCounts.Builder setCount(int value) { - validate(fields()[1], value); - this.count = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'count' field has been set */ - public boolean hasCount() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'count' field */ - public com.linkedin.pegasus2avro.usage.UserUsageCounts.Builder clearCount() { - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'userEmail' field */ - public java.lang.String getUserEmail() { - return userEmail; - } - - /** Sets the value of the 'userEmail' field */ - public com.linkedin.pegasus2avro.usage.UserUsageCounts.Builder setUserEmail(java.lang.String value) { - validate(fields()[2], value); - this.userEmail = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'userEmail' field has been set */ - public boolean hasUserEmail() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'userEmail' field */ - public com.linkedin.pegasus2avro.usage.UserUsageCounts.Builder clearUserEmail() { - userEmail = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public UserUsageCounts build() { - try { - UserUsageCounts record = new UserUsageCounts(); - record.user = fieldSetFlags()[0] ? this.user : (java.lang.String) defaultValue(fields()[0]); - record.count = fieldSetFlags()[1] ? this.count : (java.lang.Integer) defaultValue(fields()[1]); - record.userEmail = fieldSetFlags()[2] ? this.userEmail : (java.lang.String) 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/view/DataHubViewDefinition.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/view/DataHubViewDefinition.java deleted file mode 100644 index 60e4fb1072d41..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/view/DataHubViewDefinition.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.view; -@SuppressWarnings("all") -/** A View definition. */ -@org.apache.avro.specific.AvroGenerated -public class DataHubViewDefinition 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\":\"DataHubViewDefinition\",\"namespace\":\"com.linkedin.pegasus2avro.view\",\"doc\":\"A View definition.\",\"fields\":[{\"name\":\"entityTypes\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"The Entity Types in the scope of the View.\"},{\"name\":\"filter\",\"type\":{\"type\":\"record\",\"name\":\"Filter\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"The filter for finding a record or a collection of records\",\"fields\":[{\"name\":\"or\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ConjunctiveCriterion\",\"doc\":\"A list of criterion and'd together.\",\"fields\":[{\"name\":\"and\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Criterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The value of the intended field\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. one of which the intended field should match\\nNote, if values is set, the above \\\"value\\\" field will be ignored\",\"default\":[]},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"Condition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}},\"doc\":\"The condition for the criterion, e.g. EQUAL, START_WITH\",\"default\":\"EQUAL\"},{\"name\":\"negated\",\"type\":\"boolean\",\"doc\":\"Whether the condition should be negated\",\"default\":false}]}},\"doc\":\"A list of and criteria the filter applies to the query\"}]}}],\"doc\":\"A list of disjunctive criterion for the filter. (or operation to combine filters)\",\"default\":null},{\"name\":\"criteria\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Criterion\"}],\"doc\":\"Deprecated! A list of conjunctive criterion for the filter. If \\\"or\\\" field is provided, then this field is ignored.\",\"default\":null}]},\"doc\":\"The filter criteria, which represents the view itself\"}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The Entity Types in the scope of the View. */ - @Deprecated public java.util.List entityTypes; - /** The filter criteria, which represents the view itself */ - @Deprecated public com.linkedin.pegasus2avro.metadata.query.filter.Filter filter; - - /** - * 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 DataHubViewDefinition() {} - - /** - * All-args constructor. - */ - public DataHubViewDefinition(java.util.List entityTypes, com.linkedin.pegasus2avro.metadata.query.filter.Filter filter) { - this.entityTypes = entityTypes; - this.filter = filter; - } - - 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 entityTypes; - case 1: return filter; - 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: entityTypes = (java.util.List)value$; break; - case 1: filter = (com.linkedin.pegasus2avro.metadata.query.filter.Filter)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'entityTypes' field. - * The Entity Types in the scope of the View. */ - public java.util.List getEntityTypes() { - return entityTypes; - } - - /** - * Sets the value of the 'entityTypes' field. - * The Entity Types in the scope of the View. * @param value the value to set. - */ - public void setEntityTypes(java.util.List value) { - this.entityTypes = value; - } - - /** - * Gets the value of the 'filter' field. - * The filter criteria, which represents the view itself */ - public com.linkedin.pegasus2avro.metadata.query.filter.Filter getFilter() { - return filter; - } - - /** - * Sets the value of the 'filter' field. - * The filter criteria, which represents the view itself * @param value the value to set. - */ - public void setFilter(com.linkedin.pegasus2avro.metadata.query.filter.Filter value) { - this.filter = value; - } - - /** Creates a new DataHubViewDefinition RecordBuilder */ - public static com.linkedin.pegasus2avro.view.DataHubViewDefinition.Builder newBuilder() { - return new com.linkedin.pegasus2avro.view.DataHubViewDefinition.Builder(); - } - - /** Creates a new DataHubViewDefinition RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.view.DataHubViewDefinition.Builder newBuilder(com.linkedin.pegasus2avro.view.DataHubViewDefinition.Builder other) { - return new com.linkedin.pegasus2avro.view.DataHubViewDefinition.Builder(other); - } - - /** Creates a new DataHubViewDefinition RecordBuilder by copying an existing DataHubViewDefinition instance */ - public static com.linkedin.pegasus2avro.view.DataHubViewDefinition.Builder newBuilder(com.linkedin.pegasus2avro.view.DataHubViewDefinition other) { - return new com.linkedin.pegasus2avro.view.DataHubViewDefinition.Builder(other); - } - - /** - * RecordBuilder for DataHubViewDefinition instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List entityTypes; - private com.linkedin.pegasus2avro.metadata.query.filter.Filter filter; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.view.DataHubViewDefinition.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.view.DataHubViewDefinition.Builder other) { - super(other); - if (isValidValue(fields()[0], other.entityTypes)) { - this.entityTypes = data().deepCopy(fields()[0].schema(), other.entityTypes); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.filter)) { - this.filter = data().deepCopy(fields()[1].schema(), other.filter); - fieldSetFlags()[1] = true; - } - } - - /** Creates a Builder by copying an existing DataHubViewDefinition instance */ - private Builder(com.linkedin.pegasus2avro.view.DataHubViewDefinition other) { - super(com.linkedin.pegasus2avro.view.DataHubViewDefinition.SCHEMA$); - if (isValidValue(fields()[0], other.entityTypes)) { - this.entityTypes = data().deepCopy(fields()[0].schema(), other.entityTypes); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.filter)) { - this.filter = data().deepCopy(fields()[1].schema(), other.filter); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'entityTypes' field */ - public java.util.List getEntityTypes() { - return entityTypes; - } - - /** Sets the value of the 'entityTypes' field */ - public com.linkedin.pegasus2avro.view.DataHubViewDefinition.Builder setEntityTypes(java.util.List value) { - validate(fields()[0], value); - this.entityTypes = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'entityTypes' field has been set */ - public boolean hasEntityTypes() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'entityTypes' field */ - public com.linkedin.pegasus2avro.view.DataHubViewDefinition.Builder clearEntityTypes() { - entityTypes = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'filter' field */ - public com.linkedin.pegasus2avro.metadata.query.filter.Filter getFilter() { - return filter; - } - - /** Sets the value of the 'filter' field */ - public com.linkedin.pegasus2avro.view.DataHubViewDefinition.Builder setFilter(com.linkedin.pegasus2avro.metadata.query.filter.Filter value) { - validate(fields()[1], value); - this.filter = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'filter' field has been set */ - public boolean hasFilter() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'filter' field */ - public com.linkedin.pegasus2avro.view.DataHubViewDefinition.Builder clearFilter() { - filter = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public DataHubViewDefinition build() { - try { - DataHubViewDefinition record = new DataHubViewDefinition(); - record.entityTypes = fieldSetFlags()[0] ? this.entityTypes : (java.util.List) defaultValue(fields()[0]); - record.filter = fieldSetFlags()[1] ? this.filter : (com.linkedin.pegasus2avro.metadata.query.filter.Filter) 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/view/DataHubViewInfo.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/view/DataHubViewInfo.java deleted file mode 100644 index 9b6b6020dc120..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/view/DataHubViewInfo.java +++ /dev/null @@ -1,419 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.view; -@SuppressWarnings("all") -/** Information about a DataHub View. -- TODO: Understand whether an entity type filter is required. */ -@org.apache.avro.specific.AvroGenerated -public class DataHubViewInfo 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\":\"DataHubViewInfo\",\"namespace\":\"com.linkedin.pegasus2avro.view\",\"doc\":\"Information about a DataHub View. -- TODO: Understand whether an entity type filter is required.\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the View\",\"Searchable\":{\"fieldType\":\"TEXT_PARTIAL\"}},{\"name\":\"description\",\"type\":[\"null\",{\"type\":\"string\",\"avro.java.string\":\"String\"}],\"doc\":\"Description of the view\",\"default\":null},{\"name\":\"type\",\"type\":{\"type\":\"enum\",\"name\":\"DataHubViewType\",\"symbols\":[\"PERSONAL\",\"GLOBAL\"],\"symbolDocs\":{\"GLOBAL\":\"A global view, which all users can see and use.\",\"PERSONAL\":\"A view private for a specific person.\"}},\"doc\":\"The type of View\",\"Searchable\":{}},{\"name\":\"definition\",\"type\":{\"type\":\"record\",\"name\":\"DataHubViewDefinition\",\"doc\":\"A View definition.\",\"fields\":[{\"name\":\"entityTypes\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"The Entity Types in the scope of the View.\"},{\"name\":\"filter\",\"type\":{\"type\":\"record\",\"name\":\"Filter\",\"namespace\":\"com.linkedin.pegasus2avro.metadata.query.filter\",\"doc\":\"The filter for finding a record or a collection of records\",\"fields\":[{\"name\":\"or\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"ConjunctiveCriterion\",\"doc\":\"A list of criterion and'd together.\",\"fields\":[{\"name\":\"and\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Criterion\",\"doc\":\"A criterion for matching a field with given value\",\"fields\":[{\"name\":\"field\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The name of the field that the criterion refers to\"},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"doc\":\"The value of the intended field\"},{\"name\":\"values\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"doc\":\"Values. one of which the intended field should match\\nNote, if values is set, the above \\\"value\\\" field will be ignored\",\"default\":[]},{\"name\":\"condition\",\"type\":{\"type\":\"enum\",\"name\":\"Condition\",\"doc\":\"The matching condition in a filter criterion\",\"symbols\":[\"CONTAIN\",\"END_WITH\",\"EQUAL\",\"IS_NULL\",\"GREATER_THAN\",\"GREATER_THAN_OR_EQUAL_TO\",\"IN\",\"LESS_THAN\",\"LESS_THAN_OR_EQUAL_TO\",\"START_WITH\"],\"symbolDocs\":{\"CONTAIN\":\"Represent the relation: String field contains value, e.g. name contains Profile\",\"END_WITH\":\"Represent the relation: String field ends with value, e.g. name ends with Event\",\"EQUAL\":\"Represent the relation: field = value, e.g. platform = hdfs\",\"GREATER_THAN\":\"Represent the relation greater than, e.g. ownerCount > 5\",\"GREATER_THAN_OR_EQUAL_TO\":\"Represent the relation greater than or equal to, e.g. ownerCount >= 5\",\"IN\":\"Represent the relation: String field is one of the array values to, e.g. name in [\\\"Profile\\\", \\\"Event\\\"]\",\"IS_NULL\":\"Represent the relation: field is null, e.g. platform is null\",\"LESS_THAN\":\"Represent the relation less than, e.g. ownerCount < 3\",\"LESS_THAN_OR_EQUAL_TO\":\"Represent the relation less than or equal to, e.g. ownerCount <= 3\",\"START_WITH\":\"Represent the relation: String field starts with value, e.g. name starts with PageView\"}},\"doc\":\"The condition for the criterion, e.g. EQUAL, START_WITH\",\"default\":\"EQUAL\"},{\"name\":\"negated\",\"type\":\"boolean\",\"doc\":\"Whether the condition should be negated\",\"default\":false}]}},\"doc\":\"A list of and criteria the filter applies to the query\"}]}}],\"doc\":\"A list of disjunctive criterion for the filter. (or operation to combine filters)\",\"default\":null},{\"name\":\"criteria\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Criterion\"}],\"doc\":\"Deprecated! A list of conjunctive criterion for the filter. If \\\"or\\\" field is provided, then this field is ignored.\",\"default\":null}]},\"doc\":\"The filter criteria, which represents the view itself\"}]},\"doc\":\"The view itself\"},{\"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\":\"Audit stamp capturing the time and actor who created the View.\",\"Searchable\":{\"/actor\":{\"fieldName\":\"createdBy\",\"fieldType\":\"URN\"},\"/time\":{\"fieldName\":\"createdAt\",\"fieldType\":\"DATETIME\"}}},{\"name\":\"lastModified\",\"type\":\"com.linkedin.pegasus2avro.common.AuditStamp\",\"doc\":\"Audit stamp capturing the time and actor who last modified the View.\",\"Searchable\":{\"/time\":{\"fieldName\":\"lastModifiedAt\",\"fieldType\":\"DATETIME\"}}}],\"Aspect\":{\"name\":\"dataHubViewInfo\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - /** The name of the View */ - @Deprecated public java.lang.String name; - /** Description of the view */ - @Deprecated public java.lang.String description; - /** The type of View */ - @Deprecated public com.linkedin.pegasus2avro.view.DataHubViewType type; - /** The view itself */ - @Deprecated public com.linkedin.pegasus2avro.view.DataHubViewDefinition definition; - /** Audit stamp capturing the time and actor who created the View. */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp created; - /** Audit stamp capturing the time and actor who last modified the View. */ - @Deprecated public com.linkedin.pegasus2avro.common.AuditStamp lastModified; - - /** - * 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 DataHubViewInfo() {} - - /** - * All-args constructor. - */ - public DataHubViewInfo(java.lang.String name, java.lang.String description, com.linkedin.pegasus2avro.view.DataHubViewType type, com.linkedin.pegasus2avro.view.DataHubViewDefinition definition, com.linkedin.pegasus2avro.common.AuditStamp created, com.linkedin.pegasus2avro.common.AuditStamp lastModified) { - this.name = name; - this.description = description; - this.type = type; - this.definition = definition; - this.created = created; - this.lastModified = lastModified; - } - - 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 description; - case 2: return type; - case 3: return definition; - case 4: return created; - case 5: return lastModified; - 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: description = (java.lang.String)value$; break; - case 2: type = (com.linkedin.pegasus2avro.view.DataHubViewType)value$; break; - case 3: definition = (com.linkedin.pegasus2avro.view.DataHubViewDefinition)value$; break; - case 4: created = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - case 5: lastModified = (com.linkedin.pegasus2avro.common.AuditStamp)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'name' field. - * The name of the View */ - public java.lang.String getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * The name of the View * @param value the value to set. - */ - public void setName(java.lang.String value) { - this.name = value; - } - - /** - * Gets the value of the 'description' field. - * Description of the view */ - public java.lang.String getDescription() { - return description; - } - - /** - * Sets the value of the 'description' field. - * Description of the view * @param value the value to set. - */ - public void setDescription(java.lang.String value) { - this.description = value; - } - - /** - * Gets the value of the 'type' field. - * The type of View */ - public com.linkedin.pegasus2avro.view.DataHubViewType getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * The type of View * @param value the value to set. - */ - public void setType(com.linkedin.pegasus2avro.view.DataHubViewType value) { - this.type = value; - } - - /** - * Gets the value of the 'definition' field. - * The view itself */ - public com.linkedin.pegasus2avro.view.DataHubViewDefinition getDefinition() { - return definition; - } - - /** - * Sets the value of the 'definition' field. - * The view itself * @param value the value to set. - */ - public void setDefinition(com.linkedin.pegasus2avro.view.DataHubViewDefinition value) { - this.definition = value; - } - - /** - * Gets the value of the 'created' field. - * Audit stamp capturing the time and actor who created the View. */ - public com.linkedin.pegasus2avro.common.AuditStamp getCreated() { - return created; - } - - /** - * Sets the value of the 'created' field. - * Audit stamp capturing the time and actor who created the View. * @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 capturing the time and actor who last modified the View. */ - public com.linkedin.pegasus2avro.common.AuditStamp getLastModified() { - return lastModified; - } - - /** - * Sets the value of the 'lastModified' field. - * Audit stamp capturing the time and actor who last modified the View. * @param value the value to set. - */ - public void setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) { - this.lastModified = value; - } - - /** Creates a new DataHubViewInfo RecordBuilder */ - public static com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder newBuilder() { - return new com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder(); - } - - /** Creates a new DataHubViewInfo RecordBuilder by copying an existing Builder */ - public static com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder newBuilder(com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder other) { - return new com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder(other); - } - - /** Creates a new DataHubViewInfo RecordBuilder by copying an existing DataHubViewInfo instance */ - public static com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder newBuilder(com.linkedin.pegasus2avro.view.DataHubViewInfo other) { - return new com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder(other); - } - - /** - * RecordBuilder for DataHubViewInfo 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 description; - private com.linkedin.pegasus2avro.view.DataHubViewType type; - private com.linkedin.pegasus2avro.view.DataHubViewDefinition definition; - private com.linkedin.pegasus2avro.common.AuditStamp created; - private com.linkedin.pegasus2avro.common.AuditStamp lastModified; - - /** Creates a new Builder */ - private Builder() { - super(com.linkedin.pegasus2avro.view.DataHubViewInfo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(com.linkedin.pegasus2avro.view.DataHubViewInfo.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.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - 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.definition)) { - this.definition = data().deepCopy(fields()[3].schema(), other.definition); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.created)) { - this.created = data().deepCopy(fields()[4].schema(), other.created); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[5].schema(), other.lastModified); - fieldSetFlags()[5] = true; - } - } - - /** Creates a Builder by copying an existing DataHubViewInfo instance */ - private Builder(com.linkedin.pegasus2avro.view.DataHubViewInfo other) { - super(com.linkedin.pegasus2avro.view.DataHubViewInfo.SCHEMA$); - if (isValidValue(fields()[0], other.name)) { - this.name = data().deepCopy(fields()[0].schema(), other.name); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.description)) { - this.description = data().deepCopy(fields()[1].schema(), other.description); - 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.definition)) { - this.definition = data().deepCopy(fields()[3].schema(), other.definition); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.created)) { - this.created = data().deepCopy(fields()[4].schema(), other.created); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.lastModified)) { - this.lastModified = data().deepCopy(fields()[5].schema(), other.lastModified); - 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.view.DataHubViewInfo.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.view.DataHubViewInfo.Builder clearName() { - name = null; - fieldSetFlags()[0] = 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.view.DataHubViewInfo.Builder setDescription(java.lang.String value) { - validate(fields()[1], value); - this.description = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'description' field has been set */ - public boolean hasDescription() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'description' field */ - public com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder clearDescription() { - description = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public com.linkedin.pegasus2avro.view.DataHubViewType getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder setType(com.linkedin.pegasus2avro.view.DataHubViewType 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.view.DataHubViewInfo.Builder clearType() { - type = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'definition' field */ - public com.linkedin.pegasus2avro.view.DataHubViewDefinition getDefinition() { - return definition; - } - - /** Sets the value of the 'definition' field */ - public com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder setDefinition(com.linkedin.pegasus2avro.view.DataHubViewDefinition value) { - validate(fields()[3], value); - this.definition = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'definition' field has been set */ - public boolean hasDefinition() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'definition' field */ - public com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder clearDefinition() { - definition = null; - fieldSetFlags()[3] = 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.view.DataHubViewInfo.Builder setCreated(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[4], value); - this.created = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'created' field has been set */ - public boolean hasCreated() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'created' field */ - public com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder clearCreated() { - created = null; - fieldSetFlags()[4] = 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.view.DataHubViewInfo.Builder setLastModified(com.linkedin.pegasus2avro.common.AuditStamp value) { - validate(fields()[5], value); - this.lastModified = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'lastModified' field has been set */ - public boolean hasLastModified() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'lastModified' field */ - public com.linkedin.pegasus2avro.view.DataHubViewInfo.Builder clearLastModified() { - lastModified = null; - fieldSetFlags()[5] = false; - return this; - } - - @Override - public DataHubViewInfo build() { - try { - DataHubViewInfo record = new DataHubViewInfo(); - record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]); - record.description = fieldSetFlags()[1] ? this.description : (java.lang.String) defaultValue(fields()[1]); - record.type = fieldSetFlags()[2] ? this.type : (com.linkedin.pegasus2avro.view.DataHubViewType) defaultValue(fields()[2]); - record.definition = fieldSetFlags()[3] ? this.definition : (com.linkedin.pegasus2avro.view.DataHubViewDefinition) defaultValue(fields()[3]); - record.created = fieldSetFlags()[4] ? this.created : (com.linkedin.pegasus2avro.common.AuditStamp) defaultValue(fields()[4]); - record.lastModified = fieldSetFlags()[5] ? this.lastModified : (com.linkedin.pegasus2avro.common.AuditStamp) 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/view/DataHubViewType.java b/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/view/DataHubViewType.java deleted file mode 100644 index 123ae56f850d2..0000000000000 --- a/metadata-events/mxe-avro-1.7/src/generated/java/com/linkedin/pegasus2avro/view/DataHubViewType.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package com.linkedin.pegasus2avro.view; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public enum DataHubViewType { - PERSONAL, GLOBAL ; - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"DataHubViewType\",\"namespace\":\"com.linkedin.pegasus2avro.view\",\"symbols\":[\"PERSONAL\",\"GLOBAL\"],\"symbolDocs\":{\"GLOBAL\":\"A global view, which all users can see and use.\",\"PERSONAL\":\"A view private for a specific person.\"}}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } -} diff --git a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/DataHubUpgradeHistoryEvent.avsc b/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/DataHubUpgradeHistoryEvent.avsc deleted file mode 100644 index 8db3c5a429b57..0000000000000 --- a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/DataHubUpgradeHistoryEvent.avsc +++ /dev/null @@ -1,49 +0,0 @@ -{ - "type" : "record", - "name" : "DataHubUpgradeHistoryEvent", - "namespace" : "com.linkedin.mxe", - "doc" : "Kafka event for recording a historical version upgrade. Used for backwards incompatible changes to infrastructure that requires infrastructure level blocking changes.", - "fields" : [ { - "name" : "version", - "type" : "string", - "doc" : "Version of the upgrade" - }, { - "name" : "systemMetadata", - "type" : [ "null", { - "type" : "record", - "name" : "SystemMetadata", - "doc" : "Metadata associated with each metadata change that is processed by the system", - "fields" : [ { - "name" : "lastObserved", - "type" : [ "long", "null" ], - "doc" : "The timestamp the metadata was observed at", - "default" : 0 - }, { - "name" : "runId", - "type" : [ "string", "null" ], - "doc" : "The run id that produced the metadata. Populated in case of batch-ingestion.", - "default" : "no-run-id-provided" - }, { - "name" : "registryName", - "type" : [ "null", "string" ], - "doc" : "The model registry name that was used to process this event", - "default" : null - }, { - "name" : "registryVersion", - "type" : [ "null", "string" ], - "doc" : "The model registry version that was used to process this event", - "default" : null - }, { - "name" : "properties", - "type" : [ "null", { - "type" : "map", - "values" : "string" - } ], - "doc" : "Additional properties", - "default" : null - } ] - } ], - "doc" : "A string->string map of custom properties that one might want to attach to an event", - "default" : null - } ] -} \ No newline at end of file diff --git a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/FailedMetadataChangeEvent.avsc b/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/FailedMetadataChangeEvent.avsc deleted file mode 100644 index 7be28892fd932..0000000000000 --- a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/FailedMetadataChangeEvent.avsc +++ /dev/null @@ -1,5397 +0,0 @@ -{ - "type" : "record", - "name" : "FailedMetadataChangeEvent", - "namespace" : "com.linkedin.mxe", - "doc" : "Kafka event for capturing a failure to process a specific MetadataChangeEvent.", - "fields" : [ { - "name" : "auditHeader", - "type" : [ "null", { - "type" : "record", - "name" : "KafkaAuditHeader", - "namespace" : "com.linkedin.avro2pegasus.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" : "string", - "doc" : "The fully qualified name of the host from which the event is being emitted.", - "compliance" : "NONE" - }, { - "name" : "instance", - "type" : [ "null", "string" ], - "doc" : "The instance on the server from which the event is being emitted. e.g. i001", - "default" : null, - "compliance" : "NONE" - }, { - "name" : "appName", - "type" : "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", "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", "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" - } ] - } ], - "doc" : "Kafka audit header. See go/kafkaauditheader for more info.", - "default" : null - }, { - "name" : "metadataChangeEvent", - "type" : { - "type" : "record", - "name" : "MetadataChangeEvent", - "doc" : "Kafka event for proposing a metadata change for an entity. A corresponding MetadataAuditEvent is emitted when the change is accepted and committed, otherwise a FailedMetadataChangeEvent will be emitted instead.", - "fields" : [ { - "name" : "auditHeader", - "type" : [ "null", "com.linkedin.avro2pegasus.events.KafkaAuditHeader" ], - "doc" : "Kafka audit header. See go/kafkaauditheader for more info.", - "default" : null - }, { - "name" : "proposedSnapshot", - "type" : [ { - "type" : "record", - "name" : "ChartSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific Chart entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.ChartUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "ChartKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Chart", - "fields" : [ { - "name" : "dashboardTool", - "type" : "string", - "doc" : "The name of the dashboard tool such as looker, redash etc.", - "Searchable" : { - "boostScore" : 4.0, - "fieldName" : "tool", - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "chartId", - "type" : "string", - "doc" : "Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234'" - } ], - "Aspect" : { - "name" : "chartKey" - } - }, { - "type" : "record", - "name" : "ChartInfo", - "namespace" : "com.linkedin.chart", - "doc" : "Information about a chart", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "title", - "type" : "string", - "doc" : "Title of the chart", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : "string", - "doc" : "Detailed description about the chart", - "Searchable" : { } - }, { - "name" : "lastModified", - "type" : { - "type" : "record", - "name" : "ChangeAuditStamps", - "namespace" : "com.linkedin.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" : "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.common.urn.Urn" - } - }, { - "name" : "impersonator", - "type" : [ "null", "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.common.urn.Urn" - } - }, { - "name" : "message", - "type" : [ "null", "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", "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.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "inputs", - "type" : [ "null", { - "type" : "array", - "items" : [ "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.common", - "doc" : "Information about a relatonship edge.", - "fields" : [ { - "name" : "sourceUrn", - "type" : "string", - "doc" : "Urn of the source of this relationship edge.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "destinationUrn", - "type" : "string", - "doc" : "Urn of the destination of this relationship edge.", - "java" : { - "class" : "com.linkedin.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" : "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.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" - } - }, { - "type" : "record", - "name" : "ChartQuery", - "namespace" : "com.linkedin.chart", - "doc" : "Information for chart query which is used for getting data of the chart", - "fields" : [ { - "name" : "rawQuery", - "type" : "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" - } - }, { - "type" : "record", - "name" : "EditableChartProperties", - "namespace" : "com.linkedin.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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Edited documentation of the chart ", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableChartProperties" - } - }, { - "type" : "record", - "name" : "Ownership", - "namespace" : "com.linkedin.common", - "doc" : "Ownership information of an entity.", - "fields" : [ { - "name" : "owners", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "Owner", - "doc" : "Ownership information", - "fields" : [ { - "name" : "owner", - "type" : "string", - "doc" : "Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\n(Caveat: only corpuser is currently supported in the frontend.)", - "Relationship" : { - "entityTypes" : [ "corpuser", "corpGroup" ], - "name" : "OwnedBy" - }, - "Searchable" : { - "addToFilters" : true, - "fieldName" : "owners", - "fieldType" : "URN", - "filterNameOverride" : "Owned By", - "hasValuesFieldName" : "hasOwners", - "queryByDefault" : false - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "OwnershipType", - "doc" : "Asset owner types", - "symbols" : [ "TECHNICAL_OWNER", "BUSINESS_OWNER", "DATA_STEWARD", "NONE", "DEVELOPER", "DATAOWNER", "DELEGATE", "PRODUCER", "CONSUMER", "STAKEHOLDER" ], - "symbolDocs" : { - "BUSINESS_OWNER" : "A person or group who is responsible for logical, or business related, aspects of the asset.", - "CONSUMER" : "A person, group, or service that consumes the data\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.", - "DATAOWNER" : "A person or group that is owning the data\nDeprecated! Use TECHNICAL_OWNER instead.", - "DATA_STEWARD" : "A steward, expert, or delegate responsible for the asset.", - "DELEGATE" : "A person or a group that overseas the operation, e.g. a DBA or SRE.\nDeprecated! Use TECHNICAL_OWNER instead.", - "DEVELOPER" : "A person or group that is in charge of developing the code\nDeprecated! Use TECHNICAL_OWNER instead.", - "NONE" : "No specific type associated to the owner.", - "PRODUCER" : "A person, group, or service that produces/generates the data\nDeprecated! Use TECHNICAL_OWNER instead.", - "STAKEHOLDER" : "A person or a group that has direct business interest\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.", - "TECHNICAL_OWNER" : "person or group who is responsible for technical aspects of the asset." - }, - "deprecatedSymbols" : { - "CONSUMER" : true, - "DATAOWNER" : true, - "DELEGATE" : true, - "DEVELOPER" : true, - "PRODUCER" : true, - "STAKEHOLDER" : true - } - }, - "doc" : "The type of the ownership" - }, { - "name" : "source", - "type" : [ "null", { - "type" : "record", - "name" : "OwnershipSource", - "doc" : "Source/provider of the ownership information", - "fields" : [ { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "OwnershipSourceType", - "symbols" : [ "AUDIT", "DATABASE", "FILE_SYSTEM", "ISSUE_TRACKING_SYSTEM", "MANUAL", "SERVICE", "SOURCE_CONTROL", "OTHER" ], - "symbolDocs" : { - "AUDIT" : "Auditing system or audit logs", - "DATABASE" : "Database, e.g. GRANTS table", - "FILE_SYSTEM" : "File system, e.g. file/directory owner", - "ISSUE_TRACKING_SYSTEM" : "Issue tracking system, e.g. Jira", - "MANUAL" : "Manually provided by a user", - "OTHER" : "Other sources", - "SERVICE" : "Other ownership-like service, e.g. Nuage, ACL service etc", - "SOURCE_CONTROL" : "SCM system, e.g. GIT, SVN" - } - }, - "doc" : "The type of the source" - }, { - "name" : "url", - "type" : [ "null", "string" ], - "doc" : "A reference URL for the source", - "default" : null - } ] - } ], - "doc" : "Source information for the ownership", - "default" : null - } ] - } - }, - "doc" : "List of owners of the entity." - }, { - "name" : "lastModified", - "type" : "AuditStamp", - "doc" : "Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data.", - "default" : { - "actor" : "urn:li:corpuser:unknown", - "impersonator" : null, - "time" : 0, - "message" : null - } - } ], - "Aspect" : { - "name" : "ownership" - } - }, { - "type" : "record", - "name" : "Status", - "namespace" : "com.linkedin.common", - "doc" : "The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\nThis aspect is used to represent soft deletes conventionally.", - "fields" : [ { - "name" : "removed", - "type" : "boolean", - "doc" : "Whether the entity has been removed (soft-deleted).", - "default" : false, - "Searchable" : { - "fieldType" : "BOOLEAN" - } - } ], - "Aspect" : { - "name" : "status" - } - }, { - "type" : "record", - "name" : "GlobalTags", - "namespace" : "com.linkedin.common", - "doc" : "Tag aspect used for applying tags to an entity", - "fields" : [ { - "name" : "tags", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "TagAssociation", - "doc" : "Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\npropagation parameters.", - "fields" : [ { - "name" : "tag", - "type" : "string", - "doc" : "Urn of the applied tag", - "Relationship" : { - "entityTypes" : [ "tag" ], - "name" : "TaggedWith" - }, - "Searchable" : { - "addToFilters" : true, - "fieldName" : "tags", - "fieldType" : "URN", - "filterNameOverride" : "Tag", - "hasValuesFieldName" : "hasTags" - }, - "java" : { - "class" : "com.linkedin.common.urn.TagUrn" - } - }, { - "name" : "context", - "type" : [ "null", "string" ], - "doc" : "Additional context about the association", - "default" : null - } ] - } - }, - "doc" : "Tags associated with a given entity", - "Searchable" : { - "/*/tag" : { - "addToFilters" : true, - "boostScore" : 0.5, - "fieldName" : "tags", - "fieldType" : "URN", - "queryByDefault" : true - } - } - } ], - "Aspect" : { - "name" : "globalTags" - } - }, { - "type" : "record", - "name" : "BrowsePaths", - "namespace" : "com.linkedin.common", - "doc" : "Shared aspect containing Browse Paths to be indexed for an entity.", - "fields" : [ { - "name" : "paths", - "type" : { - "type" : "array", - "items" : "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" - } - }, { - "type" : "record", - "name" : "GlossaryTerms", - "namespace" : "com.linkedin.common", - "doc" : "Related business terms information", - "fields" : [ { - "name" : "terms", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "GlossaryTermAssociation", - "doc" : "Properties of an applied glossary term.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "Urn of the applied glossary term", - "Relationship" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "TermedWith" - }, - "Searchable" : { - "addToFilters" : true, - "fieldName" : "glossaryTerms", - "fieldType" : "URN", - "filterNameOverride" : "Glossary Term", - "hasValuesFieldName" : "hasGlossaryTerms" - }, - "java" : { - "class" : "com.linkedin.common.urn.GlossaryTermUrn" - } - }, { - "name" : "context", - "type" : [ "null", "string" ], - "doc" : "Additional context about the association", - "default" : null - } ] - } - }, - "doc" : "The related business terms" - }, { - "name" : "auditStamp", - "type" : "AuditStamp", - "doc" : "Audit stamp containing who reported the related business term" - } ], - "Aspect" : { - "name" : "glossaryTerms" - } - }, { - "type" : "record", - "name" : "InstitutionalMemory", - "namespace" : "com.linkedin.common", - "doc" : "Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.", - "fields" : [ { - "name" : "elements", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "InstitutionalMemoryMetadata", - "doc" : "Metadata corresponding to a record of institutional memory.", - "fields" : [ { - "name" : "url", - "type" : "string", - "doc" : "Link to an engineering design document or a wiki page.", - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "description", - "type" : "string", - "doc" : "Description of the link." - }, { - "name" : "createStamp", - "type" : "AuditStamp", - "doc" : "Audit stamp associated with creation of this record" - } ] - } - }, - "doc" : "List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record." - } ], - "Aspect" : { - "name" : "institutionalMemory" - } - }, { - "type" : "record", - "name" : "DataPlatformInstance", - "namespace" : "com.linkedin.common", - "doc" : "The specific instance of the data platform that this entity belongs to", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Data Platform", - "Searchable" : { - "addToFilters" : true, - "fieldType" : "URN", - "filterNameOverride" : "Platform" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "instance", - "type" : [ "null", "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.common.urn.Urn" - } - } ], - "Aspect" : { - "name" : "dataPlatformInstance" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the chart. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "chartKey", - "name" : "chart" - } - }, { - "type" : "record", - "name" : "CorpGroupSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific CorpGroup entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.CorpGroupUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "CorpGroupKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a CorpGroup", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub.", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - } ], - "Aspect" : { - "name" : "corpGroupKey" - } - }, { - "type" : "record", - "name" : "CorpGroupInfo", - "namespace" : "com.linkedin.identity", - "doc" : "Information about a Corp Group ingested from a third party source", - "fields" : [ { - "name" : "displayName", - "type" : [ "null", "string" ], - "doc" : "The name of the group.", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - }, { - "name" : "email", - "type" : [ "null", "string" ], - "doc" : "email of this group", - "default" : null - }, { - "name" : "admins", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "owners of this group\nDeprecated! Replaced by Ownership aspect.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "corpuser" ], - "name" : "OwnedBy" - } - }, - "deprecated" : true - }, { - "name" : "members", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "List of ldap urn in this group.\nDeprecated! Replaced by GroupMembership aspect.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "corpuser" ], - "name" : "IsPartOf" - } - }, - "deprecated" : true - }, { - "name" : "groups", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "List of groups in this group.\nDeprecated! This field is unused.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "corpGroup" ], - "name" : "IsPartOf" - } - }, - "deprecated" : true - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "A description of the group.", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "slack", - "type" : [ "null", "string" ], - "doc" : "Slack channel for the group", - "default" : null - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.AuditStamp" ], - "doc" : "Created Audit stamp", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "createdTime", - "fieldType" : "DATETIME" - } - } - } ], - "Aspect" : { - "EntityUrns" : [ "com.linkedin.common.CorpGroupUrn" ], - "name" : "corpGroupInfo" - } - }, "com.linkedin.common.GlobalTags", "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the LdapUser. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "corpGroupKey", - "name" : "corpGroup" - } - }, { - "type" : "record", - "name" : "CorpUserSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific CorpUser entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.CorpuserUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "CorpUserKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a CorpUser", - "fields" : [ { - "name" : "username", - "type" : "string", - "doc" : "The name of the AD/LDAP user.", - "Searchable" : { - "boostScore" : 2.0, - "enableAutocomplete" : true, - "fieldName" : "ldap", - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "corpUserKey" - } - }, { - "type" : "record", - "name" : "CorpUserInfo", - "namespace" : "com.linkedin.identity", - "doc" : "Linkedin corp user information", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "active", - "type" : "boolean", - "doc" : "Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools", - "Searchable" : { - "fieldType" : "BOOLEAN", - "weightsPerFieldValue" : { - "true" : 2.0 - } - } - }, { - "name" : "displayName", - "type" : [ "null", "string" ], - "doc" : "displayName of this user , e.g. Hang Zhang(DataHQ)", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - }, { - "name" : "email", - "type" : [ "null", "string" ], - "doc" : "email address of this user", - "default" : null, - "Searchable" : { - "fieldType" : "KEYWORD", - "queryByDefault" : true - } - }, { - "name" : "title", - "type" : [ "null", "string" ], - "doc" : "title of this user", - "default" : null, - "Searchable" : { - "fieldType" : "KEYWORD", - "queryByDefault" : true - } - }, { - "name" : "managerUrn", - "type" : [ "null", "string" ], - "doc" : "direct manager of this user", - "default" : null, - "Relationship" : { - "entityTypes" : [ "corpuser" ], - "name" : "ReportsTo" - }, - "Searchable" : { - "fieldName" : "managerLdap", - "fieldType" : "URN", - "queryByDefault" : true - }, - "java" : { - "class" : "com.linkedin.common.urn.CorpuserUrn" - } - }, { - "name" : "departmentId", - "type" : [ "null", "long" ], - "doc" : "department id this user belong to", - "default" : null - }, { - "name" : "departmentName", - "type" : [ "null", "string" ], - "doc" : "department name this user belong to", - "default" : null - }, { - "name" : "firstName", - "type" : [ "null", "string" ], - "doc" : "first name of this user", - "default" : null - }, { - "name" : "lastName", - "type" : [ "null", "string" ], - "doc" : "last name of this user", - "default" : null - }, { - "name" : "fullName", - "type" : [ "null", "string" ], - "doc" : "Common name of this user, format is firstName + lastName (split by a whitespace)", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - }, { - "name" : "countryCode", - "type" : [ "null", "string" ], - "doc" : "two uppercase letters country code. e.g. US", - "default" : null - } ], - "Aspect" : { - "EntityUrns" : [ "com.linkedin.common.CorpuserUrn" ], - "name" : "corpUserInfo" - } - }, { - "type" : "record", - "name" : "CorpUserEditableInfo", - "namespace" : "com.linkedin.identity", - "doc" : "Linkedin corp user information that can be edited from UI", - "fields" : [ { - "name" : "aboutMe", - "type" : [ "null", "string" ], - "doc" : "About me section of the user", - "default" : null - }, { - "name" : "teams", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Teams that the user belongs to e.g. Metadata", - "default" : [ ], - "Searchable" : { - "/*" : { - "fieldType" : "TEXT" - } - } - }, { - "name" : "skills", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Skills that the user possesses e.g. Machine Learning", - "default" : [ ], - "Searchable" : { - "/*" : { - "fieldType" : "TEXT" - } - } - }, { - "name" : "pictureLink", - "type" : "string", - "doc" : "A URL which points to a picture which user wants to set as a profile photo", - "default" : "https://raw.githubusercontent.com/datahub-project/datahub/master/datahub-web-react/src/images/default_avatar.png", - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "displayName", - "type" : [ "null", "string" ], - "doc" : "DataHub-native display name", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - }, { - "name" : "title", - "type" : [ "null", "string" ], - "doc" : "DataHub-native Title, e.g. 'Software Engineer'", - "default" : null - }, { - "name" : "slack", - "type" : [ "null", "string" ], - "doc" : "Slack handle for the user", - "default" : null - }, { - "name" : "phone", - "type" : [ "null", "string" ], - "doc" : "Phone number to contact the user", - "default" : null - }, { - "name" : "email", - "type" : [ "null", "string" ], - "doc" : "Email address to contact the user", - "default" : null - } ], - "Aspect" : { - "EntityUrns" : [ "com.linkedin.common.CorpuserUrn" ], - "name" : "corpUserEditableInfo" - } - }, { - "type" : "record", - "name" : "CorpUserStatus", - "namespace" : "com.linkedin.identity", - "doc" : "The status of the user, e.g. provisioned, active, suspended, etc.", - "fields" : [ { - "name" : "status", - "type" : "string", - "doc" : "Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED", - "Searchable" : { - "fieldType" : "KEYWORD" - } - }, { - "name" : "lastModified", - "type" : "com.linkedin.common.AuditStamp", - "doc" : "Audit stamp containing who last modified the status and when." - } ], - "Aspect" : { - "name" : "corpUserStatus" - } - }, { - "type" : "record", - "name" : "GroupMembership", - "namespace" : "com.linkedin.identity", - "doc" : "Carries information about the CorpGroups a user is in.", - "fields" : [ { - "name" : "groups", - "type" : { - "type" : "array", - "items" : "string" - }, - "Relationship" : { - "/*" : { - "entityTypes" : [ "corpGroup" ], - "name" : "IsMemberOfGroup" - } - } - } ], - "Aspect" : { - "name" : "groupMembership" - } - }, "com.linkedin.common.GlobalTags", "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the CorpUser. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "corpUserKey", - "name" : "corpuser" - } - }, { - "type" : "record", - "name" : "DashboardSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific Dashboard entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DashboardUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DashboardKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Dashboard", - "fields" : [ { - "name" : "dashboardTool", - "type" : "string", - "doc" : "The name of the dashboard tool such as looker, redash etc.", - "Searchable" : { - "boostScore" : 4.0, - "fieldName" : "tool", - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "dashboardId", - "type" : "string", - "doc" : "Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234'" - } ], - "Aspect" : { - "name" : "dashboardKey" - } - }, { - "type" : "record", - "name" : "DashboardInfo", - "namespace" : "com.linkedin.dashboard", - "doc" : "Information about a dashboard", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "title", - "type" : "string", - "doc" : "Title of the dashboard", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : "string", - "doc" : "Detailed description about the dashboard", - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "charts", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Charts in a dashboard\nDeprecated! Use chartEdges instead.", - "default" : [ ], - "Relationship" : { - "/*" : { - "entityTypes" : [ "chart" ], - "isLineage" : true, - "name" : "Contains" - } - }, - "deprecated" : true - }, { - "name" : "chartEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Charts in a dashboard", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "chartEdges/*/created/actor", - "createdOn" : "chartEdges/*/created/time", - "entityTypes" : [ "chart" ], - "isLineage" : true, - "name" : "Contains", - "properties" : "chartEdges/*/properties", - "updatedActor" : "chartEdges/*/lastModified/actor", - "updatedOn" : "chartEdges/*/lastModified/time" - } - } - }, { - "name" : "datasets", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Datasets consumed by a dashboard\nDeprecated! Use datasetEdges instead.", - "default" : [ ], - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes" - } - }, - "deprecated" : true - }, { - "name" : "datasetEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Datasets consumed by a dashboard", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "datasetEdges/*/created/actor", - "createdOn" : "datasetEdges/*/created/time", - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes", - "properties" : "datasetEdges/*/properties", - "updatedActor" : "datasetEdges/*/lastModified/actor", - "updatedOn" : "datasetEdges/*/lastModified/time" - } - } - }, { - "name" : "lastModified", - "type" : "com.linkedin.common.ChangeAuditStamps", - "doc" : "Captures information about who created/last modified/deleted this dashboard and when" - }, { - "name" : "dashboardUrl", - "type" : [ "null", "string" ], - "doc" : "URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "access", - "type" : [ "null", "com.linkedin.common.AccessLevel" ], - "doc" : "Access level for the dashboard", - "default" : null, - "Searchable" : { - "addToFilters" : true, - "fieldType" : "KEYWORD", - "filterNameOverride" : "Access Level" - } - }, { - "name" : "lastRefreshed", - "type" : [ "null", "long" ], - "doc" : "The time when this dashboard last refreshed", - "default" : null - } ], - "Aspect" : { - "name" : "dashboardInfo" - } - }, { - "type" : "record", - "name" : "EditableDashboardProperties", - "namespace" : "com.linkedin.dashboard", - "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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Edited documentation of the dashboard", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableDashboardProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.GlobalTags", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlossaryTerms", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the dashboard. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dashboardKey", - "name" : "dashboard" - } - }, { - "type" : "record", - "name" : "DataFlowSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific DataFlow entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DataFlowUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataFlowKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Data Flow", - "fields" : [ { - "name" : "orchestrator", - "type" : "string", - "doc" : "Workflow manager like azkaban, airflow which orchestrates the flow", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "flowId", - "type" : "string", - "doc" : "Unique Identifier of the data flow", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "cluster", - "type" : "string", - "doc" : "Cluster where the flow is executed", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "dataFlowKey" - } - }, { - "type" : "record", - "name" : "DataFlowInfo", - "namespace" : "com.linkedin.datajob", - "doc" : "Information about a Data processing flow", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Flow name", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Flow description", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "project", - "type" : [ "null", "string" ], - "doc" : "Optional project/namespace associated with the flow", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : false - } - }, { - "name" : "created", - "type" : [ "null", { - "type" : "record", - "name" : "TimeStamp", - "namespace" : "com.linkedin.common", - "doc" : "A standard event timestamp", - "fields" : [ { - "name" : "time", - "type" : "long", - "doc" : "When did the event occur" - }, { - "name" : "actor", - "type" : [ "null", "string" ], - "doc" : "Optional: The actor urn involved in the event.", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - } ] - } ], - "doc" : "A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "createdAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "lastModified", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "lastModifiedAt", - "fieldType" : "DATETIME" - } - } - } ], - "Aspect" : { - "name" : "dataFlowInfo" - } - }, { - "type" : "record", - "name" : "EditableDataFlowProperties", - "namespace" : "com.linkedin.datajob", - "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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Edited documentation of the data flow", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableDataFlowProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.GlobalTags", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlossaryTerms", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the data flow. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dataFlowKey", - "name" : "dataFlow" - } - }, { - "type" : "record", - "name" : "DataJobSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific DataJob entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DataJobUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataJobKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Data Job", - "fields" : [ { - "name" : "flow", - "type" : "string", - "doc" : "Standardized data processing flow urn representing the flow for the job", - "Relationship" : { - "entityTypes" : [ "dataFlow" ], - "name" : "IsPartOf" - }, - "Searchable" : { - "fieldName" : "dataFlow", - "fieldType" : "URN_PARTIAL", - "queryByDefault" : false - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "jobId", - "type" : "string", - "doc" : "Unique Identifier of the data job", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "dataJobKey" - } - }, { - "type" : "record", - "name" : "DataJobInfo", - "namespace" : "com.linkedin.datajob", - "doc" : "Information about a Data processing job", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Job name", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Job description", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "type", - "type" : [ { - "type" : "enum", - "name" : "AzkabanJobType", - "namespace" : "com.linkedin.datajob.azkaban", - "doc" : "The various types of support azkaban jobs", - "symbols" : [ "COMMAND", "HADOOP_JAVA", "HADOOP_SHELL", "HIVE", "PIG", "SQL", "GLUE" ], - "symbolDocs" : { - "COMMAND" : "The command job type is one of the basic built-in types. It runs multiple UNIX commands using java processbuilder.\nUpon execution, Azkaban spawns off a process to run the command.", - "GLUE" : "Glue type is for running AWS Glue job transforms.", - "HADOOP_JAVA" : "Runs a java program with ability to access Hadoop cluster.\nhttps://azkaban.readthedocs.io/en/latest/jobTypes.html#java-job-type", - "HADOOP_SHELL" : "In large part, this is the same Command type. The difference is its ability to talk to a Hadoop cluster\nsecurely, via Hadoop tokens.", - "HIVE" : "Hive type is for running Hive jobs.", - "PIG" : "Pig type is for running Pig jobs.", - "SQL" : "SQL is for running Presto, mysql queries etc" - } - }, "string" ], - "doc" : "Datajob type\n*NOTE**: AzkabanJobType is deprecated. Please use strings instead." - }, { - "name" : "flowUrn", - "type" : [ "null", "string" ], - "doc" : "DataFlow urn that this job is part of", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.DataFlowUrn" - } - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "createdAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "lastModified", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "lastModifiedAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "status", - "type" : [ "null", { - "type" : "enum", - "name" : "JobStatus", - "doc" : "Job statuses", - "symbols" : [ "STARTING", "IN_PROGRESS", "STOPPING", "STOPPED", "COMPLETED", "FAILED", "UNKNOWN", "SKIPPED" ], - "symbolDocs" : { - "COMPLETED" : "Jobs with successful completion.", - "FAILED" : "Jobs that have failed.", - "IN_PROGRESS" : "Jobs currently running.", - "SKIPPED" : "Jobs that have been skipped.", - "STARTING" : "Jobs being initialized.", - "STOPPED" : "Jobs that have stopped.", - "STOPPING" : "Jobs being stopped.", - "UNKNOWN" : "Jobs with unknown status (either unmappable or unavailable)" - } - } ], - "doc" : "Status of the job - Deprecated for Data Process Instance model.", - "default" : null, - "deprecated" : "Use Data Process Instance model, instead" - } ], - "Aspect" : { - "name" : "dataJobInfo" - } - }, { - "type" : "record", - "name" : "DataJobInputOutput", - "namespace" : "com.linkedin.datajob", - "doc" : "Information about the inputs and outputs of a Data processing job", - "fields" : [ { - "name" : "inputDatasets", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Input datasets consumed by the data job during processing\nDeprecated! Use inputDatasetEdges instead.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "inputs", - "fieldType" : "URN", - "numValuesFieldName" : "numInputDatasets", - "queryByDefault" : false - } - }, - "deprecated" : true - }, { - "name" : "inputDatasetEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Input datasets consumed by the data job during processing", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "inputDatasetEdges/*/created/actor", - "createdOn" : "inputDatasetEdges/*/created/time", - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes", - "properties" : "inputDatasetEdges/*/properties", - "updatedActor" : "inputDatasetEdges/*/lastModified/actor", - "updatedOn" : "inputDatasetEdges/*/lastModified/time" - } - }, - "Searchable" : { - "/*/destinationUrn" : { - "fieldName" : "inputDatasetEdges", - "fieldType" : "URN", - "numValuesFieldName" : "numInputDatasets", - "queryByDefault" : false - } - } - }, { - "name" : "outputDatasets", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Output datasets produced by the data job during processing\nDeprecated! Use outputDatasetEdges instead.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "isUpstream" : false, - "name" : "Produces" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "outputs", - "fieldType" : "URN", - "numValuesFieldName" : "numOutputDatasets", - "queryByDefault" : false - } - }, - "deprecated" : true - }, { - "name" : "outputDatasetEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Output datasets produced by the data job during processing", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "outputDatasetEdges/*/created/actor", - "createdOn" : "outputDatasetEdges/*/created/time", - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "isUpstream" : false, - "name" : "Produces", - "properties" : "outputDatasetEdges/*/properties", - "updatedActor" : "outputDatasetEdges/*/lastModified/actor", - "updatedOn" : "outputDatasetEdges/*/lastModified/time" - } - }, - "Searchable" : { - "/*/destinationUrn" : { - "fieldName" : "outputDatasetEdges", - "fieldType" : "URN", - "numValuesFieldName" : "numOutputDatasets", - "queryByDefault" : false - } - } - }, { - "name" : "inputDatajobs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Input datajobs that this data job depends on\nDeprecated! Use inputDatajobEdges instead.", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataJob" ], - "isLineage" : true, - "name" : "DownstreamOf" - } - }, - "deprecated" : true - }, { - "name" : "inputDatajobEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Input datajobs that this data job depends on", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "inputDatajobEdges/*/created/actor", - "createdOn" : "inputDatajobEdges/*/created/time", - "entityTypes" : [ "dataJob" ], - "isLineage" : true, - "name" : "DownstreamOf", - "properties" : "inputDatajobEdges/*/properties", - "updatedActor" : "inputDatajobEdges/*/lastModified/actor", - "updatedOn" : "inputDatajobEdges/*/lastModified/time" - } - } - }, { - "name" : "inputDatasetFields", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Fields of the input datasets used by this job", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "schemaField" ], - "name" : "Consumes" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "inputFields", - "fieldType" : "URN", - "numValuesFieldName" : "numInputFields", - "queryByDefault" : false - } - } - }, { - "name" : "outputDatasetFields", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Fields of the output datasets this job writes to", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "schemaField" ], - "name" : "Produces" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "outputFields", - "fieldType" : "URN", - "numValuesFieldName" : "numOutputFields", - "queryByDefault" : false - } - } - }, { - "name" : "fineGrainedLineages", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "FineGrainedLineage", - "namespace" : "com.linkedin.dataset", - "doc" : "A fine-grained lineage from upstream fields/datasets to downstream field(s)", - "fields" : [ { - "name" : "upstreamType", - "type" : { - "type" : "enum", - "name" : "FineGrainedLineageUpstreamType", - "doc" : "The type of upstream entity in a fine-grained lineage", - "symbols" : [ "FIELD_SET", "DATASET", "NONE" ], - "symbolDocs" : { - "DATASET" : " Indicates that this lineage is originating from upstream dataset(s)", - "FIELD_SET" : " Indicates that this lineage is originating from upstream field(s)", - "NONE" : " Indicates that there is no upstream lineage i.e. the downstream field is not a derived field" - } - }, - "doc" : "The type of upstream entity" - }, { - "name" : "upstreams", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Upstream entities in the lineage", - "default" : null - }, { - "name" : "downstreamType", - "type" : { - "type" : "enum", - "name" : "FineGrainedLineageDownstreamType", - "doc" : "The type of downstream field(s) in a fine-grained lineage", - "symbols" : [ "FIELD", "FIELD_SET" ], - "symbolDocs" : { - "FIELD" : " Indicates that the lineage is for a single, specific, downstream field", - "FIELD_SET" : " Indicates that the lineage is for a set of downstream fields" - } - }, - "doc" : "The type of downstream field(s)" - }, { - "name" : "downstreams", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Downstream fields in the lineage", - "default" : null - }, { - "name" : "transformOperation", - "type" : [ "null", "string" ], - "doc" : "The transform operation applied to the upstream entities to produce the downstream field(s)", - "default" : null - }, { - "name" : "confidenceScore", - "type" : "float", - "doc" : "The confidence in this lineage between 0 (low confidence) and 1 (high confidence)", - "default" : 1.0 - } ] - } - } ], - "doc" : "Fine-grained column-level lineages", - "default" : null - } ], - "Aspect" : { - "name" : "dataJobInputOutput" - } - }, { - "type" : "record", - "name" : "EditableDataJobProperties", - "namespace" : "com.linkedin.datajob", - "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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Edited documentation of the data job ", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableDataJobProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.GlobalTags", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlossaryTerms", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the data job. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dataJobKey", - "name" : "dataJob" - } - }, { - "type" : "record", - "name" : "DatasetSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific dataset entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DatasetKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Dataset", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Data platform urn associated with the dataset", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "URN" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Unique guid for dataset", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldName" : "id", - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : { - "type" : "enum", - "name" : "FabricType", - "namespace" : "com.linkedin.common", - "doc" : "Fabric group type", - "symbols" : [ "DEV", "TEST", "QA", "UAT", "EI", "PRE", "STG", "NON_PROD", "PROD", "CORP" ], - "symbolDocs" : { - "CORP" : "Designates corporation fabrics", - "DEV" : "Designates development fabrics", - "EI" : "Designates early-integration fabrics", - "NON_PROD" : "Designates non-production fabrics", - "PRE" : "Designates pre-production fabrics", - "PROD" : "Designates production fabrics", - "QA" : "Designates quality assurance fabrics", - "STG" : "Designates staging fabrics", - "TEST" : "Designates testing fabrics", - "UAT" : "Designates user acceptance testing fabrics" - } - }, - "doc" : "Fabric type where dataset belongs to or where it was generated.", - "Searchable" : { - "addToFilters" : true, - "fieldType" : "TEXT_PARTIAL", - "filterNameOverride" : "Environment", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "datasetKey" - } - }, { - "type" : "record", - "name" : "DatasetProperties", - "namespace" : "com.linkedin.dataset", - "doc" : "Properties associated with a Dataset", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "name", - "type" : [ "null", "string" ], - "doc" : "Display name of the Dataset", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "qualifiedName", - "type" : [ "null", "string" ], - "doc" : "Fully-qualified name of the Dataset", - "default" : null, - "Searchable" : { - "addToFilters" : false, - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the dataset", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "uri", - "type" : [ "null", "string" ], - "doc" : "The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic).", - "default" : null, - "deprecated" : "Use ExternalReference.externalUrl field instead.", - "java" : { - "class" : "java.net.URI" - } - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "createdAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "lastModified", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "lastModifiedAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "tags", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "[Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect.\nThis is now deprecated.", - "default" : [ ], - "deprecated" : "Use GlobalTags aspect instead." - } ], - "Aspect" : { - "name" : "datasetProperties" - } - }, { - "type" : "record", - "name" : "EditableDatasetProperties", - "namespace" : "com.linkedin.dataset", - "doc" : "EditableDatasetProperties stores editable changes made to dataset 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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Documentation of the dataset", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableDatasetProperties" - } - }, { - "type" : "record", - "name" : "DatasetDeprecation", - "namespace" : "com.linkedin.dataset", - "doc" : "Dataset deprecation status\nDeprecated! This aspect is deprecated in favor of the more-general-purpose 'Deprecation' aspect.", - "fields" : [ { - "name" : "deprecated", - "type" : "boolean", - "doc" : "Whether the dataset is deprecated by owner.", - "Searchable" : { - "fieldType" : "BOOLEAN", - "weightsPerFieldValue" : { - "true" : 0.5 - } - } - }, { - "name" : "decommissionTime", - "type" : [ "null", "long" ], - "doc" : "The time user plan to decommission this dataset.", - "default" : null - }, { - "name" : "note", - "type" : "string", - "doc" : "Additional information about the dataset deprecation plan, such as the wiki, doc, RB." - }, { - "name" : "actor", - "type" : [ "null", "string" ], - "doc" : "The corpuser URN which will be credited for modifying this deprecation content.", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - } ], - "Aspect" : { - "name" : "datasetDeprecation" - }, - "Deprecated" : true - }, { - "type" : "record", - "name" : "DatasetUpstreamLineage", - "namespace" : "com.linkedin.dataset", - "doc" : "Fine Grained upstream lineage for fields in a dataset", - "fields" : [ { - "name" : "fieldMappings", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "DatasetFieldMapping", - "doc" : "Representation of mapping between fields in source dataset to the field in destination dataset", - "fields" : [ { - "name" : "created", - "type" : "com.linkedin.common.AuditStamp", - "doc" : "Audit stamp containing who reported the field mapping and when" - }, { - "name" : "transformation", - "type" : [ { - "type" : "enum", - "name" : "TransformationType", - "namespace" : "com.linkedin.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.common.fieldtransformer", - "doc" : "Field transformation expressed in UDF", - "fields" : [ { - "name" : "udf", - "type" : "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" - }, { - "name" : "sourceFields", - "type" : { - "type" : "array", - "items" : [ "string" ] - }, - "doc" : "Source fields from which the fine grained lineage is derived" - }, { - "name" : "destinationField", - "type" : "string", - "doc" : "Destination field which is derived from source fields", - "deprecated" : "use SchemaFieldPath and represent as generic Urn instead", - "java" : { - "class" : "com.linkedin.common.urn.DatasetFieldUrn" - } - } ], - "deprecated" : "use FineGrainedLineage instead" - } - }, - "doc" : "Upstream to downstream field level lineage mappings" - } ], - "Aspect" : { - "name" : "datasetUpstreamLineage" - }, - "deprecated" : "use UpstreamLineage.fineGrainedLineages instead" - }, { - "type" : "record", - "name" : "UpstreamLineage", - "namespace" : "com.linkedin.dataset", - "doc" : "Upstream lineage of a dataset", - "fields" : [ { - "name" : "upstreams", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "Upstream", - "doc" : "Upstream lineage information about a dataset including the source reporting the lineage", - "fields" : [ { - "name" : "auditStamp", - "type" : "com.linkedin.common.AuditStamp", - "doc" : "Audit stamp containing who reported the lineage and when.", - "default" : { - "actor" : "urn:li:corpuser:unknown", - "impersonator" : null, - "time" : 0, - "message" : null - } - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.AuditStamp" ], - "doc" : "Audit stamp containing who created the lineage and when.", - "default" : null - }, { - "name" : "dataset", - "type" : "string", - "doc" : "The upstream dataset the lineage points to", - "Relationship" : { - "createdActor" : "upstreams/*/created/actor", - "createdOn" : "upstreams/*/created/time", - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "DownstreamOf", - "properties" : "upstreams/*/properties", - "updatedActor" : "upstreams/*/auditStamp/actor", - "updatedOn" : "upstreams/*/auditStamp/time" - }, - "Searchable" : { - "fieldName" : "upstreams", - "fieldType" : "URN", - "queryByDefault" : false - }, - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "DatasetLineageType", - "doc" : "The various types of supported dataset lineage", - "symbols" : [ "COPY", "TRANSFORMED", "VIEW" ], - "symbolDocs" : { - "COPY" : "Direct copy without modification", - "TRANSFORMED" : "Transformed data with modification (format or content change)", - "VIEW" : "Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources" - } - }, - "doc" : "The type of the lineage" - }, { - "name" : "properties", - "type" : [ "null", { - "type" : "map", - "values" : "string" - } ], - "doc" : "A generic properties bag that allows us to store specific information on this graph edge.", - "default" : null - } ] - } - }, - "doc" : "List of upstream dataset lineage information" - }, { - "name" : "fineGrainedLineages", - "type" : [ "null", { - "type" : "array", - "items" : "FineGrainedLineage" - } ], - "doc" : " List of fine-grained lineage information, including field-level lineage", - "default" : null, - "Relationship" : { - "/*/upstreams/*" : { - "entityTypes" : [ "dataset", "schemaField" ], - "name" : "DownstreamOf" - } - } - } ], - "Aspect" : { - "name" : "upstreamLineage" - } - }, "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.Ownership", "com.linkedin.common.Status", { - "type" : "record", - "name" : "SchemaMetadata", - "namespace" : "com.linkedin.schema", - "doc" : "SchemaMetadata to describe metadata related to store schema", - "fields" : [ { - "name" : "schemaName", - "type" : "string", - "doc" : "Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking", - "validate" : { - "strlen" : { - "max" : 500, - "min" : 1 - } - } - }, { - "name" : "platform", - "type" : "string", - "doc" : "Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name})", - "java" : { - "class" : "com.linkedin.common.urn.DataPlatformUrn" - } - }, { - "name" : "version", - "type" : "long", - "doc" : "Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version." - }, { - "name" : "created", - "type" : "com.linkedin.common.AuditStamp", - "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.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.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" : "dataset", - "type" : [ "null", "string" ], - "doc" : "Dataset this schema metadata is associated with.", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "cluster", - "type" : [ "null", "string" ], - "doc" : "The cluster this schema metadata resides from", - "default" : null - }, { - "name" : "hash", - "type" : "string", - "doc" : "the SHA1 hash of the schema content" - }, { - "name" : "platformSchema", - "type" : [ { - "type" : "record", - "name" : "EspressoSchema", - "doc" : "Schema text of an espresso table schema.", - "fields" : [ { - "name" : "documentSchema", - "type" : "string", - "doc" : "The native espresso document schema." - }, { - "name" : "tableSchema", - "type" : "string", - "doc" : "The espresso table schema definition." - } ] - }, { - "type" : "record", - "name" : "OracleDDL", - "doc" : "Schema holder for oracle data definition language that describes an oracle table.", - "fields" : [ { - "name" : "tableSchema", - "type" : "string", - "doc" : "The native schema in the dataset's platform. This is a human readable (json blob) table schema." - } ] - }, { - "type" : "record", - "name" : "MySqlDDL", - "doc" : "Schema holder for MySql data definition language that describes an MySql table.", - "fields" : [ { - "name" : "tableSchema", - "type" : "string", - "doc" : "The native schema in the dataset's platform. This is a human readable (json blob) table schema." - } ] - }, { - "type" : "record", - "name" : "PrestoDDL", - "doc" : "Schema holder for presto data definition language that describes a presto view.", - "fields" : [ { - "name" : "rawSchema", - "type" : "string", - "doc" : "The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL." - } ] - }, { - "type" : "record", - "name" : "KafkaSchema", - "doc" : "Schema holder for kafka schema.", - "fields" : [ { - "name" : "documentSchema", - "type" : "string", - "doc" : "The native kafka document schema. This is a human readable avro document schema." - }, { - "name" : "keySchema", - "type" : [ "null", "string" ], - "doc" : "The native kafka key schema as retrieved from Schema Registry", - "default" : null - } ] - }, { - "type" : "record", - "name" : "BinaryJsonSchema", - "doc" : "Schema text of binary JSON schema.", - "fields" : [ { - "name" : "schema", - "type" : "string", - "doc" : "The native schema text for binary JSON file format." - } ] - }, { - "type" : "record", - "name" : "OrcSchema", - "doc" : "Schema text of an ORC schema.", - "fields" : [ { - "name" : "schema", - "type" : "string", - "doc" : "The native schema for ORC file format." - } ] - }, { - "type" : "record", - "name" : "Schemaless", - "doc" : "The dataset has no specific schema associated with it", - "fields" : [ ] - }, { - "type" : "record", - "name" : "KeyValueSchema", - "doc" : "Schema text of a key-value store schema.", - "fields" : [ { - "name" : "keySchema", - "type" : "string", - "doc" : "The raw schema for the key in the key-value store." - }, { - "name" : "valueSchema", - "type" : "string", - "doc" : "The raw schema for the value in the key-value store." - } ] - }, { - "type" : "record", - "name" : "OtherSchema", - "doc" : "Schema holder for undefined schema types.", - "fields" : [ { - "name" : "rawSchema", - "type" : "string", - "doc" : "The native schema in the dataset's platform." - } ] - } ], - "doc" : "The native schema in the dataset's platform." - }, { - "name" : "fields", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "SchemaField", - "doc" : "SchemaField to describe metadata related to dataset schema.", - "fields" : [ { - "name" : "fieldPath", - "type" : "string", - "doc" : "Flattened name of the field. Field is computed from jsonPath field.", - "Searchable" : { - "fieldName" : "fieldPaths", - "fieldType" : "TEXT" - } - }, { - "name" : "jsonPath", - "type" : [ "null", "string" ], - "doc" : "Flattened name of a field in JSON Path notation.", - "default" : null, - "Deprecated" : true - }, { - "name" : "nullable", - "type" : "boolean", - "doc" : "Indicates if this field is optional or nullable", - "default" : false - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Description", - "default" : null, - "Searchable" : { - "boostScore" : 0.1, - "fieldName" : "fieldDescriptions", - "fieldType" : "TEXT" - } - }, { - "name" : "label", - "type" : [ "null", "string" ], - "doc" : "Label of the field. Provides a more human-readable name for the field than field path. Some sources will\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\na field in a source, that is most likely a description.", - "default" : null, - "Searchable" : { - "boostScore" : 0.2, - "fieldName" : "fieldLabels", - "fieldType" : "TEXT" - } - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.AuditStamp" ], - "doc" : "An AuditStamp corresponding to the creation of this schema field.", - "default" : null - }, { - "name" : "lastModified", - "type" : [ "null", "com.linkedin.common.AuditStamp" ], - "doc" : "An AuditStamp corresponding to the last modification of this schema field.", - "default" : null - }, { - "name" : "type", - "type" : { - "type" : "record", - "name" : "SchemaFieldDataType", - "doc" : "Schema field data types", - "fields" : [ { - "name" : "type", - "type" : [ { - "type" : "record", - "name" : "BooleanType", - "doc" : "Boolean field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "FixedType", - "doc" : "Fixed field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "StringType", - "doc" : "String field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "BytesType", - "doc" : "Bytes field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "NumberType", - "doc" : "Number data type: long, integer, short, etc..", - "fields" : [ ] - }, { - "type" : "record", - "name" : "DateType", - "doc" : "Date field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "TimeType", - "doc" : "Time field type. This should also be used for datetimes.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "EnumType", - "doc" : "Enum field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "NullType", - "doc" : "Null field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "MapType", - "doc" : "Map field type.", - "fields" : [ { - "name" : "keyType", - "type" : [ "null", "string" ], - "doc" : "Key type in a map", - "default" : null - }, { - "name" : "valueType", - "type" : [ "null", "string" ], - "doc" : "Type of the value in a map", - "default" : null - } ] - }, { - "type" : "record", - "name" : "ArrayType", - "doc" : "Array field type.", - "fields" : [ { - "name" : "nestedType", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of types this array holds.", - "default" : null - } ] - }, { - "type" : "record", - "name" : "UnionType", - "doc" : "Union field type.", - "fields" : [ { - "name" : "nestedTypes", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of types in union type.", - "default" : null - } ] - }, { - "type" : "record", - "name" : "RecordType", - "doc" : "Record field type.", - "fields" : [ ] - } ], - "doc" : "Data platform specific types" - } ] - }, - "doc" : "Platform independent field type of the field." - }, { - "name" : "nativeDataType", - "type" : "string", - "doc" : "The native type of the field in the dataset's platform as declared by platform schema." - }, { - "name" : "recursive", - "type" : "boolean", - "doc" : "There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.", - "default" : false - }, { - "name" : "globalTags", - "type" : [ "null", "com.linkedin.common.GlobalTags" ], - "doc" : "Tags associated with the field", - "default" : null, - "Relationship" : { - "/tags/*/tag" : { - "entityTypes" : [ "tag" ], - "name" : "SchemaFieldTaggedWith" - } - }, - "Searchable" : { - "/tags/*/tag" : { - "boostScore" : 0.5, - "fieldName" : "fieldTags", - "fieldType" : "URN" - } - } - }, { - "name" : "glossaryTerms", - "type" : [ "null", "com.linkedin.common.GlossaryTerms" ], - "doc" : "Glossary terms associated with the field", - "default" : null, - "Relationship" : { - "/terms/*/urn" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "SchemaFieldWithGlossaryTerm" - } - }, - "Searchable" : { - "/terms/*/urn" : { - "boostScore" : 0.5, - "fieldName" : "fieldGlossaryTerms", - "fieldType" : "URN" - } - } - }, { - "name" : "isPartOfKey", - "type" : "boolean", - "doc" : "For schema fields that are part of complex keys, set this field to true\nWe do this to easily distinguish between value and key fields", - "default" : false - }, { - "name" : "isPartitioningKey", - "type" : [ "null", "boolean" ], - "doc" : "For Datasets which are partitioned, this determines the partitioning key.", - "default" : null - }, { - "name" : "jsonProps", - "type" : [ "null", "string" ], - "doc" : "For schema fields that have other properties that are not modeled explicitly,\nuse this field to serialize those properties into a JSON string", - "default" : null - } ] - } - }, - "doc" : "Client provided a list of fields from document schema." - }, { - "name" : "primaryKeys", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath.", - "default" : null - }, { - "name" : "foreignKeysSpecs", - "type" : [ "null", { - "type" : "map", - "values" : { - "type" : "record", - "name" : "ForeignKeySpec", - "doc" : "Description of a foreign key in a schema.", - "fields" : [ { - "name" : "foreignKey", - "type" : [ { - "type" : "record", - "name" : "DatasetFieldForeignKey", - "doc" : "For non-urn based foregin keys.", - "fields" : [ { - "name" : "parentDataset", - "type" : "string", - "doc" : "dataset that stores the resource.", - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "currentFieldPaths", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset." - }, { - "name" : "parentField", - "type" : "string", - "doc" : "SchemaField@fieldPath that uniquely identify field in parent dataset that this field references." - } ] - }, { - "type" : "record", - "name" : "UrnForeignKey", - "doc" : "If SchemaMetadata fields make any external references and references are of type com.linkedin.common.Urn or any children, this models can be used to mark it.", - "fields" : [ { - "name" : "currentFieldPath", - "type" : "string", - "doc" : "Field in hosting(current) SchemaMetadata." - } ] - } ], - "doc" : "Foreign key definition in metadata schema." - } ] - } - } ], - "doc" : "Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref.", - "default" : null, - "deprecated" : "Use foreignKeys instead." - }, { - "name" : "foreignKeys", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "ForeignKeyConstraint", - "doc" : "Description of a foreign key constraint in a schema.", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Name of the constraint, likely provided from the source" - }, { - "name" : "foreignFields", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Fields the constraint maps to on the foreign dataset", - "Relationship" : { - "/*" : { - "entityTypes" : [ "schemaField" ], - "name" : "ForeignKeyTo" - } - } - }, { - "name" : "sourceFields", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Fields the constraint maps to on the source dataset" - }, { - "name" : "foreignDataset", - "type" : "string", - "doc" : "Reference to the foreign dataset for ease of lookup", - "Relationship" : { - "entityTypes" : [ "dataset" ], - "name" : "ForeignKeyToDataset" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - } ] - } - } ], - "doc" : "List of foreign key constraints for the schema", - "default" : null - } ], - "Aspect" : { - "name" : "schemaMetadata" - } - }, { - "type" : "record", - "name" : "EditableSchemaMetadata", - "namespace" : "com.linkedin.schema", - "doc" : "EditableSchemaMetadata stores editable changes made to schema metadata. 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" : "com.linkedin.common.AuditStamp", - "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.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.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" : "editableSchemaFieldInfo", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "EditableSchemaFieldInfo", - "doc" : "SchemaField to describe metadata related to dataset schema.", - "fields" : [ { - "name" : "fieldPath", - "type" : "string", - "doc" : "FieldPath uniquely identifying the SchemaField this metadata is associated with" - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Description", - "default" : null, - "Searchable" : { - "boostScore" : 0.1, - "fieldName" : "editedFieldDescriptions", - "fieldType" : "TEXT" - } - }, { - "name" : "globalTags", - "type" : [ "null", "com.linkedin.common.GlobalTags" ], - "doc" : "Tags associated with the field", - "default" : null, - "Relationship" : { - "/tags/*/tag" : { - "entityTypes" : [ "tag" ], - "name" : "EditableSchemaFieldTaggedWith" - } - }, - "Searchable" : { - "/tags/*/tag" : { - "boostScore" : 0.5, - "fieldName" : "editedFieldTags", - "fieldType" : "URN" - } - } - }, { - "name" : "glossaryTerms", - "type" : [ "null", "com.linkedin.common.GlossaryTerms" ], - "doc" : "Glossary terms associated with the field", - "default" : null, - "Relationship" : { - "/terms/*/urn" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "EditableSchemaFieldWithGlossaryTerm" - } - }, - "Searchable" : { - "/terms/*/urn" : { - "boostScore" : 0.5, - "fieldName" : "editedFieldGlossaryTerms", - "fieldType" : "URN" - } - } - } ] - } - }, - "doc" : "Client provided a list of fields from document schema." - } ], - "Aspect" : { - "name" : "editableSchemaMetadata" - } - }, "com.linkedin.common.GlobalTags", "com.linkedin.common.GlossaryTerms", "com.linkedin.common.BrowsePaths", "com.linkedin.common.DataPlatformInstance", { - "type" : "record", - "name" : "ViewProperties", - "namespace" : "com.linkedin.dataset", - "doc" : "Details about a View. \ne.g. Gets activated when subTypes is view", - "fields" : [ { - "name" : "materialized", - "type" : "boolean", - "doc" : "Whether the view is materialized", - "Searchable" : { - "fieldType" : "BOOLEAN", - "weightsPerFieldValue" : { - "true" : 0.5 - } - } - }, { - "name" : "viewLogic", - "type" : "string", - "doc" : "The view logic" - }, { - "name" : "viewLanguage", - "type" : "string", - "doc" : "The view logic language / dialect" - } ], - "Aspect" : { - "name" : "viewProperties" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "datasetKey", - "name" : "dataset" - } - }, { - "type" : "record", - "name" : "DataProcessSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific Data process entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DataProcessUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataProcessKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Data Process", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Process name i.e. an ETL job name", - "Searchable" : { - "boostScore" : 4.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "orchestrator", - "type" : "string", - "doc" : "Standardized Orchestrator where data process is defined.\nTODO: Migrate towards something that can be validated like DataPlatform urn", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : "com.linkedin.common.FabricType", - "doc" : "Fabric type where dataset belongs to or where it was generated.", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "dataProcessKey" - } - }, "com.linkedin.common.Ownership", { - "type" : "record", - "name" : "DataProcessInfo", - "namespace" : "com.linkedin.dataprocess", - "doc" : "The inputs and outputs of this data process", - "fields" : [ { - "name" : "inputs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "the inputs of the data process", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "inputs", - "fieldType" : "URN", - "numValuesFieldName" : "numInputDatasets", - "queryByDefault" : false - } - } - }, { - "name" : "outputs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "the outputs of the data process", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "outputs", - "fieldType" : "URN", - "numValuesFieldName" : "numOutputDatasets", - "queryByDefault" : false - } - } - } ], - "Aspect" : { - "name" : "dataProcessInfo" - } - }, "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the data process. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dataProcessKey", - "name" : "dataProcess" - }, - "deprecated" : "Use DataJob instead." - }, { - "type" : "record", - "name" : "DataPlatformSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific dataplatform entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DataPlatformUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataPlatformKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Data Platform", - "fields" : [ { - "name" : "platformName", - "type" : "string", - "doc" : "Data platform name i.e. hdfs, oracle, espresso" - } ], - "Aspect" : { - "name" : "dataPlatformKey" - } - }, { - "type" : "record", - "name" : "DataPlatformInfo", - "namespace" : "com.linkedin.dataplatform", - "doc" : "Information about a data platform", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Name of the data platform", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : false, - "fieldType" : "TEXT_PARTIAL" - }, - "validate" : { - "strlen" : { - "max" : 15 - } - } - }, { - "name" : "displayName", - "type" : [ "null", "string" ], - "doc" : "The name that will be used for displaying a platform type.", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "PlatformType", - "doc" : "Platform types available at LinkedIn", - "symbols" : [ "FILE_SYSTEM", "KEY_VALUE_STORE", "MESSAGE_BROKER", "OBJECT_STORE", "OLAP_DATASTORE", "OTHERS", "QUERY_ENGINE", "RELATIONAL_DB", "SEARCH_ENGINE" ], - "symbolDocs" : { - "FILE_SYSTEM" : "Value for a file system, e.g. hdfs", - "KEY_VALUE_STORE" : "Value for a key value store, e.g. espresso, voldemort", - "MESSAGE_BROKER" : "Value for a message broker, e.g. kafka", - "OBJECT_STORE" : "Value for an object store, e.g. ambry", - "OLAP_DATASTORE" : "Value for an OLAP datastore, e.g. pinot", - "OTHERS" : "Value for other platforms, e.g salesforce, dovetail", - "QUERY_ENGINE" : "Value for a query engine, e.g. presto", - "RELATIONAL_DB" : "Value for a relational database, e.g. oracle, mysql", - "SEARCH_ENGINE" : "Value for a search engine, e.g seas" - } - }, - "doc" : "Platform type this data platform describes" - }, { - "name" : "datasetNameDelimiter", - "type" : "string", - "doc" : "The delimiter in the dataset names on the data platform, e.g. '/' for HDFS and '.' for Oracle" - }, { - "name" : "logoUrl", - "type" : [ "null", "string" ], - "doc" : "The URL for a logo associated with the platform", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - } ], - "Aspect" : { - "name" : "dataPlatformInfo" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the data platform. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dataPlatformKey", - "name" : "dataPlatform" - } - }, { - "type" : "record", - "name" : "MLModelSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "MLModel Snapshot entity details.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.MLModelUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLModelKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an ML model", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Standardized platform urn for the model", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the MLModel", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : "com.linkedin.common.FabricType", - "doc" : "Fabric type where model belongs to or where it was generated", - "Searchable" : { - "addToFilters" : true, - "fieldType" : "TEXT_PARTIAL", - "filterNameOverride" : "Environment", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "mlModelKey" - } - }, "com.linkedin.common.Ownership", { - "type" : "record", - "name" : "MLModelProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with a ML Model", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLModel", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "date", - "type" : [ "null", "long" ], - "doc" : "Date when the MLModel was developed", - "default" : null - }, { - "name" : "version", - "type" : [ "null", { - "type" : "record", - "name" : "VersionTag", - "namespace" : "com.linkedin.common", - "doc" : "A resource-defined string representing the resource state for the purpose of concurrency control", - "fields" : [ { - "name" : "versionTag", - "type" : [ "null", "string" ], - "default" : null - } ] - } ], - "doc" : "Version of the MLModel", - "default" : null - }, { - "name" : "type", - "type" : [ "null", "string" ], - "doc" : "Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "hyperParameters", - "type" : [ "null", { - "type" : "map", - "values" : [ "string", "int", "float", "double", "boolean" ] - } ], - "doc" : "Hyper Parameters of the MLModel\n\nNOTE: these are deprecated in favor of hyperParams", - "default" : null - }, { - "name" : "hyperParams", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "MLHyperParam", - "doc" : "Properties associated with an ML Hyper Param", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Name of the MLHyperParam" - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLHyperParam", - "default" : null - }, { - "name" : "value", - "type" : [ "null", "string" ], - "doc" : "The value of the MLHyperParam", - "default" : null - }, { - "name" : "createdAt", - "type" : [ "null", "long" ], - "doc" : "Date when the MLHyperParam was developed", - "default" : null - } ], - "Aspect" : { - "name" : "mlHyperParam" - } - } - } ], - "doc" : "Hyperparameters of the MLModel", - "default" : null - }, { - "name" : "trainingMetrics", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "MLMetric", - "doc" : "Properties associated with an ML Metric", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Name of the mlMetric" - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the mlMetric", - "default" : null - }, { - "name" : "value", - "type" : [ "null", "string" ], - "doc" : "The value of the mlMetric", - "default" : null - }, { - "name" : "createdAt", - "type" : [ "null", "long" ], - "doc" : "Date when the mlMetric was developed", - "default" : null - } ], - "Aspect" : { - "name" : "mlMetric" - } - } - } ], - "doc" : "Metrics of the MLModel used in training", - "default" : null - }, { - "name" : "onlineMetrics", - "type" : [ "null", { - "type" : "array", - "items" : "MLMetric" - } ], - "doc" : "Metrics of the MLModel used in production", - "default" : null - }, { - "name" : "mlFeatures", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of features used for MLModel training", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlFeature" ], - "isLineage" : true, - "name" : "Consumes" - } - } - }, { - "name" : "tags", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Tags for the MLModel", - "default" : [ ] - }, { - "name" : "deployments", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Deployments for the MLModel", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlModelDeployment" ], - "name" : "DeployedTo" - } - } - }, { - "name" : "trainingJobs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of jobs (if any) used to train the model", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataJob" ], - "isLineage" : true, - "name" : "TrainedBy" - } - } - }, { - "name" : "downstreamJobs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of jobs (if any) that use the model", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataJob" ], - "isLineage" : true, - "isUpstream" : false, - "name" : "UsedBy" - } - } - }, { - "name" : "groups", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Groups the model belongs to", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlModelGroup" ], - "isLineage" : true, - "isUpstream" : false, - "name" : "MemberOf" - } - } - } ], - "Aspect" : { - "name" : "mlModelProperties" - } - }, { - "type" : "record", - "name" : "IntendedUse", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Intended Use for the ML Model", - "fields" : [ { - "name" : "primaryUses", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Primary Use cases for the MLModel.", - "default" : null - }, { - "name" : "primaryUsers", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "enum", - "name" : "IntendedUserType", - "symbols" : [ "ENTERPRISE", "HOBBY", "ENTERTAINMENT" ] - } - } ], - "doc" : "Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions?", - "default" : null - }, { - "name" : "outOfScopeUses", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to.", - "default" : null - } ], - "Aspect" : { - "name" : "intendedUse" - } - }, { - "type" : "record", - "name" : "MLModelFactorPrompts", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Prompts which affect the performance of the MLModel", - "fields" : [ { - "name" : "relevantFactors", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "MLModelFactors", - "doc" : "Factors affecting the performance of the MLModel.", - "fields" : [ { - "name" : "groups", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances.\nFor human-centric machine learning MLModels, groups are people who share one or multiple characteristics.", - "default" : null - }, { - "name" : "instrumentation", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel.\nFor example, a face detection model may perform differently depending on the camera's hardware and software,\nincluding lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode.", - "default" : null - }, { - "name" : "environment", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A further factor affecting MLModel performance is the environment in which it is deployed.", - "default" : null - } ] - } - } ], - "doc" : "What are foreseeable salient factors for which MLModel performance may vary, and how were these determined?", - "default" : null - }, { - "name" : "evaluationFactors", - "type" : [ "null", { - "type" : "array", - "items" : "MLModelFactors" - } ], - "doc" : "Which factors are being reported, and why were these chosen?", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelFactorPrompts" - } - }, { - "type" : "record", - "name" : "Metrics", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Metrics to be featured for the MLModel.", - "fields" : [ { - "name" : "performanceMeasures", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Measures of MLModel performance", - "default" : null - }, { - "name" : "decisionThreshold", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Decision Thresholds used (if any)?", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelMetrics" - } - }, { - "type" : "record", - "name" : "EvaluationData", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "All referenced datasets would ideally point to any set of documents that provide visibility into the source and composition of the dataset.", - "fields" : [ { - "name" : "evaluationData", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "BaseData", - "doc" : "BaseData record", - "fields" : [ { - "name" : "dataset", - "type" : "string", - "doc" : "What dataset were used in the MLModel?", - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "motivation", - "type" : [ "null", "string" ], - "doc" : "Why was this dataset chosen?", - "default" : null - }, { - "name" : "preProcessing", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)?", - "default" : null - } ] - } - }, - "doc" : "Details on the dataset(s) used for the quantitative analyses in the MLModel" - } ], - "Aspect" : { - "name" : "mlModelEvaluationData" - } - }, { - "type" : "record", - "name" : "TrainingData", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Ideally, the MLModel card would contain as much information about the training data as the evaluation data. However, there might be cases where it is not feasible to provide this level of detailed information about the training data. For example, the data may be proprietary, or require a non-disclosure agreement. In these cases, we advocate for basic details about the distributions over groups in the data, as well as any other details that could inform stakeholders on the kinds of biases the model may have encoded.", - "fields" : [ { - "name" : "trainingData", - "type" : { - "type" : "array", - "items" : "BaseData" - }, - "doc" : "Details on the dataset(s) used for training the MLModel" - } ], - "Aspect" : { - "name" : "mlModelTrainingData" - } - }, { - "type" : "record", - "name" : "QuantitativeAnalyses", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Quantitative analyses should be disaggregated, that is, broken down by the chosen factors. Quantitative analyses should provide the results of evaluating the MLModel according to the chosen metrics, providing confidence interval values when possible.", - "fields" : [ { - "name" : "unitaryResults", - "type" : [ "null", "string" ], - "doc" : "Link to a dashboard with results showing how the MLModel performed with respect to each factor", - "default" : null - }, { - "name" : "intersectionalResults", - "type" : [ "null", "string" ], - "doc" : "Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors?", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelQuantitativeAnalyses" - } - }, { - "type" : "record", - "name" : "EthicalConsiderations", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "This section is intended to demonstrate the ethical considerations that went into MLModel development, surfacing ethical challenges and solutions to stakeholders.", - "fields" : [ { - "name" : "data", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Does the MLModel use any sensitive data (e.g., protected classes)?", - "default" : null - }, { - "name" : "humanLife", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : " Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way?", - "default" : null - }, { - "name" : "mitigations", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "What risk mitigation strategies were used during MLModel development?", - "default" : null - }, { - "name" : "risksAndHarms", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown.", - "default" : null - }, { - "name" : "useCases", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelEthicalConsiderations" - } - }, { - "type" : "record", - "name" : "CaveatsAndRecommendations", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?", - "fields" : [ { - "name" : "caveats", - "type" : [ "null", { - "type" : "record", - "name" : "CaveatDetails", - "doc" : "This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?", - "fields" : [ { - "name" : "needsFurtherTesting", - "type" : [ "null", "boolean" ], - "doc" : "Did the results suggest any further testing?", - "default" : null - }, { - "name" : "caveatDescription", - "type" : [ "null", "string" ], - "doc" : "Caveat Description\nFor ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders.", - "default" : null - }, { - "name" : "groupsNotRepresented", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Relevant groups that were not represented in the evaluation dataset?", - "default" : null - } ] - } ], - "doc" : "This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset?", - "default" : null - }, { - "name" : "recommendations", - "type" : [ "null", "string" ], - "doc" : "Recommendations on where this MLModel should be used.", - "default" : null - }, { - "name" : "idealDatasetCharacteristics", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Ideal characteristics of an evaluation dataset for this MLModel", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelCaveatsAndRecommendations" - } - }, "com.linkedin.common.InstitutionalMemory", { - "type" : "record", - "name" : "SourceCode", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Source Code", - "fields" : [ { - "name" : "sourceCode", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "SourceCodeUrl", - "doc" : "Source Code Url Entity", - "fields" : [ { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "SourceCodeUrlType", - "symbols" : [ "ML_MODEL_SOURCE_CODE", "TRAINING_PIPELINE_SOURCE_CODE", "EVALUATION_PIPELINE_SOURCE_CODE" ] - }, - "doc" : "Source Code Url Types" - }, { - "name" : "sourceCodeUrl", - "type" : "string", - "doc" : "Source Code Url", - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - } ] - } - }, - "doc" : "Source Code along with types" - } ], - "Aspect" : { - "name" : "sourceCode" - } - }, "com.linkedin.common.Status", { - "type" : "record", - "name" : "Cost", - "namespace" : "com.linkedin.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", "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" - } - }, { - "type" : "record", - "name" : "Deprecation", - "namespace" : "com.linkedin.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" : "string", - "doc" : "Additional information about the entity deprecation plan, such as the wiki, doc, RB." - }, { - "name" : "actor", - "type" : "string", - "doc" : "The user URN which will be credited for modifying this deprecation content.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - } ], - "Aspect" : { - "name" : "deprecation" - } - }, "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLModel. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlModelKey", - "name" : "mlModel" - } - }, { - "type" : "record", - "name" : "MLPrimaryKeySnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLPrimaryKeyKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an MLPrimaryKey", - "fields" : [ { - "name" : "featureNamespace", - "type" : "string", - "doc" : "Namespace for the primary key", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the primary key", - "Searchable" : { - "boostScore" : 8.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "mlPrimaryKeyKey" - } - }, { - "type" : "record", - "name" : "MLPrimaryKeyProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with a MLPrimaryKey", - "fields" : [ { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLPrimaryKey", - "default" : null - }, { - "name" : "dataType", - "type" : [ "null", { - "type" : "enum", - "name" : "MLFeatureDataType", - "namespace" : "com.linkedin.common", - "doc" : "MLFeature Data Type", - "symbols" : [ "USELESS", "NOMINAL", "ORDINAL", "BINARY", "COUNT", "TIME", "INTERVAL", "IMAGE", "VIDEO", "AUDIO", "TEXT", "MAP", "SEQUENCE", "SET", "CONTINUOUS", "BYTE", "UNKNOWN" ], - "symbolDocs" : { - "AUDIO" : "Audio Data", - "BINARY" : "Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc", - "BYTE" : "Bytes data are binary-encoded values that can represent complex objects.", - "CONTINUOUS" : "Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.", - "COUNT" : "Count data is discrete whole number data - no negative numbers here.\nCount data often has many small values, such as zero and one.", - "IMAGE" : "Image Data", - "INTERVAL" : "Interval data has equal spaces between the numbers and does not represent a temporal pattern.\nExamples include percentages, temperatures, and income.", - "MAP" : "Mapping Data Type ex: dict, map", - "NOMINAL" : "Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.", - "ORDINAL" : "Ordinal data are discrete integers that can be ranked or sorted.\nFor example, the distance between first and second may not be the same as the distance between second and third.", - "SEQUENCE" : "Sequence Data Type ex: list, tuple, range", - "SET" : "Set Data Type ex: set, frozenset", - "TEXT" : "Text Data", - "TIME" : "Time data is a cyclical, repeating continuous form of data.\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.", - "UNKNOWN" : "Unknown data are data that we don't know the type for.", - "USELESS" : "Useless data is unique, discrete data with no potential relationship with the outcome variable.\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.", - "VIDEO" : "Video Data" - } - } ], - "doc" : "Data Type of the MLPrimaryKey", - "default" : null - }, { - "name" : "version", - "type" : [ "null", "com.linkedin.common.VersionTag" ], - "doc" : "Version of the MLPrimaryKey", - "default" : null - }, { - "name" : "sources", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Source of the MLPrimaryKey", - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "DerivedFrom" - } - } - } ], - "Aspect" : { - "name" : "mlPrimaryKeyProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLPrimaryKey. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlPrimaryKeyKey", - "name" : "mlPrimaryKey" - } - }, { - "type" : "record", - "name" : "MLFeatureSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.MLFeatureUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLFeatureKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an MLFeature", - "fields" : [ { - "name" : "featureNamespace", - "type" : "string", - "doc" : "Namespace for the feature", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the feature", - "Searchable" : { - "boostScore" : 8.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "mlFeatureKey" - } - }, { - "type" : "record", - "name" : "MLFeatureProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with a MLFeature", - "fields" : [ { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLFeature", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "dataType", - "type" : [ "null", "com.linkedin.common.MLFeatureDataType" ], - "doc" : "Data Type of the MLFeature", - "default" : null - }, { - "name" : "version", - "type" : [ "null", "com.linkedin.common.VersionTag" ], - "doc" : "Version of the MLFeature", - "default" : null - }, { - "name" : "sources", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Source of the MLFeature", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "DerivedFrom" - } - } - } ], - "Aspect" : { - "name" : "mlFeatureProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLFeature. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlFeatureKey", - "name" : "mlFeature" - } - }, { - "type" : "record", - "name" : "MLFeatureTableSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLFeatureTableKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an MLFeatureTable", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Data platform urn associated with the feature table", - "Relationship" : { - "entityTypes" : [ "dataPlatform" ], - "name" : "SourcePlatform" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the feature table", - "Searchable" : { - "boostScore" : 8.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "mlFeatureTableKey" - } - }, { - "type" : "record", - "name" : "MLFeatureTableProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with a MLFeatureTable", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLFeatureTable", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "mlFeatures", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of features contained in the feature table", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlFeature" ], - "name" : "Contains" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "features", - "fieldType" : "URN" - } - } - }, { - "name" : "mlPrimaryKeys", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of primary keys in the feature table (if multiple, assumed to act as a composite key)", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlPrimaryKey" ], - "name" : "KeyedBy" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "primaryKeys", - "fieldType" : "URN" - } - } - } ], - "Aspect" : { - "name" : "mlFeatureTableProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLFeatureTable. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlFeatureTableKey", - "name" : "mlFeatureTable" - } - }, { - "type" : "record", - "name" : "MLModelDeploymentSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLModelDeploymentKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an ML model deployment", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Standardized platform urn for the model Deployment", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the MLModelDeployment", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : "com.linkedin.common.FabricType", - "doc" : "Fabric type where model Deployment belongs to or where it was generated", - "Searchable" : { - "addToFilters" : true, - "fieldType" : "TEXT_PARTIAL", - "filterNameOverride" : "Environment", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "mlModelDeploymentKey" - } - }, { - "type" : "record", - "name" : "MLModelDeploymentProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with an ML Model Deployment", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLModelDeployment", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "createdAt", - "type" : [ "null", "long" ], - "doc" : "Date when the MLModelDeployment was developed", - "default" : null - }, { - "name" : "version", - "type" : [ "null", "com.linkedin.common.VersionTag" ], - "doc" : "Version of the MLModelDeployment", - "default" : null - }, { - "name" : "status", - "type" : [ "null", { - "type" : "enum", - "name" : "DeploymentStatus", - "doc" : "Model endpoint statuses", - "symbols" : [ "OUT_OF_SERVICE", "CREATING", "UPDATING", "ROLLING_BACK", "IN_SERVICE", "DELETING", "FAILED", "UNKNOWN" ], - "symbolDocs" : { - "CREATING" : "Deployments being created.", - "DELETING" : "Deployments being deleted.", - "FAILED" : "Deployments with an error state.", - "IN_SERVICE" : "Deployments that are active.", - "OUT_OF_SERVICE" : "Deployments out of service.", - "ROLLING_BACK" : "Deployments being reverted to a previous version.", - "UNKNOWN" : "Deployments with unknown/unmappable state.", - "UPDATING" : "Deployments being updated." - } - } ], - "doc" : "Status of the deployment", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelDeploymentProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLModelDeployment. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlModelDeploymentKey", - "name" : "mlModelDeployment" - } - }, { - "type" : "record", - "name" : "MLModelGroupSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLModelGroupKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an ML model group", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Standardized platform urn for the model group", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the MLModelGroup", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : "com.linkedin.common.FabricType", - "doc" : "Fabric type where model group belongs to or where it was generated", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "mlModelGroupKey" - } - }, { - "type" : "record", - "name" : "MLModelGroupProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with an ML Model Group", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLModelGroup", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "createdAt", - "type" : [ "null", "long" ], - "doc" : "Date when the MLModelGroup was developed", - "default" : null - }, { - "name" : "version", - "type" : [ "null", "com.linkedin.common.VersionTag" ], - "doc" : "Version of the MLModelGroup", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelGroupProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLModelGroup. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlModelGroupKey", - "name" : "mlModelGroup" - } - }, { - "type" : "record", - "name" : "TagSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific dataset entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.TagUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "TagKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Tag", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "The tag name, which serves as a unique id", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldName" : "id", - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "tagKey" - } - }, "com.linkedin.common.Ownership", { - "type" : "record", - "name" : "TagProperties", - "namespace" : "com.linkedin.tag", - "doc" : "Properties associated with a Tag", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Display name of the tag", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the tag", - "default" : null, - "Searchable" : { } - }, { - "name" : "colorHex", - "type" : [ "null", "string" ], - "doc" : "The color associated with the Tag in Hex. For example #FFFFFF.", - "default" : null - } ], - "Aspect" : { - "name" : "tagProperties" - } - }, "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "tagKey", - "name" : "tag" - } - }, { - "type" : "record", - "name" : "GlossaryTermSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific GlossaryTerm entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.GlossaryTermUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "GlossaryTermKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a GlossaryTerm", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "The term name, which serves as a unique id", - "Searchable" : { - "enableAutocomplete" : true, - "fieldName" : "id", - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "glossaryTermKey" - } - }, { - "type" : "record", - "name" : "GlossaryTermInfo", - "namespace" : "com.linkedin.glossary", - "doc" : "Properties associated with a GlossaryTerm", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "id", - "type" : [ "null", "string" ], - "doc" : "Optional id for the term", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "name", - "type" : [ "null", "string" ], - "doc" : "Display name of the term", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "definition", - "type" : "string", - "doc" : "Definition of business term.", - "Searchable" : { } - }, { - "name" : "parentNode", - "type" : [ "null", "string" ], - "doc" : "Parent node of the glossary term", - "default" : null, - "Relationship" : { - "entityTypes" : [ "glossaryNode" ], - "name" : "IsPartOf" - }, - "Searchable" : { - "fieldName" : "parentNode", - "fieldType" : "URN", - "hasValuesFieldName" : "hasParentNode" - }, - "java" : { - "class" : "com.linkedin.common.urn.GlossaryNodeUrn" - } - }, { - "name" : "termSource", - "type" : "string", - "doc" : "Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL", - "Searchable" : { - "fieldType" : "KEYWORD" - } - }, { - "name" : "sourceRef", - "type" : [ "null", "string" ], - "doc" : "External Reference to the business-term", - "default" : null, - "Searchable" : { - "fieldType" : "KEYWORD" - } - }, { - "name" : "sourceUrl", - "type" : [ "null", "string" ], - "doc" : "The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument.", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "rawSchema", - "type" : [ "null", "string" ], - "doc" : "Schema definition of the glossary term", - "default" : null, - "deprecated" : true - } ], - "Aspect" : { - "name" : "glossaryTermInfo" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.BrowsePaths", { - "type" : "record", - "name" : "GlossaryRelatedTerms", - "namespace" : "com.linkedin.glossary", - "doc" : "Has A / Is A lineage information about a glossary Term reporting the lineage", - "fields" : [ { - "name" : "isRelatedTerms", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The relationship Is A with glossary term", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "IsA" - } - }, - "Searchable" : { - "/*" : { - "boostScore" : 2.0, - "fieldName" : "isRelatedTerms", - "fieldType" : "URN" - } - } - }, { - "name" : "hasRelatedTerms", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The relationship Has A with glossary term", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "HasA" - } - }, - "Searchable" : { - "/*" : { - "boostScore" : 2.0, - "fieldName" : "hasRelatedTerms", - "fieldType" : "URN" - } - } - }, { - "name" : "values", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The relationship Has Value with glossary term.\nThese are fixed value a term has. For example a ColorEnum where RED, GREEN and YELLOW are fixed values.", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "HasValue" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "values", - "fieldType" : "URN" - } - } - }, { - "name" : "relatedTerms", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The relationship isRelatedTo with glossary term", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "IsRelatedTo" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "relatedTerms", - "fieldType" : "URN" - } - } - } ], - "Aspect" : { - "name" : "glossaryRelatedTerms" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the GlossaryTerm. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "glossaryTermKey", - "name" : "glossaryTerm" - } - }, { - "type" : "record", - "name" : "GlossaryNodeSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific GlossaryNode entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.GlossaryNodeUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "GlossaryNodeKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a GlossaryNode", - "fields" : [ { - "name" : "name", - "type" : "string", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "glossaryNodeKey" - } - }, { - "type" : "record", - "name" : "GlossaryNodeInfo", - "namespace" : "com.linkedin.glossary", - "doc" : "Properties associated with a GlossaryNode", - "fields" : [ { - "name" : "definition", - "type" : "string", - "doc" : "Definition of business node", - "Searchable" : { } - }, { - "name" : "parentNode", - "type" : [ "null", "string" ], - "doc" : "Parent node of the glossary term", - "default" : null, - "Relationship" : { - "entityTypes" : [ "glossaryNode" ], - "name" : "IsPartOf" - }, - "Searchable" : { - "fieldName" : "parentNode", - "fieldType" : "URN", - "hasValuesFieldName" : "hasParentNode" - }, - "java" : { - "class" : "com.linkedin.common.urn.GlossaryNodeUrn" - } - }, { - "name" : "name", - "type" : [ "null", "string" ], - "doc" : "Display name of the node", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldName" : "displayName", - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "id", - "type" : [ "null", "string" ], - "doc" : "Optional id for the GlossaryNode", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "glossaryNodeInfo" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the GlossaryNode. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "glossaryNodeKey", - "name" : "glossaryNode" - } - }, { - "type" : "record", - "name" : "DataHubPolicySnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for DataHub Access Policy data.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataHubPolicyKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a DataHub Policy", - "fields" : [ { - "name" : "id", - "type" : "string", - "doc" : "A unique id for the DataHub access policy record. Generated on the server side at policy creation time." - } ], - "Aspect" : { - "name" : "dataHubPolicyKey" - } - }, { - "type" : "record", - "name" : "DataHubPolicyInfo", - "namespace" : "com.linkedin.policy", - "doc" : "Information about a DataHub (UI) access policy.", - "fields" : [ { - "name" : "displayName", - "type" : "string", - "doc" : "Display name of the Policy", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : "string", - "doc" : "Description of the Policy", - "Searchable" : { - "fieldType" : "TEXT" - } - }, { - "name" : "type", - "type" : "string", - "doc" : "The type of policy" - }, { - "name" : "state", - "type" : "string", - "doc" : "The state of policy, ACTIVE or INACTIVE" - }, { - "name" : "resources", - "type" : [ "null", { - "type" : "record", - "name" : "DataHubResourceFilter", - "doc" : "Information used to filter DataHub resource.", - "fields" : [ { - "name" : "type", - "type" : [ "null", "string" ], - "doc" : "The type of resource that the policy applies to. This will most often be a data asset entity name, for\nexample 'dataset'. It is not strictly required because in the future we will want to support filtering a resource\nby domain, as well.", - "default" : null, - "deprecated" : true - }, { - "name" : "resources", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A specific set of resources to apply the policy to, e.g. asset urns", - "default" : null, - "deprecated" : true - }, { - "name" : "allResources", - "type" : "boolean", - "doc" : "Whether the policy should be applied to all assets matching the filter.", - "default" : false, - "deprecated" : true - }, { - "name" : "filter", - "type" : [ "null", { - "type" : "record", - "name" : "PolicyMatchFilter", - "doc" : "The filter for specifying the resource or actor to apply privileges to", - "fields" : [ { - "name" : "criteria", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "PolicyMatchCriterion", - "doc" : "A criterion for matching a field with given value", - "fields" : [ { - "name" : "field", - "type" : "string", - "doc" : "The name of the field that the criterion refers to" - }, { - "name" : "values", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Values. Matches criterion if any one of the values matches condition (OR-relationship)" - }, { - "name" : "condition", - "type" : { - "type" : "enum", - "name" : "PolicyMatchCondition", - "doc" : "The matching condition in a filter criterion", - "symbols" : [ "EQUALS" ], - "symbolDocs" : { - "EQUALS" : "Whether the field matches the value" - } - }, - "doc" : "The condition for the criterion", - "default" : "EQUALS" - } ] - } - }, - "doc" : "A list of criteria to apply conjunctively (so all criteria must pass)" - } ] - } ], - "doc" : "Filter to apply privileges to", - "default" : null - } ] - } ], - "doc" : "The resource that the policy applies to. Not required for some 'Platform' privileges.", - "default" : null - }, { - "name" : "privileges", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "The privileges that the policy grants." - }, { - "name" : "actors", - "type" : { - "type" : "record", - "name" : "DataHubActorFilter", - "doc" : "Information used to filter DataHub actors.", - "fields" : [ { - "name" : "users", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A specific set of users to apply the policy to (disjunctive)", - "default" : null - }, { - "name" : "groups", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A specific set of groups to apply the policy to (disjunctive)", - "default" : null - }, { - "name" : "resourceOwners", - "type" : "boolean", - "doc" : "Whether the filter should return true for owners of a particular resource.\nOnly applies to policies of type 'Metadata', which have a resource associated with them.", - "default" : false - }, { - "name" : "allUsers", - "type" : "boolean", - "doc" : "Whether the filter should apply to all users.", - "default" : false - }, { - "name" : "allGroups", - "type" : "boolean", - "doc" : "Whether the filter should apply to all groups.", - "default" : false - }, { - "name" : "roles", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A specific set of roles to apply the policy to (disjunctive).", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataHubRole" ], - "name" : "IsAssociatedWithRole" - } - } - } ] - }, - "doc" : "The actors that the policy applies to." - }, { - "name" : "editable", - "type" : "boolean", - "doc" : "Whether the policy should be editable via the UI", - "default" : true - }, { - "name" : "lastUpdatedTimestamp", - "type" : [ "null", "long" ], - "doc" : "Timestamp when the policy was last updated", - "default" : null, - "Searchable" : { - "fieldType" : "DATETIME" - } - } ], - "Aspect" : { - "name" : "dataHubPolicyInfo" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the DataHub access policy." - } ], - "Entity" : { - "keyAspect" : "dataHubPolicyKey", - "name" : "dataHubPolicy" - } - }, { - "type" : "record", - "name" : "SchemaFieldSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific schema field entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "SchemaFieldKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a SchemaField", - "fields" : [ { - "name" : "parent", - "type" : "string", - "doc" : "Parent associated with the schema field", - "Searchable" : { - "fieldType" : "URN" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "fieldPath", - "type" : "string", - "doc" : "fieldPath identifying the schema field", - "Searchable" : { - "fieldType" : "KEYWORD" - } - } ], - "Aspect" : { - "name" : "schemaFieldKey" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "schemaFieldKey", - "name" : "schemaField" - } - }, { - "type" : "record", - "name" : "DataHubRetentionSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for DataHub Access Policy data.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataHubRetentionKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a DataHub Retention", - "fields" : [ { - "name" : "entityName", - "type" : "string", - "doc" : "Entity name to apply retention to. * (or empty) for applying defaults." - }, { - "name" : "aspectName", - "type" : "string", - "doc" : "Aspect name to apply retention to. * (or empty) for applying defaults." - } ], - "Aspect" : { - "name" : "dataHubRetentionKey" - } - }, { - "type" : "record", - "name" : "DataHubRetentionConfig", - "namespace" : "com.linkedin.retention", - "fields" : [ { - "name" : "retention", - "type" : { - "type" : "record", - "name" : "Retention", - "doc" : "Base class that encapsulates different retention policies.\nOnly one of the fields should be set", - "fields" : [ { - "name" : "version", - "type" : [ "null", { - "type" : "record", - "name" : "VersionBasedRetention", - "doc" : "Keep max N latest records", - "fields" : [ { - "name" : "maxVersions", - "type" : "int" - } ] - } ], - "default" : null - }, { - "name" : "time", - "type" : [ "null", { - "type" : "record", - "name" : "TimeBasedRetention", - "doc" : "Keep records that are less than X seconds old", - "fields" : [ { - "name" : "maxAgeInSeconds", - "type" : "int" - } ] - } ], - "default" : null - } ] - } - } ], - "Aspect" : { - "name" : "dataHubRetentionConfig" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the DataHub access policy." - } ], - "Entity" : { - "keyAspect" : "dataHubRetentionKey", - "name" : "dataHubRetention" - } - } ], - "doc" : "Snapshot of the proposed metadata change. Include only the aspects affected by the change in the snapshot." - }, { - "name" : "proposedDelta", - "type" : [ "null" ], - "doc" : "Delta of the proposed metadata partial update.", - "default" : null - }, { - "name" : "systemMetadata", - "type" : [ "null", { - "type" : "record", - "name" : "SystemMetadata", - "doc" : "Metadata associated with each metadata change that is processed by the system", - "fields" : [ { - "name" : "lastObserved", - "type" : [ "long", "null" ], - "doc" : "The timestamp the metadata was observed at", - "default" : 0 - }, { - "name" : "runId", - "type" : [ "string", "null" ], - "doc" : "The run id that produced the metadata. Populated in case of batch-ingestion.", - "default" : "no-run-id-provided" - }, { - "name" : "registryName", - "type" : [ "null", "string" ], - "doc" : "The model registry name that was used to process this event", - "default" : null - }, { - "name" : "registryVersion", - "type" : [ "null", "string" ], - "doc" : "The model registry version that was used to process this event", - "default" : null - }, { - "name" : "properties", - "type" : [ "null", { - "type" : "map", - "values" : "string" - } ], - "doc" : "Additional properties", - "default" : null - } ] - } ], - "doc" : "Metadata around how the snapshot was ingested", - "default" : null - } ] - }, - "doc" : "The even that failed to be processed." - }, { - "name" : "error", - "type" : "string", - "doc" : "The error message or the stacktrace for the failure." - } ] -} \ No newline at end of file diff --git a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/FailedMetadataChangeProposal.avsc b/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/FailedMetadataChangeProposal.avsc deleted file mode 100644 index b55f5f4cf923a..0000000000000 --- a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/FailedMetadataChangeProposal.avsc +++ /dev/null @@ -1,182 +0,0 @@ -{ - "type" : "record", - "name" : "FailedMetadataChangeProposal", - "namespace" : "com.linkedin.mxe", - "doc" : "Kafka event for capturing a failure to process a specific MetadataChangeEvent.", - "fields" : [ { - "name" : "auditHeader", - "type" : [ "null", { - "type" : "record", - "name" : "KafkaAuditHeader", - "namespace" : "com.linkedin.avro2pegasus.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" : "string", - "doc" : "The fully qualified name of the host from which the event is being emitted.", - "compliance" : "NONE" - }, { - "name" : "instance", - "type" : [ "null", "string" ], - "doc" : "The instance on the server from which the event is being emitted. e.g. i001", - "default" : null, - "compliance" : "NONE" - }, { - "name" : "appName", - "type" : "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", "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", "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" - } ] - } ], - "doc" : "Kafka audit header. See go/kafkaauditheader for more info.", - "default" : null - }, { - "name" : "metadataChangeProposal", - "type" : { - "type" : "record", - "name" : "MetadataChangeProposal", - "doc" : "Kafka event for proposing a metadata change for an entity. A corresponding MetadataChangeLog is emitted when the change is accepted and committed, otherwise a FailedMetadataChangeProposal will be emitted instead.", - "fields" : [ { - "name" : "auditHeader", - "type" : [ "null", "com.linkedin.avro2pegasus.events.KafkaAuditHeader" ], - "doc" : "Kafka audit header. Currently remains unused in the open source.", - "default" : null - }, { - "name" : "entityType", - "type" : "string", - "doc" : "Type of the entity being written to" - }, { - "name" : "entityUrn", - "type" : [ "null", "string" ], - "doc" : "Urn of the entity being written", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "entityKeyAspect", - "type" : [ "null", { - "type" : "record", - "name" : "GenericAspect", - "doc" : "Generic record structure for serializing an Aspect", - "fields" : [ { - "name" : "value", - "type" : "bytes", - "doc" : "The value of the aspect, serialized as bytes." - }, { - "name" : "contentType", - "type" : "string", - "doc" : "The content type, which represents the fashion in which the aspect was serialized.\nThe only type currently supported is application/json." - } ] - } ], - "doc" : "Key aspect of the entity being written", - "default" : null - }, { - "name" : "changeType", - "type" : { - "type" : "enum", - "name" : "ChangeType", - "namespace" : "com.linkedin.events.metadata", - "doc" : "Descriptor for a change action", - "symbols" : [ "UPSERT", "CREATE", "UPDATE", "DELETE", "PATCH", "RESTATE" ], - "symbolDocs" : { - "CREATE" : "NOT SUPPORTED YET\ninsert if not exists. otherwise fail", - "DELETE" : "NOT SUPPORTED YET\ndelete action", - "PATCH" : "NOT SUPPORTED YET\npatch the changes instead of full replace", - "RESTATE" : "Restate an aspect, eg. in a index refresh.", - "UPDATE" : "NOT SUPPORTED YET\nupdate if exists. otherwise fail", - "UPSERT" : "insert if not exists. otherwise update" - } - }, - "doc" : "Type of change being proposed" - }, { - "name" : "aspectName", - "type" : [ "null", "string" ], - "doc" : "Aspect of the entity being written to\nNot filling this out implies that the writer wants to affect the entire entity\nNote: This is only valid for CREATE, UPSERT, and DELETE operations.", - "default" : null - }, { - "name" : "aspect", - "type" : [ "null", "GenericAspect" ], - "doc" : "The value of the new aspect.", - "default" : null - }, { - "name" : "systemMetadata", - "type" : [ "null", { - "type" : "record", - "name" : "SystemMetadata", - "doc" : "Metadata associated with each metadata change that is processed by the system", - "fields" : [ { - "name" : "lastObserved", - "type" : [ "long", "null" ], - "doc" : "The timestamp the metadata was observed at", - "default" : 0 - }, { - "name" : "runId", - "type" : [ "string", "null" ], - "doc" : "The run id that produced the metadata. Populated in case of batch-ingestion.", - "default" : "no-run-id-provided" - }, { - "name" : "registryName", - "type" : [ "null", "string" ], - "doc" : "The model registry name that was used to process this event", - "default" : null - }, { - "name" : "registryVersion", - "type" : [ "null", "string" ], - "doc" : "The model registry version that was used to process this event", - "default" : null - }, { - "name" : "properties", - "type" : [ "null", { - "type" : "map", - "values" : "string" - } ], - "doc" : "Additional properties", - "default" : null - } ] - } ], - "doc" : "A string->string map of custom properties that one might want to attach to an event", - "default" : null - } ] - }, - "doc" : "The even that failed to be processed." - }, { - "name" : "error", - "type" : "string", - "doc" : "The error message or the stacktrace for the failure." - } ] -} \ No newline at end of file diff --git a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/GenericAspect.avsc b/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/GenericAspect.avsc deleted file mode 100644 index a57147eed6085..0000000000000 --- a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/GenericAspect.avsc +++ /dev/null @@ -1,15 +0,0 @@ -{ - "type" : "record", - "name" : "GenericAspect", - "namespace" : "com.linkedin.mxe", - "doc" : "Generic record structure for serializing an Aspect", - "fields" : [ { - "name" : "value", - "type" : "bytes", - "doc" : "The value of the aspect, serialized as bytes." - }, { - "name" : "contentType", - "type" : "string", - "doc" : "The content type, which represents the fashion in which the aspect was serialized.\nThe only type currently supported is application/json." - } ] -} \ No newline at end of file diff --git a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/GenericPayload.avsc b/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/GenericPayload.avsc deleted file mode 100644 index 27b55783062ae..0000000000000 --- a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/GenericPayload.avsc +++ /dev/null @@ -1,15 +0,0 @@ -{ - "type" : "record", - "name" : "GenericPayload", - "namespace" : "com.linkedin.mxe", - "doc" : "Generic payload record structure for serializing a Platform Event.", - "fields" : [ { - "name" : "value", - "type" : "bytes", - "doc" : "The value of the event, serialized as bytes." - }, { - "name" : "contentType", - "type" : "string", - "doc" : "The content type, which represents the fashion in which the event was serialized.\nThe only type currently supported is application/json." - } ] -} \ No newline at end of file diff --git a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/MetadataAuditEvent.avsc b/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/MetadataAuditEvent.avsc deleted file mode 100644 index 4cdff10e78f48..0000000000000 --- a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/MetadataAuditEvent.avsc +++ /dev/null @@ -1,5392 +0,0 @@ -{ - "type" : "record", - "name" : "MetadataAuditEvent", - "namespace" : "com.linkedin.mxe", - "doc" : "Kafka event for capturing update made to an entity's metadata.", - "fields" : [ { - "name" : "auditHeader", - "type" : [ "null", { - "type" : "record", - "name" : "KafkaAuditHeader", - "namespace" : "com.linkedin.avro2pegasus.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" : "string", - "doc" : "The fully qualified name of the host from which the event is being emitted.", - "compliance" : "NONE" - }, { - "name" : "instance", - "type" : [ "null", "string" ], - "doc" : "The instance on the server from which the event is being emitted. e.g. i001", - "default" : null, - "compliance" : "NONE" - }, { - "name" : "appName", - "type" : "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", "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", "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" - } ] - } ], - "doc" : "Kafka audit header. See go/kafkaauditheader for more info.", - "default" : null - }, { - "name" : "oldSnapshot", - "type" : [ "null", { - "type" : "record", - "name" : "ChartSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific Chart entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.ChartUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "ChartKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Chart", - "fields" : [ { - "name" : "dashboardTool", - "type" : "string", - "doc" : "The name of the dashboard tool such as looker, redash etc.", - "Searchable" : { - "boostScore" : 4.0, - "fieldName" : "tool", - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "chartId", - "type" : "string", - "doc" : "Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234'" - } ], - "Aspect" : { - "name" : "chartKey" - } - }, { - "type" : "record", - "name" : "ChartInfo", - "namespace" : "com.linkedin.chart", - "doc" : "Information about a chart", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "title", - "type" : "string", - "doc" : "Title of the chart", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : "string", - "doc" : "Detailed description about the chart", - "Searchable" : { } - }, { - "name" : "lastModified", - "type" : { - "type" : "record", - "name" : "ChangeAuditStamps", - "namespace" : "com.linkedin.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" : "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.common.urn.Urn" - } - }, { - "name" : "impersonator", - "type" : [ "null", "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.common.urn.Urn" - } - }, { - "name" : "message", - "type" : [ "null", "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", "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.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "inputs", - "type" : [ "null", { - "type" : "array", - "items" : [ "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.common", - "doc" : "Information about a relatonship edge.", - "fields" : [ { - "name" : "sourceUrn", - "type" : "string", - "doc" : "Urn of the source of this relationship edge.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "destinationUrn", - "type" : "string", - "doc" : "Urn of the destination of this relationship edge.", - "java" : { - "class" : "com.linkedin.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" : "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.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" - } - }, { - "type" : "record", - "name" : "ChartQuery", - "namespace" : "com.linkedin.chart", - "doc" : "Information for chart query which is used for getting data of the chart", - "fields" : [ { - "name" : "rawQuery", - "type" : "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" - } - }, { - "type" : "record", - "name" : "EditableChartProperties", - "namespace" : "com.linkedin.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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Edited documentation of the chart ", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableChartProperties" - } - }, { - "type" : "record", - "name" : "Ownership", - "namespace" : "com.linkedin.common", - "doc" : "Ownership information of an entity.", - "fields" : [ { - "name" : "owners", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "Owner", - "doc" : "Ownership information", - "fields" : [ { - "name" : "owner", - "type" : "string", - "doc" : "Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\n(Caveat: only corpuser is currently supported in the frontend.)", - "Relationship" : { - "entityTypes" : [ "corpuser", "corpGroup" ], - "name" : "OwnedBy" - }, - "Searchable" : { - "addToFilters" : true, - "fieldName" : "owners", - "fieldType" : "URN", - "filterNameOverride" : "Owned By", - "hasValuesFieldName" : "hasOwners", - "queryByDefault" : false - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "OwnershipType", - "doc" : "Asset owner types", - "symbols" : [ "TECHNICAL_OWNER", "BUSINESS_OWNER", "DATA_STEWARD", "NONE", "DEVELOPER", "DATAOWNER", "DELEGATE", "PRODUCER", "CONSUMER", "STAKEHOLDER" ], - "symbolDocs" : { - "BUSINESS_OWNER" : "A person or group who is responsible for logical, or business related, aspects of the asset.", - "CONSUMER" : "A person, group, or service that consumes the data\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.", - "DATAOWNER" : "A person or group that is owning the data\nDeprecated! Use TECHNICAL_OWNER instead.", - "DATA_STEWARD" : "A steward, expert, or delegate responsible for the asset.", - "DELEGATE" : "A person or a group that overseas the operation, e.g. a DBA or SRE.\nDeprecated! Use TECHNICAL_OWNER instead.", - "DEVELOPER" : "A person or group that is in charge of developing the code\nDeprecated! Use TECHNICAL_OWNER instead.", - "NONE" : "No specific type associated to the owner.", - "PRODUCER" : "A person, group, or service that produces/generates the data\nDeprecated! Use TECHNICAL_OWNER instead.", - "STAKEHOLDER" : "A person or a group that has direct business interest\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.", - "TECHNICAL_OWNER" : "person or group who is responsible for technical aspects of the asset." - }, - "deprecatedSymbols" : { - "CONSUMER" : true, - "DATAOWNER" : true, - "DELEGATE" : true, - "DEVELOPER" : true, - "PRODUCER" : true, - "STAKEHOLDER" : true - } - }, - "doc" : "The type of the ownership" - }, { - "name" : "source", - "type" : [ "null", { - "type" : "record", - "name" : "OwnershipSource", - "doc" : "Source/provider of the ownership information", - "fields" : [ { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "OwnershipSourceType", - "symbols" : [ "AUDIT", "DATABASE", "FILE_SYSTEM", "ISSUE_TRACKING_SYSTEM", "MANUAL", "SERVICE", "SOURCE_CONTROL", "OTHER" ], - "symbolDocs" : { - "AUDIT" : "Auditing system or audit logs", - "DATABASE" : "Database, e.g. GRANTS table", - "FILE_SYSTEM" : "File system, e.g. file/directory owner", - "ISSUE_TRACKING_SYSTEM" : "Issue tracking system, e.g. Jira", - "MANUAL" : "Manually provided by a user", - "OTHER" : "Other sources", - "SERVICE" : "Other ownership-like service, e.g. Nuage, ACL service etc", - "SOURCE_CONTROL" : "SCM system, e.g. GIT, SVN" - } - }, - "doc" : "The type of the source" - }, { - "name" : "url", - "type" : [ "null", "string" ], - "doc" : "A reference URL for the source", - "default" : null - } ] - } ], - "doc" : "Source information for the ownership", - "default" : null - } ] - } - }, - "doc" : "List of owners of the entity." - }, { - "name" : "lastModified", - "type" : "AuditStamp", - "doc" : "Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data.", - "default" : { - "actor" : "urn:li:corpuser:unknown", - "impersonator" : null, - "time" : 0, - "message" : null - } - } ], - "Aspect" : { - "name" : "ownership" - } - }, { - "type" : "record", - "name" : "Status", - "namespace" : "com.linkedin.common", - "doc" : "The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\nThis aspect is used to represent soft deletes conventionally.", - "fields" : [ { - "name" : "removed", - "type" : "boolean", - "doc" : "Whether the entity has been removed (soft-deleted).", - "default" : false, - "Searchable" : { - "fieldType" : "BOOLEAN" - } - } ], - "Aspect" : { - "name" : "status" - } - }, { - "type" : "record", - "name" : "GlobalTags", - "namespace" : "com.linkedin.common", - "doc" : "Tag aspect used for applying tags to an entity", - "fields" : [ { - "name" : "tags", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "TagAssociation", - "doc" : "Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\npropagation parameters.", - "fields" : [ { - "name" : "tag", - "type" : "string", - "doc" : "Urn of the applied tag", - "Relationship" : { - "entityTypes" : [ "tag" ], - "name" : "TaggedWith" - }, - "Searchable" : { - "addToFilters" : true, - "fieldName" : "tags", - "fieldType" : "URN", - "filterNameOverride" : "Tag", - "hasValuesFieldName" : "hasTags" - }, - "java" : { - "class" : "com.linkedin.common.urn.TagUrn" - } - }, { - "name" : "context", - "type" : [ "null", "string" ], - "doc" : "Additional context about the association", - "default" : null - } ] - } - }, - "doc" : "Tags associated with a given entity", - "Searchable" : { - "/*/tag" : { - "addToFilters" : true, - "boostScore" : 0.5, - "fieldName" : "tags", - "fieldType" : "URN", - "queryByDefault" : true - } - } - } ], - "Aspect" : { - "name" : "globalTags" - } - }, { - "type" : "record", - "name" : "BrowsePaths", - "namespace" : "com.linkedin.common", - "doc" : "Shared aspect containing Browse Paths to be indexed for an entity.", - "fields" : [ { - "name" : "paths", - "type" : { - "type" : "array", - "items" : "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" - } - }, { - "type" : "record", - "name" : "GlossaryTerms", - "namespace" : "com.linkedin.common", - "doc" : "Related business terms information", - "fields" : [ { - "name" : "terms", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "GlossaryTermAssociation", - "doc" : "Properties of an applied glossary term.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "Urn of the applied glossary term", - "Relationship" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "TermedWith" - }, - "Searchable" : { - "addToFilters" : true, - "fieldName" : "glossaryTerms", - "fieldType" : "URN", - "filterNameOverride" : "Glossary Term", - "hasValuesFieldName" : "hasGlossaryTerms" - }, - "java" : { - "class" : "com.linkedin.common.urn.GlossaryTermUrn" - } - }, { - "name" : "context", - "type" : [ "null", "string" ], - "doc" : "Additional context about the association", - "default" : null - } ] - } - }, - "doc" : "The related business terms" - }, { - "name" : "auditStamp", - "type" : "AuditStamp", - "doc" : "Audit stamp containing who reported the related business term" - } ], - "Aspect" : { - "name" : "glossaryTerms" - } - }, { - "type" : "record", - "name" : "InstitutionalMemory", - "namespace" : "com.linkedin.common", - "doc" : "Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.", - "fields" : [ { - "name" : "elements", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "InstitutionalMemoryMetadata", - "doc" : "Metadata corresponding to a record of institutional memory.", - "fields" : [ { - "name" : "url", - "type" : "string", - "doc" : "Link to an engineering design document or a wiki page.", - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "description", - "type" : "string", - "doc" : "Description of the link." - }, { - "name" : "createStamp", - "type" : "AuditStamp", - "doc" : "Audit stamp associated with creation of this record" - } ] - } - }, - "doc" : "List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record." - } ], - "Aspect" : { - "name" : "institutionalMemory" - } - }, { - "type" : "record", - "name" : "DataPlatformInstance", - "namespace" : "com.linkedin.common", - "doc" : "The specific instance of the data platform that this entity belongs to", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Data Platform", - "Searchable" : { - "addToFilters" : true, - "fieldType" : "URN", - "filterNameOverride" : "Platform" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "instance", - "type" : [ "null", "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.common.urn.Urn" - } - } ], - "Aspect" : { - "name" : "dataPlatformInstance" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the chart. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "chartKey", - "name" : "chart" - } - }, { - "type" : "record", - "name" : "CorpGroupSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific CorpGroup entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.CorpGroupUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "CorpGroupKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a CorpGroup", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub.", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - } ], - "Aspect" : { - "name" : "corpGroupKey" - } - }, { - "type" : "record", - "name" : "CorpGroupInfo", - "namespace" : "com.linkedin.identity", - "doc" : "Information about a Corp Group ingested from a third party source", - "fields" : [ { - "name" : "displayName", - "type" : [ "null", "string" ], - "doc" : "The name of the group.", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - }, { - "name" : "email", - "type" : [ "null", "string" ], - "doc" : "email of this group", - "default" : null - }, { - "name" : "admins", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "owners of this group\nDeprecated! Replaced by Ownership aspect.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "corpuser" ], - "name" : "OwnedBy" - } - }, - "deprecated" : true - }, { - "name" : "members", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "List of ldap urn in this group.\nDeprecated! Replaced by GroupMembership aspect.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "corpuser" ], - "name" : "IsPartOf" - } - }, - "deprecated" : true - }, { - "name" : "groups", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "List of groups in this group.\nDeprecated! This field is unused.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "corpGroup" ], - "name" : "IsPartOf" - } - }, - "deprecated" : true - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "A description of the group.", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "slack", - "type" : [ "null", "string" ], - "doc" : "Slack channel for the group", - "default" : null - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.AuditStamp" ], - "doc" : "Created Audit stamp", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "createdTime", - "fieldType" : "DATETIME" - } - } - } ], - "Aspect" : { - "EntityUrns" : [ "com.linkedin.common.CorpGroupUrn" ], - "name" : "corpGroupInfo" - } - }, "com.linkedin.common.GlobalTags", "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the LdapUser. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "corpGroupKey", - "name" : "corpGroup" - } - }, { - "type" : "record", - "name" : "CorpUserSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific CorpUser entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.CorpuserUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "CorpUserKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a CorpUser", - "fields" : [ { - "name" : "username", - "type" : "string", - "doc" : "The name of the AD/LDAP user.", - "Searchable" : { - "boostScore" : 2.0, - "enableAutocomplete" : true, - "fieldName" : "ldap", - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "corpUserKey" - } - }, { - "type" : "record", - "name" : "CorpUserInfo", - "namespace" : "com.linkedin.identity", - "doc" : "Linkedin corp user information", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "active", - "type" : "boolean", - "doc" : "Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools", - "Searchable" : { - "fieldType" : "BOOLEAN", - "weightsPerFieldValue" : { - "true" : 2.0 - } - } - }, { - "name" : "displayName", - "type" : [ "null", "string" ], - "doc" : "displayName of this user , e.g. Hang Zhang(DataHQ)", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - }, { - "name" : "email", - "type" : [ "null", "string" ], - "doc" : "email address of this user", - "default" : null, - "Searchable" : { - "fieldType" : "KEYWORD", - "queryByDefault" : true - } - }, { - "name" : "title", - "type" : [ "null", "string" ], - "doc" : "title of this user", - "default" : null, - "Searchable" : { - "fieldType" : "KEYWORD", - "queryByDefault" : true - } - }, { - "name" : "managerUrn", - "type" : [ "null", "string" ], - "doc" : "direct manager of this user", - "default" : null, - "Relationship" : { - "entityTypes" : [ "corpuser" ], - "name" : "ReportsTo" - }, - "Searchable" : { - "fieldName" : "managerLdap", - "fieldType" : "URN", - "queryByDefault" : true - }, - "java" : { - "class" : "com.linkedin.common.urn.CorpuserUrn" - } - }, { - "name" : "departmentId", - "type" : [ "null", "long" ], - "doc" : "department id this user belong to", - "default" : null - }, { - "name" : "departmentName", - "type" : [ "null", "string" ], - "doc" : "department name this user belong to", - "default" : null - }, { - "name" : "firstName", - "type" : [ "null", "string" ], - "doc" : "first name of this user", - "default" : null - }, { - "name" : "lastName", - "type" : [ "null", "string" ], - "doc" : "last name of this user", - "default" : null - }, { - "name" : "fullName", - "type" : [ "null", "string" ], - "doc" : "Common name of this user, format is firstName + lastName (split by a whitespace)", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - }, { - "name" : "countryCode", - "type" : [ "null", "string" ], - "doc" : "two uppercase letters country code. e.g. US", - "default" : null - } ], - "Aspect" : { - "EntityUrns" : [ "com.linkedin.common.CorpuserUrn" ], - "name" : "corpUserInfo" - } - }, { - "type" : "record", - "name" : "CorpUserEditableInfo", - "namespace" : "com.linkedin.identity", - "doc" : "Linkedin corp user information that can be edited from UI", - "fields" : [ { - "name" : "aboutMe", - "type" : [ "null", "string" ], - "doc" : "About me section of the user", - "default" : null - }, { - "name" : "teams", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Teams that the user belongs to e.g. Metadata", - "default" : [ ], - "Searchable" : { - "/*" : { - "fieldType" : "TEXT" - } - } - }, { - "name" : "skills", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Skills that the user possesses e.g. Machine Learning", - "default" : [ ], - "Searchable" : { - "/*" : { - "fieldType" : "TEXT" - } - } - }, { - "name" : "pictureLink", - "type" : "string", - "doc" : "A URL which points to a picture which user wants to set as a profile photo", - "default" : "https://raw.githubusercontent.com/datahub-project/datahub/master/datahub-web-react/src/images/default_avatar.png", - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "displayName", - "type" : [ "null", "string" ], - "doc" : "DataHub-native display name", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - }, { - "name" : "title", - "type" : [ "null", "string" ], - "doc" : "DataHub-native Title, e.g. 'Software Engineer'", - "default" : null - }, { - "name" : "slack", - "type" : [ "null", "string" ], - "doc" : "Slack handle for the user", - "default" : null - }, { - "name" : "phone", - "type" : [ "null", "string" ], - "doc" : "Phone number to contact the user", - "default" : null - }, { - "name" : "email", - "type" : [ "null", "string" ], - "doc" : "Email address to contact the user", - "default" : null - } ], - "Aspect" : { - "EntityUrns" : [ "com.linkedin.common.CorpuserUrn" ], - "name" : "corpUserEditableInfo" - } - }, { - "type" : "record", - "name" : "CorpUserStatus", - "namespace" : "com.linkedin.identity", - "doc" : "The status of the user, e.g. provisioned, active, suspended, etc.", - "fields" : [ { - "name" : "status", - "type" : "string", - "doc" : "Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED", - "Searchable" : { - "fieldType" : "KEYWORD" - } - }, { - "name" : "lastModified", - "type" : "com.linkedin.common.AuditStamp", - "doc" : "Audit stamp containing who last modified the status and when." - } ], - "Aspect" : { - "name" : "corpUserStatus" - } - }, { - "type" : "record", - "name" : "GroupMembership", - "namespace" : "com.linkedin.identity", - "doc" : "Carries information about the CorpGroups a user is in.", - "fields" : [ { - "name" : "groups", - "type" : { - "type" : "array", - "items" : "string" - }, - "Relationship" : { - "/*" : { - "entityTypes" : [ "corpGroup" ], - "name" : "IsMemberOfGroup" - } - } - } ], - "Aspect" : { - "name" : "groupMembership" - } - }, "com.linkedin.common.GlobalTags", "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the CorpUser. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "corpUserKey", - "name" : "corpuser" - } - }, { - "type" : "record", - "name" : "DashboardSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific Dashboard entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DashboardUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DashboardKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Dashboard", - "fields" : [ { - "name" : "dashboardTool", - "type" : "string", - "doc" : "The name of the dashboard tool such as looker, redash etc.", - "Searchable" : { - "boostScore" : 4.0, - "fieldName" : "tool", - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "dashboardId", - "type" : "string", - "doc" : "Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234'" - } ], - "Aspect" : { - "name" : "dashboardKey" - } - }, { - "type" : "record", - "name" : "DashboardInfo", - "namespace" : "com.linkedin.dashboard", - "doc" : "Information about a dashboard", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "title", - "type" : "string", - "doc" : "Title of the dashboard", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : "string", - "doc" : "Detailed description about the dashboard", - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "charts", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Charts in a dashboard\nDeprecated! Use chartEdges instead.", - "default" : [ ], - "Relationship" : { - "/*" : { - "entityTypes" : [ "chart" ], - "isLineage" : true, - "name" : "Contains" - } - }, - "deprecated" : true - }, { - "name" : "chartEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Charts in a dashboard", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "chartEdges/*/created/actor", - "createdOn" : "chartEdges/*/created/time", - "entityTypes" : [ "chart" ], - "isLineage" : true, - "name" : "Contains", - "properties" : "chartEdges/*/properties", - "updatedActor" : "chartEdges/*/lastModified/actor", - "updatedOn" : "chartEdges/*/lastModified/time" - } - } - }, { - "name" : "datasets", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Datasets consumed by a dashboard\nDeprecated! Use datasetEdges instead.", - "default" : [ ], - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes" - } - }, - "deprecated" : true - }, { - "name" : "datasetEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Datasets consumed by a dashboard", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "datasetEdges/*/created/actor", - "createdOn" : "datasetEdges/*/created/time", - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes", - "properties" : "datasetEdges/*/properties", - "updatedActor" : "datasetEdges/*/lastModified/actor", - "updatedOn" : "datasetEdges/*/lastModified/time" - } - } - }, { - "name" : "lastModified", - "type" : "com.linkedin.common.ChangeAuditStamps", - "doc" : "Captures information about who created/last modified/deleted this dashboard and when" - }, { - "name" : "dashboardUrl", - "type" : [ "null", "string" ], - "doc" : "URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "access", - "type" : [ "null", "com.linkedin.common.AccessLevel" ], - "doc" : "Access level for the dashboard", - "default" : null, - "Searchable" : { - "addToFilters" : true, - "fieldType" : "KEYWORD", - "filterNameOverride" : "Access Level" - } - }, { - "name" : "lastRefreshed", - "type" : [ "null", "long" ], - "doc" : "The time when this dashboard last refreshed", - "default" : null - } ], - "Aspect" : { - "name" : "dashboardInfo" - } - }, { - "type" : "record", - "name" : "EditableDashboardProperties", - "namespace" : "com.linkedin.dashboard", - "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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Edited documentation of the dashboard", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableDashboardProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.GlobalTags", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlossaryTerms", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the dashboard. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dashboardKey", - "name" : "dashboard" - } - }, { - "type" : "record", - "name" : "DataFlowSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific DataFlow entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DataFlowUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataFlowKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Data Flow", - "fields" : [ { - "name" : "orchestrator", - "type" : "string", - "doc" : "Workflow manager like azkaban, airflow which orchestrates the flow", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "flowId", - "type" : "string", - "doc" : "Unique Identifier of the data flow", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "cluster", - "type" : "string", - "doc" : "Cluster where the flow is executed", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "dataFlowKey" - } - }, { - "type" : "record", - "name" : "DataFlowInfo", - "namespace" : "com.linkedin.datajob", - "doc" : "Information about a Data processing flow", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Flow name", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Flow description", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "project", - "type" : [ "null", "string" ], - "doc" : "Optional project/namespace associated with the flow", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : false - } - }, { - "name" : "created", - "type" : [ "null", { - "type" : "record", - "name" : "TimeStamp", - "namespace" : "com.linkedin.common", - "doc" : "A standard event timestamp", - "fields" : [ { - "name" : "time", - "type" : "long", - "doc" : "When did the event occur" - }, { - "name" : "actor", - "type" : [ "null", "string" ], - "doc" : "Optional: The actor urn involved in the event.", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - } ] - } ], - "doc" : "A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "createdAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "lastModified", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "lastModifiedAt", - "fieldType" : "DATETIME" - } - } - } ], - "Aspect" : { - "name" : "dataFlowInfo" - } - }, { - "type" : "record", - "name" : "EditableDataFlowProperties", - "namespace" : "com.linkedin.datajob", - "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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Edited documentation of the data flow", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableDataFlowProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.GlobalTags", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlossaryTerms", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the data flow. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dataFlowKey", - "name" : "dataFlow" - } - }, { - "type" : "record", - "name" : "DataJobSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific DataJob entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DataJobUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataJobKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Data Job", - "fields" : [ { - "name" : "flow", - "type" : "string", - "doc" : "Standardized data processing flow urn representing the flow for the job", - "Relationship" : { - "entityTypes" : [ "dataFlow" ], - "name" : "IsPartOf" - }, - "Searchable" : { - "fieldName" : "dataFlow", - "fieldType" : "URN_PARTIAL", - "queryByDefault" : false - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "jobId", - "type" : "string", - "doc" : "Unique Identifier of the data job", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "dataJobKey" - } - }, { - "type" : "record", - "name" : "DataJobInfo", - "namespace" : "com.linkedin.datajob", - "doc" : "Information about a Data processing job", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Job name", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Job description", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "type", - "type" : [ { - "type" : "enum", - "name" : "AzkabanJobType", - "namespace" : "com.linkedin.datajob.azkaban", - "doc" : "The various types of support azkaban jobs", - "symbols" : [ "COMMAND", "HADOOP_JAVA", "HADOOP_SHELL", "HIVE", "PIG", "SQL", "GLUE" ], - "symbolDocs" : { - "COMMAND" : "The command job type is one of the basic built-in types. It runs multiple UNIX commands using java processbuilder.\nUpon execution, Azkaban spawns off a process to run the command.", - "GLUE" : "Glue type is for running AWS Glue job transforms.", - "HADOOP_JAVA" : "Runs a java program with ability to access Hadoop cluster.\nhttps://azkaban.readthedocs.io/en/latest/jobTypes.html#java-job-type", - "HADOOP_SHELL" : "In large part, this is the same Command type. The difference is its ability to talk to a Hadoop cluster\nsecurely, via Hadoop tokens.", - "HIVE" : "Hive type is for running Hive jobs.", - "PIG" : "Pig type is for running Pig jobs.", - "SQL" : "SQL is for running Presto, mysql queries etc" - } - }, "string" ], - "doc" : "Datajob type\n*NOTE**: AzkabanJobType is deprecated. Please use strings instead." - }, { - "name" : "flowUrn", - "type" : [ "null", "string" ], - "doc" : "DataFlow urn that this job is part of", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.DataFlowUrn" - } - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "createdAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "lastModified", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "lastModifiedAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "status", - "type" : [ "null", { - "type" : "enum", - "name" : "JobStatus", - "doc" : "Job statuses", - "symbols" : [ "STARTING", "IN_PROGRESS", "STOPPING", "STOPPED", "COMPLETED", "FAILED", "UNKNOWN", "SKIPPED" ], - "symbolDocs" : { - "COMPLETED" : "Jobs with successful completion.", - "FAILED" : "Jobs that have failed.", - "IN_PROGRESS" : "Jobs currently running.", - "SKIPPED" : "Jobs that have been skipped.", - "STARTING" : "Jobs being initialized.", - "STOPPED" : "Jobs that have stopped.", - "STOPPING" : "Jobs being stopped.", - "UNKNOWN" : "Jobs with unknown status (either unmappable or unavailable)" - } - } ], - "doc" : "Status of the job - Deprecated for Data Process Instance model.", - "default" : null, - "deprecated" : "Use Data Process Instance model, instead" - } ], - "Aspect" : { - "name" : "dataJobInfo" - } - }, { - "type" : "record", - "name" : "DataJobInputOutput", - "namespace" : "com.linkedin.datajob", - "doc" : "Information about the inputs and outputs of a Data processing job", - "fields" : [ { - "name" : "inputDatasets", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Input datasets consumed by the data job during processing\nDeprecated! Use inputDatasetEdges instead.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "inputs", - "fieldType" : "URN", - "numValuesFieldName" : "numInputDatasets", - "queryByDefault" : false - } - }, - "deprecated" : true - }, { - "name" : "inputDatasetEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Input datasets consumed by the data job during processing", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "inputDatasetEdges/*/created/actor", - "createdOn" : "inputDatasetEdges/*/created/time", - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes", - "properties" : "inputDatasetEdges/*/properties", - "updatedActor" : "inputDatasetEdges/*/lastModified/actor", - "updatedOn" : "inputDatasetEdges/*/lastModified/time" - } - }, - "Searchable" : { - "/*/destinationUrn" : { - "fieldName" : "inputDatasetEdges", - "fieldType" : "URN", - "numValuesFieldName" : "numInputDatasets", - "queryByDefault" : false - } - } - }, { - "name" : "outputDatasets", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Output datasets produced by the data job during processing\nDeprecated! Use outputDatasetEdges instead.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "isUpstream" : false, - "name" : "Produces" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "outputs", - "fieldType" : "URN", - "numValuesFieldName" : "numOutputDatasets", - "queryByDefault" : false - } - }, - "deprecated" : true - }, { - "name" : "outputDatasetEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Output datasets produced by the data job during processing", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "outputDatasetEdges/*/created/actor", - "createdOn" : "outputDatasetEdges/*/created/time", - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "isUpstream" : false, - "name" : "Produces", - "properties" : "outputDatasetEdges/*/properties", - "updatedActor" : "outputDatasetEdges/*/lastModified/actor", - "updatedOn" : "outputDatasetEdges/*/lastModified/time" - } - }, - "Searchable" : { - "/*/destinationUrn" : { - "fieldName" : "outputDatasetEdges", - "fieldType" : "URN", - "numValuesFieldName" : "numOutputDatasets", - "queryByDefault" : false - } - } - }, { - "name" : "inputDatajobs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Input datajobs that this data job depends on\nDeprecated! Use inputDatajobEdges instead.", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataJob" ], - "isLineage" : true, - "name" : "DownstreamOf" - } - }, - "deprecated" : true - }, { - "name" : "inputDatajobEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Input datajobs that this data job depends on", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "inputDatajobEdges/*/created/actor", - "createdOn" : "inputDatajobEdges/*/created/time", - "entityTypes" : [ "dataJob" ], - "isLineage" : true, - "name" : "DownstreamOf", - "properties" : "inputDatajobEdges/*/properties", - "updatedActor" : "inputDatajobEdges/*/lastModified/actor", - "updatedOn" : "inputDatajobEdges/*/lastModified/time" - } - } - }, { - "name" : "inputDatasetFields", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Fields of the input datasets used by this job", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "schemaField" ], - "name" : "Consumes" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "inputFields", - "fieldType" : "URN", - "numValuesFieldName" : "numInputFields", - "queryByDefault" : false - } - } - }, { - "name" : "outputDatasetFields", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Fields of the output datasets this job writes to", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "schemaField" ], - "name" : "Produces" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "outputFields", - "fieldType" : "URN", - "numValuesFieldName" : "numOutputFields", - "queryByDefault" : false - } - } - }, { - "name" : "fineGrainedLineages", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "FineGrainedLineage", - "namespace" : "com.linkedin.dataset", - "doc" : "A fine-grained lineage from upstream fields/datasets to downstream field(s)", - "fields" : [ { - "name" : "upstreamType", - "type" : { - "type" : "enum", - "name" : "FineGrainedLineageUpstreamType", - "doc" : "The type of upstream entity in a fine-grained lineage", - "symbols" : [ "FIELD_SET", "DATASET", "NONE" ], - "symbolDocs" : { - "DATASET" : " Indicates that this lineage is originating from upstream dataset(s)", - "FIELD_SET" : " Indicates that this lineage is originating from upstream field(s)", - "NONE" : " Indicates that there is no upstream lineage i.e. the downstream field is not a derived field" - } - }, - "doc" : "The type of upstream entity" - }, { - "name" : "upstreams", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Upstream entities in the lineage", - "default" : null - }, { - "name" : "downstreamType", - "type" : { - "type" : "enum", - "name" : "FineGrainedLineageDownstreamType", - "doc" : "The type of downstream field(s) in a fine-grained lineage", - "symbols" : [ "FIELD", "FIELD_SET" ], - "symbolDocs" : { - "FIELD" : " Indicates that the lineage is for a single, specific, downstream field", - "FIELD_SET" : " Indicates that the lineage is for a set of downstream fields" - } - }, - "doc" : "The type of downstream field(s)" - }, { - "name" : "downstreams", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Downstream fields in the lineage", - "default" : null - }, { - "name" : "transformOperation", - "type" : [ "null", "string" ], - "doc" : "The transform operation applied to the upstream entities to produce the downstream field(s)", - "default" : null - }, { - "name" : "confidenceScore", - "type" : "float", - "doc" : "The confidence in this lineage between 0 (low confidence) and 1 (high confidence)", - "default" : 1.0 - } ] - } - } ], - "doc" : "Fine-grained column-level lineages", - "default" : null - } ], - "Aspect" : { - "name" : "dataJobInputOutput" - } - }, { - "type" : "record", - "name" : "EditableDataJobProperties", - "namespace" : "com.linkedin.datajob", - "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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Edited documentation of the data job ", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableDataJobProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.GlobalTags", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlossaryTerms", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the data job. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dataJobKey", - "name" : "dataJob" - } - }, { - "type" : "record", - "name" : "DatasetSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific dataset entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DatasetKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Dataset", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Data platform urn associated with the dataset", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "URN" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Unique guid for dataset", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldName" : "id", - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : { - "type" : "enum", - "name" : "FabricType", - "namespace" : "com.linkedin.common", - "doc" : "Fabric group type", - "symbols" : [ "DEV", "TEST", "QA", "UAT", "EI", "PRE", "STG", "NON_PROD", "PROD", "CORP" ], - "symbolDocs" : { - "CORP" : "Designates corporation fabrics", - "DEV" : "Designates development fabrics", - "EI" : "Designates early-integration fabrics", - "NON_PROD" : "Designates non-production fabrics", - "PRE" : "Designates pre-production fabrics", - "PROD" : "Designates production fabrics", - "QA" : "Designates quality assurance fabrics", - "STG" : "Designates staging fabrics", - "TEST" : "Designates testing fabrics", - "UAT" : "Designates user acceptance testing fabrics" - } - }, - "doc" : "Fabric type where dataset belongs to or where it was generated.", - "Searchable" : { - "addToFilters" : true, - "fieldType" : "TEXT_PARTIAL", - "filterNameOverride" : "Environment", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "datasetKey" - } - }, { - "type" : "record", - "name" : "DatasetProperties", - "namespace" : "com.linkedin.dataset", - "doc" : "Properties associated with a Dataset", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "name", - "type" : [ "null", "string" ], - "doc" : "Display name of the Dataset", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "qualifiedName", - "type" : [ "null", "string" ], - "doc" : "Fully-qualified name of the Dataset", - "default" : null, - "Searchable" : { - "addToFilters" : false, - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the dataset", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "uri", - "type" : [ "null", "string" ], - "doc" : "The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic).", - "default" : null, - "deprecated" : "Use ExternalReference.externalUrl field instead.", - "java" : { - "class" : "java.net.URI" - } - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "createdAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "lastModified", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "lastModifiedAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "tags", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "[Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect.\nThis is now deprecated.", - "default" : [ ], - "deprecated" : "Use GlobalTags aspect instead." - } ], - "Aspect" : { - "name" : "datasetProperties" - } - }, { - "type" : "record", - "name" : "EditableDatasetProperties", - "namespace" : "com.linkedin.dataset", - "doc" : "EditableDatasetProperties stores editable changes made to dataset 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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Documentation of the dataset", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableDatasetProperties" - } - }, { - "type" : "record", - "name" : "DatasetDeprecation", - "namespace" : "com.linkedin.dataset", - "doc" : "Dataset deprecation status\nDeprecated! This aspect is deprecated in favor of the more-general-purpose 'Deprecation' aspect.", - "fields" : [ { - "name" : "deprecated", - "type" : "boolean", - "doc" : "Whether the dataset is deprecated by owner.", - "Searchable" : { - "fieldType" : "BOOLEAN", - "weightsPerFieldValue" : { - "true" : 0.5 - } - } - }, { - "name" : "decommissionTime", - "type" : [ "null", "long" ], - "doc" : "The time user plan to decommission this dataset.", - "default" : null - }, { - "name" : "note", - "type" : "string", - "doc" : "Additional information about the dataset deprecation plan, such as the wiki, doc, RB." - }, { - "name" : "actor", - "type" : [ "null", "string" ], - "doc" : "The corpuser URN which will be credited for modifying this deprecation content.", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - } ], - "Aspect" : { - "name" : "datasetDeprecation" - }, - "Deprecated" : true - }, { - "type" : "record", - "name" : "DatasetUpstreamLineage", - "namespace" : "com.linkedin.dataset", - "doc" : "Fine Grained upstream lineage for fields in a dataset", - "fields" : [ { - "name" : "fieldMappings", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "DatasetFieldMapping", - "doc" : "Representation of mapping between fields in source dataset to the field in destination dataset", - "fields" : [ { - "name" : "created", - "type" : "com.linkedin.common.AuditStamp", - "doc" : "Audit stamp containing who reported the field mapping and when" - }, { - "name" : "transformation", - "type" : [ { - "type" : "enum", - "name" : "TransformationType", - "namespace" : "com.linkedin.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.common.fieldtransformer", - "doc" : "Field transformation expressed in UDF", - "fields" : [ { - "name" : "udf", - "type" : "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" - }, { - "name" : "sourceFields", - "type" : { - "type" : "array", - "items" : [ "string" ] - }, - "doc" : "Source fields from which the fine grained lineage is derived" - }, { - "name" : "destinationField", - "type" : "string", - "doc" : "Destination field which is derived from source fields", - "deprecated" : "use SchemaFieldPath and represent as generic Urn instead", - "java" : { - "class" : "com.linkedin.common.urn.DatasetFieldUrn" - } - } ], - "deprecated" : "use FineGrainedLineage instead" - } - }, - "doc" : "Upstream to downstream field level lineage mappings" - } ], - "Aspect" : { - "name" : "datasetUpstreamLineage" - }, - "deprecated" : "use UpstreamLineage.fineGrainedLineages instead" - }, { - "type" : "record", - "name" : "UpstreamLineage", - "namespace" : "com.linkedin.dataset", - "doc" : "Upstream lineage of a dataset", - "fields" : [ { - "name" : "upstreams", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "Upstream", - "doc" : "Upstream lineage information about a dataset including the source reporting the lineage", - "fields" : [ { - "name" : "auditStamp", - "type" : "com.linkedin.common.AuditStamp", - "doc" : "Audit stamp containing who reported the lineage and when.", - "default" : { - "actor" : "urn:li:corpuser:unknown", - "impersonator" : null, - "time" : 0, - "message" : null - } - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.AuditStamp" ], - "doc" : "Audit stamp containing who created the lineage and when.", - "default" : null - }, { - "name" : "dataset", - "type" : "string", - "doc" : "The upstream dataset the lineage points to", - "Relationship" : { - "createdActor" : "upstreams/*/created/actor", - "createdOn" : "upstreams/*/created/time", - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "DownstreamOf", - "properties" : "upstreams/*/properties", - "updatedActor" : "upstreams/*/auditStamp/actor", - "updatedOn" : "upstreams/*/auditStamp/time" - }, - "Searchable" : { - "fieldName" : "upstreams", - "fieldType" : "URN", - "queryByDefault" : false - }, - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "DatasetLineageType", - "doc" : "The various types of supported dataset lineage", - "symbols" : [ "COPY", "TRANSFORMED", "VIEW" ], - "symbolDocs" : { - "COPY" : "Direct copy without modification", - "TRANSFORMED" : "Transformed data with modification (format or content change)", - "VIEW" : "Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources" - } - }, - "doc" : "The type of the lineage" - }, { - "name" : "properties", - "type" : [ "null", { - "type" : "map", - "values" : "string" - } ], - "doc" : "A generic properties bag that allows us to store specific information on this graph edge.", - "default" : null - } ] - } - }, - "doc" : "List of upstream dataset lineage information" - }, { - "name" : "fineGrainedLineages", - "type" : [ "null", { - "type" : "array", - "items" : "FineGrainedLineage" - } ], - "doc" : " List of fine-grained lineage information, including field-level lineage", - "default" : null, - "Relationship" : { - "/*/upstreams/*" : { - "entityTypes" : [ "dataset", "schemaField" ], - "name" : "DownstreamOf" - } - } - } ], - "Aspect" : { - "name" : "upstreamLineage" - } - }, "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.Ownership", "com.linkedin.common.Status", { - "type" : "record", - "name" : "SchemaMetadata", - "namespace" : "com.linkedin.schema", - "doc" : "SchemaMetadata to describe metadata related to store schema", - "fields" : [ { - "name" : "schemaName", - "type" : "string", - "doc" : "Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking", - "validate" : { - "strlen" : { - "max" : 500, - "min" : 1 - } - } - }, { - "name" : "platform", - "type" : "string", - "doc" : "Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name})", - "java" : { - "class" : "com.linkedin.common.urn.DataPlatformUrn" - } - }, { - "name" : "version", - "type" : "long", - "doc" : "Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version." - }, { - "name" : "created", - "type" : "com.linkedin.common.AuditStamp", - "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.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.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" : "dataset", - "type" : [ "null", "string" ], - "doc" : "Dataset this schema metadata is associated with.", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "cluster", - "type" : [ "null", "string" ], - "doc" : "The cluster this schema metadata resides from", - "default" : null - }, { - "name" : "hash", - "type" : "string", - "doc" : "the SHA1 hash of the schema content" - }, { - "name" : "platformSchema", - "type" : [ { - "type" : "record", - "name" : "EspressoSchema", - "doc" : "Schema text of an espresso table schema.", - "fields" : [ { - "name" : "documentSchema", - "type" : "string", - "doc" : "The native espresso document schema." - }, { - "name" : "tableSchema", - "type" : "string", - "doc" : "The espresso table schema definition." - } ] - }, { - "type" : "record", - "name" : "OracleDDL", - "doc" : "Schema holder for oracle data definition language that describes an oracle table.", - "fields" : [ { - "name" : "tableSchema", - "type" : "string", - "doc" : "The native schema in the dataset's platform. This is a human readable (json blob) table schema." - } ] - }, { - "type" : "record", - "name" : "MySqlDDL", - "doc" : "Schema holder for MySql data definition language that describes an MySql table.", - "fields" : [ { - "name" : "tableSchema", - "type" : "string", - "doc" : "The native schema in the dataset's platform. This is a human readable (json blob) table schema." - } ] - }, { - "type" : "record", - "name" : "PrestoDDL", - "doc" : "Schema holder for presto data definition language that describes a presto view.", - "fields" : [ { - "name" : "rawSchema", - "type" : "string", - "doc" : "The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL." - } ] - }, { - "type" : "record", - "name" : "KafkaSchema", - "doc" : "Schema holder for kafka schema.", - "fields" : [ { - "name" : "documentSchema", - "type" : "string", - "doc" : "The native kafka document schema. This is a human readable avro document schema." - }, { - "name" : "keySchema", - "type" : [ "null", "string" ], - "doc" : "The native kafka key schema as retrieved from Schema Registry", - "default" : null - } ] - }, { - "type" : "record", - "name" : "BinaryJsonSchema", - "doc" : "Schema text of binary JSON schema.", - "fields" : [ { - "name" : "schema", - "type" : "string", - "doc" : "The native schema text for binary JSON file format." - } ] - }, { - "type" : "record", - "name" : "OrcSchema", - "doc" : "Schema text of an ORC schema.", - "fields" : [ { - "name" : "schema", - "type" : "string", - "doc" : "The native schema for ORC file format." - } ] - }, { - "type" : "record", - "name" : "Schemaless", - "doc" : "The dataset has no specific schema associated with it", - "fields" : [ ] - }, { - "type" : "record", - "name" : "KeyValueSchema", - "doc" : "Schema text of a key-value store schema.", - "fields" : [ { - "name" : "keySchema", - "type" : "string", - "doc" : "The raw schema for the key in the key-value store." - }, { - "name" : "valueSchema", - "type" : "string", - "doc" : "The raw schema for the value in the key-value store." - } ] - }, { - "type" : "record", - "name" : "OtherSchema", - "doc" : "Schema holder for undefined schema types.", - "fields" : [ { - "name" : "rawSchema", - "type" : "string", - "doc" : "The native schema in the dataset's platform." - } ] - } ], - "doc" : "The native schema in the dataset's platform." - }, { - "name" : "fields", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "SchemaField", - "doc" : "SchemaField to describe metadata related to dataset schema.", - "fields" : [ { - "name" : "fieldPath", - "type" : "string", - "doc" : "Flattened name of the field. Field is computed from jsonPath field.", - "Searchable" : { - "fieldName" : "fieldPaths", - "fieldType" : "TEXT" - } - }, { - "name" : "jsonPath", - "type" : [ "null", "string" ], - "doc" : "Flattened name of a field in JSON Path notation.", - "default" : null, - "Deprecated" : true - }, { - "name" : "nullable", - "type" : "boolean", - "doc" : "Indicates if this field is optional or nullable", - "default" : false - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Description", - "default" : null, - "Searchable" : { - "boostScore" : 0.1, - "fieldName" : "fieldDescriptions", - "fieldType" : "TEXT" - } - }, { - "name" : "label", - "type" : [ "null", "string" ], - "doc" : "Label of the field. Provides a more human-readable name for the field than field path. Some sources will\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\na field in a source, that is most likely a description.", - "default" : null, - "Searchable" : { - "boostScore" : 0.2, - "fieldName" : "fieldLabels", - "fieldType" : "TEXT" - } - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.AuditStamp" ], - "doc" : "An AuditStamp corresponding to the creation of this schema field.", - "default" : null - }, { - "name" : "lastModified", - "type" : [ "null", "com.linkedin.common.AuditStamp" ], - "doc" : "An AuditStamp corresponding to the last modification of this schema field.", - "default" : null - }, { - "name" : "type", - "type" : { - "type" : "record", - "name" : "SchemaFieldDataType", - "doc" : "Schema field data types", - "fields" : [ { - "name" : "type", - "type" : [ { - "type" : "record", - "name" : "BooleanType", - "doc" : "Boolean field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "FixedType", - "doc" : "Fixed field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "StringType", - "doc" : "String field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "BytesType", - "doc" : "Bytes field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "NumberType", - "doc" : "Number data type: long, integer, short, etc..", - "fields" : [ ] - }, { - "type" : "record", - "name" : "DateType", - "doc" : "Date field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "TimeType", - "doc" : "Time field type. This should also be used for datetimes.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "EnumType", - "doc" : "Enum field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "NullType", - "doc" : "Null field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "MapType", - "doc" : "Map field type.", - "fields" : [ { - "name" : "keyType", - "type" : [ "null", "string" ], - "doc" : "Key type in a map", - "default" : null - }, { - "name" : "valueType", - "type" : [ "null", "string" ], - "doc" : "Type of the value in a map", - "default" : null - } ] - }, { - "type" : "record", - "name" : "ArrayType", - "doc" : "Array field type.", - "fields" : [ { - "name" : "nestedType", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of types this array holds.", - "default" : null - } ] - }, { - "type" : "record", - "name" : "UnionType", - "doc" : "Union field type.", - "fields" : [ { - "name" : "nestedTypes", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of types in union type.", - "default" : null - } ] - }, { - "type" : "record", - "name" : "RecordType", - "doc" : "Record field type.", - "fields" : [ ] - } ], - "doc" : "Data platform specific types" - } ] - }, - "doc" : "Platform independent field type of the field." - }, { - "name" : "nativeDataType", - "type" : "string", - "doc" : "The native type of the field in the dataset's platform as declared by platform schema." - }, { - "name" : "recursive", - "type" : "boolean", - "doc" : "There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.", - "default" : false - }, { - "name" : "globalTags", - "type" : [ "null", "com.linkedin.common.GlobalTags" ], - "doc" : "Tags associated with the field", - "default" : null, - "Relationship" : { - "/tags/*/tag" : { - "entityTypes" : [ "tag" ], - "name" : "SchemaFieldTaggedWith" - } - }, - "Searchable" : { - "/tags/*/tag" : { - "boostScore" : 0.5, - "fieldName" : "fieldTags", - "fieldType" : "URN" - } - } - }, { - "name" : "glossaryTerms", - "type" : [ "null", "com.linkedin.common.GlossaryTerms" ], - "doc" : "Glossary terms associated with the field", - "default" : null, - "Relationship" : { - "/terms/*/urn" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "SchemaFieldWithGlossaryTerm" - } - }, - "Searchable" : { - "/terms/*/urn" : { - "boostScore" : 0.5, - "fieldName" : "fieldGlossaryTerms", - "fieldType" : "URN" - } - } - }, { - "name" : "isPartOfKey", - "type" : "boolean", - "doc" : "For schema fields that are part of complex keys, set this field to true\nWe do this to easily distinguish between value and key fields", - "default" : false - }, { - "name" : "isPartitioningKey", - "type" : [ "null", "boolean" ], - "doc" : "For Datasets which are partitioned, this determines the partitioning key.", - "default" : null - }, { - "name" : "jsonProps", - "type" : [ "null", "string" ], - "doc" : "For schema fields that have other properties that are not modeled explicitly,\nuse this field to serialize those properties into a JSON string", - "default" : null - } ] - } - }, - "doc" : "Client provided a list of fields from document schema." - }, { - "name" : "primaryKeys", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath.", - "default" : null - }, { - "name" : "foreignKeysSpecs", - "type" : [ "null", { - "type" : "map", - "values" : { - "type" : "record", - "name" : "ForeignKeySpec", - "doc" : "Description of a foreign key in a schema.", - "fields" : [ { - "name" : "foreignKey", - "type" : [ { - "type" : "record", - "name" : "DatasetFieldForeignKey", - "doc" : "For non-urn based foregin keys.", - "fields" : [ { - "name" : "parentDataset", - "type" : "string", - "doc" : "dataset that stores the resource.", - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "currentFieldPaths", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset." - }, { - "name" : "parentField", - "type" : "string", - "doc" : "SchemaField@fieldPath that uniquely identify field in parent dataset that this field references." - } ] - }, { - "type" : "record", - "name" : "UrnForeignKey", - "doc" : "If SchemaMetadata fields make any external references and references are of type com.linkedin.common.Urn or any children, this models can be used to mark it.", - "fields" : [ { - "name" : "currentFieldPath", - "type" : "string", - "doc" : "Field in hosting(current) SchemaMetadata." - } ] - } ], - "doc" : "Foreign key definition in metadata schema." - } ] - } - } ], - "doc" : "Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref.", - "default" : null, - "deprecated" : "Use foreignKeys instead." - }, { - "name" : "foreignKeys", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "ForeignKeyConstraint", - "doc" : "Description of a foreign key constraint in a schema.", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Name of the constraint, likely provided from the source" - }, { - "name" : "foreignFields", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Fields the constraint maps to on the foreign dataset", - "Relationship" : { - "/*" : { - "entityTypes" : [ "schemaField" ], - "name" : "ForeignKeyTo" - } - } - }, { - "name" : "sourceFields", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Fields the constraint maps to on the source dataset" - }, { - "name" : "foreignDataset", - "type" : "string", - "doc" : "Reference to the foreign dataset for ease of lookup", - "Relationship" : { - "entityTypes" : [ "dataset" ], - "name" : "ForeignKeyToDataset" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - } ] - } - } ], - "doc" : "List of foreign key constraints for the schema", - "default" : null - } ], - "Aspect" : { - "name" : "schemaMetadata" - } - }, { - "type" : "record", - "name" : "EditableSchemaMetadata", - "namespace" : "com.linkedin.schema", - "doc" : "EditableSchemaMetadata stores editable changes made to schema metadata. 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" : "com.linkedin.common.AuditStamp", - "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.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.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" : "editableSchemaFieldInfo", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "EditableSchemaFieldInfo", - "doc" : "SchemaField to describe metadata related to dataset schema.", - "fields" : [ { - "name" : "fieldPath", - "type" : "string", - "doc" : "FieldPath uniquely identifying the SchemaField this metadata is associated with" - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Description", - "default" : null, - "Searchable" : { - "boostScore" : 0.1, - "fieldName" : "editedFieldDescriptions", - "fieldType" : "TEXT" - } - }, { - "name" : "globalTags", - "type" : [ "null", "com.linkedin.common.GlobalTags" ], - "doc" : "Tags associated with the field", - "default" : null, - "Relationship" : { - "/tags/*/tag" : { - "entityTypes" : [ "tag" ], - "name" : "EditableSchemaFieldTaggedWith" - } - }, - "Searchable" : { - "/tags/*/tag" : { - "boostScore" : 0.5, - "fieldName" : "editedFieldTags", - "fieldType" : "URN" - } - } - }, { - "name" : "glossaryTerms", - "type" : [ "null", "com.linkedin.common.GlossaryTerms" ], - "doc" : "Glossary terms associated with the field", - "default" : null, - "Relationship" : { - "/terms/*/urn" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "EditableSchemaFieldWithGlossaryTerm" - } - }, - "Searchable" : { - "/terms/*/urn" : { - "boostScore" : 0.5, - "fieldName" : "editedFieldGlossaryTerms", - "fieldType" : "URN" - } - } - } ] - } - }, - "doc" : "Client provided a list of fields from document schema." - } ], - "Aspect" : { - "name" : "editableSchemaMetadata" - } - }, "com.linkedin.common.GlobalTags", "com.linkedin.common.GlossaryTerms", "com.linkedin.common.BrowsePaths", "com.linkedin.common.DataPlatformInstance", { - "type" : "record", - "name" : "ViewProperties", - "namespace" : "com.linkedin.dataset", - "doc" : "Details about a View. \ne.g. Gets activated when subTypes is view", - "fields" : [ { - "name" : "materialized", - "type" : "boolean", - "doc" : "Whether the view is materialized", - "Searchable" : { - "fieldType" : "BOOLEAN", - "weightsPerFieldValue" : { - "true" : 0.5 - } - } - }, { - "name" : "viewLogic", - "type" : "string", - "doc" : "The view logic" - }, { - "name" : "viewLanguage", - "type" : "string", - "doc" : "The view logic language / dialect" - } ], - "Aspect" : { - "name" : "viewProperties" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "datasetKey", - "name" : "dataset" - } - }, { - "type" : "record", - "name" : "DataProcessSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific Data process entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DataProcessUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataProcessKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Data Process", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Process name i.e. an ETL job name", - "Searchable" : { - "boostScore" : 4.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "orchestrator", - "type" : "string", - "doc" : "Standardized Orchestrator where data process is defined.\nTODO: Migrate towards something that can be validated like DataPlatform urn", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : "com.linkedin.common.FabricType", - "doc" : "Fabric type where dataset belongs to or where it was generated.", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "dataProcessKey" - } - }, "com.linkedin.common.Ownership", { - "type" : "record", - "name" : "DataProcessInfo", - "namespace" : "com.linkedin.dataprocess", - "doc" : "The inputs and outputs of this data process", - "fields" : [ { - "name" : "inputs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "the inputs of the data process", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "inputs", - "fieldType" : "URN", - "numValuesFieldName" : "numInputDatasets", - "queryByDefault" : false - } - } - }, { - "name" : "outputs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "the outputs of the data process", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "outputs", - "fieldType" : "URN", - "numValuesFieldName" : "numOutputDatasets", - "queryByDefault" : false - } - } - } ], - "Aspect" : { - "name" : "dataProcessInfo" - } - }, "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the data process. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dataProcessKey", - "name" : "dataProcess" - }, - "deprecated" : "Use DataJob instead." - }, { - "type" : "record", - "name" : "DataPlatformSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific dataplatform entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DataPlatformUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataPlatformKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Data Platform", - "fields" : [ { - "name" : "platformName", - "type" : "string", - "doc" : "Data platform name i.e. hdfs, oracle, espresso" - } ], - "Aspect" : { - "name" : "dataPlatformKey" - } - }, { - "type" : "record", - "name" : "DataPlatformInfo", - "namespace" : "com.linkedin.dataplatform", - "doc" : "Information about a data platform", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Name of the data platform", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : false, - "fieldType" : "TEXT_PARTIAL" - }, - "validate" : { - "strlen" : { - "max" : 15 - } - } - }, { - "name" : "displayName", - "type" : [ "null", "string" ], - "doc" : "The name that will be used for displaying a platform type.", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "PlatformType", - "doc" : "Platform types available at LinkedIn", - "symbols" : [ "FILE_SYSTEM", "KEY_VALUE_STORE", "MESSAGE_BROKER", "OBJECT_STORE", "OLAP_DATASTORE", "OTHERS", "QUERY_ENGINE", "RELATIONAL_DB", "SEARCH_ENGINE" ], - "symbolDocs" : { - "FILE_SYSTEM" : "Value for a file system, e.g. hdfs", - "KEY_VALUE_STORE" : "Value for a key value store, e.g. espresso, voldemort", - "MESSAGE_BROKER" : "Value for a message broker, e.g. kafka", - "OBJECT_STORE" : "Value for an object store, e.g. ambry", - "OLAP_DATASTORE" : "Value for an OLAP datastore, e.g. pinot", - "OTHERS" : "Value for other platforms, e.g salesforce, dovetail", - "QUERY_ENGINE" : "Value for a query engine, e.g. presto", - "RELATIONAL_DB" : "Value for a relational database, e.g. oracle, mysql", - "SEARCH_ENGINE" : "Value for a search engine, e.g seas" - } - }, - "doc" : "Platform type this data platform describes" - }, { - "name" : "datasetNameDelimiter", - "type" : "string", - "doc" : "The delimiter in the dataset names on the data platform, e.g. '/' for HDFS and '.' for Oracle" - }, { - "name" : "logoUrl", - "type" : [ "null", "string" ], - "doc" : "The URL for a logo associated with the platform", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - } ], - "Aspect" : { - "name" : "dataPlatformInfo" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the data platform. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dataPlatformKey", - "name" : "dataPlatform" - } - }, { - "type" : "record", - "name" : "MLModelSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "MLModel Snapshot entity details.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.MLModelUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLModelKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an ML model", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Standardized platform urn for the model", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the MLModel", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : "com.linkedin.common.FabricType", - "doc" : "Fabric type where model belongs to or where it was generated", - "Searchable" : { - "addToFilters" : true, - "fieldType" : "TEXT_PARTIAL", - "filterNameOverride" : "Environment", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "mlModelKey" - } - }, "com.linkedin.common.Ownership", { - "type" : "record", - "name" : "MLModelProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with a ML Model", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLModel", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "date", - "type" : [ "null", "long" ], - "doc" : "Date when the MLModel was developed", - "default" : null - }, { - "name" : "version", - "type" : [ "null", { - "type" : "record", - "name" : "VersionTag", - "namespace" : "com.linkedin.common", - "doc" : "A resource-defined string representing the resource state for the purpose of concurrency control", - "fields" : [ { - "name" : "versionTag", - "type" : [ "null", "string" ], - "default" : null - } ] - } ], - "doc" : "Version of the MLModel", - "default" : null - }, { - "name" : "type", - "type" : [ "null", "string" ], - "doc" : "Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "hyperParameters", - "type" : [ "null", { - "type" : "map", - "values" : [ "string", "int", "float", "double", "boolean" ] - } ], - "doc" : "Hyper Parameters of the MLModel\n\nNOTE: these are deprecated in favor of hyperParams", - "default" : null - }, { - "name" : "hyperParams", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "MLHyperParam", - "doc" : "Properties associated with an ML Hyper Param", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Name of the MLHyperParam" - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLHyperParam", - "default" : null - }, { - "name" : "value", - "type" : [ "null", "string" ], - "doc" : "The value of the MLHyperParam", - "default" : null - }, { - "name" : "createdAt", - "type" : [ "null", "long" ], - "doc" : "Date when the MLHyperParam was developed", - "default" : null - } ], - "Aspect" : { - "name" : "mlHyperParam" - } - } - } ], - "doc" : "Hyperparameters of the MLModel", - "default" : null - }, { - "name" : "trainingMetrics", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "MLMetric", - "doc" : "Properties associated with an ML Metric", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Name of the mlMetric" - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the mlMetric", - "default" : null - }, { - "name" : "value", - "type" : [ "null", "string" ], - "doc" : "The value of the mlMetric", - "default" : null - }, { - "name" : "createdAt", - "type" : [ "null", "long" ], - "doc" : "Date when the mlMetric was developed", - "default" : null - } ], - "Aspect" : { - "name" : "mlMetric" - } - } - } ], - "doc" : "Metrics of the MLModel used in training", - "default" : null - }, { - "name" : "onlineMetrics", - "type" : [ "null", { - "type" : "array", - "items" : "MLMetric" - } ], - "doc" : "Metrics of the MLModel used in production", - "default" : null - }, { - "name" : "mlFeatures", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of features used for MLModel training", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlFeature" ], - "isLineage" : true, - "name" : "Consumes" - } - } - }, { - "name" : "tags", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Tags for the MLModel", - "default" : [ ] - }, { - "name" : "deployments", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Deployments for the MLModel", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlModelDeployment" ], - "name" : "DeployedTo" - } - } - }, { - "name" : "trainingJobs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of jobs (if any) used to train the model", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataJob" ], - "isLineage" : true, - "name" : "TrainedBy" - } - } - }, { - "name" : "downstreamJobs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of jobs (if any) that use the model", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataJob" ], - "isLineage" : true, - "isUpstream" : false, - "name" : "UsedBy" - } - } - }, { - "name" : "groups", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Groups the model belongs to", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlModelGroup" ], - "isLineage" : true, - "isUpstream" : false, - "name" : "MemberOf" - } - } - } ], - "Aspect" : { - "name" : "mlModelProperties" - } - }, { - "type" : "record", - "name" : "IntendedUse", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Intended Use for the ML Model", - "fields" : [ { - "name" : "primaryUses", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Primary Use cases for the MLModel.", - "default" : null - }, { - "name" : "primaryUsers", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "enum", - "name" : "IntendedUserType", - "symbols" : [ "ENTERPRISE", "HOBBY", "ENTERTAINMENT" ] - } - } ], - "doc" : "Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions?", - "default" : null - }, { - "name" : "outOfScopeUses", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to.", - "default" : null - } ], - "Aspect" : { - "name" : "intendedUse" - } - }, { - "type" : "record", - "name" : "MLModelFactorPrompts", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Prompts which affect the performance of the MLModel", - "fields" : [ { - "name" : "relevantFactors", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "MLModelFactors", - "doc" : "Factors affecting the performance of the MLModel.", - "fields" : [ { - "name" : "groups", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances.\nFor human-centric machine learning MLModels, groups are people who share one or multiple characteristics.", - "default" : null - }, { - "name" : "instrumentation", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel.\nFor example, a face detection model may perform differently depending on the camera's hardware and software,\nincluding lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode.", - "default" : null - }, { - "name" : "environment", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A further factor affecting MLModel performance is the environment in which it is deployed.", - "default" : null - } ] - } - } ], - "doc" : "What are foreseeable salient factors for which MLModel performance may vary, and how were these determined?", - "default" : null - }, { - "name" : "evaluationFactors", - "type" : [ "null", { - "type" : "array", - "items" : "MLModelFactors" - } ], - "doc" : "Which factors are being reported, and why were these chosen?", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelFactorPrompts" - } - }, { - "type" : "record", - "name" : "Metrics", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Metrics to be featured for the MLModel.", - "fields" : [ { - "name" : "performanceMeasures", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Measures of MLModel performance", - "default" : null - }, { - "name" : "decisionThreshold", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Decision Thresholds used (if any)?", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelMetrics" - } - }, { - "type" : "record", - "name" : "EvaluationData", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "All referenced datasets would ideally point to any set of documents that provide visibility into the source and composition of the dataset.", - "fields" : [ { - "name" : "evaluationData", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "BaseData", - "doc" : "BaseData record", - "fields" : [ { - "name" : "dataset", - "type" : "string", - "doc" : "What dataset were used in the MLModel?", - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "motivation", - "type" : [ "null", "string" ], - "doc" : "Why was this dataset chosen?", - "default" : null - }, { - "name" : "preProcessing", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)?", - "default" : null - } ] - } - }, - "doc" : "Details on the dataset(s) used for the quantitative analyses in the MLModel" - } ], - "Aspect" : { - "name" : "mlModelEvaluationData" - } - }, { - "type" : "record", - "name" : "TrainingData", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Ideally, the MLModel card would contain as much information about the training data as the evaluation data. However, there might be cases where it is not feasible to provide this level of detailed information about the training data. For example, the data may be proprietary, or require a non-disclosure agreement. In these cases, we advocate for basic details about the distributions over groups in the data, as well as any other details that could inform stakeholders on the kinds of biases the model may have encoded.", - "fields" : [ { - "name" : "trainingData", - "type" : { - "type" : "array", - "items" : "BaseData" - }, - "doc" : "Details on the dataset(s) used for training the MLModel" - } ], - "Aspect" : { - "name" : "mlModelTrainingData" - } - }, { - "type" : "record", - "name" : "QuantitativeAnalyses", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Quantitative analyses should be disaggregated, that is, broken down by the chosen factors. Quantitative analyses should provide the results of evaluating the MLModel according to the chosen metrics, providing confidence interval values when possible.", - "fields" : [ { - "name" : "unitaryResults", - "type" : [ "null", "string" ], - "doc" : "Link to a dashboard with results showing how the MLModel performed with respect to each factor", - "default" : null - }, { - "name" : "intersectionalResults", - "type" : [ "null", "string" ], - "doc" : "Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors?", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelQuantitativeAnalyses" - } - }, { - "type" : "record", - "name" : "EthicalConsiderations", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "This section is intended to demonstrate the ethical considerations that went into MLModel development, surfacing ethical challenges and solutions to stakeholders.", - "fields" : [ { - "name" : "data", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Does the MLModel use any sensitive data (e.g., protected classes)?", - "default" : null - }, { - "name" : "humanLife", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : " Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way?", - "default" : null - }, { - "name" : "mitigations", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "What risk mitigation strategies were used during MLModel development?", - "default" : null - }, { - "name" : "risksAndHarms", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown.", - "default" : null - }, { - "name" : "useCases", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelEthicalConsiderations" - } - }, { - "type" : "record", - "name" : "CaveatsAndRecommendations", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?", - "fields" : [ { - "name" : "caveats", - "type" : [ "null", { - "type" : "record", - "name" : "CaveatDetails", - "doc" : "This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?", - "fields" : [ { - "name" : "needsFurtherTesting", - "type" : [ "null", "boolean" ], - "doc" : "Did the results suggest any further testing?", - "default" : null - }, { - "name" : "caveatDescription", - "type" : [ "null", "string" ], - "doc" : "Caveat Description\nFor ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders.", - "default" : null - }, { - "name" : "groupsNotRepresented", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Relevant groups that were not represented in the evaluation dataset?", - "default" : null - } ] - } ], - "doc" : "This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset?", - "default" : null - }, { - "name" : "recommendations", - "type" : [ "null", "string" ], - "doc" : "Recommendations on where this MLModel should be used.", - "default" : null - }, { - "name" : "idealDatasetCharacteristics", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Ideal characteristics of an evaluation dataset for this MLModel", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelCaveatsAndRecommendations" - } - }, "com.linkedin.common.InstitutionalMemory", { - "type" : "record", - "name" : "SourceCode", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Source Code", - "fields" : [ { - "name" : "sourceCode", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "SourceCodeUrl", - "doc" : "Source Code Url Entity", - "fields" : [ { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "SourceCodeUrlType", - "symbols" : [ "ML_MODEL_SOURCE_CODE", "TRAINING_PIPELINE_SOURCE_CODE", "EVALUATION_PIPELINE_SOURCE_CODE" ] - }, - "doc" : "Source Code Url Types" - }, { - "name" : "sourceCodeUrl", - "type" : "string", - "doc" : "Source Code Url", - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - } ] - } - }, - "doc" : "Source Code along with types" - } ], - "Aspect" : { - "name" : "sourceCode" - } - }, "com.linkedin.common.Status", { - "type" : "record", - "name" : "Cost", - "namespace" : "com.linkedin.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", "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" - } - }, { - "type" : "record", - "name" : "Deprecation", - "namespace" : "com.linkedin.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" : "string", - "doc" : "Additional information about the entity deprecation plan, such as the wiki, doc, RB." - }, { - "name" : "actor", - "type" : "string", - "doc" : "The user URN which will be credited for modifying this deprecation content.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - } ], - "Aspect" : { - "name" : "deprecation" - } - }, "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLModel. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlModelKey", - "name" : "mlModel" - } - }, { - "type" : "record", - "name" : "MLPrimaryKeySnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLPrimaryKeyKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an MLPrimaryKey", - "fields" : [ { - "name" : "featureNamespace", - "type" : "string", - "doc" : "Namespace for the primary key", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the primary key", - "Searchable" : { - "boostScore" : 8.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "mlPrimaryKeyKey" - } - }, { - "type" : "record", - "name" : "MLPrimaryKeyProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with a MLPrimaryKey", - "fields" : [ { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLPrimaryKey", - "default" : null - }, { - "name" : "dataType", - "type" : [ "null", { - "type" : "enum", - "name" : "MLFeatureDataType", - "namespace" : "com.linkedin.common", - "doc" : "MLFeature Data Type", - "symbols" : [ "USELESS", "NOMINAL", "ORDINAL", "BINARY", "COUNT", "TIME", "INTERVAL", "IMAGE", "VIDEO", "AUDIO", "TEXT", "MAP", "SEQUENCE", "SET", "CONTINUOUS", "BYTE", "UNKNOWN" ], - "symbolDocs" : { - "AUDIO" : "Audio Data", - "BINARY" : "Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc", - "BYTE" : "Bytes data are binary-encoded values that can represent complex objects.", - "CONTINUOUS" : "Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.", - "COUNT" : "Count data is discrete whole number data - no negative numbers here.\nCount data often has many small values, such as zero and one.", - "IMAGE" : "Image Data", - "INTERVAL" : "Interval data has equal spaces between the numbers and does not represent a temporal pattern.\nExamples include percentages, temperatures, and income.", - "MAP" : "Mapping Data Type ex: dict, map", - "NOMINAL" : "Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.", - "ORDINAL" : "Ordinal data are discrete integers that can be ranked or sorted.\nFor example, the distance between first and second may not be the same as the distance between second and third.", - "SEQUENCE" : "Sequence Data Type ex: list, tuple, range", - "SET" : "Set Data Type ex: set, frozenset", - "TEXT" : "Text Data", - "TIME" : "Time data is a cyclical, repeating continuous form of data.\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.", - "UNKNOWN" : "Unknown data are data that we don't know the type for.", - "USELESS" : "Useless data is unique, discrete data with no potential relationship with the outcome variable.\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.", - "VIDEO" : "Video Data" - } - } ], - "doc" : "Data Type of the MLPrimaryKey", - "default" : null - }, { - "name" : "version", - "type" : [ "null", "com.linkedin.common.VersionTag" ], - "doc" : "Version of the MLPrimaryKey", - "default" : null - }, { - "name" : "sources", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Source of the MLPrimaryKey", - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "DerivedFrom" - } - } - } ], - "Aspect" : { - "name" : "mlPrimaryKeyProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLPrimaryKey. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlPrimaryKeyKey", - "name" : "mlPrimaryKey" - } - }, { - "type" : "record", - "name" : "MLFeatureSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.MLFeatureUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLFeatureKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an MLFeature", - "fields" : [ { - "name" : "featureNamespace", - "type" : "string", - "doc" : "Namespace for the feature", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the feature", - "Searchable" : { - "boostScore" : 8.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "mlFeatureKey" - } - }, { - "type" : "record", - "name" : "MLFeatureProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with a MLFeature", - "fields" : [ { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLFeature", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "dataType", - "type" : [ "null", "com.linkedin.common.MLFeatureDataType" ], - "doc" : "Data Type of the MLFeature", - "default" : null - }, { - "name" : "version", - "type" : [ "null", "com.linkedin.common.VersionTag" ], - "doc" : "Version of the MLFeature", - "default" : null - }, { - "name" : "sources", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Source of the MLFeature", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "DerivedFrom" - } - } - } ], - "Aspect" : { - "name" : "mlFeatureProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLFeature. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlFeatureKey", - "name" : "mlFeature" - } - }, { - "type" : "record", - "name" : "MLFeatureTableSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLFeatureTableKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an MLFeatureTable", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Data platform urn associated with the feature table", - "Relationship" : { - "entityTypes" : [ "dataPlatform" ], - "name" : "SourcePlatform" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the feature table", - "Searchable" : { - "boostScore" : 8.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "mlFeatureTableKey" - } - }, { - "type" : "record", - "name" : "MLFeatureTableProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with a MLFeatureTable", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLFeatureTable", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "mlFeatures", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of features contained in the feature table", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlFeature" ], - "name" : "Contains" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "features", - "fieldType" : "URN" - } - } - }, { - "name" : "mlPrimaryKeys", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of primary keys in the feature table (if multiple, assumed to act as a composite key)", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlPrimaryKey" ], - "name" : "KeyedBy" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "primaryKeys", - "fieldType" : "URN" - } - } - } ], - "Aspect" : { - "name" : "mlFeatureTableProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLFeatureTable. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlFeatureTableKey", - "name" : "mlFeatureTable" - } - }, { - "type" : "record", - "name" : "MLModelDeploymentSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLModelDeploymentKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an ML model deployment", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Standardized platform urn for the model Deployment", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the MLModelDeployment", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : "com.linkedin.common.FabricType", - "doc" : "Fabric type where model Deployment belongs to or where it was generated", - "Searchable" : { - "addToFilters" : true, - "fieldType" : "TEXT_PARTIAL", - "filterNameOverride" : "Environment", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "mlModelDeploymentKey" - } - }, { - "type" : "record", - "name" : "MLModelDeploymentProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with an ML Model Deployment", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLModelDeployment", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "createdAt", - "type" : [ "null", "long" ], - "doc" : "Date when the MLModelDeployment was developed", - "default" : null - }, { - "name" : "version", - "type" : [ "null", "com.linkedin.common.VersionTag" ], - "doc" : "Version of the MLModelDeployment", - "default" : null - }, { - "name" : "status", - "type" : [ "null", { - "type" : "enum", - "name" : "DeploymentStatus", - "doc" : "Model endpoint statuses", - "symbols" : [ "OUT_OF_SERVICE", "CREATING", "UPDATING", "ROLLING_BACK", "IN_SERVICE", "DELETING", "FAILED", "UNKNOWN" ], - "symbolDocs" : { - "CREATING" : "Deployments being created.", - "DELETING" : "Deployments being deleted.", - "FAILED" : "Deployments with an error state.", - "IN_SERVICE" : "Deployments that are active.", - "OUT_OF_SERVICE" : "Deployments out of service.", - "ROLLING_BACK" : "Deployments being reverted to a previous version.", - "UNKNOWN" : "Deployments with unknown/unmappable state.", - "UPDATING" : "Deployments being updated." - } - } ], - "doc" : "Status of the deployment", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelDeploymentProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLModelDeployment. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlModelDeploymentKey", - "name" : "mlModelDeployment" - } - }, { - "type" : "record", - "name" : "MLModelGroupSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLModelGroupKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an ML model group", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Standardized platform urn for the model group", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the MLModelGroup", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : "com.linkedin.common.FabricType", - "doc" : "Fabric type where model group belongs to or where it was generated", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "mlModelGroupKey" - } - }, { - "type" : "record", - "name" : "MLModelGroupProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with an ML Model Group", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLModelGroup", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "createdAt", - "type" : [ "null", "long" ], - "doc" : "Date when the MLModelGroup was developed", - "default" : null - }, { - "name" : "version", - "type" : [ "null", "com.linkedin.common.VersionTag" ], - "doc" : "Version of the MLModelGroup", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelGroupProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLModelGroup. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlModelGroupKey", - "name" : "mlModelGroup" - } - }, { - "type" : "record", - "name" : "TagSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific dataset entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.TagUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "TagKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Tag", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "The tag name, which serves as a unique id", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldName" : "id", - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "tagKey" - } - }, "com.linkedin.common.Ownership", { - "type" : "record", - "name" : "TagProperties", - "namespace" : "com.linkedin.tag", - "doc" : "Properties associated with a Tag", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Display name of the tag", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the tag", - "default" : null, - "Searchable" : { } - }, { - "name" : "colorHex", - "type" : [ "null", "string" ], - "doc" : "The color associated with the Tag in Hex. For example #FFFFFF.", - "default" : null - } ], - "Aspect" : { - "name" : "tagProperties" - } - }, "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "tagKey", - "name" : "tag" - } - }, { - "type" : "record", - "name" : "GlossaryTermSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific GlossaryTerm entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.GlossaryTermUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "GlossaryTermKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a GlossaryTerm", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "The term name, which serves as a unique id", - "Searchable" : { - "enableAutocomplete" : true, - "fieldName" : "id", - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "glossaryTermKey" - } - }, { - "type" : "record", - "name" : "GlossaryTermInfo", - "namespace" : "com.linkedin.glossary", - "doc" : "Properties associated with a GlossaryTerm", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "id", - "type" : [ "null", "string" ], - "doc" : "Optional id for the term", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "name", - "type" : [ "null", "string" ], - "doc" : "Display name of the term", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "definition", - "type" : "string", - "doc" : "Definition of business term.", - "Searchable" : { } - }, { - "name" : "parentNode", - "type" : [ "null", "string" ], - "doc" : "Parent node of the glossary term", - "default" : null, - "Relationship" : { - "entityTypes" : [ "glossaryNode" ], - "name" : "IsPartOf" - }, - "Searchable" : { - "fieldName" : "parentNode", - "fieldType" : "URN", - "hasValuesFieldName" : "hasParentNode" - }, - "java" : { - "class" : "com.linkedin.common.urn.GlossaryNodeUrn" - } - }, { - "name" : "termSource", - "type" : "string", - "doc" : "Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL", - "Searchable" : { - "fieldType" : "KEYWORD" - } - }, { - "name" : "sourceRef", - "type" : [ "null", "string" ], - "doc" : "External Reference to the business-term", - "default" : null, - "Searchable" : { - "fieldType" : "KEYWORD" - } - }, { - "name" : "sourceUrl", - "type" : [ "null", "string" ], - "doc" : "The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument.", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "rawSchema", - "type" : [ "null", "string" ], - "doc" : "Schema definition of the glossary term", - "default" : null, - "deprecated" : true - } ], - "Aspect" : { - "name" : "glossaryTermInfo" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.BrowsePaths", { - "type" : "record", - "name" : "GlossaryRelatedTerms", - "namespace" : "com.linkedin.glossary", - "doc" : "Has A / Is A lineage information about a glossary Term reporting the lineage", - "fields" : [ { - "name" : "isRelatedTerms", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The relationship Is A with glossary term", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "IsA" - } - }, - "Searchable" : { - "/*" : { - "boostScore" : 2.0, - "fieldName" : "isRelatedTerms", - "fieldType" : "URN" - } - } - }, { - "name" : "hasRelatedTerms", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The relationship Has A with glossary term", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "HasA" - } - }, - "Searchable" : { - "/*" : { - "boostScore" : 2.0, - "fieldName" : "hasRelatedTerms", - "fieldType" : "URN" - } - } - }, { - "name" : "values", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The relationship Has Value with glossary term.\nThese are fixed value a term has. For example a ColorEnum where RED, GREEN and YELLOW are fixed values.", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "HasValue" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "values", - "fieldType" : "URN" - } - } - }, { - "name" : "relatedTerms", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The relationship isRelatedTo with glossary term", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "IsRelatedTo" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "relatedTerms", - "fieldType" : "URN" - } - } - } ], - "Aspect" : { - "name" : "glossaryRelatedTerms" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the GlossaryTerm. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "glossaryTermKey", - "name" : "glossaryTerm" - } - }, { - "type" : "record", - "name" : "GlossaryNodeSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific GlossaryNode entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.GlossaryNodeUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "GlossaryNodeKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a GlossaryNode", - "fields" : [ { - "name" : "name", - "type" : "string", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "glossaryNodeKey" - } - }, { - "type" : "record", - "name" : "GlossaryNodeInfo", - "namespace" : "com.linkedin.glossary", - "doc" : "Properties associated with a GlossaryNode", - "fields" : [ { - "name" : "definition", - "type" : "string", - "doc" : "Definition of business node", - "Searchable" : { } - }, { - "name" : "parentNode", - "type" : [ "null", "string" ], - "doc" : "Parent node of the glossary term", - "default" : null, - "Relationship" : { - "entityTypes" : [ "glossaryNode" ], - "name" : "IsPartOf" - }, - "Searchable" : { - "fieldName" : "parentNode", - "fieldType" : "URN", - "hasValuesFieldName" : "hasParentNode" - }, - "java" : { - "class" : "com.linkedin.common.urn.GlossaryNodeUrn" - } - }, { - "name" : "name", - "type" : [ "null", "string" ], - "doc" : "Display name of the node", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldName" : "displayName", - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "id", - "type" : [ "null", "string" ], - "doc" : "Optional id for the GlossaryNode", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "glossaryNodeInfo" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the GlossaryNode. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "glossaryNodeKey", - "name" : "glossaryNode" - } - }, { - "type" : "record", - "name" : "DataHubPolicySnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for DataHub Access Policy data.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataHubPolicyKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a DataHub Policy", - "fields" : [ { - "name" : "id", - "type" : "string", - "doc" : "A unique id for the DataHub access policy record. Generated on the server side at policy creation time." - } ], - "Aspect" : { - "name" : "dataHubPolicyKey" - } - }, { - "type" : "record", - "name" : "DataHubPolicyInfo", - "namespace" : "com.linkedin.policy", - "doc" : "Information about a DataHub (UI) access policy.", - "fields" : [ { - "name" : "displayName", - "type" : "string", - "doc" : "Display name of the Policy", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : "string", - "doc" : "Description of the Policy", - "Searchable" : { - "fieldType" : "TEXT" - } - }, { - "name" : "type", - "type" : "string", - "doc" : "The type of policy" - }, { - "name" : "state", - "type" : "string", - "doc" : "The state of policy, ACTIVE or INACTIVE" - }, { - "name" : "resources", - "type" : [ "null", { - "type" : "record", - "name" : "DataHubResourceFilter", - "doc" : "Information used to filter DataHub resource.", - "fields" : [ { - "name" : "type", - "type" : [ "null", "string" ], - "doc" : "The type of resource that the policy applies to. This will most often be a data asset entity name, for\nexample 'dataset'. It is not strictly required because in the future we will want to support filtering a resource\nby domain, as well.", - "default" : null, - "deprecated" : true - }, { - "name" : "resources", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A specific set of resources to apply the policy to, e.g. asset urns", - "default" : null, - "deprecated" : true - }, { - "name" : "allResources", - "type" : "boolean", - "doc" : "Whether the policy should be applied to all assets matching the filter.", - "default" : false, - "deprecated" : true - }, { - "name" : "filter", - "type" : [ "null", { - "type" : "record", - "name" : "PolicyMatchFilter", - "doc" : "The filter for specifying the resource or actor to apply privileges to", - "fields" : [ { - "name" : "criteria", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "PolicyMatchCriterion", - "doc" : "A criterion for matching a field with given value", - "fields" : [ { - "name" : "field", - "type" : "string", - "doc" : "The name of the field that the criterion refers to" - }, { - "name" : "values", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Values. Matches criterion if any one of the values matches condition (OR-relationship)" - }, { - "name" : "condition", - "type" : { - "type" : "enum", - "name" : "PolicyMatchCondition", - "doc" : "The matching condition in a filter criterion", - "symbols" : [ "EQUALS" ], - "symbolDocs" : { - "EQUALS" : "Whether the field matches the value" - } - }, - "doc" : "The condition for the criterion", - "default" : "EQUALS" - } ] - } - }, - "doc" : "A list of criteria to apply conjunctively (so all criteria must pass)" - } ] - } ], - "doc" : "Filter to apply privileges to", - "default" : null - } ] - } ], - "doc" : "The resource that the policy applies to. Not required for some 'Platform' privileges.", - "default" : null - }, { - "name" : "privileges", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "The privileges that the policy grants." - }, { - "name" : "actors", - "type" : { - "type" : "record", - "name" : "DataHubActorFilter", - "doc" : "Information used to filter DataHub actors.", - "fields" : [ { - "name" : "users", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A specific set of users to apply the policy to (disjunctive)", - "default" : null - }, { - "name" : "groups", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A specific set of groups to apply the policy to (disjunctive)", - "default" : null - }, { - "name" : "resourceOwners", - "type" : "boolean", - "doc" : "Whether the filter should return true for owners of a particular resource.\nOnly applies to policies of type 'Metadata', which have a resource associated with them.", - "default" : false - }, { - "name" : "allUsers", - "type" : "boolean", - "doc" : "Whether the filter should apply to all users.", - "default" : false - }, { - "name" : "allGroups", - "type" : "boolean", - "doc" : "Whether the filter should apply to all groups.", - "default" : false - }, { - "name" : "roles", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A specific set of roles to apply the policy to (disjunctive).", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataHubRole" ], - "name" : "IsAssociatedWithRole" - } - } - } ] - }, - "doc" : "The actors that the policy applies to." - }, { - "name" : "editable", - "type" : "boolean", - "doc" : "Whether the policy should be editable via the UI", - "default" : true - }, { - "name" : "lastUpdatedTimestamp", - "type" : [ "null", "long" ], - "doc" : "Timestamp when the policy was last updated", - "default" : null, - "Searchable" : { - "fieldType" : "DATETIME" - } - } ], - "Aspect" : { - "name" : "dataHubPolicyInfo" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the DataHub access policy." - } ], - "Entity" : { - "keyAspect" : "dataHubPolicyKey", - "name" : "dataHubPolicy" - } - }, { - "type" : "record", - "name" : "SchemaFieldSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific schema field entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "SchemaFieldKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a SchemaField", - "fields" : [ { - "name" : "parent", - "type" : "string", - "doc" : "Parent associated with the schema field", - "Searchable" : { - "fieldType" : "URN" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "fieldPath", - "type" : "string", - "doc" : "fieldPath identifying the schema field", - "Searchable" : { - "fieldType" : "KEYWORD" - } - } ], - "Aspect" : { - "name" : "schemaFieldKey" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "schemaFieldKey", - "name" : "schemaField" - } - }, { - "type" : "record", - "name" : "DataHubRetentionSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for DataHub Access Policy data.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataHubRetentionKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a DataHub Retention", - "fields" : [ { - "name" : "entityName", - "type" : "string", - "doc" : "Entity name to apply retention to. * (or empty) for applying defaults." - }, { - "name" : "aspectName", - "type" : "string", - "doc" : "Aspect name to apply retention to. * (or empty) for applying defaults." - } ], - "Aspect" : { - "name" : "dataHubRetentionKey" - } - }, { - "type" : "record", - "name" : "DataHubRetentionConfig", - "namespace" : "com.linkedin.retention", - "fields" : [ { - "name" : "retention", - "type" : { - "type" : "record", - "name" : "Retention", - "doc" : "Base class that encapsulates different retention policies.\nOnly one of the fields should be set", - "fields" : [ { - "name" : "version", - "type" : [ "null", { - "type" : "record", - "name" : "VersionBasedRetention", - "doc" : "Keep max N latest records", - "fields" : [ { - "name" : "maxVersions", - "type" : "int" - } ] - } ], - "default" : null - }, { - "name" : "time", - "type" : [ "null", { - "type" : "record", - "name" : "TimeBasedRetention", - "doc" : "Keep records that are less than X seconds old", - "fields" : [ { - "name" : "maxAgeInSeconds", - "type" : "int" - } ] - } ], - "default" : null - } ] - } - } ], - "Aspect" : { - "name" : "dataHubRetentionConfig" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the DataHub access policy." - } ], - "Entity" : { - "keyAspect" : "dataHubRetentionKey", - "name" : "dataHubRetention" - } - } ], - "doc" : "Snapshot of the metadata before the update. Set to null for newly created metadata. Only the metadata aspects affected by the update are included in the snapshot.", - "default" : null - }, { - "name" : "oldSystemMetadata", - "type" : [ "null", { - "type" : "record", - "name" : "SystemMetadata", - "doc" : "Metadata associated with each metadata change that is processed by the system", - "fields" : [ { - "name" : "lastObserved", - "type" : [ "long", "null" ], - "doc" : "The timestamp the metadata was observed at", - "default" : 0 - }, { - "name" : "runId", - "type" : [ "string", "null" ], - "doc" : "The run id that produced the metadata. Populated in case of batch-ingestion.", - "default" : "no-run-id-provided" - }, { - "name" : "registryName", - "type" : [ "null", "string" ], - "doc" : "The model registry name that was used to process this event", - "default" : null - }, { - "name" : "registryVersion", - "type" : [ "null", "string" ], - "doc" : "The model registry version that was used to process this event", - "default" : null - }, { - "name" : "properties", - "type" : [ "null", { - "type" : "map", - "values" : "string" - } ], - "doc" : "Additional properties", - "default" : null - } ] - } ], - "doc" : "Metadata around how the old snapshot was produced.", - "default" : null - }, { - "name" : "newSnapshot", - "type" : [ "com.linkedin.metadata.snapshot.ChartSnapshot", "com.linkedin.metadata.snapshot.CorpGroupSnapshot", "com.linkedin.metadata.snapshot.CorpUserSnapshot", "com.linkedin.metadata.snapshot.DashboardSnapshot", "com.linkedin.metadata.snapshot.DataFlowSnapshot", "com.linkedin.metadata.snapshot.DataJobSnapshot", "com.linkedin.metadata.snapshot.DatasetSnapshot", "com.linkedin.metadata.snapshot.DataProcessSnapshot", "com.linkedin.metadata.snapshot.DataPlatformSnapshot", "com.linkedin.metadata.snapshot.MLModelSnapshot", "com.linkedin.metadata.snapshot.MLPrimaryKeySnapshot", "com.linkedin.metadata.snapshot.MLFeatureSnapshot", "com.linkedin.metadata.snapshot.MLFeatureTableSnapshot", "com.linkedin.metadata.snapshot.MLModelDeploymentSnapshot", "com.linkedin.metadata.snapshot.MLModelGroupSnapshot", "com.linkedin.metadata.snapshot.TagSnapshot", "com.linkedin.metadata.snapshot.GlossaryTermSnapshot", "com.linkedin.metadata.snapshot.GlossaryNodeSnapshot", "com.linkedin.metadata.snapshot.DataHubPolicySnapshot", "com.linkedin.metadata.snapshot.SchemaFieldSnapshot", "com.linkedin.metadata.snapshot.DataHubRetentionSnapshot" ], - "doc" : "Snapshot of the metadata after the update. Only the metadata aspects affected by the update are included in the snapshot." - }, { - "name" : "newSystemMetadata", - "type" : [ "null", "SystemMetadata" ], - "doc" : "Metadata around how the new snapshot was produced.", - "default" : null - }, { - "name" : "operation", - "type" : [ "null", { - "type" : "enum", - "name" : "MetadataAuditOperation", - "symbols" : [ "UPDATE", "DELETE" ] - } ], - "default" : null - } ] -} \ No newline at end of file diff --git a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/MetadataChangeEvent.avsc b/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/MetadataChangeEvent.avsc deleted file mode 100644 index 37f0cf0dfda36..0000000000000 --- a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/MetadataChangeEvent.avsc +++ /dev/null @@ -1,5379 +0,0 @@ -{ - "type" : "record", - "name" : "MetadataChangeEvent", - "namespace" : "com.linkedin.mxe", - "doc" : "Kafka event for proposing a metadata change for an entity. A corresponding MetadataAuditEvent is emitted when the change is accepted and committed, otherwise a FailedMetadataChangeEvent will be emitted instead.", - "fields" : [ { - "name" : "auditHeader", - "type" : [ "null", { - "type" : "record", - "name" : "KafkaAuditHeader", - "namespace" : "com.linkedin.avro2pegasus.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" : "string", - "doc" : "The fully qualified name of the host from which the event is being emitted.", - "compliance" : "NONE" - }, { - "name" : "instance", - "type" : [ "null", "string" ], - "doc" : "The instance on the server from which the event is being emitted. e.g. i001", - "default" : null, - "compliance" : "NONE" - }, { - "name" : "appName", - "type" : "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", "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", "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" - } ] - } ], - "doc" : "Kafka audit header. See go/kafkaauditheader for more info.", - "default" : null - }, { - "name" : "proposedSnapshot", - "type" : [ { - "type" : "record", - "name" : "ChartSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific Chart entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.ChartUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "ChartKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Chart", - "fields" : [ { - "name" : "dashboardTool", - "type" : "string", - "doc" : "The name of the dashboard tool such as looker, redash etc.", - "Searchable" : { - "boostScore" : 4.0, - "fieldName" : "tool", - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "chartId", - "type" : "string", - "doc" : "Unique id for the chart. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, chart URL could be used here for Looker such as 'looker.linkedin.com/looks/1234'" - } ], - "Aspect" : { - "name" : "chartKey" - } - }, { - "type" : "record", - "name" : "ChartInfo", - "namespace" : "com.linkedin.chart", - "doc" : "Information about a chart", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "title", - "type" : "string", - "doc" : "Title of the chart", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : "string", - "doc" : "Detailed description about the chart", - "Searchable" : { } - }, { - "name" : "lastModified", - "type" : { - "type" : "record", - "name" : "ChangeAuditStamps", - "namespace" : "com.linkedin.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" : "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.common.urn.Urn" - } - }, { - "name" : "impersonator", - "type" : [ "null", "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.common.urn.Urn" - } - }, { - "name" : "message", - "type" : [ "null", "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", "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.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "inputs", - "type" : [ "null", { - "type" : "array", - "items" : [ "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.common", - "doc" : "Information about a relatonship edge.", - "fields" : [ { - "name" : "sourceUrn", - "type" : "string", - "doc" : "Urn of the source of this relationship edge.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "destinationUrn", - "type" : "string", - "doc" : "Urn of the destination of this relationship edge.", - "java" : { - "class" : "com.linkedin.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" : "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.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" - } - }, { - "type" : "record", - "name" : "ChartQuery", - "namespace" : "com.linkedin.chart", - "doc" : "Information for chart query which is used for getting data of the chart", - "fields" : [ { - "name" : "rawQuery", - "type" : "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" - } - }, { - "type" : "record", - "name" : "EditableChartProperties", - "namespace" : "com.linkedin.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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Edited documentation of the chart ", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableChartProperties" - } - }, { - "type" : "record", - "name" : "Ownership", - "namespace" : "com.linkedin.common", - "doc" : "Ownership information of an entity.", - "fields" : [ { - "name" : "owners", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "Owner", - "doc" : "Ownership information", - "fields" : [ { - "name" : "owner", - "type" : "string", - "doc" : "Owner URN, e.g. urn:li:corpuser:ldap, urn:li:corpGroup:group_name, and urn:li:multiProduct:mp_name\n(Caveat: only corpuser is currently supported in the frontend.)", - "Relationship" : { - "entityTypes" : [ "corpuser", "corpGroup" ], - "name" : "OwnedBy" - }, - "Searchable" : { - "addToFilters" : true, - "fieldName" : "owners", - "fieldType" : "URN", - "filterNameOverride" : "Owned By", - "hasValuesFieldName" : "hasOwners", - "queryByDefault" : false - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "OwnershipType", - "doc" : "Asset owner types", - "symbols" : [ "TECHNICAL_OWNER", "BUSINESS_OWNER", "DATA_STEWARD", "NONE", "DEVELOPER", "DATAOWNER", "DELEGATE", "PRODUCER", "CONSUMER", "STAKEHOLDER" ], - "symbolDocs" : { - "BUSINESS_OWNER" : "A person or group who is responsible for logical, or business related, aspects of the asset.", - "CONSUMER" : "A person, group, or service that consumes the data\nDeprecated! Use TECHNICAL_OWNER or BUSINESS_OWNER instead.", - "DATAOWNER" : "A person or group that is owning the data\nDeprecated! Use TECHNICAL_OWNER instead.", - "DATA_STEWARD" : "A steward, expert, or delegate responsible for the asset.", - "DELEGATE" : "A person or a group that overseas the operation, e.g. a DBA or SRE.\nDeprecated! Use TECHNICAL_OWNER instead.", - "DEVELOPER" : "A person or group that is in charge of developing the code\nDeprecated! Use TECHNICAL_OWNER instead.", - "NONE" : "No specific type associated to the owner.", - "PRODUCER" : "A person, group, or service that produces/generates the data\nDeprecated! Use TECHNICAL_OWNER instead.", - "STAKEHOLDER" : "A person or a group that has direct business interest\nDeprecated! Use TECHNICAL_OWNER, BUSINESS_OWNER, or STEWARD instead.", - "TECHNICAL_OWNER" : "person or group who is responsible for technical aspects of the asset." - }, - "deprecatedSymbols" : { - "CONSUMER" : true, - "DATAOWNER" : true, - "DELEGATE" : true, - "DEVELOPER" : true, - "PRODUCER" : true, - "STAKEHOLDER" : true - } - }, - "doc" : "The type of the ownership" - }, { - "name" : "source", - "type" : [ "null", { - "type" : "record", - "name" : "OwnershipSource", - "doc" : "Source/provider of the ownership information", - "fields" : [ { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "OwnershipSourceType", - "symbols" : [ "AUDIT", "DATABASE", "FILE_SYSTEM", "ISSUE_TRACKING_SYSTEM", "MANUAL", "SERVICE", "SOURCE_CONTROL", "OTHER" ], - "symbolDocs" : { - "AUDIT" : "Auditing system or audit logs", - "DATABASE" : "Database, e.g. GRANTS table", - "FILE_SYSTEM" : "File system, e.g. file/directory owner", - "ISSUE_TRACKING_SYSTEM" : "Issue tracking system, e.g. Jira", - "MANUAL" : "Manually provided by a user", - "OTHER" : "Other sources", - "SERVICE" : "Other ownership-like service, e.g. Nuage, ACL service etc", - "SOURCE_CONTROL" : "SCM system, e.g. GIT, SVN" - } - }, - "doc" : "The type of the source" - }, { - "name" : "url", - "type" : [ "null", "string" ], - "doc" : "A reference URL for the source", - "default" : null - } ] - } ], - "doc" : "Source information for the ownership", - "default" : null - } ] - } - }, - "doc" : "List of owners of the entity." - }, { - "name" : "lastModified", - "type" : "AuditStamp", - "doc" : "Audit stamp containing who last modified the record and when. A value of 0 in the time field indicates missing data.", - "default" : { - "actor" : "urn:li:corpuser:unknown", - "impersonator" : null, - "time" : 0, - "message" : null - } - } ], - "Aspect" : { - "name" : "ownership" - } - }, { - "type" : "record", - "name" : "Status", - "namespace" : "com.linkedin.common", - "doc" : "The lifecycle status metadata of an entity, e.g. dataset, metric, feature, etc.\nThis aspect is used to represent soft deletes conventionally.", - "fields" : [ { - "name" : "removed", - "type" : "boolean", - "doc" : "Whether the entity has been removed (soft-deleted).", - "default" : false, - "Searchable" : { - "fieldType" : "BOOLEAN" - } - } ], - "Aspect" : { - "name" : "status" - } - }, { - "type" : "record", - "name" : "GlobalTags", - "namespace" : "com.linkedin.common", - "doc" : "Tag aspect used for applying tags to an entity", - "fields" : [ { - "name" : "tags", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "TagAssociation", - "doc" : "Properties of an applied tag. For now, just an Urn. In the future we can extend this with other properties, e.g.\npropagation parameters.", - "fields" : [ { - "name" : "tag", - "type" : "string", - "doc" : "Urn of the applied tag", - "Relationship" : { - "entityTypes" : [ "tag" ], - "name" : "TaggedWith" - }, - "Searchable" : { - "addToFilters" : true, - "fieldName" : "tags", - "fieldType" : "URN", - "filterNameOverride" : "Tag", - "hasValuesFieldName" : "hasTags" - }, - "java" : { - "class" : "com.linkedin.common.urn.TagUrn" - } - }, { - "name" : "context", - "type" : [ "null", "string" ], - "doc" : "Additional context about the association", - "default" : null - } ] - } - }, - "doc" : "Tags associated with a given entity", - "Searchable" : { - "/*/tag" : { - "addToFilters" : true, - "boostScore" : 0.5, - "fieldName" : "tags", - "fieldType" : "URN", - "queryByDefault" : true - } - } - } ], - "Aspect" : { - "name" : "globalTags" - } - }, { - "type" : "record", - "name" : "BrowsePaths", - "namespace" : "com.linkedin.common", - "doc" : "Shared aspect containing Browse Paths to be indexed for an entity.", - "fields" : [ { - "name" : "paths", - "type" : { - "type" : "array", - "items" : "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" - } - }, { - "type" : "record", - "name" : "GlossaryTerms", - "namespace" : "com.linkedin.common", - "doc" : "Related business terms information", - "fields" : [ { - "name" : "terms", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "GlossaryTermAssociation", - "doc" : "Properties of an applied glossary term.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "Urn of the applied glossary term", - "Relationship" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "TermedWith" - }, - "Searchable" : { - "addToFilters" : true, - "fieldName" : "glossaryTerms", - "fieldType" : "URN", - "filterNameOverride" : "Glossary Term", - "hasValuesFieldName" : "hasGlossaryTerms" - }, - "java" : { - "class" : "com.linkedin.common.urn.GlossaryTermUrn" - } - }, { - "name" : "context", - "type" : [ "null", "string" ], - "doc" : "Additional context about the association", - "default" : null - } ] - } - }, - "doc" : "The related business terms" - }, { - "name" : "auditStamp", - "type" : "AuditStamp", - "doc" : "Audit stamp containing who reported the related business term" - } ], - "Aspect" : { - "name" : "glossaryTerms" - } - }, { - "type" : "record", - "name" : "InstitutionalMemory", - "namespace" : "com.linkedin.common", - "doc" : "Institutional memory of an entity. This is a way to link to relevant documentation and provide description of the documentation. Institutional or tribal knowledge is very important for users to leverage the entity.", - "fields" : [ { - "name" : "elements", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "InstitutionalMemoryMetadata", - "doc" : "Metadata corresponding to a record of institutional memory.", - "fields" : [ { - "name" : "url", - "type" : "string", - "doc" : "Link to an engineering design document or a wiki page.", - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "description", - "type" : "string", - "doc" : "Description of the link." - }, { - "name" : "createStamp", - "type" : "AuditStamp", - "doc" : "Audit stamp associated with creation of this record" - } ] - } - }, - "doc" : "List of records that represent institutional memory of an entity. Each record consists of a link, description, creator and timestamps associated with that record." - } ], - "Aspect" : { - "name" : "institutionalMemory" - } - }, { - "type" : "record", - "name" : "DataPlatformInstance", - "namespace" : "com.linkedin.common", - "doc" : "The specific instance of the data platform that this entity belongs to", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Data Platform", - "Searchable" : { - "addToFilters" : true, - "fieldType" : "URN", - "filterNameOverride" : "Platform" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "instance", - "type" : [ "null", "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.common.urn.Urn" - } - } ], - "Aspect" : { - "name" : "dataPlatformInstance" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the chart. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "chartKey", - "name" : "chart" - } - }, { - "type" : "record", - "name" : "CorpGroupSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific CorpGroup entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.CorpGroupUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "CorpGroupKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a CorpGroup", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "The URL-encoded name of the AD/LDAP group. Serves as a globally unique identifier within DataHub.", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - } ], - "Aspect" : { - "name" : "corpGroupKey" - } - }, { - "type" : "record", - "name" : "CorpGroupInfo", - "namespace" : "com.linkedin.identity", - "doc" : "Information about a Corp Group ingested from a third party source", - "fields" : [ { - "name" : "displayName", - "type" : [ "null", "string" ], - "doc" : "The name of the group.", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - }, { - "name" : "email", - "type" : [ "null", "string" ], - "doc" : "email of this group", - "default" : null - }, { - "name" : "admins", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "owners of this group\nDeprecated! Replaced by Ownership aspect.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "corpuser" ], - "name" : "OwnedBy" - } - }, - "deprecated" : true - }, { - "name" : "members", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "List of ldap urn in this group.\nDeprecated! Replaced by GroupMembership aspect.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "corpuser" ], - "name" : "IsPartOf" - } - }, - "deprecated" : true - }, { - "name" : "groups", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "List of groups in this group.\nDeprecated! This field is unused.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "corpGroup" ], - "name" : "IsPartOf" - } - }, - "deprecated" : true - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "A description of the group.", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "slack", - "type" : [ "null", "string" ], - "doc" : "Slack channel for the group", - "default" : null - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.AuditStamp" ], - "doc" : "Created Audit stamp", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "createdTime", - "fieldType" : "DATETIME" - } - } - } ], - "Aspect" : { - "EntityUrns" : [ "com.linkedin.common.CorpGroupUrn" ], - "name" : "corpGroupInfo" - } - }, "com.linkedin.common.GlobalTags", "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the LdapUser. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "corpGroupKey", - "name" : "corpGroup" - } - }, { - "type" : "record", - "name" : "CorpUserSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific CorpUser entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.CorpuserUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "CorpUserKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a CorpUser", - "fields" : [ { - "name" : "username", - "type" : "string", - "doc" : "The name of the AD/LDAP user.", - "Searchable" : { - "boostScore" : 2.0, - "enableAutocomplete" : true, - "fieldName" : "ldap", - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "corpUserKey" - } - }, { - "type" : "record", - "name" : "CorpUserInfo", - "namespace" : "com.linkedin.identity", - "doc" : "Linkedin corp user information", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "active", - "type" : "boolean", - "doc" : "Deprecated! Use CorpUserStatus instead. Whether the corpUser is active, ref: https://iwww.corp.linkedin.com/wiki/cf/display/GTSD/Accessing+Active+Directory+via+LDAP+tools", - "Searchable" : { - "fieldType" : "BOOLEAN", - "weightsPerFieldValue" : { - "true" : 2.0 - } - } - }, { - "name" : "displayName", - "type" : [ "null", "string" ], - "doc" : "displayName of this user , e.g. Hang Zhang(DataHQ)", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - }, { - "name" : "email", - "type" : [ "null", "string" ], - "doc" : "email address of this user", - "default" : null, - "Searchable" : { - "fieldType" : "KEYWORD", - "queryByDefault" : true - } - }, { - "name" : "title", - "type" : [ "null", "string" ], - "doc" : "title of this user", - "default" : null, - "Searchable" : { - "fieldType" : "KEYWORD", - "queryByDefault" : true - } - }, { - "name" : "managerUrn", - "type" : [ "null", "string" ], - "doc" : "direct manager of this user", - "default" : null, - "Relationship" : { - "entityTypes" : [ "corpuser" ], - "name" : "ReportsTo" - }, - "Searchable" : { - "fieldName" : "managerLdap", - "fieldType" : "URN", - "queryByDefault" : true - }, - "java" : { - "class" : "com.linkedin.common.urn.CorpuserUrn" - } - }, { - "name" : "departmentId", - "type" : [ "null", "long" ], - "doc" : "department id this user belong to", - "default" : null - }, { - "name" : "departmentName", - "type" : [ "null", "string" ], - "doc" : "department name this user belong to", - "default" : null - }, { - "name" : "firstName", - "type" : [ "null", "string" ], - "doc" : "first name of this user", - "default" : null - }, { - "name" : "lastName", - "type" : [ "null", "string" ], - "doc" : "last name of this user", - "default" : null - }, { - "name" : "fullName", - "type" : [ "null", "string" ], - "doc" : "Common name of this user, format is firstName + lastName (split by a whitespace)", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - }, { - "name" : "countryCode", - "type" : [ "null", "string" ], - "doc" : "two uppercase letters country code. e.g. US", - "default" : null - } ], - "Aspect" : { - "EntityUrns" : [ "com.linkedin.common.CorpuserUrn" ], - "name" : "corpUserInfo" - } - }, { - "type" : "record", - "name" : "CorpUserEditableInfo", - "namespace" : "com.linkedin.identity", - "doc" : "Linkedin corp user information that can be edited from UI", - "fields" : [ { - "name" : "aboutMe", - "type" : [ "null", "string" ], - "doc" : "About me section of the user", - "default" : null - }, { - "name" : "teams", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Teams that the user belongs to e.g. Metadata", - "default" : [ ], - "Searchable" : { - "/*" : { - "fieldType" : "TEXT" - } - } - }, { - "name" : "skills", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Skills that the user possesses e.g. Machine Learning", - "default" : [ ], - "Searchable" : { - "/*" : { - "fieldType" : "TEXT" - } - } - }, { - "name" : "pictureLink", - "type" : "string", - "doc" : "A URL which points to a picture which user wants to set as a profile photo", - "default" : "https://raw.githubusercontent.com/datahub-project/datahub/master/datahub-web-react/src/images/default_avatar.png", - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "displayName", - "type" : [ "null", "string" ], - "doc" : "DataHub-native display name", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : true - } - }, { - "name" : "title", - "type" : [ "null", "string" ], - "doc" : "DataHub-native Title, e.g. 'Software Engineer'", - "default" : null - }, { - "name" : "slack", - "type" : [ "null", "string" ], - "doc" : "Slack handle for the user", - "default" : null - }, { - "name" : "phone", - "type" : [ "null", "string" ], - "doc" : "Phone number to contact the user", - "default" : null - }, { - "name" : "email", - "type" : [ "null", "string" ], - "doc" : "Email address to contact the user", - "default" : null - } ], - "Aspect" : { - "EntityUrns" : [ "com.linkedin.common.CorpuserUrn" ], - "name" : "corpUserEditableInfo" - } - }, { - "type" : "record", - "name" : "CorpUserStatus", - "namespace" : "com.linkedin.identity", - "doc" : "The status of the user, e.g. provisioned, active, suspended, etc.", - "fields" : [ { - "name" : "status", - "type" : "string", - "doc" : "Status of the user, e.g. PROVISIONED / ACTIVE / SUSPENDED", - "Searchable" : { - "fieldType" : "KEYWORD" - } - }, { - "name" : "lastModified", - "type" : "com.linkedin.common.AuditStamp", - "doc" : "Audit stamp containing who last modified the status and when." - } ], - "Aspect" : { - "name" : "corpUserStatus" - } - }, { - "type" : "record", - "name" : "GroupMembership", - "namespace" : "com.linkedin.identity", - "doc" : "Carries information about the CorpGroups a user is in.", - "fields" : [ { - "name" : "groups", - "type" : { - "type" : "array", - "items" : "string" - }, - "Relationship" : { - "/*" : { - "entityTypes" : [ "corpGroup" ], - "name" : "IsMemberOfGroup" - } - } - } ], - "Aspect" : { - "name" : "groupMembership" - } - }, "com.linkedin.common.GlobalTags", "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the CorpUser. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "corpUserKey", - "name" : "corpuser" - } - }, { - "type" : "record", - "name" : "DashboardSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific Dashboard entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DashboardUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DashboardKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Dashboard", - "fields" : [ { - "name" : "dashboardTool", - "type" : "string", - "doc" : "The name of the dashboard tool such as looker, redash etc.", - "Searchable" : { - "boostScore" : 4.0, - "fieldName" : "tool", - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "dashboardId", - "type" : "string", - "doc" : "Unique id for the dashboard. This id should be globally unique for a dashboarding tool even when there are multiple deployments of it. As an example, dashboard URL could be used here for Looker such as 'looker.linkedin.com/dashboards/1234'" - } ], - "Aspect" : { - "name" : "dashboardKey" - } - }, { - "type" : "record", - "name" : "DashboardInfo", - "namespace" : "com.linkedin.dashboard", - "doc" : "Information about a dashboard", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "title", - "type" : "string", - "doc" : "Title of the dashboard", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : "string", - "doc" : "Detailed description about the dashboard", - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "charts", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Charts in a dashboard\nDeprecated! Use chartEdges instead.", - "default" : [ ], - "Relationship" : { - "/*" : { - "entityTypes" : [ "chart" ], - "isLineage" : true, - "name" : "Contains" - } - }, - "deprecated" : true - }, { - "name" : "chartEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Charts in a dashboard", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "chartEdges/*/created/actor", - "createdOn" : "chartEdges/*/created/time", - "entityTypes" : [ "chart" ], - "isLineage" : true, - "name" : "Contains", - "properties" : "chartEdges/*/properties", - "updatedActor" : "chartEdges/*/lastModified/actor", - "updatedOn" : "chartEdges/*/lastModified/time" - } - } - }, { - "name" : "datasets", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Datasets consumed by a dashboard\nDeprecated! Use datasetEdges instead.", - "default" : [ ], - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes" - } - }, - "deprecated" : true - }, { - "name" : "datasetEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Datasets consumed by a dashboard", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "datasetEdges/*/created/actor", - "createdOn" : "datasetEdges/*/created/time", - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes", - "properties" : "datasetEdges/*/properties", - "updatedActor" : "datasetEdges/*/lastModified/actor", - "updatedOn" : "datasetEdges/*/lastModified/time" - } - } - }, { - "name" : "lastModified", - "type" : "com.linkedin.common.ChangeAuditStamps", - "doc" : "Captures information about who created/last modified/deleted this dashboard and when" - }, { - "name" : "dashboardUrl", - "type" : [ "null", "string" ], - "doc" : "URL for the dashboard. This could be used as an external link on DataHub to allow users access/view the dashboard", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "access", - "type" : [ "null", "com.linkedin.common.AccessLevel" ], - "doc" : "Access level for the dashboard", - "default" : null, - "Searchable" : { - "addToFilters" : true, - "fieldType" : "KEYWORD", - "filterNameOverride" : "Access Level" - } - }, { - "name" : "lastRefreshed", - "type" : [ "null", "long" ], - "doc" : "The time when this dashboard last refreshed", - "default" : null - } ], - "Aspect" : { - "name" : "dashboardInfo" - } - }, { - "type" : "record", - "name" : "EditableDashboardProperties", - "namespace" : "com.linkedin.dashboard", - "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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Edited documentation of the dashboard", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableDashboardProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.GlobalTags", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlossaryTerms", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the dashboard. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dashboardKey", - "name" : "dashboard" - } - }, { - "type" : "record", - "name" : "DataFlowSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific DataFlow entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DataFlowUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataFlowKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Data Flow", - "fields" : [ { - "name" : "orchestrator", - "type" : "string", - "doc" : "Workflow manager like azkaban, airflow which orchestrates the flow", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "flowId", - "type" : "string", - "doc" : "Unique Identifier of the data flow", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "cluster", - "type" : "string", - "doc" : "Cluster where the flow is executed", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "dataFlowKey" - } - }, { - "type" : "record", - "name" : "DataFlowInfo", - "namespace" : "com.linkedin.datajob", - "doc" : "Information about a Data processing flow", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Flow name", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Flow description", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "project", - "type" : [ "null", "string" ], - "doc" : "Optional project/namespace associated with the flow", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : false - } - }, { - "name" : "created", - "type" : [ "null", { - "type" : "record", - "name" : "TimeStamp", - "namespace" : "com.linkedin.common", - "doc" : "A standard event timestamp", - "fields" : [ { - "name" : "time", - "type" : "long", - "doc" : "When did the event occur" - }, { - "name" : "actor", - "type" : [ "null", "string" ], - "doc" : "Optional: The actor urn involved in the event.", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - } ] - } ], - "doc" : "A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "createdAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "lastModified", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "lastModifiedAt", - "fieldType" : "DATETIME" - } - } - } ], - "Aspect" : { - "name" : "dataFlowInfo" - } - }, { - "type" : "record", - "name" : "EditableDataFlowProperties", - "namespace" : "com.linkedin.datajob", - "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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Edited documentation of the data flow", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableDataFlowProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.GlobalTags", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlossaryTerms", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the data flow. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dataFlowKey", - "name" : "dataFlow" - } - }, { - "type" : "record", - "name" : "DataJobSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific DataJob entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DataJobUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataJobKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Data Job", - "fields" : [ { - "name" : "flow", - "type" : "string", - "doc" : "Standardized data processing flow urn representing the flow for the job", - "Relationship" : { - "entityTypes" : [ "dataFlow" ], - "name" : "IsPartOf" - }, - "Searchable" : { - "fieldName" : "dataFlow", - "fieldType" : "URN_PARTIAL", - "queryByDefault" : false - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "jobId", - "type" : "string", - "doc" : "Unique Identifier of the data job", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "dataJobKey" - } - }, { - "type" : "record", - "name" : "DataJobInfo", - "namespace" : "com.linkedin.datajob", - "doc" : "Information about a Data processing job", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Job name", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Job description", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "type", - "type" : [ { - "type" : "enum", - "name" : "AzkabanJobType", - "namespace" : "com.linkedin.datajob.azkaban", - "doc" : "The various types of support azkaban jobs", - "symbols" : [ "COMMAND", "HADOOP_JAVA", "HADOOP_SHELL", "HIVE", "PIG", "SQL", "GLUE" ], - "symbolDocs" : { - "COMMAND" : "The command job type is one of the basic built-in types. It runs multiple UNIX commands using java processbuilder.\nUpon execution, Azkaban spawns off a process to run the command.", - "GLUE" : "Glue type is for running AWS Glue job transforms.", - "HADOOP_JAVA" : "Runs a java program with ability to access Hadoop cluster.\nhttps://azkaban.readthedocs.io/en/latest/jobTypes.html#java-job-type", - "HADOOP_SHELL" : "In large part, this is the same Command type. The difference is its ability to talk to a Hadoop cluster\nsecurely, via Hadoop tokens.", - "HIVE" : "Hive type is for running Hive jobs.", - "PIG" : "Pig type is for running Pig jobs.", - "SQL" : "SQL is for running Presto, mysql queries etc" - } - }, "string" ], - "doc" : "Datajob type\n*NOTE**: AzkabanJobType is deprecated. Please use strings instead." - }, { - "name" : "flowUrn", - "type" : [ "null", "string" ], - "doc" : "DataFlow urn that this job is part of", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.DataFlowUrn" - } - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "createdAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "lastModified", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "lastModifiedAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "status", - "type" : [ "null", { - "type" : "enum", - "name" : "JobStatus", - "doc" : "Job statuses", - "symbols" : [ "STARTING", "IN_PROGRESS", "STOPPING", "STOPPED", "COMPLETED", "FAILED", "UNKNOWN", "SKIPPED" ], - "symbolDocs" : { - "COMPLETED" : "Jobs with successful completion.", - "FAILED" : "Jobs that have failed.", - "IN_PROGRESS" : "Jobs currently running.", - "SKIPPED" : "Jobs that have been skipped.", - "STARTING" : "Jobs being initialized.", - "STOPPED" : "Jobs that have stopped.", - "STOPPING" : "Jobs being stopped.", - "UNKNOWN" : "Jobs with unknown status (either unmappable or unavailable)" - } - } ], - "doc" : "Status of the job - Deprecated for Data Process Instance model.", - "default" : null, - "deprecated" : "Use Data Process Instance model, instead" - } ], - "Aspect" : { - "name" : "dataJobInfo" - } - }, { - "type" : "record", - "name" : "DataJobInputOutput", - "namespace" : "com.linkedin.datajob", - "doc" : "Information about the inputs and outputs of a Data processing job", - "fields" : [ { - "name" : "inputDatasets", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Input datasets consumed by the data job during processing\nDeprecated! Use inputDatasetEdges instead.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "inputs", - "fieldType" : "URN", - "numValuesFieldName" : "numInputDatasets", - "queryByDefault" : false - } - }, - "deprecated" : true - }, { - "name" : "inputDatasetEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Input datasets consumed by the data job during processing", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "inputDatasetEdges/*/created/actor", - "createdOn" : "inputDatasetEdges/*/created/time", - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes", - "properties" : "inputDatasetEdges/*/properties", - "updatedActor" : "inputDatasetEdges/*/lastModified/actor", - "updatedOn" : "inputDatasetEdges/*/lastModified/time" - } - }, - "Searchable" : { - "/*/destinationUrn" : { - "fieldName" : "inputDatasetEdges", - "fieldType" : "URN", - "numValuesFieldName" : "numInputDatasets", - "queryByDefault" : false - } - } - }, { - "name" : "outputDatasets", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Output datasets produced by the data job during processing\nDeprecated! Use outputDatasetEdges instead.", - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "isUpstream" : false, - "name" : "Produces" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "outputs", - "fieldType" : "URN", - "numValuesFieldName" : "numOutputDatasets", - "queryByDefault" : false - } - }, - "deprecated" : true - }, { - "name" : "outputDatasetEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Output datasets produced by the data job during processing", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "outputDatasetEdges/*/created/actor", - "createdOn" : "outputDatasetEdges/*/created/time", - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "isUpstream" : false, - "name" : "Produces", - "properties" : "outputDatasetEdges/*/properties", - "updatedActor" : "outputDatasetEdges/*/lastModified/actor", - "updatedOn" : "outputDatasetEdges/*/lastModified/time" - } - }, - "Searchable" : { - "/*/destinationUrn" : { - "fieldName" : "outputDatasetEdges", - "fieldType" : "URN", - "numValuesFieldName" : "numOutputDatasets", - "queryByDefault" : false - } - } - }, { - "name" : "inputDatajobs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Input datajobs that this data job depends on\nDeprecated! Use inputDatajobEdges instead.", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataJob" ], - "isLineage" : true, - "name" : "DownstreamOf" - } - }, - "deprecated" : true - }, { - "name" : "inputDatajobEdges", - "type" : [ "null", { - "type" : "array", - "items" : "com.linkedin.common.Edge" - } ], - "doc" : "Input datajobs that this data job depends on", - "default" : null, - "Relationship" : { - "/*/destinationUrn" : { - "createdActor" : "inputDatajobEdges/*/created/actor", - "createdOn" : "inputDatajobEdges/*/created/time", - "entityTypes" : [ "dataJob" ], - "isLineage" : true, - "name" : "DownstreamOf", - "properties" : "inputDatajobEdges/*/properties", - "updatedActor" : "inputDatajobEdges/*/lastModified/actor", - "updatedOn" : "inputDatajobEdges/*/lastModified/time" - } - } - }, { - "name" : "inputDatasetFields", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Fields of the input datasets used by this job", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "schemaField" ], - "name" : "Consumes" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "inputFields", - "fieldType" : "URN", - "numValuesFieldName" : "numInputFields", - "queryByDefault" : false - } - } - }, { - "name" : "outputDatasetFields", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Fields of the output datasets this job writes to", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "schemaField" ], - "name" : "Produces" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "outputFields", - "fieldType" : "URN", - "numValuesFieldName" : "numOutputFields", - "queryByDefault" : false - } - } - }, { - "name" : "fineGrainedLineages", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "FineGrainedLineage", - "namespace" : "com.linkedin.dataset", - "doc" : "A fine-grained lineage from upstream fields/datasets to downstream field(s)", - "fields" : [ { - "name" : "upstreamType", - "type" : { - "type" : "enum", - "name" : "FineGrainedLineageUpstreamType", - "doc" : "The type of upstream entity in a fine-grained lineage", - "symbols" : [ "FIELD_SET", "DATASET", "NONE" ], - "symbolDocs" : { - "DATASET" : " Indicates that this lineage is originating from upstream dataset(s)", - "FIELD_SET" : " Indicates that this lineage is originating from upstream field(s)", - "NONE" : " Indicates that there is no upstream lineage i.e. the downstream field is not a derived field" - } - }, - "doc" : "The type of upstream entity" - }, { - "name" : "upstreams", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Upstream entities in the lineage", - "default" : null - }, { - "name" : "downstreamType", - "type" : { - "type" : "enum", - "name" : "FineGrainedLineageDownstreamType", - "doc" : "The type of downstream field(s) in a fine-grained lineage", - "symbols" : [ "FIELD", "FIELD_SET" ], - "symbolDocs" : { - "FIELD" : " Indicates that the lineage is for a single, specific, downstream field", - "FIELD_SET" : " Indicates that the lineage is for a set of downstream fields" - } - }, - "doc" : "The type of downstream field(s)" - }, { - "name" : "downstreams", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Downstream fields in the lineage", - "default" : null - }, { - "name" : "transformOperation", - "type" : [ "null", "string" ], - "doc" : "The transform operation applied to the upstream entities to produce the downstream field(s)", - "default" : null - }, { - "name" : "confidenceScore", - "type" : "float", - "doc" : "The confidence in this lineage between 0 (low confidence) and 1 (high confidence)", - "default" : 1.0 - } ] - } - } ], - "doc" : "Fine-grained column-level lineages", - "default" : null - } ], - "Aspect" : { - "name" : "dataJobInputOutput" - } - }, { - "type" : "record", - "name" : "EditableDataJobProperties", - "namespace" : "com.linkedin.datajob", - "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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Edited documentation of the data job ", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableDataJobProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.GlobalTags", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlossaryTerms", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the data job. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dataJobKey", - "name" : "dataJob" - } - }, { - "type" : "record", - "name" : "DatasetSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific dataset entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DatasetKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Dataset", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Data platform urn associated with the dataset", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "URN" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Unique guid for dataset", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldName" : "id", - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : { - "type" : "enum", - "name" : "FabricType", - "namespace" : "com.linkedin.common", - "doc" : "Fabric group type", - "symbols" : [ "DEV", "TEST", "QA", "UAT", "EI", "PRE", "STG", "NON_PROD", "PROD", "CORP" ], - "symbolDocs" : { - "CORP" : "Designates corporation fabrics", - "DEV" : "Designates development fabrics", - "EI" : "Designates early-integration fabrics", - "NON_PROD" : "Designates non-production fabrics", - "PRE" : "Designates pre-production fabrics", - "PROD" : "Designates production fabrics", - "QA" : "Designates quality assurance fabrics", - "STG" : "Designates staging fabrics", - "TEST" : "Designates testing fabrics", - "UAT" : "Designates user acceptance testing fabrics" - } - }, - "doc" : "Fabric type where dataset belongs to or where it was generated.", - "Searchable" : { - "addToFilters" : true, - "fieldType" : "TEXT_PARTIAL", - "filterNameOverride" : "Environment", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "datasetKey" - } - }, { - "type" : "record", - "name" : "DatasetProperties", - "namespace" : "com.linkedin.dataset", - "doc" : "Properties associated with a Dataset", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "name", - "type" : [ "null", "string" ], - "doc" : "Display name of the Dataset", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "qualifiedName", - "type" : [ "null", "string" ], - "doc" : "Fully-qualified name of the Dataset", - "default" : null, - "Searchable" : { - "addToFilters" : false, - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the dataset", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "uri", - "type" : [ "null", "string" ], - "doc" : "The abstracted URI such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic).", - "default" : null, - "deprecated" : "Use ExternalReference.externalUrl field instead.", - "java" : { - "class" : "java.net.URI" - } - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was created in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "createdAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "lastModified", - "type" : [ "null", "com.linkedin.common.TimeStamp" ], - "doc" : "A timestamp documenting when the asset was last modified in the source Data Platform (not on DataHub)", - "default" : null, - "Searchable" : { - "/time" : { - "fieldName" : "lastModifiedAt", - "fieldType" : "DATETIME" - } - } - }, { - "name" : "tags", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "[Legacy] Unstructured tags for the dataset. Structured tags can be applied via the `GlobalTags` aspect.\nThis is now deprecated.", - "default" : [ ], - "deprecated" : "Use GlobalTags aspect instead." - } ], - "Aspect" : { - "name" : "datasetProperties" - } - }, { - "type" : "record", - "name" : "EditableDatasetProperties", - "namespace" : "com.linkedin.dataset", - "doc" : "EditableDatasetProperties stores editable changes made to dataset 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" : "com.linkedin.common.AuditStamp", - "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.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.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", "string" ], - "doc" : "Documentation of the dataset", - "default" : null, - "Searchable" : { - "fieldName" : "editedDescription", - "fieldType" : "TEXT" - } - } ], - "Aspect" : { - "name" : "editableDatasetProperties" - } - }, { - "type" : "record", - "name" : "DatasetDeprecation", - "namespace" : "com.linkedin.dataset", - "doc" : "Dataset deprecation status\nDeprecated! This aspect is deprecated in favor of the more-general-purpose 'Deprecation' aspect.", - "fields" : [ { - "name" : "deprecated", - "type" : "boolean", - "doc" : "Whether the dataset is deprecated by owner.", - "Searchable" : { - "fieldType" : "BOOLEAN", - "weightsPerFieldValue" : { - "true" : 0.5 - } - } - }, { - "name" : "decommissionTime", - "type" : [ "null", "long" ], - "doc" : "The time user plan to decommission this dataset.", - "default" : null - }, { - "name" : "note", - "type" : "string", - "doc" : "Additional information about the dataset deprecation plan, such as the wiki, doc, RB." - }, { - "name" : "actor", - "type" : [ "null", "string" ], - "doc" : "The corpuser URN which will be credited for modifying this deprecation content.", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - } ], - "Aspect" : { - "name" : "datasetDeprecation" - }, - "Deprecated" : true - }, { - "type" : "record", - "name" : "DatasetUpstreamLineage", - "namespace" : "com.linkedin.dataset", - "doc" : "Fine Grained upstream lineage for fields in a dataset", - "fields" : [ { - "name" : "fieldMappings", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "DatasetFieldMapping", - "doc" : "Representation of mapping between fields in source dataset to the field in destination dataset", - "fields" : [ { - "name" : "created", - "type" : "com.linkedin.common.AuditStamp", - "doc" : "Audit stamp containing who reported the field mapping and when" - }, { - "name" : "transformation", - "type" : [ { - "type" : "enum", - "name" : "TransformationType", - "namespace" : "com.linkedin.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.common.fieldtransformer", - "doc" : "Field transformation expressed in UDF", - "fields" : [ { - "name" : "udf", - "type" : "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" - }, { - "name" : "sourceFields", - "type" : { - "type" : "array", - "items" : [ "string" ] - }, - "doc" : "Source fields from which the fine grained lineage is derived" - }, { - "name" : "destinationField", - "type" : "string", - "doc" : "Destination field which is derived from source fields", - "deprecated" : "use SchemaFieldPath and represent as generic Urn instead", - "java" : { - "class" : "com.linkedin.common.urn.DatasetFieldUrn" - } - } ], - "deprecated" : "use FineGrainedLineage instead" - } - }, - "doc" : "Upstream to downstream field level lineage mappings" - } ], - "Aspect" : { - "name" : "datasetUpstreamLineage" - }, - "deprecated" : "use UpstreamLineage.fineGrainedLineages instead" - }, { - "type" : "record", - "name" : "UpstreamLineage", - "namespace" : "com.linkedin.dataset", - "doc" : "Upstream lineage of a dataset", - "fields" : [ { - "name" : "upstreams", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "Upstream", - "doc" : "Upstream lineage information about a dataset including the source reporting the lineage", - "fields" : [ { - "name" : "auditStamp", - "type" : "com.linkedin.common.AuditStamp", - "doc" : "Audit stamp containing who reported the lineage and when.", - "default" : { - "actor" : "urn:li:corpuser:unknown", - "impersonator" : null, - "time" : 0, - "message" : null - } - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.AuditStamp" ], - "doc" : "Audit stamp containing who created the lineage and when.", - "default" : null - }, { - "name" : "dataset", - "type" : "string", - "doc" : "The upstream dataset the lineage points to", - "Relationship" : { - "createdActor" : "upstreams/*/created/actor", - "createdOn" : "upstreams/*/created/time", - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "DownstreamOf", - "properties" : "upstreams/*/properties", - "updatedActor" : "upstreams/*/auditStamp/actor", - "updatedOn" : "upstreams/*/auditStamp/time" - }, - "Searchable" : { - "fieldName" : "upstreams", - "fieldType" : "URN", - "queryByDefault" : false - }, - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "DatasetLineageType", - "doc" : "The various types of supported dataset lineage", - "symbols" : [ "COPY", "TRANSFORMED", "VIEW" ], - "symbolDocs" : { - "COPY" : "Direct copy without modification", - "TRANSFORMED" : "Transformed data with modification (format or content change)", - "VIEW" : "Represents a view defined on the sources e.g. Hive view defined on underlying hive tables or a Hive table pointing to a HDFS dataset or DALI view defined on multiple sources" - } - }, - "doc" : "The type of the lineage" - }, { - "name" : "properties", - "type" : [ "null", { - "type" : "map", - "values" : "string" - } ], - "doc" : "A generic properties bag that allows us to store specific information on this graph edge.", - "default" : null - } ] - } - }, - "doc" : "List of upstream dataset lineage information" - }, { - "name" : "fineGrainedLineages", - "type" : [ "null", { - "type" : "array", - "items" : "FineGrainedLineage" - } ], - "doc" : " List of fine-grained lineage information, including field-level lineage", - "default" : null, - "Relationship" : { - "/*/upstreams/*" : { - "entityTypes" : [ "dataset", "schemaField" ], - "name" : "DownstreamOf" - } - } - } ], - "Aspect" : { - "name" : "upstreamLineage" - } - }, "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.Ownership", "com.linkedin.common.Status", { - "type" : "record", - "name" : "SchemaMetadata", - "namespace" : "com.linkedin.schema", - "doc" : "SchemaMetadata to describe metadata related to store schema", - "fields" : [ { - "name" : "schemaName", - "type" : "string", - "doc" : "Schema name e.g. PageViewEvent, identity.Profile, ams.account_management_tracking", - "validate" : { - "strlen" : { - "max" : 500, - "min" : 1 - } - } - }, { - "name" : "platform", - "type" : "string", - "doc" : "Standardized platform urn where schema is defined. The data platform Urn (urn:li:platform:{platform_name})", - "java" : { - "class" : "com.linkedin.common.urn.DataPlatformUrn" - } - }, { - "name" : "version", - "type" : "long", - "doc" : "Every change to SchemaMetadata in the resource results in a new version. Version is server assigned. This version is differ from platform native schema version." - }, { - "name" : "created", - "type" : "com.linkedin.common.AuditStamp", - "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.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.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" : "dataset", - "type" : [ "null", "string" ], - "doc" : "Dataset this schema metadata is associated with.", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "cluster", - "type" : [ "null", "string" ], - "doc" : "The cluster this schema metadata resides from", - "default" : null - }, { - "name" : "hash", - "type" : "string", - "doc" : "the SHA1 hash of the schema content" - }, { - "name" : "platformSchema", - "type" : [ { - "type" : "record", - "name" : "EspressoSchema", - "doc" : "Schema text of an espresso table schema.", - "fields" : [ { - "name" : "documentSchema", - "type" : "string", - "doc" : "The native espresso document schema." - }, { - "name" : "tableSchema", - "type" : "string", - "doc" : "The espresso table schema definition." - } ] - }, { - "type" : "record", - "name" : "OracleDDL", - "doc" : "Schema holder for oracle data definition language that describes an oracle table.", - "fields" : [ { - "name" : "tableSchema", - "type" : "string", - "doc" : "The native schema in the dataset's platform. This is a human readable (json blob) table schema." - } ] - }, { - "type" : "record", - "name" : "MySqlDDL", - "doc" : "Schema holder for MySql data definition language that describes an MySql table.", - "fields" : [ { - "name" : "tableSchema", - "type" : "string", - "doc" : "The native schema in the dataset's platform. This is a human readable (json blob) table schema." - } ] - }, { - "type" : "record", - "name" : "PrestoDDL", - "doc" : "Schema holder for presto data definition language that describes a presto view.", - "fields" : [ { - "name" : "rawSchema", - "type" : "string", - "doc" : "The raw schema in the dataset's platform. This includes the DDL and the columns extracted from DDL." - } ] - }, { - "type" : "record", - "name" : "KafkaSchema", - "doc" : "Schema holder for kafka schema.", - "fields" : [ { - "name" : "documentSchema", - "type" : "string", - "doc" : "The native kafka document schema. This is a human readable avro document schema." - }, { - "name" : "keySchema", - "type" : [ "null", "string" ], - "doc" : "The native kafka key schema as retrieved from Schema Registry", - "default" : null - } ] - }, { - "type" : "record", - "name" : "BinaryJsonSchema", - "doc" : "Schema text of binary JSON schema.", - "fields" : [ { - "name" : "schema", - "type" : "string", - "doc" : "The native schema text for binary JSON file format." - } ] - }, { - "type" : "record", - "name" : "OrcSchema", - "doc" : "Schema text of an ORC schema.", - "fields" : [ { - "name" : "schema", - "type" : "string", - "doc" : "The native schema for ORC file format." - } ] - }, { - "type" : "record", - "name" : "Schemaless", - "doc" : "The dataset has no specific schema associated with it", - "fields" : [ ] - }, { - "type" : "record", - "name" : "KeyValueSchema", - "doc" : "Schema text of a key-value store schema.", - "fields" : [ { - "name" : "keySchema", - "type" : "string", - "doc" : "The raw schema for the key in the key-value store." - }, { - "name" : "valueSchema", - "type" : "string", - "doc" : "The raw schema for the value in the key-value store." - } ] - }, { - "type" : "record", - "name" : "OtherSchema", - "doc" : "Schema holder for undefined schema types.", - "fields" : [ { - "name" : "rawSchema", - "type" : "string", - "doc" : "The native schema in the dataset's platform." - } ] - } ], - "doc" : "The native schema in the dataset's platform." - }, { - "name" : "fields", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "SchemaField", - "doc" : "SchemaField to describe metadata related to dataset schema.", - "fields" : [ { - "name" : "fieldPath", - "type" : "string", - "doc" : "Flattened name of the field. Field is computed from jsonPath field.", - "Searchable" : { - "fieldName" : "fieldPaths", - "fieldType" : "TEXT" - } - }, { - "name" : "jsonPath", - "type" : [ "null", "string" ], - "doc" : "Flattened name of a field in JSON Path notation.", - "default" : null, - "Deprecated" : true - }, { - "name" : "nullable", - "type" : "boolean", - "doc" : "Indicates if this field is optional or nullable", - "default" : false - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Description", - "default" : null, - "Searchable" : { - "boostScore" : 0.1, - "fieldName" : "fieldDescriptions", - "fieldType" : "TEXT" - } - }, { - "name" : "label", - "type" : [ "null", "string" ], - "doc" : "Label of the field. Provides a more human-readable name for the field than field path. Some sources will\nprovide this metadata but not all sources have the concept of a label. If just one string is associated with\na field in a source, that is most likely a description.", - "default" : null, - "Searchable" : { - "boostScore" : 0.2, - "fieldName" : "fieldLabels", - "fieldType" : "TEXT" - } - }, { - "name" : "created", - "type" : [ "null", "com.linkedin.common.AuditStamp" ], - "doc" : "An AuditStamp corresponding to the creation of this schema field.", - "default" : null - }, { - "name" : "lastModified", - "type" : [ "null", "com.linkedin.common.AuditStamp" ], - "doc" : "An AuditStamp corresponding to the last modification of this schema field.", - "default" : null - }, { - "name" : "type", - "type" : { - "type" : "record", - "name" : "SchemaFieldDataType", - "doc" : "Schema field data types", - "fields" : [ { - "name" : "type", - "type" : [ { - "type" : "record", - "name" : "BooleanType", - "doc" : "Boolean field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "FixedType", - "doc" : "Fixed field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "StringType", - "doc" : "String field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "BytesType", - "doc" : "Bytes field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "NumberType", - "doc" : "Number data type: long, integer, short, etc..", - "fields" : [ ] - }, { - "type" : "record", - "name" : "DateType", - "doc" : "Date field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "TimeType", - "doc" : "Time field type. This should also be used for datetimes.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "EnumType", - "doc" : "Enum field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "NullType", - "doc" : "Null field type.", - "fields" : [ ] - }, { - "type" : "record", - "name" : "MapType", - "doc" : "Map field type.", - "fields" : [ { - "name" : "keyType", - "type" : [ "null", "string" ], - "doc" : "Key type in a map", - "default" : null - }, { - "name" : "valueType", - "type" : [ "null", "string" ], - "doc" : "Type of the value in a map", - "default" : null - } ] - }, { - "type" : "record", - "name" : "ArrayType", - "doc" : "Array field type.", - "fields" : [ { - "name" : "nestedType", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of types this array holds.", - "default" : null - } ] - }, { - "type" : "record", - "name" : "UnionType", - "doc" : "Union field type.", - "fields" : [ { - "name" : "nestedTypes", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of types in union type.", - "default" : null - } ] - }, { - "type" : "record", - "name" : "RecordType", - "doc" : "Record field type.", - "fields" : [ ] - } ], - "doc" : "Data platform specific types" - } ] - }, - "doc" : "Platform independent field type of the field." - }, { - "name" : "nativeDataType", - "type" : "string", - "doc" : "The native type of the field in the dataset's platform as declared by platform schema." - }, { - "name" : "recursive", - "type" : "boolean", - "doc" : "There are use cases when a field in type B references type A. A field in A references field of type B. In such cases, we will mark the first field as recursive.", - "default" : false - }, { - "name" : "globalTags", - "type" : [ "null", "com.linkedin.common.GlobalTags" ], - "doc" : "Tags associated with the field", - "default" : null, - "Relationship" : { - "/tags/*/tag" : { - "entityTypes" : [ "tag" ], - "name" : "SchemaFieldTaggedWith" - } - }, - "Searchable" : { - "/tags/*/tag" : { - "boostScore" : 0.5, - "fieldName" : "fieldTags", - "fieldType" : "URN" - } - } - }, { - "name" : "glossaryTerms", - "type" : [ "null", "com.linkedin.common.GlossaryTerms" ], - "doc" : "Glossary terms associated with the field", - "default" : null, - "Relationship" : { - "/terms/*/urn" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "SchemaFieldWithGlossaryTerm" - } - }, - "Searchable" : { - "/terms/*/urn" : { - "boostScore" : 0.5, - "fieldName" : "fieldGlossaryTerms", - "fieldType" : "URN" - } - } - }, { - "name" : "isPartOfKey", - "type" : "boolean", - "doc" : "For schema fields that are part of complex keys, set this field to true\nWe do this to easily distinguish between value and key fields", - "default" : false - }, { - "name" : "isPartitioningKey", - "type" : [ "null", "boolean" ], - "doc" : "For Datasets which are partitioned, this determines the partitioning key.", - "default" : null - }, { - "name" : "jsonProps", - "type" : [ "null", "string" ], - "doc" : "For schema fields that have other properties that are not modeled explicitly,\nuse this field to serialize those properties into a JSON string", - "default" : null - } ] - } - }, - "doc" : "Client provided a list of fields from document schema." - }, { - "name" : "primaryKeys", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Client provided list of fields that define primary keys to access record. Field order defines hierarchical espresso keys. Empty lists indicates absence of primary key access patter. Value is a SchemaField@fieldPath.", - "default" : null - }, { - "name" : "foreignKeysSpecs", - "type" : [ "null", { - "type" : "map", - "values" : { - "type" : "record", - "name" : "ForeignKeySpec", - "doc" : "Description of a foreign key in a schema.", - "fields" : [ { - "name" : "foreignKey", - "type" : [ { - "type" : "record", - "name" : "DatasetFieldForeignKey", - "doc" : "For non-urn based foregin keys.", - "fields" : [ { - "name" : "parentDataset", - "type" : "string", - "doc" : "dataset that stores the resource.", - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "currentFieldPaths", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "List of fields in hosting(current) SchemaMetadata that conform a foreign key. List can contain a single entry or multiple entries if several entries in hosting schema conform a foreign key in a single parent dataset." - }, { - "name" : "parentField", - "type" : "string", - "doc" : "SchemaField@fieldPath that uniquely identify field in parent dataset that this field references." - } ] - }, { - "type" : "record", - "name" : "UrnForeignKey", - "doc" : "If SchemaMetadata fields make any external references and references are of type com.linkedin.common.Urn or any children, this models can be used to mark it.", - "fields" : [ { - "name" : "currentFieldPath", - "type" : "string", - "doc" : "Field in hosting(current) SchemaMetadata." - } ] - } ], - "doc" : "Foreign key definition in metadata schema." - } ] - } - } ], - "doc" : "Map captures all the references schema makes to external datasets. Map key is ForeignKeySpecName typeref.", - "default" : null, - "deprecated" : "Use foreignKeys instead." - }, { - "name" : "foreignKeys", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "ForeignKeyConstraint", - "doc" : "Description of a foreign key constraint in a schema.", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Name of the constraint, likely provided from the source" - }, { - "name" : "foreignFields", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Fields the constraint maps to on the foreign dataset", - "Relationship" : { - "/*" : { - "entityTypes" : [ "schemaField" ], - "name" : "ForeignKeyTo" - } - } - }, { - "name" : "sourceFields", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Fields the constraint maps to on the source dataset" - }, { - "name" : "foreignDataset", - "type" : "string", - "doc" : "Reference to the foreign dataset for ease of lookup", - "Relationship" : { - "entityTypes" : [ "dataset" ], - "name" : "ForeignKeyToDataset" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - } ] - } - } ], - "doc" : "List of foreign key constraints for the schema", - "default" : null - } ], - "Aspect" : { - "name" : "schemaMetadata" - } - }, { - "type" : "record", - "name" : "EditableSchemaMetadata", - "namespace" : "com.linkedin.schema", - "doc" : "EditableSchemaMetadata stores editable changes made to schema metadata. 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" : "com.linkedin.common.AuditStamp", - "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.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.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" : "editableSchemaFieldInfo", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "EditableSchemaFieldInfo", - "doc" : "SchemaField to describe metadata related to dataset schema.", - "fields" : [ { - "name" : "fieldPath", - "type" : "string", - "doc" : "FieldPath uniquely identifying the SchemaField this metadata is associated with" - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Description", - "default" : null, - "Searchable" : { - "boostScore" : 0.1, - "fieldName" : "editedFieldDescriptions", - "fieldType" : "TEXT" - } - }, { - "name" : "globalTags", - "type" : [ "null", "com.linkedin.common.GlobalTags" ], - "doc" : "Tags associated with the field", - "default" : null, - "Relationship" : { - "/tags/*/tag" : { - "entityTypes" : [ "tag" ], - "name" : "EditableSchemaFieldTaggedWith" - } - }, - "Searchable" : { - "/tags/*/tag" : { - "boostScore" : 0.5, - "fieldName" : "editedFieldTags", - "fieldType" : "URN" - } - } - }, { - "name" : "glossaryTerms", - "type" : [ "null", "com.linkedin.common.GlossaryTerms" ], - "doc" : "Glossary terms associated with the field", - "default" : null, - "Relationship" : { - "/terms/*/urn" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "EditableSchemaFieldWithGlossaryTerm" - } - }, - "Searchable" : { - "/terms/*/urn" : { - "boostScore" : 0.5, - "fieldName" : "editedFieldGlossaryTerms", - "fieldType" : "URN" - } - } - } ] - } - }, - "doc" : "Client provided a list of fields from document schema." - } ], - "Aspect" : { - "name" : "editableSchemaMetadata" - } - }, "com.linkedin.common.GlobalTags", "com.linkedin.common.GlossaryTerms", "com.linkedin.common.BrowsePaths", "com.linkedin.common.DataPlatformInstance", { - "type" : "record", - "name" : "ViewProperties", - "namespace" : "com.linkedin.dataset", - "doc" : "Details about a View. \ne.g. Gets activated when subTypes is view", - "fields" : [ { - "name" : "materialized", - "type" : "boolean", - "doc" : "Whether the view is materialized", - "Searchable" : { - "fieldType" : "BOOLEAN", - "weightsPerFieldValue" : { - "true" : 0.5 - } - } - }, { - "name" : "viewLogic", - "type" : "string", - "doc" : "The view logic" - }, { - "name" : "viewLanguage", - "type" : "string", - "doc" : "The view logic language / dialect" - } ], - "Aspect" : { - "name" : "viewProperties" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "datasetKey", - "name" : "dataset" - } - }, { - "type" : "record", - "name" : "DataProcessSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific Data process entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DataProcessUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataProcessKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Data Process", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Process name i.e. an ETL job name", - "Searchable" : { - "boostScore" : 4.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "orchestrator", - "type" : "string", - "doc" : "Standardized Orchestrator where data process is defined.\nTODO: Migrate towards something that can be validated like DataPlatform urn", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : "com.linkedin.common.FabricType", - "doc" : "Fabric type where dataset belongs to or where it was generated.", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "dataProcessKey" - } - }, "com.linkedin.common.Ownership", { - "type" : "record", - "name" : "DataProcessInfo", - "namespace" : "com.linkedin.dataprocess", - "doc" : "The inputs and outputs of this data process", - "fields" : [ { - "name" : "inputs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "the inputs of the data process", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "inputs", - "fieldType" : "URN", - "numValuesFieldName" : "numInputDatasets", - "queryByDefault" : false - } - } - }, { - "name" : "outputs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "the outputs of the data process", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "Consumes" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "outputs", - "fieldType" : "URN", - "numValuesFieldName" : "numOutputDatasets", - "queryByDefault" : false - } - } - } ], - "Aspect" : { - "name" : "dataProcessInfo" - } - }, "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the data process. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dataProcessKey", - "name" : "dataProcess" - }, - "deprecated" : "Use DataJob instead." - }, { - "type" : "record", - "name" : "DataPlatformSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific dataplatform entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.DataPlatformUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataPlatformKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Data Platform", - "fields" : [ { - "name" : "platformName", - "type" : "string", - "doc" : "Data platform name i.e. hdfs, oracle, espresso" - } ], - "Aspect" : { - "name" : "dataPlatformKey" - } - }, { - "type" : "record", - "name" : "DataPlatformInfo", - "namespace" : "com.linkedin.dataplatform", - "doc" : "Information about a data platform", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Name of the data platform", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : false, - "fieldType" : "TEXT_PARTIAL" - }, - "validate" : { - "strlen" : { - "max" : 15 - } - } - }, { - "name" : "displayName", - "type" : [ "null", "string" ], - "doc" : "The name that will be used for displaying a platform type.", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "PlatformType", - "doc" : "Platform types available at LinkedIn", - "symbols" : [ "FILE_SYSTEM", "KEY_VALUE_STORE", "MESSAGE_BROKER", "OBJECT_STORE", "OLAP_DATASTORE", "OTHERS", "QUERY_ENGINE", "RELATIONAL_DB", "SEARCH_ENGINE" ], - "symbolDocs" : { - "FILE_SYSTEM" : "Value for a file system, e.g. hdfs", - "KEY_VALUE_STORE" : "Value for a key value store, e.g. espresso, voldemort", - "MESSAGE_BROKER" : "Value for a message broker, e.g. kafka", - "OBJECT_STORE" : "Value for an object store, e.g. ambry", - "OLAP_DATASTORE" : "Value for an OLAP datastore, e.g. pinot", - "OTHERS" : "Value for other platforms, e.g salesforce, dovetail", - "QUERY_ENGINE" : "Value for a query engine, e.g. presto", - "RELATIONAL_DB" : "Value for a relational database, e.g. oracle, mysql", - "SEARCH_ENGINE" : "Value for a search engine, e.g seas" - } - }, - "doc" : "Platform type this data platform describes" - }, { - "name" : "datasetNameDelimiter", - "type" : "string", - "doc" : "The delimiter in the dataset names on the data platform, e.g. '/' for HDFS and '.' for Oracle" - }, { - "name" : "logoUrl", - "type" : [ "null", "string" ], - "doc" : "The URL for a logo associated with the platform", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - } ], - "Aspect" : { - "name" : "dataPlatformInfo" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the data platform. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "dataPlatformKey", - "name" : "dataPlatform" - } - }, { - "type" : "record", - "name" : "MLModelSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "MLModel Snapshot entity details.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.MLModelUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLModelKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an ML model", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Standardized platform urn for the model", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the MLModel", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : "com.linkedin.common.FabricType", - "doc" : "Fabric type where model belongs to or where it was generated", - "Searchable" : { - "addToFilters" : true, - "fieldType" : "TEXT_PARTIAL", - "filterNameOverride" : "Environment", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "mlModelKey" - } - }, "com.linkedin.common.Ownership", { - "type" : "record", - "name" : "MLModelProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with a ML Model", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLModel", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "date", - "type" : [ "null", "long" ], - "doc" : "Date when the MLModel was developed", - "default" : null - }, { - "name" : "version", - "type" : [ "null", { - "type" : "record", - "name" : "VersionTag", - "namespace" : "com.linkedin.common", - "doc" : "A resource-defined string representing the resource state for the purpose of concurrency control", - "fields" : [ { - "name" : "versionTag", - "type" : [ "null", "string" ], - "default" : null - } ] - } ], - "doc" : "Version of the MLModel", - "default" : null - }, { - "name" : "type", - "type" : [ "null", "string" ], - "doc" : "Type of Algorithm or MLModel such as whether it is a Naive Bayes classifier, Convolutional Neural Network, etc", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "hyperParameters", - "type" : [ "null", { - "type" : "map", - "values" : [ "string", "int", "float", "double", "boolean" ] - } ], - "doc" : "Hyper Parameters of the MLModel\n\nNOTE: these are deprecated in favor of hyperParams", - "default" : null - }, { - "name" : "hyperParams", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "MLHyperParam", - "doc" : "Properties associated with an ML Hyper Param", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Name of the MLHyperParam" - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLHyperParam", - "default" : null - }, { - "name" : "value", - "type" : [ "null", "string" ], - "doc" : "The value of the MLHyperParam", - "default" : null - }, { - "name" : "createdAt", - "type" : [ "null", "long" ], - "doc" : "Date when the MLHyperParam was developed", - "default" : null - } ], - "Aspect" : { - "name" : "mlHyperParam" - } - } - } ], - "doc" : "Hyperparameters of the MLModel", - "default" : null - }, { - "name" : "trainingMetrics", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "MLMetric", - "doc" : "Properties associated with an ML Metric", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Name of the mlMetric" - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the mlMetric", - "default" : null - }, { - "name" : "value", - "type" : [ "null", "string" ], - "doc" : "The value of the mlMetric", - "default" : null - }, { - "name" : "createdAt", - "type" : [ "null", "long" ], - "doc" : "Date when the mlMetric was developed", - "default" : null - } ], - "Aspect" : { - "name" : "mlMetric" - } - } - } ], - "doc" : "Metrics of the MLModel used in training", - "default" : null - }, { - "name" : "onlineMetrics", - "type" : [ "null", { - "type" : "array", - "items" : "MLMetric" - } ], - "doc" : "Metrics of the MLModel used in production", - "default" : null - }, { - "name" : "mlFeatures", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of features used for MLModel training", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlFeature" ], - "isLineage" : true, - "name" : "Consumes" - } - } - }, { - "name" : "tags", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Tags for the MLModel", - "default" : [ ] - }, { - "name" : "deployments", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Deployments for the MLModel", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlModelDeployment" ], - "name" : "DeployedTo" - } - } - }, { - "name" : "trainingJobs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of jobs (if any) used to train the model", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataJob" ], - "isLineage" : true, - "name" : "TrainedBy" - } - } - }, { - "name" : "downstreamJobs", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of jobs (if any) that use the model", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataJob" ], - "isLineage" : true, - "isUpstream" : false, - "name" : "UsedBy" - } - } - }, { - "name" : "groups", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Groups the model belongs to", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlModelGroup" ], - "isLineage" : true, - "isUpstream" : false, - "name" : "MemberOf" - } - } - } ], - "Aspect" : { - "name" : "mlModelProperties" - } - }, { - "type" : "record", - "name" : "IntendedUse", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Intended Use for the ML Model", - "fields" : [ { - "name" : "primaryUses", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Primary Use cases for the MLModel.", - "default" : null - }, { - "name" : "primaryUsers", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "enum", - "name" : "IntendedUserType", - "symbols" : [ "ENTERPRISE", "HOBBY", "ENTERTAINMENT" ] - } - } ], - "doc" : "Primary Intended Users - For example, was the MLModel developed for entertainment purposes, for hobbyists, or enterprise solutions?", - "default" : null - }, { - "name" : "outOfScopeUses", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Highlight technology that the MLModel might easily be confused with, or related contexts that users could try to apply the MLModel to.", - "default" : null - } ], - "Aspect" : { - "name" : "intendedUse" - } - }, { - "type" : "record", - "name" : "MLModelFactorPrompts", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Prompts which affect the performance of the MLModel", - "fields" : [ { - "name" : "relevantFactors", - "type" : [ "null", { - "type" : "array", - "items" : { - "type" : "record", - "name" : "MLModelFactors", - "doc" : "Factors affecting the performance of the MLModel.", - "fields" : [ { - "name" : "groups", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Groups refers to distinct categories with similar characteristics that are present in the evaluation data instances.\nFor human-centric machine learning MLModels, groups are people who share one or multiple characteristics.", - "default" : null - }, { - "name" : "instrumentation", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The performance of a MLModel can vary depending on what instruments were used to capture the input to the MLModel.\nFor example, a face detection model may perform differently depending on the camera's hardware and software,\nincluding lens, image stabilization, high dynamic range techniques, and background blurring for portrait mode.", - "default" : null - }, { - "name" : "environment", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A further factor affecting MLModel performance is the environment in which it is deployed.", - "default" : null - } ] - } - } ], - "doc" : "What are foreseeable salient factors for which MLModel performance may vary, and how were these determined?", - "default" : null - }, { - "name" : "evaluationFactors", - "type" : [ "null", { - "type" : "array", - "items" : "MLModelFactors" - } ], - "doc" : "Which factors are being reported, and why were these chosen?", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelFactorPrompts" - } - }, { - "type" : "record", - "name" : "Metrics", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Metrics to be featured for the MLModel.", - "fields" : [ { - "name" : "performanceMeasures", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Measures of MLModel performance", - "default" : null - }, { - "name" : "decisionThreshold", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Decision Thresholds used (if any)?", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelMetrics" - } - }, { - "type" : "record", - "name" : "EvaluationData", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "All referenced datasets would ideally point to any set of documents that provide visibility into the source and composition of the dataset.", - "fields" : [ { - "name" : "evaluationData", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "BaseData", - "doc" : "BaseData record", - "fields" : [ { - "name" : "dataset", - "type" : "string", - "doc" : "What dataset were used in the MLModel?", - "java" : { - "class" : "com.linkedin.common.urn.DatasetUrn" - } - }, { - "name" : "motivation", - "type" : [ "null", "string" ], - "doc" : "Why was this dataset chosen?", - "default" : null - }, { - "name" : "preProcessing", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "How was the data preprocessed (e.g., tokenization of sentences, cropping of images, any filtering such as dropping images without faces)?", - "default" : null - } ] - } - }, - "doc" : "Details on the dataset(s) used for the quantitative analyses in the MLModel" - } ], - "Aspect" : { - "name" : "mlModelEvaluationData" - } - }, { - "type" : "record", - "name" : "TrainingData", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Ideally, the MLModel card would contain as much information about the training data as the evaluation data. However, there might be cases where it is not feasible to provide this level of detailed information about the training data. For example, the data may be proprietary, or require a non-disclosure agreement. In these cases, we advocate for basic details about the distributions over groups in the data, as well as any other details that could inform stakeholders on the kinds of biases the model may have encoded.", - "fields" : [ { - "name" : "trainingData", - "type" : { - "type" : "array", - "items" : "BaseData" - }, - "doc" : "Details on the dataset(s) used for training the MLModel" - } ], - "Aspect" : { - "name" : "mlModelTrainingData" - } - }, { - "type" : "record", - "name" : "QuantitativeAnalyses", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Quantitative analyses should be disaggregated, that is, broken down by the chosen factors. Quantitative analyses should provide the results of evaluating the MLModel according to the chosen metrics, providing confidence interval values when possible.", - "fields" : [ { - "name" : "unitaryResults", - "type" : [ "null", "string" ], - "doc" : "Link to a dashboard with results showing how the MLModel performed with respect to each factor", - "default" : null - }, { - "name" : "intersectionalResults", - "type" : [ "null", "string" ], - "doc" : "Link to a dashboard with results showing how the MLModel performed with respect to the intersection of evaluated factors?", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelQuantitativeAnalyses" - } - }, { - "type" : "record", - "name" : "EthicalConsiderations", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "This section is intended to demonstrate the ethical considerations that went into MLModel development, surfacing ethical challenges and solutions to stakeholders.", - "fields" : [ { - "name" : "data", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Does the MLModel use any sensitive data (e.g., protected classes)?", - "default" : null - }, { - "name" : "humanLife", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : " Is the MLModel intended to inform decisions about matters central to human life or flourishing - e.g., health or safety? Or could it be used in such a way?", - "default" : null - }, { - "name" : "mitigations", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "What risk mitigation strategies were used during MLModel development?", - "default" : null - }, { - "name" : "risksAndHarms", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "What risks may be present in MLModel usage? Try to identify the potential recipients, likelihood, and magnitude of harms. If these cannot be determined, note that they were considered but remain unknown.", - "default" : null - }, { - "name" : "useCases", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Are there any known MLModel use cases that are especially fraught? This may connect directly to the intended use section", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelEthicalConsiderations" - } - }, { - "type" : "record", - "name" : "CaveatsAndRecommendations", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?", - "fields" : [ { - "name" : "caveats", - "type" : [ "null", { - "type" : "record", - "name" : "CaveatDetails", - "doc" : "This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset? Are there additional recommendations for model use?", - "fields" : [ { - "name" : "needsFurtherTesting", - "type" : [ "null", "boolean" ], - "doc" : "Did the results suggest any further testing?", - "default" : null - }, { - "name" : "caveatDescription", - "type" : [ "null", "string" ], - "doc" : "Caveat Description\nFor ex: Given gender classes are binary (male/not male), which we include as male/female. Further work needed to evaluate across a spectrum of genders.", - "default" : null - }, { - "name" : "groupsNotRepresented", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Relevant groups that were not represented in the evaluation dataset?", - "default" : null - } ] - } ], - "doc" : "This section should list additional concerns that were not covered in the previous sections. For example, did the results suggest any further testing? Were there any relevant groups that were not represented in the evaluation dataset?", - "default" : null - }, { - "name" : "recommendations", - "type" : [ "null", "string" ], - "doc" : "Recommendations on where this MLModel should be used.", - "default" : null - }, { - "name" : "idealDatasetCharacteristics", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Ideal characteristics of an evaluation dataset for this MLModel", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelCaveatsAndRecommendations" - } - }, "com.linkedin.common.InstitutionalMemory", { - "type" : "record", - "name" : "SourceCode", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Source Code", - "fields" : [ { - "name" : "sourceCode", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "SourceCodeUrl", - "doc" : "Source Code Url Entity", - "fields" : [ { - "name" : "type", - "type" : { - "type" : "enum", - "name" : "SourceCodeUrlType", - "symbols" : [ "ML_MODEL_SOURCE_CODE", "TRAINING_PIPELINE_SOURCE_CODE", "EVALUATION_PIPELINE_SOURCE_CODE" ] - }, - "doc" : "Source Code Url Types" - }, { - "name" : "sourceCodeUrl", - "type" : "string", - "doc" : "Source Code Url", - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - } ] - } - }, - "doc" : "Source Code along with types" - } ], - "Aspect" : { - "name" : "sourceCode" - } - }, "com.linkedin.common.Status", { - "type" : "record", - "name" : "Cost", - "namespace" : "com.linkedin.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", "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" - } - }, { - "type" : "record", - "name" : "Deprecation", - "namespace" : "com.linkedin.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" : "string", - "doc" : "Additional information about the entity deprecation plan, such as the wiki, doc, RB." - }, { - "name" : "actor", - "type" : "string", - "doc" : "The user URN which will be credited for modifying this deprecation content.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - } ], - "Aspect" : { - "name" : "deprecation" - } - }, "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLModel. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlModelKey", - "name" : "mlModel" - } - }, { - "type" : "record", - "name" : "MLPrimaryKeySnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLPrimaryKeyKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an MLPrimaryKey", - "fields" : [ { - "name" : "featureNamespace", - "type" : "string", - "doc" : "Namespace for the primary key", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the primary key", - "Searchable" : { - "boostScore" : 8.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "mlPrimaryKeyKey" - } - }, { - "type" : "record", - "name" : "MLPrimaryKeyProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with a MLPrimaryKey", - "fields" : [ { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLPrimaryKey", - "default" : null - }, { - "name" : "dataType", - "type" : [ "null", { - "type" : "enum", - "name" : "MLFeatureDataType", - "namespace" : "com.linkedin.common", - "doc" : "MLFeature Data Type", - "symbols" : [ "USELESS", "NOMINAL", "ORDINAL", "BINARY", "COUNT", "TIME", "INTERVAL", "IMAGE", "VIDEO", "AUDIO", "TEXT", "MAP", "SEQUENCE", "SET", "CONTINUOUS", "BYTE", "UNKNOWN" ], - "symbolDocs" : { - "AUDIO" : "Audio Data", - "BINARY" : "Binary data is discrete data that can be in only one of two categories - either yes or no, 1 or 0, off or on, etc", - "BYTE" : "Bytes data are binary-encoded values that can represent complex objects.", - "CONTINUOUS" : "Continuous data are made of uncountable values, often the result of a measurement such as height, weight, age etc.", - "COUNT" : "Count data is discrete whole number data - no negative numbers here.\nCount data often has many small values, such as zero and one.", - "IMAGE" : "Image Data", - "INTERVAL" : "Interval data has equal spaces between the numbers and does not represent a temporal pattern.\nExamples include percentages, temperatures, and income.", - "MAP" : "Mapping Data Type ex: dict, map", - "NOMINAL" : "Nominal data is made of discrete values with no numerical relationship between the different categories - mean and median are meaningless.\nAnimal species is one example. For example, pig is not higher than bird and lower than fish.", - "ORDINAL" : "Ordinal data are discrete integers that can be ranked or sorted.\nFor example, the distance between first and second may not be the same as the distance between second and third.", - "SEQUENCE" : "Sequence Data Type ex: list, tuple, range", - "SET" : "Set Data Type ex: set, frozenset", - "TEXT" : "Text Data", - "TIME" : "Time data is a cyclical, repeating continuous form of data.\nThe relevant time features can be any period- daily, weekly, monthly, annual, etc.", - "UNKNOWN" : "Unknown data are data that we don't know the type for.", - "USELESS" : "Useless data is unique, discrete data with no potential relationship with the outcome variable.\nA useless feature has high cardinality. An example would be bank account numbers that were generated randomly.", - "VIDEO" : "Video Data" - } - } ], - "doc" : "Data Type of the MLPrimaryKey", - "default" : null - }, { - "name" : "version", - "type" : [ "null", "com.linkedin.common.VersionTag" ], - "doc" : "Version of the MLPrimaryKey", - "default" : null - }, { - "name" : "sources", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Source of the MLPrimaryKey", - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "DerivedFrom" - } - } - } ], - "Aspect" : { - "name" : "mlPrimaryKeyProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLPrimaryKey. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlPrimaryKeyKey", - "name" : "mlPrimaryKey" - } - }, { - "type" : "record", - "name" : "MLFeatureSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.MLFeatureUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLFeatureKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an MLFeature", - "fields" : [ { - "name" : "featureNamespace", - "type" : "string", - "doc" : "Namespace for the feature", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the feature", - "Searchable" : { - "boostScore" : 8.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "mlFeatureKey" - } - }, { - "type" : "record", - "name" : "MLFeatureProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with a MLFeature", - "fields" : [ { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLFeature", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "dataType", - "type" : [ "null", "com.linkedin.common.MLFeatureDataType" ], - "doc" : "Data Type of the MLFeature", - "default" : null - }, { - "name" : "version", - "type" : [ "null", "com.linkedin.common.VersionTag" ], - "doc" : "Version of the MLFeature", - "default" : null - }, { - "name" : "sources", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "Source of the MLFeature", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataset" ], - "isLineage" : true, - "name" : "DerivedFrom" - } - } - } ], - "Aspect" : { - "name" : "mlFeatureProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLFeature. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlFeatureKey", - "name" : "mlFeature" - } - }, { - "type" : "record", - "name" : "MLFeatureTableSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLFeatureTableKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an MLFeatureTable", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Data platform urn associated with the feature table", - "Relationship" : { - "entityTypes" : [ "dataPlatform" ], - "name" : "SourcePlatform" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the feature table", - "Searchable" : { - "boostScore" : 8.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "mlFeatureTableKey" - } - }, { - "type" : "record", - "name" : "MLFeatureTableProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with a MLFeatureTable", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLFeatureTable", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "mlFeatures", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of features contained in the feature table", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlFeature" ], - "name" : "Contains" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "features", - "fieldType" : "URN" - } - } - }, { - "name" : "mlPrimaryKeys", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "List of primary keys in the feature table (if multiple, assumed to act as a composite key)", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "mlPrimaryKey" ], - "name" : "KeyedBy" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "primaryKeys", - "fieldType" : "URN" - } - } - } ], - "Aspect" : { - "name" : "mlFeatureTableProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.InstitutionalMemory", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLFeatureTable. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlFeatureTableKey", - "name" : "mlFeatureTable" - } - }, { - "type" : "record", - "name" : "MLModelDeploymentSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLModelDeploymentKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an ML model deployment", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Standardized platform urn for the model Deployment", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the MLModelDeployment", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : "com.linkedin.common.FabricType", - "doc" : "Fabric type where model Deployment belongs to or where it was generated", - "Searchable" : { - "addToFilters" : true, - "fieldType" : "TEXT_PARTIAL", - "filterNameOverride" : "Environment", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "mlModelDeploymentKey" - } - }, { - "type" : "record", - "name" : "MLModelDeploymentProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with an ML Model Deployment", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "externalUrl", - "type" : [ "null", "string" ], - "doc" : "URL where the reference exist", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLModelDeployment", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "createdAt", - "type" : [ "null", "long" ], - "doc" : "Date when the MLModelDeployment was developed", - "default" : null - }, { - "name" : "version", - "type" : [ "null", "com.linkedin.common.VersionTag" ], - "doc" : "Version of the MLModelDeployment", - "default" : null - }, { - "name" : "status", - "type" : [ "null", { - "type" : "enum", - "name" : "DeploymentStatus", - "doc" : "Model endpoint statuses", - "symbols" : [ "OUT_OF_SERVICE", "CREATING", "UPDATING", "ROLLING_BACK", "IN_SERVICE", "DELETING", "FAILED", "UNKNOWN" ], - "symbolDocs" : { - "CREATING" : "Deployments being created.", - "DELETING" : "Deployments being deleted.", - "FAILED" : "Deployments with an error state.", - "IN_SERVICE" : "Deployments that are active.", - "OUT_OF_SERVICE" : "Deployments out of service.", - "ROLLING_BACK" : "Deployments being reverted to a previous version.", - "UNKNOWN" : "Deployments with unknown/unmappable state.", - "UPDATING" : "Deployments being updated." - } - } ], - "doc" : "Status of the deployment", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelDeploymentProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLModelDeployment. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlModelDeploymentKey", - "name" : "mlModelDeployment" - } - }, { - "type" : "record", - "name" : "MLModelGroupSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "MLModelGroupKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for an ML model group", - "fields" : [ { - "name" : "platform", - "type" : "string", - "doc" : "Standardized platform urn for the model group", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "name", - "type" : "string", - "doc" : "Name of the MLModelGroup", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "origin", - "type" : "com.linkedin.common.FabricType", - "doc" : "Fabric type where model group belongs to or where it was generated", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL", - "queryByDefault" : false - } - } ], - "Aspect" : { - "name" : "mlModelGroupKey" - } - }, { - "type" : "record", - "name" : "MLModelGroupProperties", - "namespace" : "com.linkedin.ml.metadata", - "doc" : "Properties associated with an ML Model Group", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the MLModelGroup", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT", - "hasValuesFieldName" : "hasDescription" - } - }, { - "name" : "createdAt", - "type" : [ "null", "long" ], - "doc" : "Date when the MLModelGroup was developed", - "default" : null - }, { - "name" : "version", - "type" : [ "null", "com.linkedin.common.VersionTag" ], - "doc" : "Version of the MLModelGroup", - "default" : null - } ], - "Aspect" : { - "name" : "mlModelGroupProperties" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.Deprecation", "com.linkedin.common.BrowsePaths", "com.linkedin.common.GlobalTags", "com.linkedin.common.DataPlatformInstance" ] - }, - "doc" : "The list of metadata aspects associated with the MLModelGroup. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "mlModelGroupKey", - "name" : "mlModelGroup" - } - }, { - "type" : "record", - "name" : "TagSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific dataset entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.TagUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "TagKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a Tag", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "The tag name, which serves as a unique id", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldName" : "id", - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "tagKey" - } - }, "com.linkedin.common.Ownership", { - "type" : "record", - "name" : "TagProperties", - "namespace" : "com.linkedin.tag", - "doc" : "Properties associated with a Tag", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "Display name of the tag", - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : [ "null", "string" ], - "doc" : "Documentation of the tag", - "default" : null, - "Searchable" : { } - }, { - "name" : "colorHex", - "type" : [ "null", "string" ], - "doc" : "The color associated with the Tag in Hex. For example #FFFFFF.", - "default" : null - } ], - "Aspect" : { - "name" : "tagProperties" - } - }, "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "tagKey", - "name" : "tag" - } - }, { - "type" : "record", - "name" : "GlossaryTermSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific GlossaryTerm entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.GlossaryTermUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "GlossaryTermKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a GlossaryTerm", - "fields" : [ { - "name" : "name", - "type" : "string", - "doc" : "The term name, which serves as a unique id", - "Searchable" : { - "enableAutocomplete" : true, - "fieldName" : "id", - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "glossaryTermKey" - } - }, { - "type" : "record", - "name" : "GlossaryTermInfo", - "namespace" : "com.linkedin.glossary", - "doc" : "Properties associated with a GlossaryTerm", - "fields" : [ { - "name" : "customProperties", - "type" : { - "type" : "map", - "values" : "string" - }, - "doc" : "Custom property bag.", - "default" : { }, - "Searchable" : { - "/*" : { - "queryByDefault" : true - } - } - }, { - "name" : "id", - "type" : [ "null", "string" ], - "doc" : "Optional id for the term", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "name", - "type" : [ "null", "string" ], - "doc" : "Display name of the term", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "definition", - "type" : "string", - "doc" : "Definition of business term.", - "Searchable" : { } - }, { - "name" : "parentNode", - "type" : [ "null", "string" ], - "doc" : "Parent node of the glossary term", - "default" : null, - "Relationship" : { - "entityTypes" : [ "glossaryNode" ], - "name" : "IsPartOf" - }, - "Searchable" : { - "fieldName" : "parentNode", - "fieldType" : "URN", - "hasValuesFieldName" : "hasParentNode" - }, - "java" : { - "class" : "com.linkedin.common.urn.GlossaryNodeUrn" - } - }, { - "name" : "termSource", - "type" : "string", - "doc" : "Source of the Business Term (INTERNAL or EXTERNAL) with default value as INTERNAL", - "Searchable" : { - "fieldType" : "KEYWORD" - } - }, { - "name" : "sourceRef", - "type" : [ "null", "string" ], - "doc" : "External Reference to the business-term", - "default" : null, - "Searchable" : { - "fieldType" : "KEYWORD" - } - }, { - "name" : "sourceUrl", - "type" : [ "null", "string" ], - "doc" : "The abstracted URL such as https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/CashInstrument.", - "default" : null, - "java" : { - "class" : "com.linkedin.common.url.Url", - "coercerClass" : "com.linkedin.common.url.UrlCoercer" - } - }, { - "name" : "rawSchema", - "type" : [ "null", "string" ], - "doc" : "Schema definition of the glossary term", - "default" : null, - "deprecated" : true - } ], - "Aspect" : { - "name" : "glossaryTermInfo" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status", "com.linkedin.common.BrowsePaths", { - "type" : "record", - "name" : "GlossaryRelatedTerms", - "namespace" : "com.linkedin.glossary", - "doc" : "Has A / Is A lineage information about a glossary Term reporting the lineage", - "fields" : [ { - "name" : "isRelatedTerms", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The relationship Is A with glossary term", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "IsA" - } - }, - "Searchable" : { - "/*" : { - "boostScore" : 2.0, - "fieldName" : "isRelatedTerms", - "fieldType" : "URN" - } - } - }, { - "name" : "hasRelatedTerms", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The relationship Has A with glossary term", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "HasA" - } - }, - "Searchable" : { - "/*" : { - "boostScore" : 2.0, - "fieldName" : "hasRelatedTerms", - "fieldType" : "URN" - } - } - }, { - "name" : "values", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The relationship Has Value with glossary term.\nThese are fixed value a term has. For example a ColorEnum where RED, GREEN and YELLOW are fixed values.", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "HasValue" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "values", - "fieldType" : "URN" - } - } - }, { - "name" : "relatedTerms", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "The relationship isRelatedTo with glossary term", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "glossaryTerm" ], - "name" : "IsRelatedTo" - } - }, - "Searchable" : { - "/*" : { - "fieldName" : "relatedTerms", - "fieldType" : "URN" - } - } - } ], - "Aspect" : { - "name" : "glossaryRelatedTerms" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the GlossaryTerm. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "glossaryTermKey", - "name" : "glossaryTerm" - } - }, { - "type" : "record", - "name" : "GlossaryNodeSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific GlossaryNode entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.GlossaryNodeUrn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "GlossaryNodeKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a GlossaryNode", - "fields" : [ { - "name" : "name", - "type" : "string", - "Searchable" : { - "enableAutocomplete" : true, - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "glossaryNodeKey" - } - }, { - "type" : "record", - "name" : "GlossaryNodeInfo", - "namespace" : "com.linkedin.glossary", - "doc" : "Properties associated with a GlossaryNode", - "fields" : [ { - "name" : "definition", - "type" : "string", - "doc" : "Definition of business node", - "Searchable" : { } - }, { - "name" : "parentNode", - "type" : [ "null", "string" ], - "doc" : "Parent node of the glossary term", - "default" : null, - "Relationship" : { - "entityTypes" : [ "glossaryNode" ], - "name" : "IsPartOf" - }, - "Searchable" : { - "fieldName" : "parentNode", - "fieldType" : "URN", - "hasValuesFieldName" : "hasParentNode" - }, - "java" : { - "class" : "com.linkedin.common.urn.GlossaryNodeUrn" - } - }, { - "name" : "name", - "type" : [ "null", "string" ], - "doc" : "Display name of the node", - "default" : null, - "Searchable" : { - "boostScore" : 10.0, - "enableAutocomplete" : true, - "fieldName" : "displayName", - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "id", - "type" : [ "null", "string" ], - "doc" : "Optional id for the GlossaryNode", - "default" : null, - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - } ], - "Aspect" : { - "name" : "glossaryNodeInfo" - } - }, "com.linkedin.common.Ownership", "com.linkedin.common.Status" ] - }, - "doc" : "The list of metadata aspects associated with the GlossaryNode. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "glossaryNodeKey", - "name" : "glossaryNode" - } - }, { - "type" : "record", - "name" : "DataHubPolicySnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for DataHub Access Policy data.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataHubPolicyKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a DataHub Policy", - "fields" : [ { - "name" : "id", - "type" : "string", - "doc" : "A unique id for the DataHub access policy record. Generated on the server side at policy creation time." - } ], - "Aspect" : { - "name" : "dataHubPolicyKey" - } - }, { - "type" : "record", - "name" : "DataHubPolicyInfo", - "namespace" : "com.linkedin.policy", - "doc" : "Information about a DataHub (UI) access policy.", - "fields" : [ { - "name" : "displayName", - "type" : "string", - "doc" : "Display name of the Policy", - "Searchable" : { - "fieldType" : "TEXT_PARTIAL" - } - }, { - "name" : "description", - "type" : "string", - "doc" : "Description of the Policy", - "Searchable" : { - "fieldType" : "TEXT" - } - }, { - "name" : "type", - "type" : "string", - "doc" : "The type of policy" - }, { - "name" : "state", - "type" : "string", - "doc" : "The state of policy, ACTIVE or INACTIVE" - }, { - "name" : "resources", - "type" : [ "null", { - "type" : "record", - "name" : "DataHubResourceFilter", - "doc" : "Information used to filter DataHub resource.", - "fields" : [ { - "name" : "type", - "type" : [ "null", "string" ], - "doc" : "The type of resource that the policy applies to. This will most often be a data asset entity name, for\nexample 'dataset'. It is not strictly required because in the future we will want to support filtering a resource\nby domain, as well.", - "default" : null, - "deprecated" : true - }, { - "name" : "resources", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A specific set of resources to apply the policy to, e.g. asset urns", - "default" : null, - "deprecated" : true - }, { - "name" : "allResources", - "type" : "boolean", - "doc" : "Whether the policy should be applied to all assets matching the filter.", - "default" : false, - "deprecated" : true - }, { - "name" : "filter", - "type" : [ "null", { - "type" : "record", - "name" : "PolicyMatchFilter", - "doc" : "The filter for specifying the resource or actor to apply privileges to", - "fields" : [ { - "name" : "criteria", - "type" : { - "type" : "array", - "items" : { - "type" : "record", - "name" : "PolicyMatchCriterion", - "doc" : "A criterion for matching a field with given value", - "fields" : [ { - "name" : "field", - "type" : "string", - "doc" : "The name of the field that the criterion refers to" - }, { - "name" : "values", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "Values. Matches criterion if any one of the values matches condition (OR-relationship)" - }, { - "name" : "condition", - "type" : { - "type" : "enum", - "name" : "PolicyMatchCondition", - "doc" : "The matching condition in a filter criterion", - "symbols" : [ "EQUALS" ], - "symbolDocs" : { - "EQUALS" : "Whether the field matches the value" - } - }, - "doc" : "The condition for the criterion", - "default" : "EQUALS" - } ] - } - }, - "doc" : "A list of criteria to apply conjunctively (so all criteria must pass)" - } ] - } ], - "doc" : "Filter to apply privileges to", - "default" : null - } ] - } ], - "doc" : "The resource that the policy applies to. Not required for some 'Platform' privileges.", - "default" : null - }, { - "name" : "privileges", - "type" : { - "type" : "array", - "items" : "string" - }, - "doc" : "The privileges that the policy grants." - }, { - "name" : "actors", - "type" : { - "type" : "record", - "name" : "DataHubActorFilter", - "doc" : "Information used to filter DataHub actors.", - "fields" : [ { - "name" : "users", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A specific set of users to apply the policy to (disjunctive)", - "default" : null - }, { - "name" : "groups", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A specific set of groups to apply the policy to (disjunctive)", - "default" : null - }, { - "name" : "resourceOwners", - "type" : "boolean", - "doc" : "Whether the filter should return true for owners of a particular resource.\nOnly applies to policies of type 'Metadata', which have a resource associated with them.", - "default" : false - }, { - "name" : "allUsers", - "type" : "boolean", - "doc" : "Whether the filter should apply to all users.", - "default" : false - }, { - "name" : "allGroups", - "type" : "boolean", - "doc" : "Whether the filter should apply to all groups.", - "default" : false - }, { - "name" : "roles", - "type" : [ "null", { - "type" : "array", - "items" : "string" - } ], - "doc" : "A specific set of roles to apply the policy to (disjunctive).", - "default" : null, - "Relationship" : { - "/*" : { - "entityTypes" : [ "dataHubRole" ], - "name" : "IsAssociatedWithRole" - } - } - } ] - }, - "doc" : "The actors that the policy applies to." - }, { - "name" : "editable", - "type" : "boolean", - "doc" : "Whether the policy should be editable via the UI", - "default" : true - }, { - "name" : "lastUpdatedTimestamp", - "type" : [ "null", "long" ], - "doc" : "Timestamp when the policy was last updated", - "default" : null, - "Searchable" : { - "fieldType" : "DATETIME" - } - } ], - "Aspect" : { - "name" : "dataHubPolicyInfo" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the DataHub access policy." - } ], - "Entity" : { - "keyAspect" : "dataHubPolicyKey", - "name" : "dataHubPolicy" - } - }, { - "type" : "record", - "name" : "SchemaFieldSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for a specific schema field entity.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "SchemaFieldKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a SchemaField", - "fields" : [ { - "name" : "parent", - "type" : "string", - "doc" : "Parent associated with the schema field", - "Searchable" : { - "fieldType" : "URN" - }, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "fieldPath", - "type" : "string", - "doc" : "fieldPath identifying the schema field", - "Searchable" : { - "fieldType" : "KEYWORD" - } - } ], - "Aspect" : { - "name" : "schemaFieldKey" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the dataset. Depending on the use case, this can either be all, or a selection, of supported aspects." - } ], - "Entity" : { - "keyAspect" : "schemaFieldKey", - "name" : "schemaField" - } - }, { - "type" : "record", - "name" : "DataHubRetentionSnapshot", - "namespace" : "com.linkedin.metadata.snapshot", - "doc" : "A metadata snapshot for DataHub Access Policy data.", - "fields" : [ { - "name" : "urn", - "type" : "string", - "doc" : "URN for the entity the metadata snapshot is associated with.", - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "aspects", - "type" : { - "type" : "array", - "items" : [ { - "type" : "record", - "name" : "DataHubRetentionKey", - "namespace" : "com.linkedin.metadata.key", - "doc" : "Key for a DataHub Retention", - "fields" : [ { - "name" : "entityName", - "type" : "string", - "doc" : "Entity name to apply retention to. * (or empty) for applying defaults." - }, { - "name" : "aspectName", - "type" : "string", - "doc" : "Aspect name to apply retention to. * (or empty) for applying defaults." - } ], - "Aspect" : { - "name" : "dataHubRetentionKey" - } - }, { - "type" : "record", - "name" : "DataHubRetentionConfig", - "namespace" : "com.linkedin.retention", - "fields" : [ { - "name" : "retention", - "type" : { - "type" : "record", - "name" : "Retention", - "doc" : "Base class that encapsulates different retention policies.\nOnly one of the fields should be set", - "fields" : [ { - "name" : "version", - "type" : [ "null", { - "type" : "record", - "name" : "VersionBasedRetention", - "doc" : "Keep max N latest records", - "fields" : [ { - "name" : "maxVersions", - "type" : "int" - } ] - } ], - "default" : null - }, { - "name" : "time", - "type" : [ "null", { - "type" : "record", - "name" : "TimeBasedRetention", - "doc" : "Keep records that are less than X seconds old", - "fields" : [ { - "name" : "maxAgeInSeconds", - "type" : "int" - } ] - } ], - "default" : null - } ] - } - } ], - "Aspect" : { - "name" : "dataHubRetentionConfig" - } - } ] - }, - "doc" : "The list of metadata aspects associated with the DataHub access policy." - } ], - "Entity" : { - "keyAspect" : "dataHubRetentionKey", - "name" : "dataHubRetention" - } - } ], - "doc" : "Snapshot of the proposed metadata change. Include only the aspects affected by the change in the snapshot." - }, { - "name" : "proposedDelta", - "type" : [ "null" ], - "doc" : "Delta of the proposed metadata partial update.", - "default" : null - }, { - "name" : "systemMetadata", - "type" : [ "null", { - "type" : "record", - "name" : "SystemMetadata", - "doc" : "Metadata associated with each metadata change that is processed by the system", - "fields" : [ { - "name" : "lastObserved", - "type" : [ "long", "null" ], - "doc" : "The timestamp the metadata was observed at", - "default" : 0 - }, { - "name" : "runId", - "type" : [ "string", "null" ], - "doc" : "The run id that produced the metadata. Populated in case of batch-ingestion.", - "default" : "no-run-id-provided" - }, { - "name" : "registryName", - "type" : [ "null", "string" ], - "doc" : "The model registry name that was used to process this event", - "default" : null - }, { - "name" : "registryVersion", - "type" : [ "null", "string" ], - "doc" : "The model registry version that was used to process this event", - "default" : null - }, { - "name" : "properties", - "type" : [ "null", { - "type" : "map", - "values" : "string" - } ], - "doc" : "Additional properties", - "default" : null - } ] - } ], - "doc" : "Metadata around how the snapshot was ingested", - "default" : null - } ] -} \ No newline at end of file diff --git a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/MetadataChangeLog.avsc b/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/MetadataChangeLog.avsc deleted file mode 100644 index ee79c92a86328..0000000000000 --- a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/MetadataChangeLog.avsc +++ /dev/null @@ -1,209 +0,0 @@ -{ - "type" : "record", - "name" : "MetadataChangeLog", - "namespace" : "com.linkedin.mxe", - "doc" : "Kafka event for capturing update made to an entity's metadata.", - "fields" : [ { - "name" : "auditHeader", - "type" : [ "null", { - "type" : "record", - "name" : "KafkaAuditHeader", - "namespace" : "com.linkedin.avro2pegasus.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" : "string", - "doc" : "The fully qualified name of the host from which the event is being emitted.", - "compliance" : "NONE" - }, { - "name" : "instance", - "type" : [ "null", "string" ], - "doc" : "The instance on the server from which the event is being emitted. e.g. i001", - "default" : null, - "compliance" : "NONE" - }, { - "name" : "appName", - "type" : "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", "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", "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" - } ] - } ], - "doc" : "Kafka audit header. Currently remains unused in the open source.", - "default" : null - }, { - "name" : "entityType", - "type" : "string", - "doc" : "Type of the entity being written to" - }, { - "name" : "entityUrn", - "type" : [ "null", "string" ], - "doc" : "Urn of the entity being written", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "entityKeyAspect", - "type" : [ "null", { - "type" : "record", - "name" : "GenericAspect", - "doc" : "Generic record structure for serializing an Aspect", - "fields" : [ { - "name" : "value", - "type" : "bytes", - "doc" : "The value of the aspect, serialized as bytes." - }, { - "name" : "contentType", - "type" : "string", - "doc" : "The content type, which represents the fashion in which the aspect was serialized.\nThe only type currently supported is application/json." - } ] - } ], - "doc" : "Key aspect of the entity being written", - "default" : null - }, { - "name" : "changeType", - "type" : { - "type" : "enum", - "name" : "ChangeType", - "namespace" : "com.linkedin.events.metadata", - "doc" : "Descriptor for a change action", - "symbols" : [ "UPSERT", "CREATE", "UPDATE", "DELETE", "PATCH", "RESTATE" ], - "symbolDocs" : { - "CREATE" : "NOT SUPPORTED YET\ninsert if not exists. otherwise fail", - "DELETE" : "NOT SUPPORTED YET\ndelete action", - "PATCH" : "NOT SUPPORTED YET\npatch the changes instead of full replace", - "RESTATE" : "Restate an aspect, eg. in a index refresh.", - "UPDATE" : "NOT SUPPORTED YET\nupdate if exists. otherwise fail", - "UPSERT" : "insert if not exists. otherwise update" - } - }, - "doc" : "Type of change being proposed" - }, { - "name" : "aspectName", - "type" : [ "null", "string" ], - "doc" : "Aspect of the entity being written to\nNot filling this out implies that the writer wants to affect the entire entity\nNote: This is only valid for CREATE, UPSERT, and DELETE operations.", - "default" : null - }, { - "name" : "aspect", - "type" : [ "null", "GenericAspect" ], - "doc" : "The value of the new aspect.", - "default" : null - }, { - "name" : "systemMetadata", - "type" : [ "null", { - "type" : "record", - "name" : "SystemMetadata", - "doc" : "Metadata associated with each metadata change that is processed by the system", - "fields" : [ { - "name" : "lastObserved", - "type" : [ "long", "null" ], - "doc" : "The timestamp the metadata was observed at", - "default" : 0 - }, { - "name" : "runId", - "type" : [ "string", "null" ], - "doc" : "The run id that produced the metadata. Populated in case of batch-ingestion.", - "default" : "no-run-id-provided" - }, { - "name" : "registryName", - "type" : [ "null", "string" ], - "doc" : "The model registry name that was used to process this event", - "default" : null - }, { - "name" : "registryVersion", - "type" : [ "null", "string" ], - "doc" : "The model registry version that was used to process this event", - "default" : null - }, { - "name" : "properties", - "type" : [ "null", { - "type" : "map", - "values" : "string" - } ], - "doc" : "Additional properties", - "default" : null - } ] - } ], - "doc" : "A string->string map of custom properties that one might want to attach to an event", - "default" : null - }, { - "name" : "previousAspectValue", - "type" : [ "null", "GenericAspect" ], - "doc" : "The previous value of the aspect that has changed.", - "default" : null - }, { - "name" : "previousSystemMetadata", - "type" : [ "null", "SystemMetadata" ], - "doc" : "The previous value of the system metadata field that has changed.", - "default" : null - }, { - "name" : "created", - "type" : [ "null", { - "type" : "record", - "name" : "AuditStamp", - "namespace" : "com.linkedin.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" : "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.common.urn.Urn" - } - }, { - "name" : "impersonator", - "type" : [ "null", "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.common.urn.Urn" - } - }, { - "name" : "message", - "type" : [ "null", "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 audit stamp detailing who and when the aspect was changed by. Required for all intents and purposes.", - "default" : null - } ] -} \ No newline at end of file diff --git a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/MetadataChangeProposal.avsc b/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/MetadataChangeProposal.avsc deleted file mode 100644 index e3feaa38332b0..0000000000000 --- a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/MetadataChangeProposal.avsc +++ /dev/null @@ -1,164 +0,0 @@ -{ - "type" : "record", - "name" : "MetadataChangeProposal", - "namespace" : "com.linkedin.mxe", - "doc" : "Kafka event for proposing a metadata change for an entity. A corresponding MetadataChangeLog is emitted when the change is accepted and committed, otherwise a FailedMetadataChangeProposal will be emitted instead.", - "fields" : [ { - "name" : "auditHeader", - "type" : [ "null", { - "type" : "record", - "name" : "KafkaAuditHeader", - "namespace" : "com.linkedin.avro2pegasus.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" : "string", - "doc" : "The fully qualified name of the host from which the event is being emitted.", - "compliance" : "NONE" - }, { - "name" : "instance", - "type" : [ "null", "string" ], - "doc" : "The instance on the server from which the event is being emitted. e.g. i001", - "default" : null, - "compliance" : "NONE" - }, { - "name" : "appName", - "type" : "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", "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", "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" - } ] - } ], - "doc" : "Kafka audit header. Currently remains unused in the open source.", - "default" : null - }, { - "name" : "entityType", - "type" : "string", - "doc" : "Type of the entity being written to" - }, { - "name" : "entityUrn", - "type" : [ "null", "string" ], - "doc" : "Urn of the entity being written", - "default" : null, - "java" : { - "class" : "com.linkedin.common.urn.Urn" - } - }, { - "name" : "entityKeyAspect", - "type" : [ "null", { - "type" : "record", - "name" : "GenericAspect", - "doc" : "Generic record structure for serializing an Aspect", - "fields" : [ { - "name" : "value", - "type" : "bytes", - "doc" : "The value of the aspect, serialized as bytes." - }, { - "name" : "contentType", - "type" : "string", - "doc" : "The content type, which represents the fashion in which the aspect was serialized.\nThe only type currently supported is application/json." - } ] - } ], - "doc" : "Key aspect of the entity being written", - "default" : null - }, { - "name" : "changeType", - "type" : { - "type" : "enum", - "name" : "ChangeType", - "namespace" : "com.linkedin.events.metadata", - "doc" : "Descriptor for a change action", - "symbols" : [ "UPSERT", "CREATE", "UPDATE", "DELETE", "PATCH", "RESTATE" ], - "symbolDocs" : { - "CREATE" : "NOT SUPPORTED YET\ninsert if not exists. otherwise fail", - "DELETE" : "NOT SUPPORTED YET\ndelete action", - "PATCH" : "NOT SUPPORTED YET\npatch the changes instead of full replace", - "RESTATE" : "Restate an aspect, eg. in a index refresh.", - "UPDATE" : "NOT SUPPORTED YET\nupdate if exists. otherwise fail", - "UPSERT" : "insert if not exists. otherwise update" - } - }, - "doc" : "Type of change being proposed" - }, { - "name" : "aspectName", - "type" : [ "null", "string" ], - "doc" : "Aspect of the entity being written to\nNot filling this out implies that the writer wants to affect the entire entity\nNote: This is only valid for CREATE, UPSERT, and DELETE operations.", - "default" : null - }, { - "name" : "aspect", - "type" : [ "null", "GenericAspect" ], - "doc" : "The value of the new aspect.", - "default" : null - }, { - "name" : "systemMetadata", - "type" : [ "null", { - "type" : "record", - "name" : "SystemMetadata", - "doc" : "Metadata associated with each metadata change that is processed by the system", - "fields" : [ { - "name" : "lastObserved", - "type" : [ "long", "null" ], - "doc" : "The timestamp the metadata was observed at", - "default" : 0 - }, { - "name" : "runId", - "type" : [ "string", "null" ], - "doc" : "The run id that produced the metadata. Populated in case of batch-ingestion.", - "default" : "no-run-id-provided" - }, { - "name" : "registryName", - "type" : [ "null", "string" ], - "doc" : "The model registry name that was used to process this event", - "default" : null - }, { - "name" : "registryVersion", - "type" : [ "null", "string" ], - "doc" : "The model registry version that was used to process this event", - "default" : null - }, { - "name" : "properties", - "type" : [ "null", { - "type" : "map", - "values" : "string" - } ], - "doc" : "Additional properties", - "default" : null - } ] - } ], - "doc" : "A string->string map of custom properties that one might want to attach to an event", - "default" : null - } ] -} \ No newline at end of file diff --git a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/PlatformEvent.avsc b/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/PlatformEvent.avsc deleted file mode 100644 index 77033010e346e..0000000000000 --- a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/PlatformEvent.avsc +++ /dev/null @@ -1,41 +0,0 @@ -{ - "type" : "record", - "name" : "PlatformEvent", - "namespace" : "com.linkedin.mxe", - "doc" : "A DataHub Platform Event.", - "fields" : [ { - "name" : "header", - "type" : { - "type" : "record", - "name" : "PlatformEventHeader", - "doc" : "A header included with each DataHub platform event.", - "fields" : [ { - "name" : "timestampMillis", - "type" : "long", - "doc" : "The event timestamp field as epoch at UTC in milli seconds." - } ] - }, - "doc" : "Header information stored with the event." - }, { - "name" : "name", - "type" : "string", - "doc" : "The name of the event, e.g. the type of event. For example, 'notificationRequestEvent', 'entityChangeEvent'" - }, { - "name" : "payload", - "type" : { - "type" : "record", - "name" : "GenericPayload", - "doc" : "Generic payload record structure for serializing a Platform Event.", - "fields" : [ { - "name" : "value", - "type" : "bytes", - "doc" : "The value of the event, serialized as bytes." - }, { - "name" : "contentType", - "type" : "string", - "doc" : "The content type, which represents the fashion in which the event was serialized.\nThe only type currently supported is application/json." - } ] - }, - "doc" : "The event payload." - } ] -} \ No newline at end of file diff --git a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/PlatformEventHeader.avsc b/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/PlatformEventHeader.avsc deleted file mode 100644 index 9fc2f2027391d..0000000000000 --- a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/PlatformEventHeader.avsc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "type" : "record", - "name" : "PlatformEventHeader", - "namespace" : "com.linkedin.mxe", - "doc" : "A header included with each DataHub platform event.", - "fields" : [ { - "name" : "timestampMillis", - "type" : "long", - "doc" : "The event timestamp field as epoch at UTC in milli seconds." - } ] -} \ No newline at end of file diff --git a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/SystemMetadata.avsc b/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/SystemMetadata.avsc deleted file mode 100644 index ae76f8bd4e8ad..0000000000000 --- a/metadata-events/mxe-utils-avro-1.7/src/main/resources/avro/com/linkedin/mxe/SystemMetadata.avsc +++ /dev/null @@ -1,35 +0,0 @@ -{ - "type" : "record", - "name" : "SystemMetadata", - "namespace" : "com.linkedin.mxe", - "doc" : "Metadata associated with each metadata change that is processed by the system", - "fields" : [ { - "name" : "lastObserved", - "type" : [ "long", "null" ], - "doc" : "The timestamp the metadata was observed at", - "default" : 0 - }, { - "name" : "runId", - "type" : [ "string", "null" ], - "doc" : "The run id that produced the metadata. Populated in case of batch-ingestion.", - "default" : "no-run-id-provided" - }, { - "name" : "registryName", - "type" : [ "null", "string" ], - "doc" : "The model registry name that was used to process this event", - "default" : null - }, { - "name" : "registryVersion", - "type" : [ "null", "string" ], - "doc" : "The model registry version that was used to process this event", - "default" : null - }, { - "name" : "properties", - "type" : [ "null", { - "type" : "map", - "values" : "string" - } ], - "doc" : "Additional properties", - "default" : null - } ] -} \ No newline at end of file