List<ValueVector> vectors = Lists.newArrayList();
for (int i = 0; i < 5; i++) {
Float8Vector v = (Float8Vector) TypeHelper.getNewVector(
MaterializedField.create(new SchemaPath("a", ExpressionPosition.UNKNOWN), Types.required(MinorType.FLOAT8)),
allocator);
v.allocateNew(records);
v.getMutator().generateTestData(records);
vectors.add(v);
}
return WritableBatch.getBatchNoHV(records, vectors, false);
}