to = new UnionVector(name, allocator, callBack); internalStructVectorTransferPair = internalStruct.makeTransferPair(to.internalStruct);
@Override public FieldVector getNewVector( String name, FieldType fieldType, BufferAllocator allocator, CallBack schemaChangeCallback) { if (fieldType.getDictionary() != null) { throw new UnsupportedOperationException("Dictionary encoding not supported for complex " + "types"); } return new UnionVector(name, allocator, schemaChangeCallback); }
@Override public UnionVector promoteToUnion() { UnionVector vector = new UnionVector(name, allocator, null); this.vector.clear(); this.vector = vector; this.reader = new UnionFixedSizeListReader(this); return vector; }
@Override public UnionVector promoteToUnion() { UnionVector vector = new UnionVector("$data$", allocator, callBack); replaceDataVector(vector); reader = new UnionListReader(this); if (callBack != null) { callBack.doWork(); } return vector; }
/** Helper method which creates a union vector with no data */ private static UnionVector testEmptyUnionVector() { final UnionVector unionVector = new UnionVector("unionVector", ALLOCATOR, null); unionVector.initializeChildrenFromFields( asList( Field.nullable("intType", new ArrowType.Int(32, true)), Field.nullable("decimalType", new ArrowType.Decimal(4, 10)) ) ); return unionVector; }
private static Pair<UnionVector, ResultVerifier> testUnionVector(final int startIndexInCurrentOutput, final int startIndexInJob) { UnionVector colUnionV = new UnionVector("colUnion", allocator, null);
UnionVector unionVector = new UnionVector(field.getName(), allocator, callBack); if(!children.isEmpty()){ unionVector.initializeChildrenFromFields(children);