public class SparkOperator extends Operator<SparkOpPlanVisitor>
Modifier and Type | Field and Description |
---|---|
String |
customPartitioner |
PhysicalPlan |
physicalPlan |
int |
requestedParallelism |
Set<PhysicalOperator> |
scalars |
Set<String> |
UDFs |
Constructor and Description |
---|
SparkOperator(OperatorKey k) |
Modifier and Type | Method and Description |
---|---|
void |
add(PhysicalOperator physicalOper) |
void |
addCrossKey(String key) |
void |
addMultiQueryOptimizeConnectionItem(OperatorKey to,
OperatorKey from) |
boolean |
combineSmallSplits() |
void |
copyFeatures(SparkOperator copyFrom,
List<org.apache.pig.backend.hadoop.executionengine.spark.plan.SparkOperator.OPER_FEATURE> excludeFeatures) |
List<String> |
getCrossKeys() |
MultiMap<OperatorKey,OperatorKey> |
getMultiQueryOptimizeConnectionItem() |
int |
getRequestedParallelism() |
String |
getSkewedJoinPartitionFile() |
boolean |
isCogroup() |
boolean |
isGlobalSort() |
boolean |
isGroupBy() |
boolean |
isIndexer() |
boolean |
isLimit() |
boolean |
isLimitAfterSort() |
boolean |
isNative() |
boolean |
isRegularJoin() |
boolean |
isSampler() |
boolean |
isSkewedJoin() |
boolean |
isSplitter() |
boolean |
isUnion() |
void |
markCogroup() |
void |
markGroupBy() |
void |
markIndexer() |
void |
markLimit() |
void |
markLimitAfterSort() |
void |
markNative() |
void |
markRegularJoin() |
void |
markSampler() |
void |
markUnion() |
String |
name() |
protected void |
noCombineSmallSplits() |
void |
setGlobalSort(boolean globalSort) |
void |
setRequestedParallelism(int requestedParallelism) |
void |
setRequestedParallelismByReference(SparkOperator oper) |
void |
setSkewedJoinPartitionFile(String file) |
void |
setSplitter(boolean spl) |
boolean |
supportsMultipleInputs()
Indicates whether this operator supports multiple inputs.
|
boolean |
supportsMultipleOutputs()
Indicates whether this operator supports multiple outputs.
|
protected void |
useTypedComparator(boolean useTypedComparator) |
protected boolean |
usingTypedComparator() |
void |
visit(SparkOpPlanVisitor v)
Visit this node with the provided visitor.
|
clone, compareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, toString, unsetProjectionMap
public PhysicalPlan physicalPlan
public String customPartitioner
public Set<PhysicalOperator> scalars
public int requestedParallelism
public SparkOperator(OperatorKey k)
public boolean supportsMultipleInputs()
Operator
supportsMultipleInputs
in class Operator<SparkOpPlanVisitor>
public boolean supportsMultipleOutputs()
Operator
supportsMultipleOutputs
in class Operator<SparkOpPlanVisitor>
public String name()
name
in class Operator<SparkOpPlanVisitor>
public void add(PhysicalOperator physicalOper)
public void visit(SparkOpPlanVisitor v) throws VisitorException
Operator
visit
in class Operator<SparkOpPlanVisitor>
v
- Visitor to visit with.VisitorException
- if the visitor has a problem.public void addCrossKey(String key)
public boolean isGroupBy()
public void markGroupBy()
public boolean isCogroup()
public void markCogroup()
public boolean isRegularJoin()
public void markRegularJoin()
public int getRequestedParallelism()
public void setSplitter(boolean spl)
public boolean isSplitter()
public boolean isSampler()
public void markSampler()
public void setSkewedJoinPartitionFile(String file)
public String getSkewedJoinPartitionFile()
protected boolean usingTypedComparator()
protected void useTypedComparator(boolean useTypedComparator)
protected void noCombineSmallSplits()
public boolean combineSmallSplits()
public boolean isIndexer()
public void markIndexer()
public boolean isUnion()
public void markUnion()
public boolean isNative()
public void markNative()
public boolean isLimit()
public void markLimit()
public boolean isLimitAfterSort()
public void markLimitAfterSort()
public void copyFeatures(SparkOperator copyFrom, List<org.apache.pig.backend.hadoop.executionengine.spark.plan.SparkOperator.OPER_FEATURE> excludeFeatures)
public boolean isSkewedJoin()
public void setRequestedParallelism(int requestedParallelism)
public void setRequestedParallelismByReference(SparkOperator oper)
public void addMultiQueryOptimizeConnectionItem(OperatorKey to, OperatorKey from)
public MultiMap<OperatorKey,OperatorKey> getMultiQueryOptimizeConnectionItem()
public void setGlobalSort(boolean globalSort)
public boolean isGlobalSort()
Copyright © 2007-2017 The Apache Software Foundation