/** * @param location * @return array of FileStatus objects corresponding to the files * making up the passed storage description */ public List<FileStatus> getFileStatusesForLocation(String location) throws MetaException { try { Path path = new Path(location); FileSystem fileSys = path.getFileSystem(conf); return FileUtils.getFileStatusRecurse(path, -1, fileSys); } catch (IOException ioe) { MetaStoreUtils.logAndThrowMetaException(ioe); } return null; }
/** * @param db database * @param table table * @return array of FileStatus objects corresponding to the files making up the passed * unpartitioned table */ public List<FileStatus> getFileStatusesForUnpartitionedTable(Database db, Table table) throws MetaException { Path tablePath = getDnsPath(new Path(table.getSd().getLocation())); try { FileSystem fileSys = tablePath.getFileSystem(conf); return FileUtils.getFileStatusRecurse(tablePath, -1, fileSys); } catch (IOException ioe) { MetaStoreUtils.logAndThrowMetaException(ioe); } return null; }
/** * @param location * @return array of FileStatus objects corresponding to the files * making up the passed storage description */ public List<FileStatus> getFileStatusesForLocation(String location) throws MetaException { try { Path path = new Path(location); FileSystem fileSys = path.getFileSystem(conf); return FileUtils.getFileStatusRecurse(path, -1, fileSys); } catch (IOException ioe) { MetaStoreUtils.logAndThrowMetaException(ioe); } return null; }
/** * @param db database * @param table table * @return array of FileStatus objects corresponding to the files making up the passed * unpartitioned table */ public List<FileStatus> getFileStatusesForUnpartitionedTable(Database db, Table table) throws MetaException { Path tablePath = getDnsPath(new Path(table.getSd().getLocation())); try { FileSystem fileSys = tablePath.getFileSystem(conf); return FileUtils.getFileStatusRecurse(tablePath, -1, fileSys); } catch (IOException ioe) { MetaStoreUtils.logAndThrowMetaException(ioe); } return null; }