for (MaterializedField field : schema) {
int[] ids = container.getValueVectorId(field.getPath()).getFieldIds();
newContainer.add(container.getValueAccessorById(field.getValueClass(), ids).getValueVectors());
}
newContainer.buildSchema(BatchSchema.SelectionVectorMode.FOUR_BYTE);
this.hyperBatch = new ExpandableHyperContainer(newContainer);
this.batchCount = hyperBatch.iterator().next().getValueVectors().length;
BufferAllocator.PreAllocator preAlloc = allocator.getNewPreAllocator();
preAlloc.preAllocate(4 * (limit + 1));
this.heapSv4 = new SelectionVector4(preAlloc.getAllocation(), limit, Character.MAX_VALUE);
for (int i = 0; i < v4.getTotalCount(); i++) {