Directory directory;
URI uri = hdfsDirPath.toUri();
String scheme = uri.getScheme();
if (scheme != null && scheme.equals("hdfs")) {
LOG.info("Using Fast HDFS directory implementation on shard [{0}] for table [{1}]", shard, table);
FastHdfsKeyValueDirectory shortTermStorage = new FastHdfsKeyValueDirectory(_configuration, new Path(hdfsDirPath,
"fast"));
directory = new JoinDirectory(longTermStorage, shortTermStorage);
} else {
directory = longTermStorage;
}