File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
main/java/org/apache/arrow/vector/complex/impl
test/java/org/apache/arrow/vector/complex/impl Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,9 @@ public void clear() {
5858 this .vector .clear ();
5959 }
6060
61- @ Override
62- protected int idx () {
63- return super .idx ();
64- }
65-
6661 @ Override
6762 public void writeNull () {
68- this .vector .setNull (this . idx ());
69- this .vector .setValueCount (this . idx () + 1 );
63+ this .vector .setNull (getPosition ());
64+ this .vector .setValueCount (getPosition () + 1 );
7065 }
7166}
Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ public void writeExtension(Object value) {
3434 ByteBuffer bb = ByteBuffer .allocate (16 );
3535 bb .putLong (uuid .getMostSignificantBits ());
3636 bb .putLong (uuid .getLeastSignificantBits ());
37- vector .setSafe (idx (), bb .array ());
38- vector .setValueCount (this . idx () + 1 );
37+ vector .setSafe (getPosition (), bb .array ());
38+ vector .setValueCount (getPosition () + 1 );
3939 }
4040
4141 @ Override
4242 public void write (ExtensionHolder holder ) {
4343 UuidHolder uuidHolder = (UuidHolder ) holder ;
44- vector .setSafe (this . idx (), uuidHolder .value );
45- vector .setValueCount (this . idx () + 1 );
44+ vector .setSafe (getPosition (), uuidHolder .value );
45+ vector .setValueCount (getPosition () + 1 );
4646 }
4747}
You can’t perform that action at this time.
0 commit comments