private SequenceFile.Reader getListingFileReader(Configuration configuration) {
final Path listingFilePath = getListingFilePath(configuration);
try {
final FileSystem fileSystem = listingFilePath.getFileSystem(configuration);
if (!fileSystem.exists(listingFilePath)) {
throw new IllegalArgumentException("Listing file doesn't exist at: " + listingFilePath);
}
return new SequenceFile.Reader(configuration, SequenceFile.Reader.file(listingFilePath));
} catch (IOException exception) {
LOG.error("Couldn't find listing file at: " + listingFilePath, exception);
throw new IllegalArgumentException("Couldn't find listing-file at: " + listingFilePath, exception);
}
}
UniformSizeInputFormat.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:circus-train
作者:
评论列表
文章目录