if (usingDictionary) {
DrillBuf b = DrillBuf.wrapByteBuffer(currDictValToWrite.toByteBuffer());
int st=0;
int len=currDictValToWrite.length();
VarCharHolder holder = new VarCharHolder();
holder.buffer=b;
holder.start=0;
holder.end=currDictValToWrite.length();
success = varCharVector.getMutator().setSafe(index, holder);
}
else {
VarCharHolder holder = new VarCharHolder();
holder.buffer=bytebuf;
holder.start=start;
holder.end=start+length;
success = varCharVector.getMutator().setSafe(index, holder);
}