public class PhysicalOperatorUtil extends Object
Modifier and Type | Method and Description |
---|---|
static List<MinorFragmentEndpoint> |
getIndexOrderedEndpoints(List<CoordinationProtos.DrillbitEndpoint> endpoints)
Helper method to create a list of
MinorFragmentEndpoint instances from a
given endpoint assignment list. |
static Set<Class<? extends PhysicalOperator>> |
getSubTypes(ScanResult classpathScan) |
static LogicalExpression |
materializeExpression(LogicalExpression expr,
VectorAccessible incoming,
FragmentContext context)
Helper method to materialize the given logical expression using the
ExpressionTreeMaterializer . |
public static Set<Class<? extends PhysicalOperator>> getSubTypes(ScanResult classpathScan)
public static List<MinorFragmentEndpoint> getIndexOrderedEndpoints(List<CoordinationProtos.DrillbitEndpoint> endpoints)
MinorFragmentEndpoint
instances from a
given endpoint assignment list.endpoints
- Assigned endpoint list. Index of each endpoint in list indicates
the MinorFragmentId of the fragment that is assigned to the
endpoint.public static LogicalExpression materializeExpression(LogicalExpression expr, VectorAccessible incoming, FragmentContext context)
ExpressionTreeMaterializer
.expr
- Logical expression to materializeincoming
- Incoming record batchcontext
- Fragment contextCopyright © 1970 The Apache Software Foundation. All rights reserved.