public boolean isMaterializedView() {
    return TableType.MATERIALIZED_VIEW.equals(getTableType());
  }
@return whether this table is actually a view
ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java