forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metadata-models 72.0.8 -> 80.0.0 (datahub-project#1756)
- Loading branch information
1 parent
fbb0fb4
commit e4ebeaa
Showing
37 changed files
with
861 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
metadata-dao-impl/ebean-dao/src/main/java/com/linkedin/metadata/dao/EbeanMetadataIndex.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
package com.linkedin.metadata.dao; | ||
|
||
import io.ebean.annotation.Index; | ||
import io.ebean.Model; | ||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.GenerationType; | ||
import javax.persistence.Id; | ||
import javax.persistence.Table; | ||
import lombok.Getter; | ||
import lombok.NonNull; | ||
import lombok.Setter; | ||
|
||
|
||
@Getter | ||
@Setter | ||
// define composite indexes | ||
@Index(name = "idx_long_val", columnNames = { | ||
EbeanMetadataIndex.ASPECT_COLUMN, | ||
EbeanMetadataIndex.PATH_COLUMN, | ||
EbeanMetadataIndex.LONG_COLUMN, | ||
EbeanMetadataIndex.URN_COLUMN | ||
}) | ||
@Index(name = "idx_string_val", columnNames = { | ||
EbeanMetadataIndex.ASPECT_COLUMN, | ||
EbeanMetadataIndex.PATH_COLUMN, | ||
EbeanMetadataIndex.STRING_COLUMN, | ||
EbeanMetadataIndex.URN_COLUMN | ||
}) | ||
@Index(name = "idx_double_val", columnNames = { | ||
EbeanMetadataIndex.ASPECT_COLUMN, | ||
EbeanMetadataIndex.PATH_COLUMN, | ||
EbeanMetadataIndex.DOUBLE_COLUMN, | ||
EbeanMetadataIndex.URN_COLUMN | ||
}) | ||
@Entity | ||
@Table(name = "metadata_index") | ||
public class EbeanMetadataIndex extends Model { | ||
|
||
public static final long serialVersionUID = 1L; | ||
|
||
private static final String ID_COLUMN = "id"; | ||
public static final String URN_COLUMN = "urn"; | ||
public static final String ASPECT_COLUMN = "aspect"; | ||
public static final String PATH_COLUMN = "path"; | ||
public static final String LONG_COLUMN = "longVal"; | ||
public static final String STRING_COLUMN = "stringVal"; | ||
public static final String DOUBLE_COLUMN = "doubleVal"; | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = ID_COLUMN) | ||
protected long id; | ||
|
||
@NonNull | ||
@Index(name = "idx_urn") | ||
@Column(name = URN_COLUMN, length = 500, nullable = false) | ||
protected String urn; | ||
|
||
@NonNull | ||
@Column(name = ASPECT_COLUMN, length = 200, nullable = false) | ||
protected String aspect; | ||
|
||
@NonNull | ||
@Column(name = PATH_COLUMN, length = 200, nullable = false) | ||
protected String path; | ||
|
||
@Column(name = LONG_COLUMN) | ||
protected Long longVal; | ||
|
||
@Column(name = STRING_COLUMN, length = 500) | ||
protected String stringVal; | ||
|
||
@Column(name = DOUBLE_COLUMN) | ||
protected Double doubleVal; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.