use of org.apache.hadoop.fs.CacheFlag in project SSM by Intel-bigdata.
the class CacheFileAction method addDirective.
private void addDirective(String fileName) throws Exception {
CacheDirectiveInfo.Builder filterBuilder = new CacheDirectiveInfo.Builder();
filterBuilder.setPath(new Path(fileName));
filterBuilder.setPool(SSMPOOL);
CacheDirectiveInfo filter = filterBuilder.build();
EnumSet<CacheFlag> flags = EnumSet.noneOf(CacheFlag.class);
dfsClient.addCacheDirective(filter, flags);
}
Aggregations