public class MockSubScanPOP extends AbstractBase implements SubScan
Modifier and Type | Field and Description |
---|---|
static String |
OPERATOR_TYPE |
protected List<MockTableDef.MockScanEntry> |
readEntries |
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
<T,X,E extends Throwable> |
accept(PhysicalVisitor<T,X,E> physicalVisitor,
X value)
Provides capability to build a set of output based on traversing a query graph tree.
|
PhysicalOperator |
getNewWithChildren(List<PhysicalOperator> children)
Regenerate with this node with a new set of children.
|
String |
getOperatorType() |
List<MockTableDef.MockScanEntry> |
getReadEntries() |
String |
getUrl() |
boolean |
isExecutable()
Describes whether or not a particular physical operator can actually be executed.
|
boolean |
isExtended() |
Iterator<PhysicalOperator> |
iterator() |
accept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorId
accept
forEach, spliterator
public static final String OPERATOR_TYPE
protected final List<MockTableDef.MockScanEntry> readEntries
public MockSubScanPOP(String url, Boolean extended, List<MockTableDef.MockScanEntry> readEntries)
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 abovereadEntries
- a description of the columns to generate in a Jackson-serialized
form unique to the mock data source plugin.public String getUrl()
public boolean isExtended()
public List<MockTableDef.MockScanEntry> getReadEntries()
public Iterator<PhysicalOperator> iterator()
iterator
in interface Iterable<PhysicalOperator>
public boolean isExecutable()
PhysicalOperator
isExecutable
in interface PhysicalOperator
isExecutable
in class AbstractBase
public <T,X,E extends Throwable> T accept(PhysicalVisitor<T,X,E> physicalVisitor, X value) throws E extends Throwable
PhysicalOperator
accept
in interface PhysicalOperator
E extends Throwable
public PhysicalOperator getNewWithChildren(List<PhysicalOperator> children)
PhysicalOperator
getNewWithChildren
in interface PhysicalOperator
public String getOperatorType()
getOperatorType
in interface PhysicalOperator
Copyright © 1970 The Apache Software Foundation. All rights reserved.