use of org.apache.drill.exec.vector.complex.impl.UnionListReader in project drill by apache.
the class ListVector method promoteToUnion.
public UnionVector promoteToUnion() {
MaterializedField newField = MaterializedField.create(getField().getPath(), Types.optional(MinorType.UNION));
UnionVector vector = new UnionVector(newField, allocator, null);
replaceDataVector(vector);
reader = new UnionListReader(this);
return vector;
}
use of org.apache.drill.exec.vector.complex.impl.UnionListReader in project drill by apache.
the class ListVector method addOrGetVector.
public <T extends ValueVector> AddOrGetResult<T> addOrGetVector(VectorDescriptor descriptor) {
AddOrGetResult<T> result = super.addOrGetVector(descriptor);
reader = new UnionListReader(this);
return result;
}
Aggregations