vibhatha commented on code in PR #43077:
URL: https://github.com/apache/arrow/pull/43077#discussion_r1689528143
##########
java/vector/src/main/codegen/templates/PromotableWriter.java:
##########
@@ -526,4 +589,35 @@ public int getValueCapacity() {
public void close() throws Exception {
getWriter().close();
}
+
+ public void setState(State state) {
+ this.state = state;
+ }
+
+ public void setType(MinorType type) {
+ this.type = type;
+ }
+
+ public void setUnionVector(UnionVector unionVector) {
+ this.unionVector = unionVector;
+ }
+
+ public void setVector(ValueVector vector) {
+ this.vector = vector;
+ }
+
+ public void setWriter(FieldWriter writer) {
+ this.writer = writer;
+ }
+
+ public PromotableViewWriter promote() {
+ PromotableViewWriter promotableViewWriter = new
PromotableViewWriter(unionVector, parentContainer, nullableStructWriterFactory);
+ promotableViewWriter.setPosition(position);
+ promotableViewWriter.setWriter(writer);
+ promotableViewWriter.setState(state);
+ promotableViewWriter.setUnionVector(unionVector);
+ promotableViewWriter.setType(MinorType.LISTVIEW);
+ promotableViewWriter.setPosition(idx());
+ return promotableViewWriter;
+ }
Review Comment:
Right, converting them to protected.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]