public class S3DataSegmentFinder extends Object implements DataSegmentFinder
| Constructor and Description | 
|---|
S3DataSegmentFinder(org.jets3t.service.impl.rest.httpclient.RestS3Service s3Client,
                   S3DataSegmentPusherConfig config,
                   com.fasterxml.jackson.databind.ObjectMapper jsonMapper)  | 
| Modifier and Type | Method and Description | 
|---|---|
Set<DataSegment> | 
findSegments(String workingDirPath,
            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 S3DataSegmentFinder(org.jets3t.service.impl.rest.httpclient.RestS3Service s3Client,
                                   S3DataSegmentPusherConfig config,
                                   com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public Set<DataSegment> findSegments(String workingDirPath, boolean updateDescriptor) throws SegmentLoadingException
DataSegmentFinderfindSegments in interface DataSegmentFinderworkingDirPath - 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 foundSegmentLoadingExceptionCopyright © 2011–2018. All rights reserved.