Package org.apache.druid.query
Class LeafSegmentsBundle
java.lang.Object
org.apache.druid.query.LeafSegmentsBundle
Holder for decomposing a list of
DataSegmentAndDescriptor into a list of 'active' SegmentReference
for any segments which are already present in the segments cache, and the remaining list of
DataSegmentAndDescriptor which must still be loaded on demand as well as any 'missing'
SegmentDescriptor which are unavailable to load.-
Constructor Summary
ConstructorsConstructorDescriptionLeafSegmentsBundle(ArrayList<SegmentReference> cachedSegments, ArrayList<DataSegmentAndDescriptor> loadableSegments, ArrayList<SegmentDescriptor> missingSegments) -
Method Summary
Modifier and TypeMethodDescriptionvoidList ofSegmentReferencefor segments which are already loaded in the segment cache.List ofDataSegmentAndDescriptorfor segments which are not current present in the segment cache.List ofSegmentDescriptorwhich are not available in the cache (and cannot be downloaded because on demand download is not enabled or aDataSegmentAndDescriptorwas unavailable)
-
Constructor Details
-
LeafSegmentsBundle
public LeafSegmentsBundle(ArrayList<SegmentReference> cachedSegments, ArrayList<DataSegmentAndDescriptor> loadableSegments, ArrayList<SegmentDescriptor> missingSegments)
-
-
Method Details
-
getCachedSegments
List ofSegmentReferencefor segments which are already loaded in the segment cache. These must be closed when the caller is finished with them. -
getLoadableSegments
List ofDataSegmentAndDescriptorfor segments which are not current present in the segment cache. These must be loaded into the cache -
getMissingSegments
List ofSegmentDescriptorwhich are not available in the cache (and cannot be downloaded because on demand download is not enabled or aDataSegmentAndDescriptorwas unavailable) -
closeCachedReferences
public void closeCachedReferences()
-