Package org.apache.drill.exec.expr
Class ClassGenerator.HoldingContainer
java.lang.Object
org.apache.drill.exec.expr.ClassGenerator.HoldingContainer
- Direct Known Subclasses:
EvaluationVisitor.VectorVariableHolder
- Enclosing class:
ClassGenerator<T>
Represents a (Nullable)?(Type)Holder instance. Allows code
gen to declare, set, work with and retrieve values from a holder.
Holders exploit scalar replacement in Drill (or in Java): that
the holder can, via code rewrites, be replaced by scalars that
do the same job.
-
Constructor Summary
ConstructorsConstructorDescriptionHoldingContainer(TypeProtos.MajorType t, com.sun.codemodel.JVar holder, com.sun.codemodel.JFieldRef value, com.sun.codemodel.JFieldRef isSet) HoldingContainer(TypeProtos.MajorType t, com.sun.codemodel.JVar holder, com.sun.codemodel.JFieldRef value, com.sun.codemodel.JFieldRef isSet, boolean singularRepeated, boolean isReader) -
Method Summary
Modifier and TypeMethodDescriptioncom.sun.codemodel.JFieldRefcom.sun.codemodel.JVarcom.sun.codemodel.JFieldRefgetIsSet()com.sun.codemodel.JFieldRefgetValue()booleanbooleanbooleanisReader()booleanbooleansetConstant(boolean isConstant) toString()Convert holder to a string for debugging use.
-
Constructor Details
-
HoldingContainer
public HoldingContainer(TypeProtos.MajorType t, com.sun.codemodel.JVar holder, com.sun.codemodel.JFieldRef value, com.sun.codemodel.JFieldRef isSet) -
HoldingContainer
public HoldingContainer(TypeProtos.MajorType t, com.sun.codemodel.JVar holder, com.sun.codemodel.JFieldRef value, com.sun.codemodel.JFieldRef isSet, boolean singularRepeated, boolean isReader) -
HoldingContainer
-
-
Method Details
-
isReader
public boolean isReader() -
isSingularRepeated
public boolean isSingularRepeated() -
setConstant
-
f
-
isConstant
public boolean isConstant() -
getHolder
public com.sun.codemodel.JVar getHolder() -
getValue
public com.sun.codemodel.JFieldRef getValue() -
getMajorType
-
getIsSet
public com.sun.codemodel.JFieldRef getIsSet() -
isOptional
public boolean isOptional() -
isRepeated
public boolean isRepeated() -
getMinorType
-
toString
Convert holder to a string for debugging use.
-