Class ExternalFieldExtractOperator.Factory
java.lang.Object
org.elasticsearch.xpack.esql.datasources.ExternalFieldExtractOperator.Factory
- All Implemented Interfaces:
Describable,Operator.OperatorFactory
- Enclosing class:
ExternalFieldExtractOperator
public static final class ExternalFieldExtractOperator.Factory
extends Object
implements Operator.OperatorFactory
Builds
ExternalFieldExtractOperators for each driver. The sourceExtractorsLookup
resolves the per-driver SourceExtractors populated by the upstream source operator
factory (typically AsyncExternalSourceOperatorFactory::sourceExtractorsFor). Tests
may supply a pre-populated registry directly via ignored -> registry.-
Constructor Summary
ConstructorsConstructorDescriptionFactory(int rowPositionChannel, List<Integer> passThroughChannels, List<String> deferredColumnNames, List<DataType> deferredColumnTypes, Function<DriverContext, SourceExtractors> sourceExtractorsLookup) -
Method Summary
-
Constructor Details
-
Factory
public Factory(int rowPositionChannel, List<Integer> passThroughChannels, List<String> deferredColumnNames, List<DataType> deferredColumnTypes, Function<DriverContext, SourceExtractors> sourceExtractorsLookup) - Parameters:
rowPositionChannel- channel index in the input page that holds_rowPositionpassThroughChannels- channel indices of the input page that should be copied to the output (in the order they appear in the output)deferredColumnNames- names of the deferred columns to load, in output orderdeferredColumnTypes- planner/declared type per deferred column, aligned withdeferredColumnNames; extraction coerces the file's value to this type exactly like the eager decode paths (DeclaredTypeCoercions)sourceExtractorsLookup- per-driver registry resolver; must never returnnull
-
-
Method Details
-
get
- Specified by:
getin interfaceOperator.OperatorFactory
-
describe
- Specified by:
describein interfaceDescribable
-