public Map<DatasetPath, List<UserBitShared.LayoutMaterializedViewProfile>> getDatasetGroupedLayoutList() { Map<DatasetPath, List<UserBitShared.LayoutMaterializedViewProfile>> map = Maps.newHashMap(); UserBitShared.AccelerationProfile accelerationProfile = profile.getAccelerationProfile(); List<UserBitShared.LayoutMaterializedViewProfile> layoutProfilesList = accelerationProfile.getLayoutProfilesList(); for (UserBitShared.LayoutMaterializedViewProfile viewProfile : layoutProfilesList) { String reflectionDatasetPath = accelerationDetails.getReflectionDatasetPath(viewProfile.getLayoutId()); DatasetPath path = new DatasetPath(reflectionDatasetPath); if (!map.containsKey(path)) { map.put(path, new ArrayList<UserBitShared.LayoutMaterializedViewProfile>()); } map.get(path).add(viewProfile); } return map; }
AccelerationDetails details = AccelerationDetailsUtils.deserialize(profile.getAccelerationProfile().getAccelerationDetails()); if (details != null && details.getReflectionRelationshipsList() != null) { wrapper = new AccelerationWrapper(details);
mergeAccelerationProfile(other.getAccelerationProfile());
output.writeObject(27, message.getAccelerationProfile(), com.dremio.exec.proto.SchemaUserBitShared.AccelerationProfile.WRITE, false);