public HCatSchema getAllColumns() {
    List<HCatFieldSchema> allColumns = Lists.newArrayList(dataColumns.getFields());
    allColumns.addAll(partitionColumns.getFields());
    return new HCatSchema(allColumns);
  }
@return HCatSchema with all columns (i.e. data and partition columns).
hcatalog/core/src/main/java/org/apache/hive/hcatalog/mapreduce/HCatTableInfo.java