@Override protected boolean accept(Path p, @CheckForNull Boolean isDir) { try { // throws IAE if invalid HColumnDescriptor.isLegalFamilyName(Bytes.toBytes(p.getName())); } catch (IllegalArgumentException iae) { // path name is an invalid family name and thus is excluded. return false; } try { return isDirectory(fs, isDir, p); } catch (IOException ioe) { // Maybe the file was moved or the fs was disconnected. LOG.warn("Skipping file " + p +" due to IOException", ioe); return false; } } }
/** * check whether the column family name is legal, throw exception if not * * @param columnFamily * @throws java.io.IOException */ @Override public void isLegalFamilyName(String columnFamily) throws IOException { try { HColumnDescriptor.isLegalFamilyName(Bytes.toBytes(columnFamily)); } catch (Exception e) { throw new UnsupportedException("Unsupported ColumnFamily name " + columnFamily, e); } }
@Override public boolean accept(Path rd) { try { // throws IAE if invalid HColumnDescriptor.isLegalFamilyName(Bytes.toBytes(rd.getName())); } catch (IllegalArgumentException iae) { // path name is an invalid family name and thus is excluded. return false; } try { return fs.getFileStatus(rd).isDir(); } catch (IOException ioe) { // Maybe the file was moved or the fs was disconnected. LOG.warn("Skipping file " + rd +" due to IOException", ioe); return false; } } }
@Override public boolean accept(Path rd) { try { // throws IAE if invalid HColumnDescriptor.isLegalFamilyName(Bytes.toBytes(rd.getName())); } catch (IllegalArgumentException iae) { // path name is an invalid family name and thus is excluded. return false; } try { return fs.getFileStatus(rd).isDirectory(); } catch (IOException ioe) { // Maybe the file was moved or the fs was disconnected. LOG.warn("Skipping file " + rd +" due to IOException", ioe); return false; } } }
final boolean blockCacheEnabled, final int blocksize, final int timeToLive, final String bloomFilter, final int scope) { isLegalFamilyName(familyName); this.name = familyName;
final boolean blockCacheEnabled, final int blocksize, final int timeToLive, final String bloomFilter, final int scope) { isLegalFamilyName(familyName); this.name = familyName;