Java 类org.apache.hadoop.fs.BlockStoragePolicySpi 实例源码

项目:hadoop-oss    文件:ChRootedFs.java   
@Override
public BlockStoragePolicySpi getStoragePolicy(final Path src)
    throws IOException {
  return myFs.getStoragePolicy(src);
}
项目:hadoop-oss    文件:ChRootedFs.java   
@Override
public Collection<? extends BlockStoragePolicySpi> getAllStoragePolicies()
    throws IOException {
  return myFs.getAllStoragePolicies();
}
项目:aliyun-oss-hadoop-fs    文件:ChRootedFs.java   
@Override
public BlockStoragePolicySpi getStoragePolicy(final Path src)
    throws IOException {
  return myFs.getStoragePolicy(src);
}
项目:aliyun-oss-hadoop-fs    文件:ChRootedFs.java   
@Override
public Collection<? extends BlockStoragePolicySpi> getAllStoragePolicies()
    throws IOException {
  return myFs.getAllStoragePolicies();
}
项目:hops    文件:ChRootedFs.java   
@Override
public BlockStoragePolicySpi getStoragePolicy(final Path src)
    throws IOException {
  return myFs.getStoragePolicy(src);
}
项目:hops    文件:ChRootedFs.java   
@Override
public Collection<? extends BlockStoragePolicySpi> getAllStoragePolicies()
    throws IOException {
  return myFs.getAllStoragePolicies();
}
项目:hadoop-oss    文件:ViewFs.java   
/**
 * Retrieve the storage policy for a given file or directory.
 *
 * @param src file or directory path.
 * @return storage policy for give file.
 * @throws IOException
 */
public BlockStoragePolicySpi getStoragePolicy(final Path src)
    throws IOException {
  InodeTree.ResolveResult<AbstractFileSystem> res =
      fsState.resolve(getUriPath(src), true);
  return res.targetFileSystem.getStoragePolicy(res.remainingPath);
}
项目:aliyun-oss-hadoop-fs    文件:ViewFs.java   
/**
 * Retrieve the storage policy for a given file or directory.
 *
 * @param src file or directory path.
 * @return storage policy for give file.
 * @throws IOException
 */
public BlockStoragePolicySpi getStoragePolicy(final Path src)
    throws IOException {
  InodeTree.ResolveResult<AbstractFileSystem> res =
      fsState.resolve(getUriPath(src), true);
  return res.targetFileSystem.getStoragePolicy(res.remainingPath);
}
项目:hops    文件:ViewFs.java   
/**
 * Retrieve the storage policy for a given file or directory.
 *
 * @param src file or directory path.
 * @return storage policy for give file.
 * @throws IOException
 */
public BlockStoragePolicySpi getStoragePolicy(final Path src)
    throws IOException {
  InodeTree.ResolveResult<AbstractFileSystem> res =
      fsState.resolve(getUriPath(src), true);
  return res.targetFileSystem.getStoragePolicy(res.remainingPath);
}