private static void setValueToBytesColumnVector(ColumnVector col, int rowInBatch, Object value) {
        byte[] finalValueToSet = new byte[0];
        if (value != null) {
            if (value instanceof String) finalValueToSet = ((String) value).getBytes(UTF_8);
            if (value instanceof byte[]) finalValueToSet = (byte[]) value;
            if (value instanceof Object[]) finalValueToSet = Arrays.deepToString((Object[]) value).getBytes(UTF_8);
        }
        ((BytesColumnVector) col).setVal(rowInBatch, finalValueToSet);
    }
Set a value to BytesColumnVector

@param col
@param rowInBatch
@param value
src/main/java/org/replicadb/manager/file/OrcFileManager.java