org.apache.hadoop.hdfs.server.datanode
Class CachingStrategy
java.lang.Object
org.apache.hadoop.hdfs.server.datanode.CachingStrategy
public class CachingStrategy
- extends Object
The caching strategy we should use for an HDFS read or write operation.
CachingStrategy
public CachingStrategy(Boolean dropBehind,
Long readahead)
newDefaultStrategy
public static CachingStrategy newDefaultStrategy()
newDropBehind
public static CachingStrategy newDropBehind()
duplicate
public CachingStrategy duplicate()
getDropBehind
public Boolean getDropBehind()
setDropBehind
public void setDropBehind(Boolean dropBehind)
getReadahead
public Long getReadahead()
setReadahead
public void setReadahead(Long readahead)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 Apache Software Foundation. All Rights Reserved.