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

项目:hadoop-oss    文件:CryptoInputStream.java   
@Override
public void setReadahead(Long readahead) throws IOException,
    UnsupportedOperationException {
  try {
    ((CanSetReadahead) in).setReadahead(readahead);
  } catch (ClassCastException e) {
    throw new UnsupportedOperationException("This stream does not support " +
        "setting the readahead caching strategy.");
  }
}
项目:hadoop    文件:CryptoInputStream.java   
@Override
public void setReadahead(Long readahead) throws IOException,
    UnsupportedOperationException {
  try {
    ((CanSetReadahead) in).setReadahead(readahead);
  } catch (ClassCastException e) {
    throw new UnsupportedOperationException("This stream does not support " +
        "setting the readahead caching strategy.");
  }
}
项目:aliyun-oss-hadoop-fs    文件:CryptoInputStream.java   
@Override
public void setReadahead(Long readahead) throws IOException,
    UnsupportedOperationException {
  try {
    ((CanSetReadahead) in).setReadahead(readahead);
  } catch (ClassCastException e) {
    throw new UnsupportedOperationException("This stream does not support " +
        "setting the readahead caching strategy.");
  }
}
项目:big-c    文件:CryptoInputStream.java   
@Override
public void setReadahead(Long readahead) throws IOException,
    UnsupportedOperationException {
  try {
    ((CanSetReadahead) in).setReadahead(readahead);
  } catch (ClassCastException e) {
    throw new UnsupportedOperationException("This stream does not support " +
        "setting the readahead caching strategy.");
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:CryptoInputStream.java   
@Override
public void setReadahead(Long readahead) throws IOException,
    UnsupportedOperationException {
  try {
    ((CanSetReadahead) in).setReadahead(readahead);
  } catch (ClassCastException e) {
    throw new UnsupportedOperationException("This stream does not support " +
        "setting the readahead caching strategy.");
  }
}
项目:hops    文件:CryptoInputStream.java   
@Override
public void setReadahead(Long readahead) throws IOException,
    UnsupportedOperationException {
  try {
    ((CanSetReadahead) in).setReadahead(readahead);
  } catch (ClassCastException e) {
    throw new UnsupportedOperationException("This stream does not support " +
        "setting the readahead caching strategy.");
  }
}