public Table getTable(final String tableName, boolean throwException) throws HiveException {
    String[] nameParts = tableName.split("\\.");
    if (nameParts.length == 3) {
      Table table = this.getTable(nameParts[0], nameParts[1], nameParts[2], throwException);
      return table;
    } else {
      String[] names = Utilities.getDbTableName(tableName);
      Table table = this.getTable(names[0], names[1], null, throwException);
      return table;
    }
  }
Returns metadata for the table named tableName
@param tableName the name of the table
@param throwException controls whether an exception is thrown or a returns a null
@return the table metadata
@throws HiveException if there's an internal error or if the
table doesn't exist
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java