-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate resource-lix into datahub-gma (#446)
Co-authored-by: Yang Yang <[email protected]>
- Loading branch information
1 parent
6cd913f
commit c6be657
Showing
6 changed files
with
155 additions
and
176 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
86 changes: 86 additions & 0 deletions
86
restli-resources/src/main/java/com/linkedin/metadata/restli/lix/RampedResourceImpl.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,86 @@ | ||
package com.linkedin.metadata.restli.lix; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
|
||
|
||
/** | ||
* Ramped Resource will always choose using the new MG Kernel logic, equivalent to Lix is always 'treatment'. | ||
* Usage: assign to 'resourceLix' fields at each GMS entity resource. | ||
*/ | ||
public class RampedResourceImpl implements ResourceLix { | ||
@Override | ||
public boolean testGet(@Nonnull String urn, @Nonnull String entityType) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testBatchGet(@Nullable String urn, @Nullable String entityType) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testBatchGetWithErrors(@Nullable String urn, @Nullable String type) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testGetSnapshot(@Nullable String urn, @Nullable String entityType) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testBackfillLegacy(@Nullable String urn, @Nullable String entityType) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testBackfillWithUrns(@Nullable String urn, @Nullable String entityType) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testEmitNoChangeMetadataAuditEvent(@Nullable String urn, @Nullable String entityType) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testBackfillWithNewValue(@Nullable String urn, @Nullable String entityType) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testBackfillEntityTables(@Nullable String urn, @Nullable String entityType) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testBackfillRelationshipTables(@Nullable String urn, @Nullable String entityType) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testBackfill(@Nonnull String assetType, @Nonnull String mode) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testFilter(@Nonnull String assetType) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testGetAll(@Nullable String urnType) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testSearch(@Nullable String urnType) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean testSearchV2(@Nullable String urnType) { | ||
return true; | ||
} | ||
} |
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.