Skip to content

Commit

Permalink
fix: remove redundant functions
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhatha committed Jun 6, 2024
1 parent b58531f commit c48353f
Showing 1 changed file with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
import org.apache.arrow.vector.VarBinaryVector;
import org.apache.arrow.vector.VarCharVector;
import org.apache.arrow.vector.VariableWidthFieldVector;
import org.apache.arrow.vector.ViewVarCharVector;
import org.apache.arrow.vector.complex.BaseRepeatedValueVector;
import org.apache.arrow.vector.complex.FixedSizeListVector;
import org.apache.arrow.vector.complex.LargeListVector;
Expand Down Expand Up @@ -588,20 +587,6 @@ public static void setVector(VarCharVector vector, byte[]... values) {
vector.setValueCount(length);
}

/**
* Populate values for ViewVarCharVector.
*/
public static void setVector(ViewVarCharVector vector, byte[]... values) {
final int length = values.length;
vector.allocateNewSafe();
for (int i = 0; i < length; i++) {
if (values[i] != null) {
vector.set(i, values[i]);
}
}
vector.setValueCount(length);
}

public static void setVector(VariableWidthFieldVector vector, byte[]... values) {
final int length = values.length;
vector.allocateNewSafe();
Expand Down Expand Up @@ -641,20 +626,6 @@ public static void setVector(VarCharVector vector, String... values) {
vector.setValueCount(length);
}

/**
* Populate values for ViewVarCharVector.
*/
public static void setVector(ViewVarCharVector vector, String... values) {
final int length = values.length;
vector.allocateNewSafe();
for (int i = 0; i < length; i++) {
if (values[i] != null) {
vector.setSafe(i, values[i].getBytes(StandardCharsets.UTF_8));
}
}
vector.setValueCount(length);
}

/**
* Populate values for LargeVarCharVector.
*/
Expand Down

0 comments on commit c48353f

Please sign in to comment.