Class Projections.ProjectionMatchBuilder
- java.lang.Object
-
- org.apache.druid.segment.projections.Projections.ProjectionMatchBuilder
-
- Enclosing class:
- Projections
public static final class Projections.ProjectionMatchBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description ProjectionMatchBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Projections.ProjectionMatchBuilderaddPreAggregatedAggregator(AggregatorFactory aggregator)Add a queryAggregatorFactory.substituteCombiningFactory(AggregatorFactory)which can combine the inputs of a selector created by a projectionAggregatorFactoryProjections.ProjectionMatchBuilderaddReferencedPhysicalColumn(String column)Add a projection physical column, which will later be added toProjections.ProjectionMatch.getCursorBuildSpec()if the projection matchesProjections.ProjectionMatchBuilderaddReferenceedVirtualColumn(VirtualColumn virtualColumn)Add a query virtual column that can use projection physical columns as inputs to the match builder, which will later be added toProjections.ProjectionMatch.getCursorBuildSpec()if the projection matchesProjections.ProjectionMatchbuild(CursorBuildSpec queryCursorBuildSpec)Projections.ProjectionMatchBuilderremapColumn(String queryColumn, String projectionColumn)Map a query column name to a projection column name
-
-
-
Method Detail
-
remapColumn
public Projections.ProjectionMatchBuilder remapColumn(String queryColumn, String projectionColumn)
Map a query column name to a projection column name
-
addReferencedPhysicalColumn
public Projections.ProjectionMatchBuilder addReferencedPhysicalColumn(String column)
Add a projection physical column, which will later be added toProjections.ProjectionMatch.getCursorBuildSpec()if the projection matches
-
addReferenceedVirtualColumn
public Projections.ProjectionMatchBuilder addReferenceedVirtualColumn(VirtualColumn virtualColumn)
Add a query virtual column that can use projection physical columns as inputs to the match builder, which will later be added toProjections.ProjectionMatch.getCursorBuildSpec()if the projection matches
-
addPreAggregatedAggregator
public Projections.ProjectionMatchBuilder addPreAggregatedAggregator(AggregatorFactory aggregator)
Add a queryAggregatorFactory.substituteCombiningFactory(AggregatorFactory)which can combine the inputs of a selector created by a projectionAggregatorFactory
-
build
public Projections.ProjectionMatch build(CursorBuildSpec queryCursorBuildSpec)
-
-