Skip to content

Commit

Permalink
explicitly set meanings
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshi0301 committed Dec 2, 2024
1 parent 729e859 commit 85692a9
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,8 @@ private AtlasEntityHeader mapVertexToAtlasEntityHeaderWithPrefetch(AtlasVertex e
ret.setDisplayText(properties.get(QUALIFIED_NAME).toString());
}



//attributes = only the attributes of entityType
if (CollectionUtils.isNotEmpty(attributes)) {
for (String attrName : attributes) {
Expand Down Expand Up @@ -1254,9 +1256,10 @@ private AtlasEntityHeader mapVertexToAtlasEntityHeaderWithPrefetch(AtlasVertex e
}
}
}
ret.setAttribute("meanings", ret.getMeanings());
ret.setAttribute("meaningNames", ret.getMeaningNames());
}
}
finally {
} finally {
RequestContext.get().endMetricRecord(metricRecorder);
}
return ret;
Expand Down Expand Up @@ -1884,6 +1887,10 @@ public Object getVertexAttributePreFetchCache(AtlasVertex vertex, AtlasAttribute
}
LOG.info("capturing property its category and value - {}: {} : {}", attribute.getName(), attribute.getAttributeType().getTypeCategory(), properties.get(attribute.getName()));

if (properties.get(attribute.getName()) == "meanings") {
LOG.info("meanings type: {}", ((AtlasArrayType) attribute.getAttributeType()).getElementType().getTypeCategory());
}

if (properties.get(attribute.getName()) != null) {
return properties.get(attribute.getName());
}
Expand Down

0 comments on commit 85692a9

Please sign in to comment.