io.datahubproject.models.util.SchemaKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datahub-client Show documentation
Show all versions of datahub-client Show documentation
DataHub Java client for metadata integration
The newest version!
package io.datahubproject.models.util;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.Map;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.SuperBuilder;
@Data
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SchemaKey extends DatabaseKey {
private String schema;
private static final String SCHEMA_MAP_FIELD = "schema";
@Override
public Map guidDict() {
// Get the parent's GUID dictionary first
Map bag = super.guidDict();
// Add the database field if it's not null
if (schema != null) {
bag.put(SCHEMA_MAP_FIELD, schema);
}
return bag;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy