marquez.service.models.DbTable 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.DB_TABLE;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import java.time.Instant;
import java.util.UUID;
import javax.annotation.Nullable;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import marquez.common.models.DatasetId;
import marquez.common.models.DatasetName;
import marquez.common.models.Field;
import marquez.common.models.SourceName;
import marquez.common.models.TagName;
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public final class DbTable extends Dataset {
public DbTable(
final DatasetId id,
final DatasetName name,
final DatasetName physicalName,
final Instant createdAt,
final Instant updatedAt,
final SourceName sourceName,
@Nullable final ImmutableList fields,
@Nullable final ImmutableSet tags,
@Nullable final Instant lastModifiedAt,
@Nullable final String lastLifecycleState,
@Nullable final String description,
@Nullable final UUID currentVersion,
@Nullable final ImmutableMap facets,
final boolean isDeleted) {
super(
id,
DB_TABLE,
name,
physicalName,
createdAt,
updatedAt,
sourceName,
fields,
tags,
lastModifiedAt,
lastLifecycleState,
description,
currentVersion,
null,
facets,
isDeleted);
}
}