|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.newplan.Operator
org.apache.pig.newplan.logical.relational.LogicalRelationalOperator
org.apache.pig.newplan.logical.relational.LORank
public class LORank
RANK operator implementation. Operator Syntax:
alias = RANK rel ( BY (col_ref) (ASC|DESC)? ( DENSE )? )?;
alias - output alias
RANK - operator
rel - input relation
BY - operator
col_ref - STAR or Column References or a range in the schema of rel
DENSE - dense rank means a sequential value without gasp among different tuple values.
Field Summary |
---|
Fields inherited from class org.apache.pig.newplan.logical.relational.LogicalRelationalOperator |
---|
alias, lineNum, mCustomPartitioner, mPinnedOptions, requestedParallelism, schema |
Fields inherited from class org.apache.pig.newplan.Operator |
---|
annotations, hashPrime, location, name, plan |
Constructor Summary | |
---|---|
LORank(OperatorPlan plan)
|
|
LORank(OperatorPlan plan,
List<LogicalExpressionPlan> rankColPlans,
List<Boolean> ascCols)
|
Method Summary | |
---|---|
void |
accept(PlanVisitor v)
Accept a visitor at this node in the graph. |
List<Boolean> |
getAscendingCol()
|
List<LogicalExpressionPlan> |
getRankColPlans()
|
LogicalSchema |
getSchema()
Get the schema for the output of LORank. |
boolean |
isDenseRank()
Get if it is a dense RANK BY |
boolean |
isEqual(Operator other)
This is like a shallow equals comparison. |
boolean |
isRowNumber()
Get if it is a simple RANK operation. |
void |
setAscendingCol(List<Boolean> ascCols)
|
void |
setIsDenseRank(boolean isDenseRank)
Set if it is a dense RANK BY |
void |
setIsRowNumber(boolean rowNumber)
Set if it is a simple RANK operation. |
void |
setRankColPlan(List<LogicalExpressionPlan> rankColPlans)
|
Methods inherited from class org.apache.pig.newplan.logical.relational.LogicalRelationalOperator |
---|
checkEquality, fixDuplicateUids, getAlias, getCustomPartitioner, getLineNumber, getRequestedParallelism, isPinnedOption, neverUseForRealSetSchema, pinOption, resetSchema, resetUid, setAlias, setCustomPartitioner, setRequestedParallelism, setSchema, toString |
Methods inherited from class org.apache.pig.newplan.Operator |
---|
annotate, getAnnotation, getLocation, getName, getPlan, removeAnnotation, setLocation, setPlan |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LORank(OperatorPlan plan)
public LORank(OperatorPlan plan, List<LogicalExpressionPlan> rankColPlans, List<Boolean> ascCols)
Method Detail |
---|
public List<LogicalExpressionPlan> getRankColPlans()
public void setRankColPlan(List<LogicalExpressionPlan> rankColPlans)
public List<Boolean> getAscendingCol()
public void setAscendingCol(List<Boolean> ascCols)
public LogicalSchema getSchema() throws FrontendException
getSchema
in class LogicalRelationalOperator
FrontendException
public void accept(PlanVisitor v) throws FrontendException
Operator
accept
in class Operator
v
- Visitor to accept.
FrontendException
public boolean isEqual(Operator other) throws FrontendException
Operator
isEqual
in class Operator
FrontendException
public boolean isDenseRank()
public void setIsDenseRank(boolean isDenseRank)
isDenseRank
- if is dense rank or notpublic boolean isRowNumber()
public void setIsRowNumber(boolean rowNumber)
rowNumber
- if is a row number operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |