root_to_blocks.h 724 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <yql/essentials/public/purecalc/common/processor_mode.h>
  3. #include <yql/essentials/core/yql_graph_transformer.h>
  4. namespace NYql {
  5. namespace NPureCalc {
  6. /**
  7. * A transformer which rewrite the root to respect block types.
  8. *
  9. * @param acceptsBlock allows using this transformer in pipeline and
  10. * skip this phase if no block output is required.
  11. * @param processorMode specifies the top-most container of the result.
  12. * @return a graph transformer for rewriting the root node.
  13. */
  14. TAutoPtr<IGraphTransformer> MakeRootToBlocks(
  15. bool acceptsBlocks,
  16. EProcessorMode processorMode
  17. );
  18. }
  19. }