Class GetSetVectorHelper

java.lang.Object
org.apache.drill.exec.expr.GetSetVectorHelper

public class GetSetVectorHelper extends Object
  • Constructor Details

    • GetSetVectorHelper

      public GetSetVectorHelper()
  • Method Details

    • read

      public static void read(TypeProtos.MajorType type, com.sun.codemodel.JExpression vector, com.sun.codemodel.JBlock eval, ClassGenerator.HoldingContainer out, com.sun.codemodel.JCodeModel model, com.sun.codemodel.JExpression indexVariable)
      Generates the code to read a vector into a holder. Example:
      
         NullableBigIntHolder out3 = new NullableBigIntHolder();
         {
          out3 .isSet = vv0 [((leftIndex)>>> 16)].getAccessor().isSet(((leftIndex)& 65535));
          if (out3 .isSet == 1) {
            out3 .value = vv0 [((leftIndex)>>> 16)].getAccessor().get(((leftIndex)& 65535));
          }
        }
    • write

      public static com.sun.codemodel.JInvocation write(TypeProtos.MajorType type, com.sun.codemodel.JVar vector, ClassGenerator.HoldingContainer in, com.sun.codemodel.JExpression indexVariable, String setMethodName)