HADOOP-16416. mark DynamoDBMetadataStore.deleteTrackingValueMap as final. Contributed by kevin su.

Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
This commit is contained in:
HUAN-PING SU 2019-08-27 16:16:42 -07:00 committed by Wei-Chiu Chuang
parent 2b9cc7eb95
commit 6f068cf53f

View File

@ -283,7 +283,7 @@ public class DynamoDBMetadataStore implements MetadataStore,
static final String E_INCONSISTENT_UPDATE
= "Duplicate and inconsistent entry in update operation";
private static ValueMap deleteTrackingValueMap =
private static final ValueMap DELETE_TRACKING_VALUE_MAP =
new ValueMap().withBoolean(":false", false);
/**
@ -723,7 +723,7 @@ private DDBPathMetadata innerGet(Path path, boolean wantEmptyDirectoryFlag)
.withHashKey(pathToParentKeyAttribute(path))
.withConsistentRead(true)
.withFilterExpression(IS_DELETED + " = :false")
.withValueMap(deleteTrackingValueMap);
.withValueMap(DELETE_TRACKING_VALUE_MAP);
boolean hasChildren = readOp.retry("get/hasChildren",
path.toString(),
true,