Example usage for org.apache.hadoop.hdfs DFSClient getDefaultReadCachingStrategy

List of usage examples for org.apache.hadoop.hdfs DFSClient getDefaultReadCachingStrategy

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs DFSClient getDefaultReadCachingStrategy.

Prototype

public CachingStrategy getDefaultReadCachingStrategy() 

Source Link

Usage

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();
}