public interface DataSegmentFinder
| 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.
|
static void |
putInMapRetainingNewest(Map<String,Pair<DataSegment,Long>> timestampedSegments,
DataSegment dataSegment,
long segmentModifiedAt)
Adds dataSegment if it does not exist in timestampedSegments.
|
static final Logger log
Set<DataSegment> findSegments(String workingDirPath, boolean updateDescriptor) throws SegmentLoadingException
workingDirPath - 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 foundSegmentLoadingExceptionstatic void putInMapRetainingNewest(Map<String,Pair<DataSegment,Long>> timestampedSegments, DataSegment dataSegment, long segmentModifiedAt)
timestampedSegments - map of dataSegment - segment to addsegmentModifiedAt - segment modified timestampCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.