List of usage examples for org.apache.hadoop.hdfs DFSClient getDefaultReadCachingStrategy
public CachingStrategy getDefaultReadCachingStrategy()
From source file:com.mellanox.r4h.DFSInputStream.java
License:Apache License
DFSInputStream(DFSClient dfsClient, String src, boolean verifyChecksum) throws IOException, UnresolvedLinkException { this.dfsClient = dfsClient; this.verifyChecksum = verifyChecksum; this.src = src; synchronized (infoLock) { this.cachingStrategy = dfsClient.getDefaultReadCachingStrategy(); }/* ww w . j a v a 2s . co m*/ openInfo(); }