|
50 | 50 | import org.apache.arrow.vector.ipc.message.ArrowFieldNode; |
51 | 51 | import org.apache.arrow.vector.types.Types.MinorType; |
52 | 52 | import org.apache.arrow.vector.types.pojo.ArrowType; |
53 | | -import org.apache.arrow.vector.types.pojo.DictionaryEncoding; |
54 | 53 | import org.apache.arrow.vector.types.pojo.Field; |
55 | 54 | import org.apache.arrow.vector.types.pojo.FieldType; |
56 | 55 | import org.apache.arrow.vector.util.CallBack; |
@@ -84,26 +83,6 @@ public static ListVector empty(String name, BufferAllocator allocator) { |
84 | 83 | */ |
85 | 84 | private int lastSet; |
86 | 85 |
|
87 | | - /** |
88 | | - * Creates a ListVector. |
89 | | - * |
90 | | - * @deprecated Use FieldType or static constructor instead. |
91 | | - */ |
92 | | - @Deprecated |
93 | | - public ListVector(String name, BufferAllocator allocator, CallBack callBack) { |
94 | | - this(name, allocator, FieldType.nullable(ArrowType.List.INSTANCE), callBack); |
95 | | - } |
96 | | - |
97 | | - /** |
98 | | - * Creates a ListVector. |
99 | | - * |
100 | | - * @deprecated Use FieldType or static constructor instead. |
101 | | - */ |
102 | | - @Deprecated |
103 | | - public ListVector(String name, BufferAllocator allocator, DictionaryEncoding dictionary, CallBack callBack) { |
104 | | - this(name, allocator, new FieldType(true, ArrowType.List.INSTANCE, dictionary, null), callBack); |
105 | | - } |
106 | | - |
107 | 86 | /** |
108 | 87 | * Constructs a new instance. |
109 | 88 | * |
@@ -680,7 +659,7 @@ public ArrowBuf[] getBuffers(boolean clear) { |
680 | 659 |
|
681 | 660 | @Override |
682 | 661 | public UnionVector promoteToUnion() { |
683 | | - UnionVector vector = new UnionVector("$data$", allocator, callBack); |
| 662 | + UnionVector vector = new UnionVector("$data$", allocator, /* field type*/ null, callBack); |
684 | 663 | replaceDataVector(vector); |
685 | 664 | invalidateReader(); |
686 | 665 | if (callBack != null) { |
|
0 commit comments