marquez.service.models.StreamMeta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marquez-api Show documentation
Show all versions of marquez-api Show documentation
Collect, aggregate, and visualize a data ecosystem's metadata
/*
* Copyright 2018-2023 contributors to the Marquez project
* SPDX-License-Identifier: Apache-2.0
*/
package marquez.service.models;
import static marquez.common.models.DatasetType.STREAM;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import java.net.URL;
import javax.annotation.Nullable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NonNull;
import lombok.ToString;
import marquez.common.models.DatasetName;
import marquez.common.models.Field;
import marquez.common.models.RunId;
import marquez.common.models.SourceName;
import marquez.common.models.TagName;
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public final class StreamMeta extends DatasetMeta {
@Getter private final URL schemaLocation;
public StreamMeta(
final DatasetName physicalName,
final SourceName sourceName,
@NonNull final URL schemaLocation,
@Nullable final ImmutableList fields,
@Nullable final ImmutableSet tags,
@Nullable final String description,
@Nullable final RunId runId) {
super(STREAM, physicalName, sourceName, fields, tags, description, runId);
this.schemaLocation = schemaLocation;
}
}