public static void setRandom(VectorizedRowBatch batch) { batch.size = VectorizedRowBatch.DEFAULT_SIZE; for (int i = 0; i != batch.numCols; i++) { batch.cols[i] = new LongColumnVector(VectorizedRowBatch.DEFAULT_SIZE); setRandomLongCol((LongColumnVector) batch.cols[i]); } }
private LongColumnVector getLongVector(int len) { LongColumnVector lcv = new LongColumnVector(len); TestVectorizedRowBatch.setRandomLongCol(lcv); return lcv; } }