code: protected HiveTable getTable(Path path, String dbName, String tableName) throws IOException {
  
      HiveTable.Builder tableBuilder = new HiveTable.Builder().withDbName(dbName).withTableName(tableName);
  
      if (!this.emptyInputPathFlag) {
        tableBuilder = tableBuilder.withSerdeManaager(HiveSerDeManager.get(this.props));
      }
      HiveTable table = tableBuilder.build();
      table.setLocation(this.fs.makeQualified(getTableLocation(path)).toString());
  
      if (!this.emptyInputPathFlag) {
        table.setSerDeProps(path);
      }
  
      // Setting table-level props.
      table.setProps(getRuntimePropsEnrichedTblProps());
  
      table.setStorageProps(this.props.getStorageProps());
      table.setSerDeProps(this.props.getSerdeProps());
      table.setNumBuckets(-1);
      table.setBucketColumns(Lists.<String> newArrayList());
      table.setTableType(TableType.EXTERNAL_TABLE.toString());
      return table;
    }
docs: A base implementation for creating a non bucketed, external {@link HiveTable} for a {@link Path}.
  
  @param path a {@link Path} used to create the {@link HiveTable}.
  @param dbName the database name for the created {@link HiveTable}.
  @param tableName the table name for the created {@link HiveTable}.
  @return a {@link HiveTable}s for the given {@link Path}.
  @throws IOException