@Override public FieldVector getNewVector( String name, FieldType fieldType, BufferAllocator allocator, CallBack schemaChangeCallback) { return new ListVector(name, allocator, fieldType, schemaChangeCallback); }
public TransferImpl(String name, BufferAllocator allocator, CallBack callBack) { this(new ListVector(name, allocator, fieldType, callBack)); }
public static ListVector empty(String name, BufferAllocator allocator) { return new ListVector(name, allocator, FieldType.nullable(ArrowType.List.INSTANCE), null); }
/** Helper method which creates a empty list vector */ private static ListVector testEmptyListVector() { final ListVector vector = new ListVector("emptyListVector", ALLOCATOR, FieldType.nullable(ArrowType.Null.INSTANCE), null); vector.allocateNew(); return vector; }
private static Pair<ListVector, ResultVerifier> testListVector(final int startIndexInCurrentOutput, final int startIndexInJob) { ListVector colListV = new ListVector("colList", allocator, null);
@Test public void list() throws InterruptedException { try (BufferAllocator allocator = new RootAllocator(Integer.MAX_VALUE); ListVector inVector = new ListVector("input", allocator, null)) { UnionListWriter writer = inVector.getWriter(); writer.allocate();
ListVector listVector = new ListVector(field.getName(), allocator, callBack); if(!children.isEmpty()){ listVector.initializeChildrenFromFields(children);