List<HiveRelOptMaterialization> getRewritingMaterializedViews() {
    return materializedViewsCache.values().stream()
            .filter(materialization -> materialization.getScope().contains(RewriteAlgorithm.CALCITE))
            .collect(toList());
  }
Returns all the materialized views enabled for Calcite based rewriting in the cache.

@return the collection of materialized views, or the empty collection if none
ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java