public class HdfsDataSegmentFinder extends Object implements DataSegmentFinder
Constructor and Description |
---|
HdfsDataSegmentFinder(org.apache.hadoop.conf.Configuration config,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
Modifier and Type | Method and Description |
---|---|
Set<DataSegment> |
findSegments(String workingDirPathStr,
boolean updateDescriptor)
This method should first recursively look for descriptor.json (partitionNum_descriptor.json for HDFS data storage) underneath
workingDirPath and then verify that index.zip (partitionNum_index.zip for HDFS data storage) exists in the same folder.
|
@Inject public HdfsDataSegmentFinder(org.apache.hadoop.conf.Configuration config, com.fasterxml.jackson.databind.ObjectMapper mapper)
public Set<DataSegment> findSegments(String workingDirPathStr, boolean updateDescriptor) throws SegmentLoadingException
DataSegmentFinder
findSegments
in interface DataSegmentFinder
workingDirPathStr
- the String representation of the working directory pathupdateDescriptor
- if true, update loadSpec in descriptor.json if loadSpec's location is different from where
desciptor.json was foundSegmentLoadingException
Copyright © 2011–2017. All rights reserved.