public class LoadTypeCastInserter extends TypeCastInserter
TypeCastInserter.TypeCastInserterTransformercurrentPlan, 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) |
getNewTransformergetName, getPattern, isMandatory, isSkipListener, match, setSkipListenerpublic LoadTypeCastInserter(String n)
protected OperatorPlan buildPattern()
RulebuildPattern in class Ruleprotected LogicalSchema determineSchema(LogicalRelationalOperator op) throws FrontendException
determineSchema in class TypeCastInserterFrontendExceptionprotected void markCastInserted(LogicalRelationalOperator op)
markCastInserted in class TypeCastInserterprotected void markCastNoNeed(LogicalRelationalOperator op)
markCastNoNeed in class TypeCastInserterprotected boolean isCastAdjusted(LogicalRelationalOperator op)
isCastAdjusted in class TypeCastInserterCopyright © 2007-2017 The Apache Software Foundation