public class CastExecutors extends Object
Constructor and Description |
---|
CastExecutors() |
Modifier and Type | Method and Description |
---|---|
static Optional<List<Object>> |
castLiteralsWithEvolution(List<Object> literals,
DataType predicateType,
DataType dataType)
If a field type is modified, pushing down a filter of it is dangerous.
|
static CastExecutor<?,?> |
identityCastExecutor() |
static CastExecutor<?,?> |
resolve(DataType inputType,
DataType outputType)
Resolve a
CastExecutor for the provided input type and target type. |
@Nullable public static CastExecutor<?,?> resolve(DataType inputType, DataType outputType)
CastExecutor
for the provided input type and target type. Returns null if
no rule can be resolved.inputType
- the input value type.outputType
- the output value type.CastExecutor
instance.public static CastExecutor<?,?> identityCastExecutor()
public static Optional<List<Object>> castLiteralsWithEvolution(List<Object> literals, DataType predicateType, DataType dataType)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.