public class ExpressionTreeMaterializer extends Object
Modifier and Type | Method and Description |
---|---|
static LogicalExpression |
addCastExpression(LogicalExpression fromExpr,
TypeProtos.MajorType toType,
FunctionLookupContext functionLookupContext,
ErrorCollector errorCollector) |
static LogicalExpression |
addCastExpression(LogicalExpression fromExpr,
TypeProtos.MajorType toType,
FunctionLookupContext functionLookupContext,
ErrorCollector errorCollector,
boolean exactResolver) |
static LogicalExpression |
convertToNullableType(LogicalExpression fromExpr,
TypeProtos.MinorType toType,
FunctionLookupContext functionLookupContext,
ErrorCollector errorCollector) |
static LogicalExpression |
materialize(LogicalExpression expr,
Map<VectorAccessible,BatchReference> batches,
ErrorCollector errorCollector,
FunctionLookupContext functionLookupContext,
boolean allowComplexWriterExpr,
boolean unionTypeEnabled)
Materializes logical expression taking into account passed parameters.
|
static LogicalExpression |
materialize(LogicalExpression expr,
VectorAccessible batch,
ErrorCollector errorCollector,
FunctionLookupContext functionLookupContext) |
static LogicalExpression |
materialize(LogicalExpression expr,
VectorAccessible batch,
ErrorCollector errorCollector,
FunctionLookupContext functionLookupContext,
boolean allowComplexWriterExpr) |
static LogicalExpression |
materialize(LogicalExpression expr,
VectorAccessible batch,
ErrorCollector errorCollector,
FunctionLookupContext functionLookupContext,
boolean allowComplexWriterExpr,
boolean unionTypeEnabled)
Materializes logical expression taking into account passed parameters.
|
static LogicalExpression |
materializeAndCheckErrors(LogicalExpression expr,
VectorAccessible batch,
FunctionLookupContext functionLookupContext) |
static LogicalExpression |
materializeFilterExpr(LogicalExpression expr,
TupleMetadata fieldTypes,
ErrorCollector errorCollector,
FunctionLookupContext functionLookupContext) |
public static LogicalExpression materialize(LogicalExpression expr, VectorAccessible batch, ErrorCollector errorCollector, FunctionLookupContext functionLookupContext)
public static LogicalExpression materializeAndCheckErrors(LogicalExpression expr, VectorAccessible batch, FunctionLookupContext functionLookupContext) throws SchemaChangeException
SchemaChangeException
public static LogicalExpression materialize(LogicalExpression expr, VectorAccessible batch, ErrorCollector errorCollector, FunctionLookupContext functionLookupContext, boolean allowComplexWriterExpr)
public static LogicalExpression materializeFilterExpr(LogicalExpression expr, TupleMetadata fieldTypes, ErrorCollector errorCollector, FunctionLookupContext functionLookupContext)
public static LogicalExpression materialize(LogicalExpression expr, VectorAccessible batch, ErrorCollector errorCollector, FunctionLookupContext functionLookupContext, boolean allowComplexWriterExpr, boolean unionTypeEnabled)
expr
- logical expression to be materializedbatch
- batch instanceerrorCollector
- error collectorfunctionLookupContext
- context to find drill function holderallowComplexWriterExpr
- true if complex expressions are allowedunionTypeEnabled
- true if union type is enabledpublic static LogicalExpression materialize(LogicalExpression expr, Map<VectorAccessible,BatchReference> batches, ErrorCollector errorCollector, FunctionLookupContext functionLookupContext, boolean allowComplexWriterExpr, boolean unionTypeEnabled)
expr
- logical expression to be materializedbatches
- one or more batch instances used in expressionerrorCollector
- error collectorfunctionLookupContext
- context to find drill function holderallowComplexWriterExpr
- true if complex expressions are allowedunionTypeEnabled
- true if union type is enabledpublic static LogicalExpression convertToNullableType(LogicalExpression fromExpr, TypeProtos.MinorType toType, FunctionLookupContext functionLookupContext, ErrorCollector errorCollector)
public static LogicalExpression addCastExpression(LogicalExpression fromExpr, TypeProtos.MajorType toType, FunctionLookupContext functionLookupContext, ErrorCollector errorCollector)
public static LogicalExpression addCastExpression(LogicalExpression fromExpr, TypeProtos.MajorType toType, FunctionLookupContext functionLookupContext, ErrorCollector errorCollector, boolean exactResolver)
Copyright © 2019 The Apache Software Foundation. All rights reserved.