Skip to content

Commit 0a73252

Browse files
committed
review: clarify javadoc
1 parent 7bf8462 commit 0a73252

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

polaris-core/src/main/java/org/apache/polaris/core/persistence/BasePersistence.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,14 @@ void deleteAllEntityGrantRecords(
147147

148148
/**
149149
* Lookup an entity given its catalog id (which can be {@link
150-
* org.apache.polaris.core.entity.PolarisEntityConstants#NULL_ID} for top-level entities) and its
151-
* entityId.
150+
* org.apache.polaris.core.entity.PolarisEntityConstants#NULL_ID} for top-level entities), its
151+
* entityId and type code (from {@link PolarisEntityType#getCode()}.
152+
*
153+
* <p>The type code parameter is redundant but can be used to optimize implementations in some
154+
* cases. All callers are required to provide a valid value for the type code parameter. If the
155+
* given type code does not match the type code of the previously created entity with the
156+
* specified {@code entityId}, implementations may still return the entity or may behave as if the
157+
* entity were not found.
152158
*
153159
* @param callCtx call context
154160
* @param catalogId catalog id or NULL_ID

0 commit comments

Comments
 (0)