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:
parent
2b9cc7eb95
commit
6f068cf53f
|
@ -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 @@ public class DynamoDBMetadataStore implements MetadataStore,
|
|||
.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,
|
||||
|
|
Loading…
Reference in New Issue