public class LoadTypeCastInserter extends TypeCastInserter
TypeCastInserter.TypeCastInserterTransformer
currentPlan, log, name, pattern
Constructor and Description |
---|
LoadTypeCastInserter(String n) |
Modifier and Type | Method and Description |
---|---|
protected OperatorPlan |
buildPattern()
Build the pattern that this rule will look for
|
protected LogicalSchema |
determineSchema(LogicalRelationalOperator op)
if we are inserting casts in a load and if the loader implements
determineSchema(), insert casts only where necessary Note that in this
case, the data coming out of the loader is not a BYTEARRAY but is
whatever determineSchema() says it is.
|
protected boolean |
isCastAdjusted(LogicalRelationalOperator op) |
protected void |
markCastInserted(LogicalRelationalOperator op) |
protected void |
markCastNoNeed(LogicalRelationalOperator op) |
getNewTransformer
getName, getPattern, isMandatory, isSkipListener, match, setSkipListener
public LoadTypeCastInserter(String n)
protected OperatorPlan buildPattern()
Rule
buildPattern
in class Rule
protected LogicalSchema determineSchema(LogicalRelationalOperator op) throws FrontendException
determineSchema
in class TypeCastInserter
FrontendException
protected void markCastInserted(LogicalRelationalOperator op)
markCastInserted
in class TypeCastInserter
protected void markCastNoNeed(LogicalRelationalOperator op)
markCastNoNeed
in class TypeCastInserter
protected boolean isCastAdjusted(LogicalRelationalOperator op)
isCastAdjusted
in class TypeCastInserter
Copyright © 2007-2017 The Apache Software Foundation