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
|
static final String E_INCONSISTENT_UPDATE
|
||||||
= "Duplicate and inconsistent entry in update operation";
|
= "Duplicate and inconsistent entry in update operation";
|
||||||
|
|
||||||
private static ValueMap deleteTrackingValueMap =
|
private static final ValueMap DELETE_TRACKING_VALUE_MAP =
|
||||||
new ValueMap().withBoolean(":false", false);
|
new ValueMap().withBoolean(":false", false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -723,7 +723,7 @@ public class DynamoDBMetadataStore implements MetadataStore,
|
||||||
.withHashKey(pathToParentKeyAttribute(path))
|
.withHashKey(pathToParentKeyAttribute(path))
|
||||||
.withConsistentRead(true)
|
.withConsistentRead(true)
|
||||||
.withFilterExpression(IS_DELETED + " = :false")
|
.withFilterExpression(IS_DELETED + " = :false")
|
||||||
.withValueMap(deleteTrackingValueMap);
|
.withValueMap(DELETE_TRACKING_VALUE_MAP);
|
||||||
boolean hasChildren = readOp.retry("get/hasChildren",
|
boolean hasChildren = readOp.retry("get/hasChildren",
|
||||||
path.toString(),
|
path.toString(),
|
||||||
true,
|
true,
|
||||||
|
|
Loading…
Reference in New Issue