Package org.apache.druid.query.policy
Interface Policy
- All Known Implementing Classes:
NoRestrictionPolicy,RowFilterPolicy
public interface Policy
Extensible interface for a granular-level (e.x. row filter) restriction on read-table access. Implementations must be
Jackson-serializable.
-
Method Summary
Modifier and TypeMethodDescriptiondefault SegmentPrunervisit(CursorBuildSpec spec) Apply this policy to aCursorBuildSpecto seamlessly enforce policies for cursor-based queries.
-
Method Details
-
visit
Apply this policy to aCursorBuildSpecto seamlessly enforce policies for cursor-based queries. The application must encapsulate 100% of the requirements of this policy.Any transforms done to the spec must be sure to update
CursorBuildSpec.getPhysicalColumns()andCursorBuildSpec.getVirtualColumns()as needed to ensure the underlyingCursorHolderthat is being restricted has accurate information about the set of required columns. -
createSegmentPruner
- Returns:
- a
SegmentPrunerwhich can be used to skip processing entire segments if it is possible to determine if the policy restricts access.
-