Package org.apache.druid.query.filter
Class CompositeSegmentPruner
java.lang.Object
org.apache.druid.query.filter.CompositeSegmentPruner
- All Implemented Interfaces:
SegmentPruner
SegmentPruner implementation that applies a set of SegmentPruner against each DataSegment
and will return false for include(DataSegment) if ANY pruner indicates that it should not be included.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncombine(SegmentPruner other) booleaninthashCode()booleaninclude(DataSegment segment) Check if aDataSegmentshould be included or not.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.query.filter.SegmentPruner
prune
-
Constructor Details
-
CompositeSegmentPruner
-
-
Method Details
-
include
Description copied from interface:SegmentPrunerCheck if aDataSegmentshould be included or not. If this method returns false, the segment can be skipped during processing.- Specified by:
includein interfaceSegmentPruner
-
combine
- Specified by:
combinein interfaceSegmentPruner- Returns:
- combined
SegmentPruner, which if both are of the same type may be merged into a new pruner of the same type that contains the information of both, or if not directly combinable, implementors should create aCompositeSegmentPruner
-
equals
-
hashCode
public int hashCode() -
toString
-