public class NullBatchFileCacheRepository extends Object implements BatchFileCacheRepository
BatchFileCacheRepository
.
This implementation does not create any cache files, always returns original file path.Constructor and Description |
---|
NullBatchFileCacheRepository() |
Modifier and Type | Method and Description |
---|---|
Map<org.apache.hadoop.fs.Path,org.apache.hadoop.fs.Path> |
resolve(List<? extends org.apache.hadoop.fs.Path> files)
Put files into remote cache and returns a mapping original files into cached path.
|
public Map<org.apache.hadoop.fs.Path,org.apache.hadoop.fs.Path> resolve(List<? extends org.apache.hadoop.fs.Path> files) throws IOException, InterruptedException
BatchFileCacheRepository
resolve
in interface BatchFileCacheRepository
files
- the target file pathsnull
if this cannot prepare cache for the corresponding original fileIOException
- if failed to put the file into cacheInterruptedException
- if interrupted while resolving cache fileCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.