Class MockSubScanPOP

java.lang.Object
org.apache.drill.exec.physical.base.AbstractBase
org.apache.drill.exec.store.mock.MockSubScanPOP
All Implemented Interfaces:
Iterable<PhysicalOperator>, GraphValue<PhysicalOperator>, FragmentLeaf, Leaf, PhysicalOperator, Scan, SubScan

public class MockSubScanPOP extends AbstractBase implements SubScan
Describes a physical scan operation for the mock data source. Each operator can, in general, give rise to one or more actual scans. For the mock data source, each sub-scan does exactly one (simulated) scan.
  • Field Details

  • Constructor Details

    • MockSubScanPOP

      public MockSubScanPOP(String url, Boolean extended, List<MockTableDef.MockScanEntry> readEntries)
      This constructor is called from Jackson and is designed to support both older physical plans and the newer ("extended") plans. Jackson will fill in a null value for the extended field for older plans; we use that null value to know that the plan is old, thus not extended. Newer plans simply provide the value.
      Parameters:
      url - not used for the mock plan, appears to be a vestige of creating this from a file-based plugin. Must keep it because older physical plans contained a dummy URL value.
      extended - see above
      readEntries - a description of the columns to generate in a Jackson-serialized form unique to the mock data source plugin.
  • Method Details