Skip to content

Commit 4df283a

Browse files
committed
GH-87: removed unneeded override
1 parent 3e88e76 commit 4df283a

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

vector/src/main/java/org/apache/arrow/vector/complex/impl/AbstractExtensionTypeWriter.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

vector/src/test/java/org/apache/arrow/vector/complex/impl/UuidWriterImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)