public void setBucketAndWriteIdOf(VectorizedRowBatch vectorizedRowBatch, BucketIdentifier bucketIdentifier) {
    if (bucketIdentifier == null) {
      return;
    }

    int virtualColumnNum = findVirtualColumnNum(VirtualColumn.ROWID);
    if (virtualColumnNum == -1) {
      return;
    }

    StructColumnVector rowIdStructColVector = (StructColumnVector) vectorizedRowBatch.cols[virtualColumnNum];

    LongColumnVector writeIdColVector = (LongColumnVector) rowIdStructColVector.fields[0];
    writeIdColVector.isRepeating = true;
    writeIdColVector.vector[0] = bucketIdentifier.getWriteId();
    LongColumnVector bucketIdColVector = (LongColumnVector) rowIdStructColVector.fields[1];
    bucketIdColVector.isRepeating = true;
    bucketIdColVector.vector[0] = bucketIdentifier.getBucketProperty();
    LongColumnVector rowIdColVector = (LongColumnVector) rowIdStructColVector.fields[2];
  }
Creates a Vectorized row batch and the column vectors.

@return VectorizedRowBatch
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizedRowBatchCtx.java