Interface OperatorFactory

All Known Subinterfaces:
JoinOperatorFactory, SourceOperatorFactory
All Known Implementing Classes:
AggregationOperator.AggregationOperatorFactory, DeleteOperator.DeleteOperatorFactory, DevNullOperator.DevNullOperatorFactory, DistinctLimitOperator.DistinctLimitOperatorFactory, DynamicFilterSourceOperator.DynamicFilterSourceOperatorFactory, EnforceSingleRowOperator.EnforceSingleRowOperatorFactory, ExchangeOperator.ExchangeOperatorFactory, ExplainAnalyzeOperator.ExplainAnalyzeOperatorFactory, GroupIdOperator.GroupIdOperatorFactory, HashAggregationOperator.HashAggregationOperatorFactory, HashBuilderOperator.HashBuilderOperatorFactory, IndexSourceOperator.IndexSourceOperatorFactory, LimitOperator.LimitOperatorFactory, LocalExchangeSinkOperator.LocalExchangeSinkOperatorFactory, LocalExchangeSourceOperator.LocalExchangeSourceOperatorFactory, LocalMergeSourceOperator.LocalMergeSourceOperatorFactory, LookupJoinOperatorFactory, LookupOuterOperator.LookupOuterOperatorFactory, MarkDistinctOperator.MarkDistinctOperatorFactory, MergeOperator.MergeOperatorFactory, NestedLoopBuildOperator.NestedLoopBuildOperatorFactory, NestedLoopJoinOperator.NestedLoopJoinOperatorFactory, NullOutputOperator.NullOutputOperatorFactory, OrderByOperator.OrderByOperatorFactory, PageBufferOperator.PageBufferOperatorFactory, PageConsumerOperator.PageConsumerOperatorFactory, PagesIndexBuilderOperator.PagesIndexBuilderOperatorFactory, PartitionedOutputOperator.PartitionedOutputOperatorFactory, RefreshMaterializedViewOperator.RefreshMaterializedViewOperatorFactory, RowNumberOperator.RowNumberOperatorFactory, ScanFilterAndProjectOperator.ScanFilterAndProjectOperatorFactory, SetBuilderOperator.SetBuilderOperatorFactory, SpatialIndexBuilderOperator.SpatialIndexBuilderOperatorFactory, SpatialJoinOperator.SpatialJoinOperatorFactory, StatisticsWriterOperator.StatisticsWriterOperatorFactory, TableDeleteOperator.TableDeleteOperatorFactory, TableFinishOperator.TableFinishOperatorFactory, TableScanOperator.TableScanOperatorFactory, TableWriterOperator.TableWriterOperatorFactory, TaskOutputOperator.TaskOutputOperatorFactory, TopNRankingOperator.TopNRankingOperatorFactory, UnnestOperator.UnnestOperatorFactory, UpdateOperator.UpdateOperatorFactory, ValuesOperator.ValuesOperatorFactory, WindowOperator.WindowOperatorFactory, WorkProcessorPipelineSourceOperator.WorkProcessorPipelineSourceOperatorFactory

public interface OperatorFactory
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
    Declare that createOperator will not be called any more and release any resources associated with this factory.
    default void
    Declare that createOperator will not be called any more for the specified Lifespan, and release any resources associated with this factory.
  • Method Details

    • createOperator

      Operator createOperator(DriverContext driverContext)
    • noMoreOperators

      void noMoreOperators()
      Declare that createOperator will not be called any more and release any resources associated with this factory.

      This method will be called only once. Implementation doesn't need to worry about duplicate invocations.

      It is guaranteed that this will only be invoked after noMoreOperators(Lifespan) has been invoked for all applicable driver groups.

    • noMoreOperators

      default void noMoreOperators(Lifespan lifespan)
      Declare that createOperator will not be called any more for the specified Lifespan, and release any resources associated with this factory.

      This method will be called only once for each Lifespan. Implementation doesn't need to worry about duplicate invocations.

      It is guaranteed that this method will be invoked for all applicable driver groups before noMoreOperators() is invoked.

    • duplicate

      OperatorFactory duplicate()