class ConstantColumnLoader extends StaticColumnLoader {

  public ConstantColumnLoader(ResultVectorCache vectorCache,
      List<? extends ConstantColumnSpec> defns) {
    super(vectorCache);

    // Populate the loader schema from that provided.
    // Cache values for faster access.
    // TODO: Rewrite to specify schema up front

    constantCols = defns;
    RowSetLoader schema = loader.writer();
    values = new String[defns.size()];
    for (int i = 0; i < defns.size(); i++) {
      ConstantColumnSpec defn  = defns.get(i);
      values[i] = defn.value();
      schema.addColumn(defn.schema());
    }
  }

  public  ConstantColumnLoader(ResultVectorCache vectorCache,
      List<? extends ConstantColumnSpec> defns);

}