@Override public TransferPair getTransferPair(String ref, BufferAllocator allocator, CallBack callBack) { return new StructTransferPair(this, new NonNullableStructVector(name, allocator, fieldType, callBack), false); }
@Override public TransferPair getTransferPair(String ref, BufferAllocator allocator) { return new StructTransferPair(this, new NonNullableStructVector(ref, allocator, fieldType, callBack), false); }
public static NonNullableStructVector empty(String name, BufferAllocator allocator) { FieldType fieldType = new FieldType(false, ArrowType.Struct.INSTANCE, null, null); return new NonNullableStructVector(name, allocator, fieldType, null); }
public UnionVector(String name, BufferAllocator allocator, CallBack callBack) { this.name = name; this.allocator = allocator; this.internalStruct = new NonNullableStructVector("internal", allocator, new FieldType(false, ArrowType.Struct.INSTANCE, null, null), callBack); this.typeBuffer = allocator.getEmpty(); this.callBack = callBack; this.typeBufferAllocationSizeInBytes = BaseValueVector.INITIAL_VALUE_ALLOCATION * TYPE_WIDTH; }
final NonNullableStructVector structVector = new NonNullableStructVector("", allocator, null); final ComplexWriterImpl writer = new ComplexWriterImpl("col", structVector); final StructWriter struct = writer.rootAsStruct();
private static Pair<NonNullableStructVector, ResultVerifier> testMapVector(final int startIndexInCurrentOutput, final int startIndexInJob) { NonNullableStructVector colStructV = new NonNullableStructVector("colMap", allocator, null);
private NonNullableStructVector structVector(String name) { NonNullableStructVector vector = new NonNullableStructVector(name, allocator, null);