public class PartitionMetadataTableNames
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
PartitionMetadataTableNames(java.lang.String tableName,
java.lang.String watermarkIndexName,
java.lang.String createdAtIndexName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static PartitionMetadataTableNames |
fromExistingTable(java.lang.String databaseId,
java.lang.String table)
Encapsulates a selected table name.
|
static PartitionMetadataTableNames |
generateRandom(java.lang.String databaseId)
Generates a unique name for the partition metadata table and its indexes.
|
java.lang.String |
getCreatedAtIndexName() |
java.lang.String |
getTableName() |
java.lang.String |
getWatermarkIndexName() |
int |
hashCode() |
java.lang.String |
toString() |
public PartitionMetadataTableNames(java.lang.String tableName, java.lang.String watermarkIndexName, java.lang.String createdAtIndexName)
public static PartitionMetadataTableNames generateRandom(java.lang.String databaseId)
"Metadata_<databaseId>_<uuid>"
. The watermark index will be in the
form of "WatermarkIdx_<databaseId>_<uuid>
. The createdAt / start timestamp index will
be in the form of "CreatedAtIdx_<databaseId>_<uuid>
.databaseId
- The database id where the table will be createdpublic static PartitionMetadataTableNames fromExistingTable(java.lang.String databaseId, java.lang.String table)
"WatermarkIdx_<databaseId>_<uuid>
. The createdAt / start timestamp index will be in the form
of "CreatedAtIdx_<databaseId>_<uuid>
.databaseId
- The database id for the tabletable
- The table name to be usedpublic java.lang.String getTableName()
public java.lang.String getWatermarkIndexName()
public java.lang.String getCreatedAtIndexName()
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object