@@ -342,8 +342,7 @@ public Map<Urn, List<RecordTemplate>> getLatestAspects(
342
342
}
343
343
344
344
List <SystemAspect > systemAspects =
345
- EntityUtils .toSystemAspects (
346
- opContext .getRetrieverContext (), batchGetResults .values (), false );
345
+ EntityUtils .toSystemAspects (opContext .getRetrieverContext (), batchGetResults .values ());
347
346
348
347
systemAspects .stream ()
349
348
// for now, don't add the key aspect here we have already added it above
@@ -371,8 +370,7 @@ public Map<String, RecordTemplate> getLatestAspectsForUrn(
371
370
Map <EntityAspectIdentifier , EntityAspect > batchGetResults =
372
371
getLatestAspect (opContext , new HashSet <>(Arrays .asList (urn )), aspectNames , forUpdate );
373
372
374
- return EntityUtils .toSystemAspects (
375
- opContext .getRetrieverContext (), batchGetResults .values (), false )
373
+ return EntityUtils .toSystemAspects (opContext .getRetrieverContext (), batchGetResults .values ())
376
374
.stream ()
377
375
.map (
378
376
systemAspect -> Pair .of (systemAspect .getAspectName (), systemAspect .getRecordTemplate ()))
@@ -802,7 +800,7 @@ public ListResult<RecordTemplate> listLatestAspects(
802
800
}
803
801
804
802
return new ListResult <>(
805
- EntityUtils .toSystemAspects (opContext .getRetrieverContext (), entityAspects , false ).stream ()
803
+ EntityUtils .toSystemAspects (opContext .getRetrieverContext (), entityAspects ).stream ()
806
804
.map (SystemAspect ::getRecordTemplate )
807
805
.collect (Collectors .toList ()),
808
806
aspectMetadataList .getMetadata (),
@@ -1675,9 +1673,7 @@ public List<RestoreIndicesResult> restoreIndices(
1675
1673
try {
1676
1674
List <SystemAspect > systemAspects =
1677
1675
EntityUtils .toSystemAspectFromEbeanAspects (
1678
- opContext .getRetrieverContext (),
1679
- batch .collect (Collectors .toList ()),
1680
- false );
1676
+ opContext .getRetrieverContext (), batch .collect (Collectors .toList ()));
1681
1677
1682
1678
RestoreIndicesResult result =
1683
1679
restoreIndices (opContext , systemAspects , logger , args .createDefaultAspects ());
@@ -1730,8 +1726,7 @@ public List<RestoreIndicesResult> restoreIndices(
1730
1726
List <SystemAspect > systemAspects =
1731
1727
EntityUtils .toSystemAspects (
1732
1728
opContext .getRetrieverContext (),
1733
- getLatestAspect (opContext , entityBatch .getValue (), aspectNames , false ).values (),
1734
- false );
1729
+ getLatestAspect (opContext , entityBatch .getValue (), aspectNames , false ).values ());
1735
1730
long timeSqlQueryMs = System .currentTimeMillis () - startTime ;
1736
1731
1737
1732
RestoreIndicesResult result =
@@ -2839,7 +2834,7 @@ private Map<EntityAspectIdentifier, EnvelopedAspect> getEnvelopedAspects(
2839
2834
final Map <EntityAspectIdentifier , EntityAspect > dbEntries = aspectDao .batchGet (dbKeys , false );
2840
2835
2841
2836
List <SystemAspect > envelopedAspects =
2842
- EntityUtils .toSystemAspects (opContext .getRetrieverContext (), dbEntries .values (), false );
2837
+ EntityUtils .toSystemAspects (opContext .getRetrieverContext (), dbEntries .values ());
2843
2838
2844
2839
return envelopedAspects .stream ()
2845
2840
.collect (
0 commit comments