Package org.apache.druid.query.operator
Class ScanOperatorFactory
- java.lang.Object
-
- org.apache.druid.query.operator.ScanOperatorFactory
-
- All Implemented Interfaces:
OperatorFactory
public class ScanOperatorFactory extends Object implements OperatorFactory
-
-
Constructor Summary
Constructors Constructor Description ScanOperatorFactory(org.joda.time.Interval timeRange, DimFilter filter, OffsetLimit offsetLimit, List<String> projectedColumns, VirtualColumns virtualColumns, List<ColumnWithDirection> ordering)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
DimFilter
getFilter()
OffsetLimit
getOffsetLimit()
List<ColumnWithDirection>
getOrdering()
List<String>
getProjectedColumns()
org.joda.time.Interval
getTimeRange()
VirtualColumns
getVirtualColumns()
int
hashCode()
String
toString()
boolean
validateEquivalent(OperatorFactory other)
Validates the equivalence of Operators.Operator
wrap(Operator op)
Builds an operator according to the definition of the OperatorFactory and wraps it around the operator passed in to this function.
-
-
-
Constructor Detail
-
ScanOperatorFactory
public ScanOperatorFactory(org.joda.time.Interval timeRange, DimFilter filter, OffsetLimit offsetLimit, List<String> projectedColumns, VirtualColumns virtualColumns, List<ColumnWithDirection> ordering)
-
-
Method Detail
-
getTimeRange
public org.joda.time.Interval getTimeRange()
-
getFilter
public DimFilter getFilter()
-
getOffsetLimit
public OffsetLimit getOffsetLimit()
-
getVirtualColumns
public VirtualColumns getVirtualColumns()
-
getOrdering
public List<ColumnWithDirection> getOrdering()
-
wrap
public Operator wrap(Operator op)
Description copied from interface:OperatorFactory
Builds an operator according to the definition of the OperatorFactory and wraps it around the operator passed in to this function.- Specified by:
wrap
in interfaceOperatorFactory
- Parameters:
op
- the Operator to wrap- Returns:
- the wrapped Operator
-
validateEquivalent
public boolean validateEquivalent(OperatorFactory other)
Description copied from interface:OperatorFactory
Validates the equivalence of Operators. This is similar to @{code .equals} but is its own method so that it can ignore certain fields that would be important for a true equality check. Namely, two Operators defined the same way but with different output names can be considered equivalent even though they are not equal.This primarily exists to simplify tests, where this equivalence can be used to validate that the Operators created by the SQL planner are actually equivalent to what we expect without needing to be overly dependent on how the planner names output columns
- Specified by:
validateEquivalent
in interfaceOperatorFactory
- Parameters:
other
- the processor to test equivalence of- Returns:
- boolean identifying if these processors should be considered equivalent to each other.
-
-