Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,18 @@ public void copyFromSafe(int fromIndex, int thisIndex, ValueVector from) {
copyFrom(fromIndex, thisIndex, from);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

@Override
public ArrowBufPointer getDataPointer(int index) {
return getDataPointer(index, new ArrowBufPointer());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,6 @@ public void setSafe(int index, BigIntHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
12 changes: 0 additions & 12 deletions java/vector/src/main/java/org/apache/arrow/vector/BitVector.java
Original file line number Diff line number Diff line change
Expand Up @@ -409,18 +409,6 @@ public void setSafe(int index, BitHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,18 +237,6 @@ public void setSafe(int index, DateDayHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,18 +241,6 @@ public void setSafe(int index, DateMilliHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,18 +445,6 @@ public void setSafe(int index, DecimalHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,6 @@ public void setSafe(int index, DurationHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,6 @@ public void setSafe(int index, NullableFixedSizeBinaryHolder holder) {
set(index, holder);
}

public void setNull(int index) {
handleSafe(index);
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Given a data buffer, get the value stored at a particular position
* in the vector.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,6 @@ public void setSafe(int index, Float4Holder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,18 +239,6 @@ public void setSafe(int index, Float8Holder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
12 changes: 0 additions & 12 deletions java/vector/src/main/java/org/apache/arrow/vector/IntVector.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,6 @@ public void setSafe(int index, IntHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,18 +336,6 @@ public void setSafe(int index, IntervalDayHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,18 +287,6 @@ public void setSafe(int index, IntervalYearHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,18 +266,6 @@ public void setSafe(int index, SmallIntHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,6 @@ public void setSafe(int index, TimeMicroHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,18 +242,6 @@ public void setSafe(int index, TimeMilliHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,18 +239,6 @@ public void setSafe(int index, TimeNanoHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,18 +239,6 @@ public void setSafe(int index, TimeSecHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,6 @@ public void setSafe(int index, long value) {
set(index, value);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,18 +266,6 @@ public void setSafe(int index, TinyIntHolder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Store the given value at a particular position in the vector. isSet indicates
* whether the value is NULL or not.
Expand Down
12 changes: 0 additions & 12 deletions java/vector/src/main/java/org/apache/arrow/vector/UInt1Vector.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,18 +266,6 @@ public void setSafe(int index, UInt1Holder holder) {
set(index, holder);
}

/**
* Set the element at the given index to null.
*
* @param index position of element
*/
public void setNull(int index) {
handleSafe(index);
// not really needed to set the bit to 0 as long as
// the buffer always starts from 0.
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
}

/**
* Sets the value at index to value isSet > 0, otherwise sets the index position
* to invalid/null.
Expand Down
Loading