public TableMeta getTableMeta(Path tablePath) throws IOException { TableMeta meta; FileSystem fs = tablePath.getFileSystem(conf); Path tableMetaPath = new Path(tablePath, ".meta"); if (!fs.exists(tableMetaPath)) { throw new FileNotFoundException(".meta file not found in " + tablePath.toString()); } FSDataInputStream tableMetaIn = fs.open(tableMetaPath); CatalogProtos.TableProto tableProto = (CatalogProtos.TableProto) FileUtil.loadProto(tableMetaIn, CatalogProtos.TableProto.getDefaultInstance()); meta = new TableMeta(tableProto); return meta; }