core/src/main/java/org/eigenbase/rel/metadata/RelMetadataQuery.java
/**
   * Returns the
   * {@link BuiltInMetadata.ExplainVisibility#isVisibleInExplain(SqlExplainLevel)}
   * statistic.
   *
   * @param rel          the relational expression
   * @param explainLevel level of detail
   * @return true for visible, false for invisible; if no metadata is available,
   * defaults to true
   */


@param rel          the relational expression
@param explainLevel level of detail
@return true for visible, false for invisible; if no metadata is available,
defaults to true
@param rel the relational expression @param explainLevel level of detail @return true for visible false for invisible ; if no metadata is available defaults to true
public static boolean isVisibleInExplain(RelNode rel,
      SqlExplainLevel explainLevel) {
    final BuiltInMetadata.ExplainVisibility metadata =
        rel.metadata(BuiltInMetadata.ExplainVisibility.class);
    Boolean b = metadata.isVisibleInExplain(explainLevel);
    return b == null || b;
  }
public static boolean isVisibleInExplain ( RelNode rel , SqlExplainLevel explainLevel ) { final BuiltInMetadata . ExplainVisibility metadata = rel . metadata ( BuiltInMetadata . ExplainVisibility . class ) ; Boolean b = metadata . isVisibleInExplain ( explainLevel ) ; return b == null || b ; }
Returns the
 {@link BuiltInMetadata.ExplainVisibility#isVisibleInExplain(SqlExplainLevel)}
 statistic.
Returns the { @link BuiltInMetadata . ExplainVisibility#isVisibleInExplain ( SqlExplainLevel ) } statistic .