public abstract class Spool extends SingleRel
NOTE: The current API is experimental and subject to change without notice.
Modifier and Type | Class and Description |
---|---|
static class |
Spool.Type
Enumeration representing spool read / write type.
|
RelNode.Context
Modifier and Type | Field and Description |
---|---|
Spool.Type |
readType
How the spool consumes elements from its input.
|
Spool.Type |
writeType
How the spool forwards elements to consumers.
|
digest, id, rowType, traitSet
Modifier | Constructor and Description |
---|---|
protected |
Spool(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
Spool.Type readType,
Spool.Type writeType)
Creates a Spool.
|
Modifier and Type | Method and Description |
---|---|
RelNode |
copy(RelTraitSet traitSet,
java.util.List<RelNode> inputs)
Creates a copy of this relational expression, perhaps changing traits and
inputs.
|
protected abstract Spool |
copy(RelTraitSet traitSet,
RelNode input,
Spool.Type readType,
Spool.Type writeType) |
RelWriter |
explainTerms(RelWriter pw)
Describes the inputs and attributes of this relational expression.
|
childrenAccept, deriveRowType, estimateRowCount, getInput, getInputs, replaceInput
accept, accept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, computeSelfCost, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, sole, toString
public final Spool.Type readType
public final Spool.Type writeType
protected Spool(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, Spool.Type readType, Spool.Type writeType)
public final RelNode copy(RelTraitSet traitSet, java.util.List<RelNode> inputs)
RelNode
Sub-classes with other important attributes are encouraged to create variants of this method with more parameters.
copy
in interface RelNode
copy
in class AbstractRelNode
traitSet
- Trait setinputs
- Inputsprotected abstract Spool copy(RelTraitSet traitSet, RelNode input, Spool.Type readType, Spool.Type writeType)
public RelWriter explainTerms(RelWriter pw)
AbstractRelNode
super.explainTerms
, then call the
RelWriter.input(String, RelNode)
and
RelWriterImpl.item(String, Object)
methods for each input and attribute.explainTerms
in class SingleRel
pw
- Plan writerCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.